@prosekit/svelte 0.9.0-beta.6 → 0.9.0
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.
|
@@ -10,11 +10,18 @@ export interface AutocompletePositionerProps {
|
|
|
10
10
|
*/
|
|
11
11
|
placement?: AutocompletePositionerElementProps['placement'];
|
|
12
12
|
/**
|
|
13
|
-
* The distance between the popover and the
|
|
13
|
+
* The distance between the popover and the text selection.
|
|
14
14
|
*
|
|
15
|
-
* @default 4
|
|
15
|
+
* @default { mainAxis: 8, crossAxis: -4 }
|
|
16
16
|
*/
|
|
17
17
|
offset?: AutocompletePositionerElementProps['offset'];
|
|
18
|
+
/**
|
|
19
|
+
* Whether to hide the floating element when the reference element or the
|
|
20
|
+
* floating element is fully clipped.
|
|
21
|
+
*
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
hide?: AutocompletePositionerElementProps['hide'];
|
|
18
25
|
/** @default true */
|
|
19
26
|
inline?: AutocompletePositionerElementProps['inline'];
|
|
20
27
|
/** @default true */
|
|
@@ -75,13 +82,6 @@ export interface AutocompletePositionerProps {
|
|
|
75
82
|
* @default false
|
|
76
83
|
*/
|
|
77
84
|
sameHeight?: AutocompletePositionerElementProps['sameHeight'];
|
|
78
|
-
/**
|
|
79
|
-
* Whether to hide the floating element when the reference element or the
|
|
80
|
-
* floating element is fully clipped.
|
|
81
|
-
*
|
|
82
|
-
* @default false
|
|
83
|
-
*/
|
|
84
|
-
hide?: AutocompletePositionerElementProps['hide'];
|
|
85
85
|
/**
|
|
86
86
|
* Describes the root boundary that the element will be checked for overflow relative to.
|
|
87
87
|
* Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-positioner.gen.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-positioner.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,E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CAAC;IAC9D;;;;;OAKG;IACH,
|
|
1
|
+
{"version":3,"file":"autocomplete-positioner.gen.d.ts","sourceRoot":"","sources":["../../../../src/components/autocomplete/autocomplete-positioner.gen.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,6BAA6B,EAAE,2BAA2B,IAAI,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AACnJ,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItD,qEAAqE;AACrE,MAAM,WAAW,2BAA2B;IAC1C;;;;OAIG;IACH,SAAS,CAAC,EAAE,kCAAkC,CAAC,WAAW,CAAC,CAAC;IAC5D;;;;OAIG;IACH,MAAM,CAAC,EAAE,kCAAkC,CAAC,QAAQ,CAAC,CAAC;IACtD;;;;;OAKG;IACH,IAAI,CAAC,EAAE,kCAAkC,CAAC,MAAM,CAAC,CAAC;IAClD,oBAAoB;IACpB,MAAM,CAAC,EAAE,kCAAkC,CAAC,QAAQ,CAAC,CAAC;IACtD,oBAAoB;IACpB,KAAK,CAAC,EAAE,kCAAkC,CAAC,OAAO,CAAC,CAAC;IACpD,oBAAoB;IACpB,WAAW,CAAC,EAAE,kCAAkC,CAAC,aAAa,CAAC,CAAC;IAChE,kCAAkC;IAClC,QAAQ,CAAC,EAAE,kCAAkC,CAAC,UAAU,CAAC,CAAC;IAC1D,iBAAiB;IACjB,eAAe,CAAC,EAAE,kCAAkC,CAAC,iBAAiB,CAAC,CAAC;IACxE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kCAAkC,CAAC,UAAU,CAAC,CAAC;IAC1D;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,kCAAkC,CAAC,YAAY,CAAC,CAAC;IAC9D;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,kCAAkC,CAAC,MAAM,CAAC,CAAC;IAClD;;;;OAIG;IACH,KAAK,CAAC,EAAE,kCAAkC,CAAC,OAAO,CAAC,CAAC;IACpD;;;;;OAKG;IACH,OAAO,CAAC,EAAE,kCAAkC,CAAC,SAAS,CAAC,CAAC;IACxD;;;;;OAKG;IACH,SAAS,CAAC,EAAE,kCAAkC,CAAC,WAAW,CAAC,CAAC;IAC5D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,kCAAkC,CAAC,YAAY,CAAC,CAAC;IAC9D;;;;;OAKG;IACH,YAAY,CAAC,EAAE,kCAAkC,CAAC,cAAc,CAAC,CAAC;IAClE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,kCAAkC,CAAC,gBAAgB,CAAC,CAAC;IACtE;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,kCAAkC,CAAC,aAAa,CAAC,CAAC;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,EAAE,SAAS,CAAC,2BAA2B,GAAG,cAAc,CAAC,6BAA6B,CAAC,CAA6H,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
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Svelte components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"dependencies": {
|
|
84
84
|
"@prosemirror-adapter/core": "^0.5.3",
|
|
85
85
|
"@prosemirror-adapter/svelte": "^0.5.3",
|
|
86
|
-
"@prosekit/core": "^0.12.0
|
|
87
|
-
"@prosekit/
|
|
88
|
-
"@prosekit/
|
|
86
|
+
"@prosekit/core": "^0.12.0",
|
|
87
|
+
"@prosekit/web": "^0.8.0",
|
|
88
|
+
"@prosekit/pm": "^0.1.16"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"svelte": ">= 5.0.0"
|
|
@@ -99,11 +99,11 @@
|
|
|
99
99
|
"@sveltejs/package": "^2.5.7",
|
|
100
100
|
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
101
101
|
"@types/node": "^24.10.13",
|
|
102
|
-
"svelte": "^5.55.
|
|
102
|
+
"svelte": "^5.55.5",
|
|
103
103
|
"svelte-check": "^4.4.6",
|
|
104
104
|
"tsx": "^4.21.0",
|
|
105
105
|
"typescript": "~5.9.3",
|
|
106
|
-
"vitest": "^4.1.
|
|
106
|
+
"vitest": "^4.1.5",
|
|
107
107
|
"vitest-browser-svelte": "^2.1.1",
|
|
108
108
|
"@prosekit/config-ts": "0.0.0",
|
|
109
109
|
"@prosekit/config-vitest": "0.0.0",
|
|
@@ -15,11 +15,18 @@ export interface AutocompletePositionerProps {
|
|
|
15
15
|
*/
|
|
16
16
|
placement?: AutocompletePositionerElementProps['placement'];
|
|
17
17
|
/**
|
|
18
|
-
* The distance between the popover and the
|
|
18
|
+
* The distance between the popover and the text selection.
|
|
19
19
|
*
|
|
20
|
-
* @default 4
|
|
20
|
+
* @default { mainAxis: 8, crossAxis: -4 }
|
|
21
21
|
*/
|
|
22
22
|
offset?: AutocompletePositionerElementProps['offset'];
|
|
23
|
+
/**
|
|
24
|
+
* Whether to hide the floating element when the reference element or the
|
|
25
|
+
* floating element is fully clipped.
|
|
26
|
+
*
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
hide?: AutocompletePositionerElementProps['hide'];
|
|
23
30
|
/** @default true */
|
|
24
31
|
inline?: AutocompletePositionerElementProps['inline'];
|
|
25
32
|
/** @default true */
|
|
@@ -80,13 +87,6 @@ export interface AutocompletePositionerProps {
|
|
|
80
87
|
* @default false
|
|
81
88
|
*/
|
|
82
89
|
sameHeight?: AutocompletePositionerElementProps['sameHeight'];
|
|
83
|
-
/**
|
|
84
|
-
* Whether to hide the floating element when the reference element or the
|
|
85
|
-
* floating element is fully clipped.
|
|
86
|
-
*
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
hide?: AutocompletePositionerElementProps['hide'];
|
|
90
90
|
/**
|
|
91
91
|
* Describes the root boundary that the element will be checked for overflow relative to.
|
|
92
92
|
* Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.
|