Version 3.0.5

August 30, 2022

Added

  • Added the $removeAttribuutes argument to spicyweb\embeddedassets\models\EmbeddedAsset::getIframeCode(), for removing tag attributes from an iframe

Changed

  • Updated JavaScript dependencies

Version 3.0.4

June 26, 2022

Added

  • Added a second parameter ($attributes) to spicyweb\embeddedassets\models\EmbeddedAsset::getIframeCode(), for adding attributes to the iframe element, in the format attribute or attribute=value

Changed

  • The first parameter ($params) to spicyweb\embeddedassets\models\EmbeddedAsset::getIframeCode() is no longer required

Version 3.0.3

June 15, 2022

Fixed

  • Fixed a bug where non-admin users who have the permission to save assets in a volume were unable to save embedded assets in that volume (thanks @aodihis)

Version 3.0.2

May 27, 2022

Added

  • Added the enableAutoRefresh plugin setting (defaults to true) for controlling whether Instagram embedded assets are auto-refreshed
  • Added spicyweb\embeddedassets\Service::refreshEmbeddedAsset()
  • Added spicyweb\embeddedassets\errors\RefreshException

Version 3.0.1

May 18, 2022

Fixed

  • Fixed a bug where trying to save an embedded asset to a subfolder of a volume's filesystem would save the embedded asset in the filesystem's root folder instead

Version 3.0.0

May 5, 2022

Added

  • Added Craft 4 compatibility

Removed

  • Removed Craft 3 compatibility
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getCacheAge()
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getRequestUrl(); use the url property instead
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getSafeHtml(); use a combination of the getIsSafe() method and the code property instead
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getThumbnailHeight(); use the imageHeight property instead
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getThumbnailUrl(); use the image property instead
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::getThumbnailWidth(); use the imageWidth property instead
  • Removed spicyweb\embeddedassets\models\EmbeddedAsset::isSafe(); use getIsSafe() instead
  • Removed spicyweb\embeddedassets\Service::getCachedAssetPath()
  • Removed spicyweb\embeddedassets\Variable::fromAsset(); use get() instead
  • Removed spicyweb\embeddedassets\Variable::fromAssets(); iterate your assets manually and call get() on each instead
  • Removed spicyweb\embeddedassets\Variable::isEmbedded(); use get() instead

Version 2.11.3

June 30, 2022

Fixed

  • Fixed a bug where the 'Uploaded by' field would be empty for newly created embedded assets

Version 2.11.2

June 24, 2022

Fixed

  • Fixed a type error that could occur in version 2.11.1

Version 2.11.1

June 24, 2022

Fixed

  • Fixed an error that occurred when saving an embedded asset, if the embedded asset title (and therefore the filename) contained invalid characters

Version 2.11.0

June 15, 2022

Added

  • Added spicyweb\embeddedassets\gql\interfaces\EmbeddedAssetImage
  • Added spicyweb\embeddedassets\gql\types\EmbeddedAssetImage
  • Added spicyweb\embeddedassets\gql\types\generators\EmbeddedAssetImageType

Fixed

  • Fixed a bug where accessing embedded assets' images and providerIcons properties through GraphQL outside of dev mode would cause an error

Version 2.10.7

April 21, 2022

Fixed

  • Fixed a bug where replacing an embedded asset would not cause its cached data to be replaced

Version 2.10.6

April 20, 2022

Fixed

  • Fixed an error that could occur when loading a saved embedded asset preview on Craft 3.6

Version 2.10.5

April 16, 2022

Fixed

  • Fixed a bug that could cause invalid Vimeo URLs to be loaded when the 'Disable tracking on Vimeo iframes' setting was enabled
  • Fixed a bug with Instagram auto-refreshing in 2.10.4

Version 2.10.4

April 14, 2022

Changed

  • Moved auto-refreshing of Instagram embedded assets to a queue job

Version 2.10.3

March 21, 2022

Fixed

  • Fixed a bug when auto-refreshing Instagram embedded assets, where the previous cached data was not being replaced

Version 2.10.2

March 15, 2022

Added

  • Added support for embedding Vimeo URLs with the new external embed format (thanks @boboldehampsink)

Changed

  • Updated JavaScript dependencies

Fixed

  • Fixed some issues with Instagram asset auto-refreshing (thanks @arifje)

Version 2.10.1

February 7, 2022

Fixed

  • Fixed a bug where refreshing embedded assets from the console wouldn't refresh an embedded asset if the data was still cached from when the embedded asset was created

Version 2.10.0

January 6, 2022

Added

  • Added spicyweb\embeddedassets\Variable::create() (craft.embeddedAssets.create()) for creating an EmbeddedAsset model from an asset's contents or other user-provided data that represents a valid embedded asset
  • Added a console command for refreshing embedded asset data by provider

Changed

  • The console command for refreshing all embedded asset data now accepts both --volume and --provider options

Version 2.9.1

November 30, 2021

Fixed

  • Fixed an error that occurred when executing a GraphQL query for embedded asset data using Gridsome, or after generating types using GraphQL codegen

Version 2.9.0

November 3, 2021

Added

  • Added console commands for refreshing all embedded asset data and refreshing embedded asset data by volume

Version 2.8.1

October 8, 2021

Changed

  • Updated spicyweb\embeddedassets\events\BeforeCreateAdapterEvent to allow custom configuration of Dispatcher instance (thanks @qrazi)

Version 2.8.0

August 2, 2021

Added

  • Added spicyweb\embeddedassets\Service::EVENT_BEFORE_CREATE_ADAPTER
  • Added spicyweb\embeddedassets\events\BeforeCreateAdapterEvent

Changed

  • Updated JavaScript dependencies

Version 2.7.0

June 2, 2021

Added

  • Added the iframeCode and iframeSrc fields for GraphQL queries, which take a params argument in the same format as an embedded asset model's getIframeCode() and getIframeSrc() methods

Changed

  • Embedded Assets now requires Embed 3.4.17 or any later Embed 3 version

Version 2.6.1

May 10, 2021

Changed

  • Restricted Embedded Assets' required Embed version to 3.4.15 for now

Version 2.6.0

May 10, 2021

Added

  • Added the Use YouTube nocookie? plugin setting, which will force usage of the youtube-nocookie.com domain for YouTube iframes when enabled
  • Added the Disable tracking on Vimeo iframes? plugin setting, which will force usage of the dnt=1 query parameter for Vimeo iframes when enabled
  • Added spicyweb\embeddedassets\models\EmbeddedAsset::getIframeCode() (like getVideoCode(), but for all cases where the embedded asset's code is an <iframe>)
  • Added spicyweb\embeddedassets\models\EmbeddedAsset::getIframeSrc() (like getVideoUrl(), but for all cases where the embedded asset's code is an <iframe>)

Changed

  • Embedded Assets now requires Craft 3.6.0 or later
  • Changed Embedded Assets' JavaScript dependency package management from Yarn to NPM

Version 2.5.3

April 9, 2021

Fixed

  • Fixed an issue where direct Vimeo URLs could not be embedded (thanks @boboldehampsink)
  • Fixed a potential preview styling issue when the embedded asset code is a <video>

Version 2.5.2

April 2, 2021

Changed

  • Updated the embed/embed library version requirement to ^3.4.15

Version 2.5.1

February 27, 2021

Fixed

  • Fixed a bug where a validation error would occur when saving the plugin settings, if any of the Parameters list values were 0

Version 2.5.0

February 17, 2021

Changed

  • The embedded asset caching added in Embedded Assets 2.3.0 now uses the Craft data cache, rather than manual saving of files within storage/runtime/assets/embeddedassets (thanks @johndwells)

Fixed

  • Fixed a potential error when trying to get the EmbeddedAsset model of an asset that wasn't an embedded asset

Version 2.4.5

December 29, 2020

Changed

  • Updated the embed/embed library version requirement to ^3.4.13

Version 2.4.4

November 24, 2020

Added

  • Added a default English translation file

Fixed

  • Fixed an issue with the getVideoCode() and getVideoUrl() methods where an extra ? could sometimes be included in the returned URL

Version 2.4.3

November 3, 2020

Changed

  • Updated embed/embed library minimum requirement to 3.4.9
  • The exceptions thrown if an embedded asset's getVideoCode() method is called on an embedded asset that is not a video, or where it is not passed an array, have been given more descriptive error messages

Version 2.4.2

October 26, 2020

Fixed

  • Fixed a JavaScript error that prevented Redactor fields' 'link to an asset' option from working correctly

Version 2.4.1

October 19, 2020

Added

  • Added the referer plugin setting, allowing setting the domain to be sent as the referer with embedded asset requests, which allows the embedding of domain-restricted Vimeo videos (thanks @johndwells)

Version 2.4.0

October 2, 2020

Added

  • Added support for retrieving embedded asset data with GraphQL in Craft CMS Pro
  • Added spicyweb\embeddedassets\models\EmbeddedAsset::getIsSafe()

Deprecated

  • Deprecated spicyweb\embeddedassets\models\EmbeddedAsset::isSafe() (this should not require any Twig template updates)

Fixed

  • Updated the node-sass version requirement to 4.13.1; resolves a security issue

Version 2.3.4

August 25, 2020

Fixed

  • Fixed an issue where the Embed and Replace button text could not be translated

Version 2.3.3

August 10, 2020

Fixed

  • Fixed a bug with asset index modals for asset fields that don't allow JSON assets, where the Embed button would appear after selecting an asset
  • Updated the elliptic version requirement in yarn.lock to 6.5.3

Version 2.3.2

July 28, 2020

Fixed

  • Fixed an issue where Instagram embeds would include the login URL (with otherwise correct data) in some cases after checking for expired signatures

Version 2.3.1

July 20, 2020

Fixed

  • Fixed a bug with Embedded Assets 2.3.0, where asset index modals for asset fields with no restriction on allowed file types would not show an Embed button

Version 2.3.0

July 10, 2020

Changed

  • Embedded Assets now requires Craft 3.4.0 or later
  • Embedded Assets now caches embedded asset JSON files in a Craft install's storage/runtime/assets/embeddedassets directory, improving the performance of the Craft Assets page when using a remote storage volume
  • Updated embed/embed library minimum requirement to 3.4.8
  • Embedded Assets' JavaScript source has been converted to use the Standard JS style

Fixed

  • Fixed an issue where Embedded Assets was putting an Embed button on a Redactor field's Add Image modal
  • Fixed a performance issue with Embedded Assets' check for expired Instagram signatures
  • Fixed an issue where Instagram embeds would include the login URL (with otherwise correct data) in some cases
  • Replaced usage of the deprecated Twig_Markup class with Twig\Markup

Version 2.2.7

July 1, 2020

Fixed

  • Embedded Assets now internally stores all embedded asset data that has been loaded during a request, to avoid unnecessary reloads of embedded asset file contents, improving the performance of the Craft Assets page

Version 2.2.6

May 31, 2020

Fixed

  • Updated embed/embed library minimum requirement to ^3.4.5, to fix issue with Instagram embeds not working in some cases
  • Fixed JavaScript error when entering an embed URL which returns an embedded asset with no associated media

Version 2.2.5

May 26, 2020

Added

  • Added support for embedding videos from PBS

Version 2.2.4

May 19, 2020

Changed

  • Updated embed/embed library minimum requirement to ^3.4.4, for compatibility with TikTok embeds
  • Updated default whitelist to include TikTok

Fixed

  • Fixed error when trying to embed a TikTok asset
  • Fixed error when trying to embed a Giphy asset

Version 2.2.3

May 18, 2020

Added

  • Added the getVideoId() method for an embedded asset from YouTube or Vimeo

Fixed

  • Fixed typo in 'netflix.com' in Embedded Assets' default whitelist

Version 2.2.2

May 15, 2020

Added

  • Added support for Craft 3.4 asset previews

Version 2.2.1.1

April 22, 2020

Fixed

  • Fix PHP 7.4 deprecation #127 - thanks @engram-design

Version 2.2.1

February 13, 2020

Fixed

  • Fix #121 - check for data URL when validating image URL

Version 2.2.0

February 13, 2020

Added

  • Instagram auto refresh (once the Instragram signature expires, the JSON file will be updated)
  • Added the replace button on the asset index page

Fixed

  • Fixed bug which was causing embedded assets to save to the wrong asset folder
  • add fix for PHP 7.4 deprecation error #122 - thanks @oddnavy

Version 2.1.1.1

October 28, 2019

Fixed

  • Fix releases

Version 2.1.1

October 28, 2019

Fixed

  • Fix #117 - make sure the url has the query string when adding params

Version 2.1.0

October 18, 2019

Added

  • embed button won't be shown if the field doesn't allow json files
  • Allow API Keys to be set using env variables.

Changed

  • Update composer craft requirement to ^3.1.0

Version 2.0.12

September 20, 2019

Fixed

  • Fix #116 - updating embed library to the latest version to fix the vimeo issue - thanks @cole007

Version 2.0.11

July 30, 2019

Changed

  • switch to yarn.

Fixed

  • fix an issue with previews for assets that's not an embedded asset.

Version 2.0.10

July 11, 2019

Fixed

  • Fix - Dependancy security vulnarability fix with lodash.mergewith

Version 2.0.9

July 3, 2019

Fixed

  • Fix - Register the assets first before getting the default thumbnail

Version 2.0.8

July 1, 2019

Added

  • Added getVideoUrl and getVideoCode. Allows additional params to be added to the embedded video urls.

Version 2.0.7

June 28, 2019

Fixed

  • Make sure to not execute any thumbnail retrieval functions if showThumbnailsInCp is false

Version 2.0.6

June 12, 2019

Fixed

  • Fixed #99 stretched thumbnail issue

Version 2.0.5

June 6, 2019

Fixed

  • Fix vulnarability issue with js-yaml<3.13.1

Version 2.0.4

May 24, 2019

Fixed

  • Fix vulnerability issues with tar <4.4.2
  • Actually catch the error thrown if the json file doesn't exist - thanks @engram-design

Version 2.0.3

April 24, 2019

Added

  • Add showThumbnailsInCp setting - Thanks @ttempleton
  • New icon

Version 2.0.2

March 18, 2019

Fixed

  • Fixed incompatibility with Internet Explorer 11
  • Fixed Embedded Assets 2.0.1 incompatibility with Craft 3.1 releases prior to 3.1.13

Version 2.0.1

March 12, 2019

Fixed

  • Fixed error when saving an embedded asset if Embedded Assets' Parameters setting was empty
  • Fixed error when saving an embedded asset if the title contained emoji (now removes any emoji from the asset title)

Version 2.0.0

February 26, 2019

The plugin’s package name has changed to spicyweb/craft-embedded-assets. Embedded Assets will need be updated to 2.0 from a terminal, by running composer require spicyweb/craft-embedded-assets and then composer remove benjamminf/craft-embedded-assets.

Added

  • Embedded Assets is now maintained by Spicy Web
  • Added extraWhitelist setting (thanks @benjamminf)

Changed

  • The asset preview controller action now supports passing an assetId parameter (thanks @benjamminf)
  • Show image preview if large enough / reduce max height for smaller screens (thanks @benjamminf)
  • Refactored preview iframe JS into its own class (thanks @benjamminf)
  • Improved asset previews in assets table (thanks @benjamminf)

Fixed

  • Fixed issues with not being able to save embedded assets in subfolders (thanks @kyle51north)
  • Fixed asset volume permission issue, preventing embedded assets from being saved in Craft 3.1 (thanks @limesquare-nl / @kyle51north)
  • Prevent scripts from loading async in preview, causing the asset preview to jump around after it loads (thanks @benjamminf)
  • Fixed issue with blank thumbnails showing in asset preview (thanks @benjamminf)

Removed

  • Removed unnecessary JS size detection in favour of readily available embed data (thanks @benjamminf)

Version 1.0.2

May 9, 2018

Added

  • Added html property for conveniently handling checks for embed codes and safety

Fixed

Version 1.0.1

May 9, 2018

Fixed

  • Implemented missing legacy properties on embedded assets

Version 1.0.0

May 8, 2018
  • Initial release for Craft 3