@prosekit/svelte 0.9.0-beta.1 → 0.9.0-beta.2

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.
@@ -28,6 +28,13 @@ export interface InlinePopoverPositionerProps {
28
28
  * @default true
29
29
  */
30
30
  hide?: InlinePopoverPositionerElementProps['hide'];
31
+ /**
32
+ * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
33
+ * to place the floating element on top of other page content.
34
+ *
35
+ * @default false
36
+ */
37
+ hoist?: InlinePopoverPositionerElementProps['hoist'];
31
38
  /**
32
39
  * Whether the floating element can overlap the reference element to keep it
33
40
  * in view.
@@ -62,13 +69,6 @@ export interface InlinePopoverPositionerProps {
62
69
  * @default true
63
70
  */
64
71
  autoUpdate?: InlinePopoverPositionerElementProps['autoUpdate'];
65
- /**
66
- * Whether to use the browser Popover API to place the floating element on
67
- * top of other page content.
68
- *
69
- * @default true
70
- */
71
- hoist?: InlinePopoverPositionerElementProps['hoist'];
72
72
  /**
73
73
  * Whether to flip the `placement` in order to keep it in view when the
74
74
  * preferred placement(s) will overflow the clipping boundary. You can also
@@ -1 +1 @@
1
- {"version":3,"file":"inline-popover-positioner.gen.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-popover/inline-popover-positioner.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,4BAA4B,IAAI,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACxH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAIjD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,mCAAmC,CAAC,WAAW,CAAC,CAAC;IAC7D;;;;OAIG;IACH,MAAM,CAAC,EAAE,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IACvD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,mCAAmC,CA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eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,4BAA4B,CAA0F,CAAC"}
1
+ {"version":3,"file":"inline-popover-positioner.gen.d.ts","sourceRoot":"","sources":["../../../../src/components/inline-popover/inline-popover-positioner.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,4BAA4B,IAAI,mCAAmC,EAAE,MAAM,8BAA8B,CAAC;AACxH,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAIjD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,SAAS,CAAC,EAAE,mCAAmC,CAAC,WAAW,CAAC,CAAC;IAC7D;;;;OAIG;IACH,MAAM,CAAC,EAAE,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IACvD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,mCAAmC,CAAC,MAAM,CAAC,CAAC;IACnD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IACrD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,mCAAmC,CAAC,SAAS,CAAC,CAAC;IACzD;;;;;OAKG;IACH,MAAM,CAAC,EAAE,mCAAmC,CAAC,QAAQ,CAAC,CAAC;IACvD;;;;OAIG;IACH,eAAe,CAAC,EAAE,mCAAmC,CAAC,iBAAiB,CAAC,CAAC;IACzE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,mCAAmC,CAAC,UAAU,CAAC,CAAC;IAC3D;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,mCAAmC,CAAC,YAAY,CAAC,CAAC;IAC/D;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,mCAAmC,CAAC,MAAM,CAAC,CAAC;IACnD;;;;OAIG;IACH,KAAK,CAAC,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IACrD;;;;;OAKG;IACH,WAAW,CAAC,EAAE,mCAAmC,CAAC,aAAa,CAAC,CAAC;IACjE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,mCAAmC,CAAC,WAAW,CAAC,CAAC;IAC7D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,mCAAmC,CAAC,YAAY,CAAC,CAAC;IAC/D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,mCAAmC,CAAC,UAAU,CAAC,CAAC;IAC3D;;;;;OAKG;IACH,YAAY,CAAC,EAAE,mCAAmC,CAAC,cAAc,CAAC,CAAC;IACnE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,mCAAmC,CAAC,gBAAgB,CAAC,CAAC;IACvE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,mCAAmC,CAAC,aAAa,CAAC,CAAC;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,CAAC,4BAA4B,CAA0F,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/svelte",
3
3
  "type": "module",
4
- "version": "0.9.0-beta.1",
4
+ "version": "0.9.0-beta.2",
5
5
  "private": false,
6
6
  "description": "Svelte components and utilities for ProseKit",
7
7
  "author": {
@@ -85,7 +85,7 @@
85
85
  "@prosemirror-adapter/svelte": "^0.5.3",
86
86
  "@prosekit/core": "^0.12.0-beta.0",
87
87
  "@prosekit/pm": "^0.1.15",
88
- "@prosekit/web": "^0.8.0-beta.1"
88
+ "@prosekit/web": "^0.8.0-beta.2"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "svelte": ">= 5.0.0"
@@ -105,9 +105,9 @@
105
105
  "typescript": "~5.9.3",
106
106
  "vitest": "^4.1.4",
107
107
  "vitest-browser-svelte": "^2.1.0",
108
- "@prosekit/config-ts": "0.0.0",
108
+ "@prosekit/config-vitest": "0.0.0",
109
109
  "@prosekit/testing": "0.0.0",
110
- "@prosekit/config-vitest": "0.0.0"
110
+ "@prosekit/config-ts": "0.0.0"
111
111
  },
112
112
  "publishConfig": {
113
113
  "dev": {}
@@ -32,6 +32,13 @@ export interface InlinePopoverPositionerProps {
32
32
  * @default true
33
33
  */
34
34
  hide?: InlinePopoverPositionerElementProps['hide'];
35
+ /**
36
+ * Whether to use the browser [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
37
+ * to place the floating element on top of other page content.
38
+ *
39
+ * @default false
40
+ */
41
+ hoist?: InlinePopoverPositionerElementProps['hoist'];
35
42
  /**
36
43
  * Whether the floating element can overlap the reference element to keep it
37
44
  * in view.
@@ -66,13 +73,6 @@ export interface InlinePopoverPositionerProps {
66
73
  * @default true
67
74
  */
68
75
  autoUpdate?: InlinePopoverPositionerElementProps['autoUpdate'];
69
- /**
70
- * Whether to use the browser Popover API to place the floating element on
71
- * top of other page content.
72
- *
73
- * @default true
74
- */
75
- hoist?: InlinePopoverPositionerElementProps['hoist'];
76
76
  /**
77
77
  * Whether to flip the `placement` in order to keep it in view when the
78
78
  * preferred placement(s) will overflow the clipping boundary. You can also