@measured/puck-plugin-heading-analyzer 0.11.0-canary.6145c32 → 0.11.0-canary.b28404f

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1242,11 +1242,13 @@ var setupZone = (data, zoneKey) => {
1242
1242
  };
1243
1243
 
1244
1244
  // ../core/lib/get-item.ts
1245
- var getItem = (selector, data) => {
1245
+ var getItem = (selector, data, dynamicProps = {}) => {
1246
1246
  if (!selector.zone || selector.zone === rootDroppableId) {
1247
- return data.content[selector.index];
1247
+ const item2 = data.content[selector.index];
1248
+ return __spreadProps(__spreadValues({}, item2), { props: dynamicProps[item2.props.id] || item2.props });
1248
1249
  }
1249
- return setupZone(data, selector.zone).zones[selector.zone][selector.index];
1250
+ const item = setupZone(data, selector.zone).zones[selector.zone][selector.index];
1251
+ return __spreadProps(__spreadValues({}, item), { props: dynamicProps[item.props.id] || item.props });
1250
1252
  };
1251
1253
 
1252
1254
  // ../core/lib/get-zone-id.ts
@@ -1273,12 +1275,14 @@ var defaultAppState = {
1273
1275
  ui: {
1274
1276
  leftSideBarVisible: true,
1275
1277
  arrayState: {},
1276
- itemSelector: null
1278
+ itemSelector: null,
1279
+ componentList: {}
1277
1280
  }
1278
1281
  };
1279
1282
  var appContext = (0, import_react4.createContext)({
1280
1283
  state: defaultAppState,
1281
- dispatch: () => null
1284
+ dispatch: () => null,
1285
+ config: { components: {} }
1282
1286
  });
1283
1287
  var AppProvider = appContext.Provider;
1284
1288
  var useAppContext = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.11.0-canary.6145c32",
3
+ "version": "0.11.0-canary.b28404f",
4
4
  "private": false,
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
- "@measured/puck": "^0.11.0-canary.6145c32",
17
+ "@measured/puck": "^0.11.0-canary.b28404f",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",