@measured/puck-plugin-heading-analyzer 0.10.1-canary.922a839 → 0.11.0-canary.4613df4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.css CHANGED
@@ -49,40 +49,41 @@
49
49
  }
50
50
 
51
51
  /* css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css/#css-module-data */
52
- ._Heading_1bvy5_1 {
52
+ ._Heading_7sjz7_1 {
53
53
  display: block;
54
54
  color: var(--puck-color-black);
55
55
  font-family: var(--puck-font-stack);
56
56
  font-weight: 700;
57
57
  margin: 0;
58
+ word-break: break-word;
58
59
  }
59
- ._Heading_1bvy5_1 b {
60
+ ._Heading_7sjz7_1 b {
60
61
  font-weight: 700;
61
62
  }
62
- ._Heading--xxxxl_1bvy5_13 {
63
+ ._Heading--xxxxl_7sjz7_14 {
63
64
  font-size: var(--puck-font-size-xxxxl);
64
65
  letter-spacing: 0.08ch;
65
66
  font-weight: 800;
66
67
  }
67
- ._Heading--xxxl_1bvy5_19 {
68
+ ._Heading--xxxl_7sjz7_20 {
68
69
  font-size: var(--puck-font-size-xxxl);
69
70
  }
70
- ._Heading--xxl_1bvy5_23 {
71
+ ._Heading--xxl_7sjz7_24 {
71
72
  font-size: var(--puck-font-size-xxl);
72
73
  }
73
- ._Heading--xl_1bvy5_27 {
74
+ ._Heading--xl_7sjz7_28 {
74
75
  font-size: var(--puck-font-size-xl);
75
76
  }
76
- ._Heading--l_1bvy5_31 {
77
+ ._Heading--l_7sjz7_32 {
77
78
  font-size: var(--puck-font-size-l);
78
79
  }
79
- ._Heading--m_1bvy5_35 {
80
+ ._Heading--m_7sjz7_36 {
80
81
  font-size: var(--puck-font-size-m);
81
82
  }
82
- ._Heading--s_1bvy5_39 {
83
+ ._Heading--s_7sjz7_40 {
83
84
  font-size: var(--puck-font-size-s);
84
85
  }
85
- ._Heading--xs_1bvy5_43 {
86
+ ._Heading--xs_7sjz7_44 {
86
87
  font-size: var(--puck-font-size-xs);
87
88
  }
88
89
 
package/dist/index.js CHANGED
@@ -1119,7 +1119,7 @@ init_react_import();
1119
1119
 
1120
1120
  // css-module:/home/runner/work/puck/puck/packages/core/components/Heading/styles.module.css#css-module
1121
1121
  init_react_import();
1122
- var styles_module_default2 = { "Heading": "_Heading_1bvy5_1", "Heading--xxxxl": "_Heading--xxxxl_1bvy5_13", "Heading--xxxl": "_Heading--xxxl_1bvy5_19", "Heading--xxl": "_Heading--xxl_1bvy5_23", "Heading--xl": "_Heading--xl_1bvy5_27", "Heading--l": "_Heading--l_1bvy5_31", "Heading--m": "_Heading--m_1bvy5_35", "Heading--s": "_Heading--s_1bvy5_39", "Heading--xs": "_Heading--xs_1bvy5_43" };
1122
+ var styles_module_default2 = { "Heading": "_Heading_7sjz7_1", "Heading--xxxxl": "_Heading--xxxxl_7sjz7_14", "Heading--xxxl": "_Heading--xxxl_7sjz7_20", "Heading--xxl": "_Heading--xxl_7sjz7_24", "Heading--xl": "_Heading--xl_7sjz7_28", "Heading--l": "_Heading--l_7sjz7_32", "Heading--m": "_Heading--m_7sjz7_36", "Heading--s": "_Heading--s_7sjz7_40", "Heading--xs": "_Heading--xs_7sjz7_44" };
1123
1123
 
1124
1124
  // ../core/components/Heading/index.tsx
1125
1125
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -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.10.1-canary.922a839",
3
+ "version": "0.11.0-canary.4613df4",
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.10.1-canary.922a839",
17
+ "@measured/puck": "^0.11.0-canary.4613df4",
18
18
  "@types/react": "^18.2.0",
19
19
  "@types/react-dom": "^18.2.0",
20
20
  "eslint": "^7.32.0",