@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.
@@ -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 = Record<string, never>;
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 = Record<string, never>;
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: string[];
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
  };
@@ -4,7 +4,7 @@ import {
4
4
  import "./chunk-RTIPZK6D.js";
5
5
  import "./chunk-6P3YKUWI.js";
6
6
  import "./chunk-PCXKL6TA.js";
7
- import "./chunk-G5KPDHDH.js";
7
+ import "./chunk-KA7LSXZQ.js";
8
8
  import "./chunk-TRZW33VF.js";
9
9
  import {
10
10
  __decorateClass,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Popover
3
- } from "./chunk-G5KPDHDH.js";
3
+ } from "./chunk-KA7LSXZQ.js";
4
4
  import "./chunk-TRZW33VF.js";
5
5
  import {
6
6
  __decorateClass
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-PCXKL6TA.js";
5
5
  import {
6
6
  Popover
7
- } from "./chunk-G5KPDHDH.js";
7
+ } from "./chunk-KA7LSXZQ.js";
8
8
  import {
9
9
  comboBoxContext
10
10
  } from "./chunk-C4MW43I4.js";
@@ -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';
@@ -0,0 +1,10 @@
1
+ import {
2
+ Popover,
3
+ propNames
4
+ } from "./chunk-KA7LSXZQ.js";
5
+ import "./chunk-TRZW33VF.js";
6
+ import "./chunk-3UDA5JEW.js";
7
+ export {
8
+ Popover,
9
+ propNames
10
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/lit",
3
3
  "type": "module",
4
- "version": "0.0.16",
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.12",
86
- "@prosekit/extensions": "^0.0.14",
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.4"
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
  }