@measured/puck-plugin-heading-analyzer 0.14.0-canary.16fff43 → 0.14.0-canary.1c4c076
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +5 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
@@ -145,7 +145,7 @@ type RenderFunc<Props extends {
|
|
145
145
|
[key: string]: any;
|
146
146
|
} = {
|
147
147
|
children: ReactNode;
|
148
|
-
}> =
|
148
|
+
}> = (props: Props) => ReactElement;
|
149
149
|
declare const overrideKeys: readonly ["header", "headerActions", "fields", "fieldLabel", "components", "componentItem", "outline", "puck", "preview"];
|
150
150
|
type OverrideKey = (typeof overrideKeys)[number];
|
151
151
|
type OverridesGeneric<Shape extends {
|
@@ -175,7 +175,10 @@ type Overrides = OverridesGeneric<{
|
|
175
175
|
className?: string;
|
176
176
|
}>;
|
177
177
|
components: RenderFunc;
|
178
|
-
componentItem: RenderFunc
|
178
|
+
componentItem: RenderFunc<{
|
179
|
+
children: ReactNode;
|
180
|
+
name: string;
|
181
|
+
}>;
|
179
182
|
outline: RenderFunc;
|
180
183
|
puck: RenderFunc;
|
181
184
|
}>;
|
package/dist/index.js
CHANGED
@@ -71223,10 +71223,10 @@ var require_dist = __commonJS({
|
|
71223
71223
|
const ctx = (0, import_react32.useContext)(drawerContext);
|
71224
71224
|
const resolvedId = `${ctx.droppableId}::${id || name}`;
|
71225
71225
|
const CustomInner = (0, import_react32.useMemo)(
|
71226
|
-
() => children || (({ children: children2 }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
|
71226
|
+
() => children || (({ children: children2, name: name2 }) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("default"), children: children2 })),
|
71227
71227
|
[children]
|
71228
71228
|
);
|
71229
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomInner, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
|
71229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DrawerDraggable, { id: resolvedId, index, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(CustomInner, { name, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("draggableWrapper"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: getClassNameItem2("draggable"), children: [
|
71230
71230
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("name"), children: name }),
|
71231
71231
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: getClassNameItem2("icon"), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(DragIcon, {}) })
|
71232
71232
|
] }) }) }) });
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.14.0-canary.
|
3
|
+
"version": "0.14.0-canary.1c4c076",
|
4
4
|
"author": "Measured Corporation Ltd <hello@measured.co>",
|
5
5
|
"repository": "measuredco/puck",
|
6
6
|
"bugs": "https://github.com/measuredco/puck/issues",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"dist"
|
19
19
|
],
|
20
20
|
"devDependencies": {
|
21
|
-
"@measured/puck": "^0.14.0-canary.
|
21
|
+
"@measured/puck": "^0.14.0-canary.1c4c076",
|
22
22
|
"@types/react": "^18.2.0",
|
23
23
|
"@types/react-dom": "^18.2.0",
|
24
24
|
"eslint": "^7.32.0",
|