@measured/puck-plugin-heading-analyzer 0.14.2-canary.276d0f8 → 0.14.2-canary.3e5599e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +15 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -45907,7 +45907,10 @@ var require_dist = __commonJS({
45907
45907
  return collected;
45908
45908
  };
45909
45909
  var getStyleSheet = (el) => {
45910
- return Array.from(document.styleSheets).find((ss) => ss.ownerNode === el);
45910
+ return Array.from(document.styleSheets).find((ss) => {
45911
+ const ownerNode = ss.ownerNode;
45912
+ return ownerNode.href === el.href;
45913
+ });
45911
45914
  };
45912
45915
  var getStyles2 = (styleSheet) => {
45913
45916
  if (styleSheet) {
@@ -46038,8 +46041,16 @@ var require_dist = __commonJS({
46038
46041
  });
46039
46042
  const parentDocument = win.parent.document;
46040
46043
  const collectedStyles = collectStyles(parentDocument);
46044
+ const hrefs = [];
46041
46045
  Promise.all(
46042
- collectedStyles.map((styleNode) => __async2(void 0, null, function* () {
46046
+ collectedStyles.map((styleNode, i2) => __async2(void 0, null, function* () {
46047
+ if (styleNode.nodeName === "LINK") {
46048
+ const linkHref = styleNode.href;
46049
+ if (hrefs.indexOf(linkHref) > -1) {
46050
+ return;
46051
+ }
46052
+ hrefs.push(linkHref);
46053
+ }
46043
46054
  const mirror = yield mirrorEl(styleNode);
46044
46055
  if (!mirror)
46045
46056
  return;
@@ -78345,7 +78356,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
78345
78356
  onChange(e2.currentTarget.value);
78346
78357
  },
78347
78358
  disabled: readOnly,
78348
- defaultChecked: value === option.value
78359
+ checked: value === option.value
78349
78360
  }
78350
78361
  ),
78351
78362
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: getClassName14("radioInner"), children: option.label || option.value })
@@ -79840,6 +79851,7 @@ See https://github.com/measuredco/puck/issues/411 for more information. This mes
79840
79851
  children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
79841
79852
  DragDropContext2,
79842
79853
  {
79854
+ autoScrollerOptions: { disabled: iframe.disableAutoScroll },
79843
79855
  onDragUpdate: (update2) => {
79844
79856
  setDraggedItem(__spreadValues2(__spreadValues2({}, draggedItem), update2));
79845
79857
  onDragStartOrUpdate(update2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@measured/puck-plugin-heading-analyzer",
3
- "version": "0.14.2-canary.276d0f8",
3
+ "version": "0.14.2-canary.3e5599e",
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.2-canary.276d0f8",
21
+ "@measured/puck": "^0.14.2-canary.3e5599e",
22
22
  "@types/react": "^18.2.0",
23
23
  "@types/react-dom": "^18.2.0",
24
24
  "eslint": "^7.32.0",