@cloudcannon/editable-regions 0.0.13 → 0.0.14

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.
@@ -95,7 +95,6 @@ export default class EditableArrayItemControls extends EditableComponentControls
95
95
  this.dragHandle.type = "button";
96
96
 
97
97
  if (this.usePopoverAPI) {
98
- //@ts-expect-error: Typescript doesn't yet support the popover API
99
98
  this.dragHandle.style.anchorName = this.anchorName;
100
99
  }
101
100
 
@@ -46,7 +46,6 @@ export default class EditableComponentControls extends HTMLElement {
46
46
 
47
47
  if (this.usePopoverAPI) {
48
48
  this.contextMenu.setAttribute("popover", "auto");
49
- //@ts-expect-error: Typescript doesn't yet support the popover API
50
49
  this.contextMenu.style.positionAnchor = this.anchorName;
51
50
  }
52
51
 
@@ -109,11 +108,9 @@ export default class EditableComponentControls extends HTMLElement {
109
108
  if (existing && existing !== "none") {
110
109
  this.hostAnchorName = existing.split(",")[0].trim();
111
110
  } else {
112
- // @ts-expect-error
113
111
  this.parentElement.style.anchorName = this.hostAnchorName;
114
112
  }
115
113
 
116
- // @ts-expect-error
117
114
  this.style.positionAnchor = this.hostAnchorName;
118
115
  }
119
116
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcannon/editable-regions",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "type": "module",
5
5
  "description": "Visual Editing for the CloudCannon CMS.",
6
6
  "keywords": [
@@ -34,20 +34,20 @@
34
34
  "exports": {
35
35
  "./*": null,
36
36
  "./astro": {
37
- "default": "./integrations/astro/index.mjs",
38
- "types": "./types/astro.d.ts"
37
+ "types": "./types/astro.d.ts",
38
+ "default": "./integrations/astro/index.mjs"
39
39
  },
40
40
  "./astro-react-renderer": {
41
- "default": "./integrations/astro/react-renderer.mjs",
42
- "types": "./types/astro.d.ts"
41
+ "types": "./types/astro.d.ts",
42
+ "default": "./integrations/astro/react-renderer.mjs"
43
43
  },
44
44
  "./astro-integration": {
45
- "default": "./integrations/astro/astro-integration.mjs",
46
- "types": "./types/astro.d.ts"
45
+ "types": "./types/astro.d.ts",
46
+ "default": "./integrations/astro/astro-integration.mjs"
47
47
  },
48
48
  "./react": {
49
- "default": "./integrations/react.mjs",
50
- "types": "./types/react.d.ts"
49
+ "types": "./types/react.d.ts",
50
+ "default": "./integrations/react.mjs"
51
51
  },
52
52
  "./liquid": "./integrations/liquid/index.mjs",
53
53
  "./eleventy": "./integrations/eleventy.mjs",
@@ -64,10 +64,10 @@
64
64
  "@types/react-dom": "19.2.3",
65
65
  "astro": "6.1.2",
66
66
  "js-beautify": "1.15.4",
67
- "liquidjs": "10.25.2",
68
- "typescript": "5.9.3"
67
+ "liquidjs": "10.25.5",
68
+ "typescript": "6.0.2"
69
69
  },
70
70
  "dependencies": {
71
- "esbuild": "0.27.4"
71
+ "esbuild": "0.28.0"
72
72
  }
73
73
  }