@measured/puck-plugin-heading-analyzer 0.14.1-canary.041ca64 → 0.14.1-canary.282a8b0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.js +87 -84
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -74801,7 +74801,7 @@ var require_dist2 = __commonJS({
|
|
74801
74801
|
);
|
74802
74802
|
};
|
74803
74803
|
init_react_import2();
|
74804
|
-
var styles_module_default8 = { "Puck": "
|
74804
|
+
var styles_module_default8 = { "Puck": "_Puck_mowzv_19", "Puck-layout": "_Puck-layout_mowzv_29", "Puck--mounted": "_Puck--mounted_mowzv_41", "Puck--leftSideBarVisible": "_Puck--leftSideBarVisible_mowzv_45", "Puck--rightSideBarVisible": "_Puck--rightSideBarVisible_mowzv_51", "Puck-mounted": "_Puck-mounted_mowzv_64", "Puck-header": "_Puck-header_mowzv_105", "Puck-headerInner": "_Puck-headerInner_mowzv_114", "Puck-headerToggle": "_Puck-headerToggle_mowzv_124", "Puck-rightSideBarToggle": "_Puck-rightSideBarToggle_mowzv_131", "Puck-leftSideBarToggle": "_Puck-leftSideBarToggle_mowzv_132", "Puck-headerTitle": "_Puck-headerTitle_mowzv_136", "Puck-headerPath": "_Puck-headerPath_mowzv_140", "Puck-headerTools": "_Puck-headerTools_mowzv_147", "Puck-menuButton": "_Puck-menuButton_mowzv_153", "Puck--menuOpen": "_Puck--menuOpen_mowzv_158", "Puck-leftSideBar": "_Puck-leftSideBar_mowzv_132", "Puck-rightSideBar": "_Puck-rightSideBar_mowzv_131", "Puck-portal": "_Puck-portal_mowzv_186" };
|
74805
74805
|
init_react_import2();
|
74806
74806
|
var import_react_spinners6 = (init_esm(), __toCommonJS(esm_exports));
|
74807
74807
|
init_react_import2();
|
@@ -76495,6 +76495,7 @@ var require_dist2 = __commonJS({
|
|
76495
76495
|
onViewportChange,
|
76496
76496
|
onZoom
|
76497
76497
|
}) => {
|
76498
|
+
var _a, _b;
|
76498
76499
|
const { viewports } = useAppContext2();
|
76499
76500
|
const defaultsContainAutoZoom = defaultZoomOptions.find(
|
76500
76501
|
(option) => option.value === autoZoom
|
@@ -76528,7 +76529,7 @@ var require_dist2 = __commonJS({
|
|
76528
76529
|
IconButton,
|
76529
76530
|
{
|
76530
76531
|
title: "Zoom viewport out",
|
76531
|
-
disabled: zoom <= zoomOptions[0].value,
|
76532
|
+
disabled: zoom <= ((_a = zoomOptions[0]) == null ? void 0 : _a.value),
|
76532
76533
|
onClick: (e2) => {
|
76533
76534
|
e2.stopPropagation();
|
76534
76535
|
onZoom(
|
@@ -76545,7 +76546,7 @@ var require_dist2 = __commonJS({
|
|
76545
76546
|
IconButton,
|
76546
76547
|
{
|
76547
76548
|
title: "Zoom viewport in",
|
76548
|
-
disabled: zoom >= zoomOptions[zoomOptions.length - 1].value,
|
76549
|
+
disabled: zoom >= ((_b = zoomOptions[zoomOptions.length - 1]) == null ? void 0 : _b.value),
|
76549
76550
|
onClick: (e2) => {
|
76550
76551
|
e2.stopPropagation();
|
76551
76552
|
onZoom(
|
@@ -77018,94 +77019,96 @@ var require_dist2 = __commonJS({
|
|
77018
77019
|
rightSideBarVisible
|
77019
77020
|
}),
|
77020
77021
|
children: [
|
77021
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.
|
77022
|
-
|
77023
|
-
|
77024
|
-
|
77025
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.
|
77026
|
-
|
77027
|
-
|
77028
|
-
|
77029
|
-
onClick: () => {
|
77030
|
-
onPublish && onPublish(data);
|
77031
|
-
},
|
77032
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Globe, { size: "14px" }),
|
77033
|
-
children: "Publish"
|
77034
|
-
}
|
77035
|
-
)
|
77036
|
-
] }),
|
77037
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerInner"), children: [
|
77038
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerToggle"), children: [
|
77039
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77040
|
-
IconButton,
|
77041
|
-
{
|
77042
|
-
onClick: () => {
|
77043
|
-
toggleSidebars("left");
|
77044
|
-
},
|
77045
|
-
title: "Toggle left sidebar",
|
77046
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
|
77047
|
-
}
|
77048
|
-
) }),
|
77049
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77050
|
-
IconButton,
|
77022
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("layout"), children: [
|
77023
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77024
|
+
CustomHeader,
|
77025
|
+
{
|
77026
|
+
actions: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
77027
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
77028
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77029
|
+
Button,
|
77051
77030
|
{
|
77052
77031
|
onClick: () => {
|
77053
|
-
|
77032
|
+
onPublish && onPublish(data);
|
77054
77033
|
},
|
77055
|
-
|
77056
|
-
children:
|
77034
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Globe, { size: "14px" }),
|
77035
|
+
children: "Publish"
|
77057
77036
|
}
|
77058
|
-
)
|
77037
|
+
)
|
77059
77038
|
] }),
|
77060
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("
|
77061
|
-
|
77062
|
-
|
77063
|
-
|
77064
|
-
|
77039
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("header", { className: getClassName25("header"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerInner"), children: [
|
77040
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerToggle"), children: [
|
77041
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("leftSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77042
|
+
IconButton,
|
77043
|
+
{
|
77044
|
+
onClick: () => {
|
77045
|
+
toggleSidebars("left");
|
77046
|
+
},
|
77047
|
+
title: "Toggle left sidebar",
|
77048
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelLeft, { focusable: "false" })
|
77049
|
+
}
|
77050
|
+
) }),
|
77051
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBarToggle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77052
|
+
IconButton,
|
77053
|
+
{
|
77054
|
+
onClick: () => {
|
77055
|
+
toggleSidebars("right");
|
77056
|
+
},
|
77057
|
+
title: "Toggle right sidebar",
|
77058
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(PanelRight, { focusable: "false" })
|
77059
|
+
}
|
77060
|
+
) })
|
77061
|
+
] }),
|
77062
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("headerTitle"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading2, { rank: 2, size: "xs", children: [
|
77063
|
+
headerTitle || rootProps.title || "Page",
|
77064
|
+
headerPath && /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
|
77065
|
+
" ",
|
77066
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("code", { className: getClassName25("headerPath"), children: headerPath })
|
77067
|
+
] })
|
77068
|
+
] }) }),
|
77069
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("headerTools"), children: [
|
77070
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("menuButton"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77071
|
+
IconButton,
|
77072
|
+
{
|
77073
|
+
onClick: () => {
|
77074
|
+
return setMenuOpen(!menuOpen);
|
77075
|
+
},
|
77076
|
+
title: "Toggle menu bar",
|
77077
|
+
children: menuOpen ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronUp, { focusable: "false" }) : /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ChevronDown, { focusable: "false" })
|
77078
|
+
}
|
77079
|
+
) }),
|
77080
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77081
|
+
MenuBar,
|
77082
|
+
{
|
77083
|
+
appState,
|
77084
|
+
data,
|
77085
|
+
dispatch,
|
77086
|
+
onPublish,
|
77087
|
+
menuOpen,
|
77088
|
+
renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
77089
|
+
setMenuOpen
|
77090
|
+
}
|
77091
|
+
)
|
77065
77092
|
] })
|
77066
|
-
] }) })
|
77067
|
-
|
77068
|
-
|
77069
|
-
|
77070
|
-
|
77071
|
-
|
77072
|
-
|
77073
|
-
|
77074
|
-
|
77075
|
-
|
77076
|
-
|
77077
|
-
|
77078
|
-
|
77079
|
-
|
77080
|
-
|
77081
|
-
|
77082
|
-
|
77083
|
-
|
77084
|
-
onPublish,
|
77085
|
-
menuOpen,
|
77086
|
-
renderHeaderActions: () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CustomHeaderActions, {}),
|
77087
|
-
setMenuOpen
|
77088
|
-
}
|
77089
|
-
)
|
77090
|
-
] })
|
77091
|
-
] }) })
|
77092
|
-
}
|
77093
|
-
),
|
77094
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
|
77095
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection2, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Components, {}) }),
|
77096
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection2, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Outline, {}) })
|
77093
|
+
] }) })
|
77094
|
+
}
|
77095
|
+
),
|
77096
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: getClassName25("leftSideBar"), children: [
|
77097
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection2, { title: "Components", noBorderTop: true, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Components, {}) }),
|
77098
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(SidebarSection2, { title: "Outline", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Outline, {}) })
|
77099
|
+
] }),
|
77100
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Canvas, {}),
|
77101
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77102
|
+
SidebarSection2,
|
77103
|
+
{
|
77104
|
+
noPadding: true,
|
77105
|
+
noBorderTop: true,
|
77106
|
+
showBreadcrumbs: true,
|
77107
|
+
title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
|
77108
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Fields, {})
|
77109
|
+
}
|
77110
|
+
) })
|
77097
77111
|
] }),
|
77098
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Canvas, {}),
|
77099
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: getClassName25("rightSideBar"), children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77100
|
-
SidebarSection2,
|
77101
|
-
{
|
77102
|
-
noPadding: true,
|
77103
|
-
noBorderTop: true,
|
77104
|
-
showBreadcrumbs: true,
|
77105
|
-
title: selectedItem ? (_a = config.components[selectedItem.type]["label"]) != null ? _a : selectedItem.type : "Page",
|
77106
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Fields, {})
|
77107
|
-
}
|
77108
|
-
) }),
|
77109
77112
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
77110
77113
|
"div",
|
77111
77114
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@measured/puck-plugin-heading-analyzer",
|
3
|
-
"version": "0.14.1-canary.
|
3
|
+
"version": "0.14.1-canary.282a8b0",
|
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.1-canary.
|
21
|
+
"@measured/puck": "^0.14.1-canary.282a8b0",
|
22
22
|
"@types/react": "^18.2.0",
|
23
23
|
"@types/react-dom": "^18.2.0",
|
24
24
|
"eslint": "^7.32.0",
|