Skip to content

Commit

Permalink
Merge branch 'release/4.0.2' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Sep 11, 2023
2 parents bfa0e07 + 796ba3d commit b8cb1b9
Show file tree
Hide file tree
Showing 23 changed files with 47 additions and 37 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 4.0.2 - 2023.09.11
### Fixed
* Fixed an issue where the appropriate feature classes were not re-applied to the iFrame when multiple differently configured Canto DAM Asset fields are used on the same entry

## 4.0.1 - 2023.09.10
### Added
* Added **Canto Asset Picker Type** field settings that allows you to choose the type of Canto assets that can be selected: Single Image, Multiple Images, or Whole Album
Expand Down
14 changes: 10 additions & 4 deletions buildchain/src/js/canto-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,16 @@
$(cantoUCFrame).attr("data-type", type);
$(cantoUCFrame).attr("src", cantoLoginPage);
}
$(cantoUCFrame).on("load", function () {
$(cantoUCFrame).contents().find("body").addClass(bodyClass);
console.log($(cantoUCFrame).contents().find("body"));
});

// Apply the feature classes for the iFrame immediately, and also after the iFrame as loaded
function applyIFrameClasses() {
const $iFrameBody = $(cantoUCFrame).contents().find("body");
$iFrameBody.removeClass('can-select-single can-select-multiple can-select-album');
$iFrameBody.addClass(bodyClass);
}

$(cantoUCFrame).on("load", applyIFrameClasses);
applyIFrameClasses();
}

function getTenant(tokenInfo) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lsst-epo/canto-dam-assets",
"description": "This Craft CMS plugin adds a Field Type with GraphQL support for the Canto Digital Asset Management (DAM) web system",
"type": "craft-plugin",
"version": "4.0.1",
"version": "4.0.2",
"license": "MIT",
"require": {
"php": ">=8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/services/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ public function getAuthToken($validateOnly = false): string
}
Craft::error("An exception occurred in getAuthToken()", __METHOD__);

return Craft::t("cantodamassets", "An error occurred fetching auth token!");
return Craft::t("_canto-dam-assets", "An error occurred fetching auth token!");
}
}

Large diffs are not rendered by default.

Binary file added src/web/assets/dist/assets/app-7c0be19c.css.gz
Binary file not shown.
Binary file removed src/web/assets/dist/assets/app-9ed12e88.css.gz
Binary file not shown.
2 changes: 0 additions & 2 deletions src/web/assets/dist/assets/app-e12d88c5.js

This file was deleted.

1 change: 0 additions & 1 deletion src/web/assets/dist/assets/app-e12d88c5.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions src/web/assets/dist/assets/app-fe94df30.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/web/assets/dist/assets/app-fe94df30.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 0 additions & 17 deletions src/web/assets/dist/assets/canto-field-5ec7fbc3.js

This file was deleted.

Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions src/web/assets/dist/assets/canto-field-ff720840.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit b8cb1b9

Please sign in to comment.