@appkit/dek-plugin 0.16.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -144,7 +144,9 @@ function setState(integrationKey, key, value) {
144
144
  `api:${integrationKey.toLowerCase()}`,
145
145
  JSON.stringify(localData)
146
146
  );
147
- window.dispatchEvent(new Event("local-storage"));
147
+ const ev = new Event("storage");
148
+ ev.key = `api:${integrationKey.toLowerCase()}`;
149
+ window.dispatchEvent(ev);
148
150
  }
149
151
  function getState(integrationKey, key) {
150
152
  const localData = getStateRoot(integrationKey);
package/dist/index.umd.js CHANGED
@@ -147,7 +147,9 @@ var __publicField = (obj, key, value) => {
147
147
  `api:${integrationKey.toLowerCase()}`,
148
148
  JSON.stringify(localData)
149
149
  );
150
- window.dispatchEvent(new Event("local-storage"));
150
+ const ev = new Event("storage");
151
+ ev.key = `api:${integrationKey.toLowerCase()}`;
152
+ window.dispatchEvent(ev);
151
153
  }
152
154
  function getState(integrationKey, key) {
153
155
  const localData = getStateRoot(integrationKey);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-plugin",
3
3
  "private": false,
4
- "version": "0.16.0",
4
+ "version": "0.17.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",