@measured/puck-plugin-heading-analyzer 0.13.0-canary.6dfbea3 → 0.13.0-canary.d13d00b
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +4 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -74827,7 +74827,7 @@ var require_dist = __commonJS({
|
|
74827
74827
|
var ArrayField = ({
|
74828
74828
|
field,
|
74829
74829
|
onChange,
|
74830
|
-
value,
|
74830
|
+
value: _value,
|
74831
74831
|
name,
|
74832
74832
|
label,
|
74833
74833
|
readOnly,
|
@@ -74835,6 +74835,7 @@ var require_dist = __commonJS({
|
|
74835
74835
|
id
|
74836
74836
|
}) => {
|
74837
74837
|
const { state, setUi } = useAppContext2();
|
74838
|
+
const value = _value;
|
74838
74839
|
const arrayState = state.ui.arrayState[id] || {
|
74839
74840
|
items: Array.from(value || []).map((item, idx) => {
|
74840
74841
|
return {
|
@@ -74944,7 +74945,7 @@ var require_dist = __commonJS({
|
|
74944
74945
|
children: [
|
74945
74946
|
localState.arrayState.items.map((item, i2) => {
|
74946
74947
|
const { _arrayId = `${id}-${i2}`, _originalIndex = i2 } = item;
|
74947
|
-
const data = Array.from(localState.value || [])[i2];
|
74948
|
+
const data = Array.from(localState.value || [])[i2] || {};
|
74948
74949
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
74949
74950
|
Draggable2,
|
74950
74951
|
{
|
@@ -77983,7 +77984,7 @@ var headingAnalyzer = {
|
|
77983
77984
|
overrides: {
|
77984
77985
|
fields: ({ children, itemSelector }) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
77985
77986
|
children,
|
77986
|
-
itemSelector
|
77987
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { display: itemSelector ? "none" : "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(SidebarSection, { title: "Heading Outline", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(HeadingAnalyzer, {}) }) })
|
77987
77988
|
] })
|
77988
77989
|
}
|
77989
77990
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.13.0-canary.
|
3
|
+
"version": "0.13.0-canary.d13d00b",
|
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.13.0-canary.
|
17
|
+
"@measured/puck": "^0.13.0-canary.d13d00b",
|
18
18
|
"@types/react": "^18.2.0",
|
19
19
|
"@types/react-dom": "^18.2.0",
|
20
20
|
"eslint": "^7.32.0",
|