@finsweet/attributes-copyclip
Version:
Set any element to copy a string value to the clipboard when clicking on it.
1 lines • 3.14 kB
JSON
[{"version":"1.7.0","markdown":"- e4b3b680: Created new `window.fsAttributes.destroy()` method to support SPA environments.\n This new method allows users to destroy all Attributes instances, cleaning up event listeners, observers, states, global variables, etc.\n\n Websites that use a client-side router that simulates an SPA environment like [barba.js](https://barba.js.org/) or [Swup](https://swup.js.org/) can now properly init and destroy Attributes.\n After destroying, Attributes can be manually re-initted by calling `window.fsAttribute[ATTRIBUTE_KEY].init()`.\n\n Updated changesets system, now all updates will be correctly reflected in [the official updates page](https://www.finsweet.com/attributes/updates)."},{"version":"1.6.1","markdown":"- Updated dependencies [4792998a]\n - @global/constants@1.2.0\n - @global/factory@1.1.5"},{"version":"1.6.0","markdown":"- 07f32375: Created `fs-cmsattribute` Attribute- Updated dependencies [07f32375]\n - @global/constants@1.1.0\n - @global/factory@1.1.4"},{"version":"1.5.5","markdown":"- Updated dependencies [7542dcdb]\n - @global/constants@1.0.2\n - @global/factory@1.1.3"},{"version":"1.5.4","markdown":"- Updated dependencies [bdd1a78]\n - @global/constants@1.0.1\n - @global/factory@1.1.2"},{"version":"1.5.3","markdown":"- Updated dependencies [13c3e23]\n - @global/factory@1.1.1"},{"version":"1.5.2","markdown":"- Updated dependencies [627bf25]\n - @global/factory@1.1.0"},{"version":"1.5.1","markdown":"- Fixed copying empty targets causing unexpected behaviors."},{"version":"1.5.0","markdown":"- Added support to copy content from Form Fields (`input`, `select`, `textarea`)."},{"version":"1.4.0","markdown":"- Added support wizard and publishing new schema version"},{"version":"1.3.0","markdown":"Included a new `window.fsAttributes.push()` method in the developer API that provides a standarized way to safely access any Attribute internals once it has fully loaded.\nIt can be used like:\n\n```html\n<script>\n window.fsAttributes = window.fsAttributes || [];\n window.fsAttributes.push([\n 'copyclip',\n ([copyTriggers, destroyCallbacks]) => {\n console.log('Attribute has successfully loaded!');\n console.log([copyTriggers, destroyCallbacks]);\n },\n ]);\n</script>\n```"},{"version":"1.2.1","markdown":"- Fixed hidden target elements (set to `display: none`) not being copied correctly.\n This fixes the issue both for regular targets and for sibling targets."},{"version":"1.2.0","markdown":"- Created `changesets.json` API."},{"version":"1.1.9","markdown":"- Published production files."},{"version":"1.1.8","markdown":"- Updated `examples.json`."},{"version":"1.1.7","markdown":"- Renamed the property in `window.fsAttributes` to the original Attribute key name."},{"version":"1.1.6","markdown":"- Implemented the `generateSelectors` util."},{"version":"1.1.5","markdown":"- Fixed `currentScript` vs `params` distinction.\n- Created `CHANGELOG.md`."},{"version":"1.1.1","markdown":"0- Added `initAttributes` call to make sure `window.fsAttributes` exists."},{"version":"1.0.0","markdown":"- Created the attribute package."}]