@prosekit/lit 0.0.17 → 0.0.18
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.
- package/dist/_tsup-dts-rollup.d.ts +1 -1
- package/dist/{chunk-G5KPDHDH.js → chunk-KA7LSXZQ.js} +13 -3
- package/dist/prosekit-lit-autocomplete-popover.js +1 -1
- package/dist/prosekit-lit-code-block-popover.js +1 -1
- package/dist/prosekit-lit-combo-box.js +1 -1
- package/dist/prosekit-lit-popover.d.ts +5 -0
- package/dist/prosekit-lit-popover.js +10 -0
- package/package.json +11 -3
@@ -447,7 +447,7 @@ declare const propNames_5: never[];
|
|
447
447
|
export { propNames_5 as propNames_alias_11 }
|
448
448
|
export { propNames_5 as propNames_alias_12 }
|
449
449
|
|
450
|
-
export declare const propNames_alias_13:
|
450
|
+
export declare const propNames_alias_13: readonly ["active", "reference", "options", "autoUpdate", "autoUpdateOptions"];
|
451
451
|
|
452
452
|
export declare const propNames_alias_5: readonly ["editor", "regex", "popoverOptions"];
|
453
453
|
|
@@ -6,9 +6,6 @@ import {
|
|
6
6
|
blockComponentStyles
|
7
7
|
} from "./chunk-3UDA5JEW.js";
|
8
8
|
|
9
|
-
// src/components/popover/options.ts
|
10
|
-
import "@floating-ui/dom";
|
11
|
-
|
12
9
|
// src/components/popover/index.ts
|
13
10
|
import {
|
14
11
|
autoUpdate,
|
@@ -25,12 +22,24 @@ function roundByDPR(value) {
|
|
25
22
|
|
26
23
|
// src/components/popover/default-popover-options.ts
|
27
24
|
import { offset, shift } from "@floating-ui/dom";
|
25
|
+
|
26
|
+
// src/components/popover/options.ts
|
27
|
+
import "@floating-ui/dom";
|
28
|
+
|
29
|
+
// src/components/popover/default-popover-options.ts
|
28
30
|
var defaultPopoverOptions = {
|
29
31
|
placement: "bottom",
|
30
32
|
middleware: [offset(4), shift({ padding: 8 })]
|
31
33
|
};
|
32
34
|
|
33
35
|
// src/components/popover/index.ts
|
36
|
+
var propNames = [
|
37
|
+
"active",
|
38
|
+
"reference",
|
39
|
+
"options",
|
40
|
+
"autoUpdate",
|
41
|
+
"autoUpdateOptions"
|
42
|
+
];
|
34
43
|
var Popover = class extends LightBlockElement {
|
35
44
|
/** @hidden */
|
36
45
|
constructor() {
|
@@ -116,5 +125,6 @@ Popover = __decorateClass([
|
|
116
125
|
], Popover);
|
117
126
|
|
118
127
|
export {
|
128
|
+
propNames,
|
119
129
|
Popover
|
120
130
|
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export { AutoUpdateOptions } from './_tsup-dts-rollup';
|
2
|
+
export { PopoverOptions_alias_1 as PopoverOptions } from './_tsup-dts-rollup';
|
3
|
+
export { propNames_alias_13 as propNames } from './_tsup-dts-rollup';
|
4
|
+
export { PopoverProps } from './_tsup-dts-rollup';
|
5
|
+
export { Popover } from './_tsup-dts-rollup';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/lit",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.18",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -74,6 +74,11 @@
|
|
74
74
|
"types": "./dist/prosekit-lit-combo-box-list.d.ts",
|
75
75
|
"import": "./dist/prosekit-lit-combo-box-list.js",
|
76
76
|
"default": "./dist/prosekit-lit-combo-box-list.js"
|
77
|
+
},
|
78
|
+
"./popover": {
|
79
|
+
"types": "./dist/prosekit-lit-popover.d.ts",
|
80
|
+
"import": "./dist/prosekit-lit-popover.js",
|
81
|
+
"default": "./dist/prosekit-lit-popover.js"
|
77
82
|
}
|
78
83
|
},
|
79
84
|
"files": [
|
@@ -82,8 +87,8 @@
|
|
82
87
|
"dependencies": {
|
83
88
|
"@floating-ui/dom": "^1.5.3",
|
84
89
|
"@lit/context": "^1.0.0",
|
85
|
-
"@prosekit/core": "^0.0.
|
86
|
-
"@prosekit/extensions": "^0.0.
|
90
|
+
"@prosekit/core": "^0.0.14",
|
91
|
+
"@prosekit/extensions": "^0.0.16",
|
87
92
|
"@prosekit/pm": "^0.0.6",
|
88
93
|
"@superhuman/command-score": "^0.5.0",
|
89
94
|
"lit": "^3.0.0"
|
@@ -132,6 +137,9 @@
|
|
132
137
|
],
|
133
138
|
"combo-box-list": [
|
134
139
|
"./dist/prosekit-lit-combo-box-list.d.ts"
|
140
|
+
],
|
141
|
+
"popover": [
|
142
|
+
"./dist/prosekit-lit-popover.d.ts"
|
135
143
|
]
|
136
144
|
}
|
137
145
|
}
|