@prosekit/lit 0.0.16 → 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 +8 -4
- 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 +12 -4
@@ -240,7 +240,9 @@ declare class ComboBoxItem extends LightBlockElement {
|
|
240
240
|
export { ComboBoxItem }
|
241
241
|
export { ComboBoxItem as ComboBoxItem_alias_1 }
|
242
242
|
|
243
|
-
declare type ComboBoxItemProps =
|
243
|
+
declare type ComboBoxItemProps = {
|
244
|
+
onSelect?: VoidFunction;
|
245
|
+
};
|
244
246
|
export { ComboBoxItemProps }
|
245
247
|
export { ComboBoxItemProps as ComboBoxItemProps_alias_1 }
|
246
248
|
|
@@ -251,11 +253,13 @@ declare class ComboBoxList extends LightBlockElement {
|
|
251
253
|
export { ComboBoxList }
|
252
254
|
export { ComboBoxList as ComboBoxList_alias_1 }
|
253
255
|
|
254
|
-
declare type ComboBoxListProps =
|
256
|
+
declare type ComboBoxListProps = {
|
257
|
+
lang?: string;
|
258
|
+
};
|
255
259
|
export { ComboBoxListProps }
|
256
260
|
export { ComboBoxListProps as ComboBoxListProps_alias_1 }
|
257
261
|
|
258
|
-
export declare interface ComboBoxProps {
|
262
|
+
export declare interface ComboBoxProps extends PopoverProps {
|
259
263
|
onDismiss?: VoidFunction;
|
260
264
|
}
|
261
265
|
|
@@ -443,7 +447,7 @@ declare const propNames_5: never[];
|
|
443
447
|
export { propNames_5 as propNames_alias_11 }
|
444
448
|
export { propNames_5 as propNames_alias_12 }
|
445
449
|
|
446
|
-
export declare const propNames_alias_13:
|
450
|
+
export declare const propNames_alias_13: readonly ["active", "reference", "options", "autoUpdate", "autoUpdateOptions"];
|
447
451
|
|
448
452
|
export declare const propNames_alias_5: readonly ["editor", "regex", "popoverOptions"];
|
449
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"
|
@@ -94,7 +99,7 @@
|
|
94
99
|
"tsup": "^7.2.0",
|
95
100
|
"typescript": "^5.2.2",
|
96
101
|
"vitest": "^0.34.6",
|
97
|
-
"vue": "^3.3.
|
102
|
+
"vue": "^3.3.6"
|
98
103
|
},
|
99
104
|
"scripts": {
|
100
105
|
"build:tsup": "tsup",
|
@@ -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
|
}
|