@prosekit/lit 0.1.7 → 0.1.9

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.
@@ -229,6 +229,11 @@ export declare const blockComponentStyles: CSSResult;
229
229
  */
230
230
  export declare const boundary: HTMLElement | undefined;
231
231
 
232
+ export declare function calcResize(position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right', w: number, h: number, dx: number, dy: number, aspectRatio: number | null | undefined): [w: number, h: number];
233
+
234
+ /**
235
+ * @internal
236
+ */
232
237
  export declare class ComboBox extends Popover {
233
238
  /**
234
239
  * @hidden
@@ -284,6 +289,9 @@ export declare const comboBoxContext: {
284
289
  __context__: ComboBoxContext;
285
290
  };
286
291
 
292
+ /**
293
+ * @internal
294
+ */
287
295
  export declare class ComboBoxInput extends LightElement {
288
296
  /**
289
297
  * @hidden
@@ -308,10 +316,16 @@ export declare class ComboBoxInput extends LightElement {
308
316
  render(): TemplateResult<1>;
309
317
  }
310
318
 
319
+ /**
320
+ * @internal
321
+ */
311
322
  export declare interface ComboBoxInputProps {
312
323
  placeholder?: string;
313
324
  }
314
325
 
326
+ /**
327
+ * @internal
328
+ */
315
329
  declare class ComboBoxItem extends LightElement {
316
330
  /**
317
331
  * @hidden
@@ -341,12 +355,18 @@ declare class ComboBoxItem extends LightElement {
341
355
  export { ComboBoxItem }
342
356
  export { ComboBoxItem as ComboBoxItem_alias_1 }
343
357
 
358
+ /**
359
+ * @internal
360
+ */
344
361
  declare type ComboBoxItemProps = {
345
362
  onSelect?: VoidFunction;
346
363
  };
347
364
  export { ComboBoxItemProps }
348
365
  export { ComboBoxItemProps as ComboBoxItemProps_alias_1 }
349
366
 
367
+ /**
368
+ * @internal
369
+ */
350
370
  declare class ComboBoxList extends LightElement {
351
371
  private comboBoxContext;
352
372
  connectedCallback(): void;
@@ -354,12 +374,18 @@ declare class ComboBoxList extends LightElement {
354
374
  export { ComboBoxList }
355
375
  export { ComboBoxList as ComboBoxList_alias_1 }
356
376
 
377
+ /**
378
+ * @internal
379
+ */
357
380
  declare type ComboBoxListProps = {
358
381
  lang?: string;
359
382
  };
360
383
  export { ComboBoxListProps }
361
384
  export { ComboBoxListProps as ComboBoxListProps_alias_1 }
362
385
 
386
+ /**
387
+ * @internal
388
+ */
363
389
  export declare interface ComboBoxProps extends PopoverProps {
364
390
  onDismiss?: VoidFunction;
365
391
  }
@@ -452,8 +478,8 @@ export declare class InlinePopoverController implements ReactiveController {
452
478
  private editor?;
453
479
  private cleanupExtension?;
454
480
  private cleanupEventListener?;
455
- private mouseHovering;
456
- constructor(host: ReactiveControllerHost);
481
+ private interacting;
482
+ constructor(host: LitElement);
457
483
  setEditor(editor: Editor): void;
458
484
  hostConnected(): void;
459
485
  hostDisconnected(): void;
@@ -474,6 +500,8 @@ export declare function isComboBoxItem(element?: Element | null): element is Com
474
500
 
475
501
  export declare function isComboBoxList(element?: Element | null): element is ComboBoxList;
476
502
 
503
+ export declare function isFinitePositiveNumber(value: unknown): value is number;
504
+
477
505
  export declare function isInCodeBlock(selection: Selection_2): boolean | undefined;
478
506
 
479
507
  export declare class LightElement extends LitElement {
@@ -669,6 +697,9 @@ export declare interface PopoverProps {
669
697
  autoUpdateOptions?: AutoUpdateOptions;
670
698
  }
671
699
 
700
+ /**
701
+ * @internal
702
+ */
672
703
  export declare const propNames: readonly [];
673
704
 
674
705
  declare const propNames_2: readonly ["value", "onSelect"];
@@ -679,28 +710,198 @@ declare const propNames_3: readonly ["editor"];
679
710
  export { propNames_3 as propNames_alias_3 }
680
711
  export { propNames_3 as propNames_alias_4 }
681
712
 
713
+ /**
714
+ * @internal
715
+ */
682
716
  declare const propNames_4: readonly ["onSelect"];
683
717
  export { propNames_4 as propNames_alias_8 }
684
718
  export { propNames_4 as propNames_alias_9 }
685
719
 
720
+ /**
721
+ * @internal
722
+ */
686
723
  declare const propNames_5: never[];
687
724
  export { propNames_5 as propNames_alias_10 }
688
725
  export { propNames_5 as propNames_alias_11 }
689
726
 
727
+ /**
728
+ * @internal
729
+ */
730
+ declare const propNames_6: readonly ["width", "height", "aspectRatio", "onSizeChangeStart", "onSizeChange", "onSizeChangeEnd"];
731
+ export { propNames_6 as propNames_alias_14 }
732
+ export { propNames_6 as propNames_alias_15 }
733
+
734
+ /**
735
+ * @internal
736
+ */
737
+ declare const propNames_7: readonly [];
738
+ export { propNames_7 as propNames_alias_16 }
739
+ export { propNames_7 as propNames_alias_17 }
740
+
690
741
  export declare const propNames_alias_12: readonly ["editor", "popoverOptions"];
691
742
 
692
743
  export declare const propNames_alias_13: readonly ["active", "reference", "options", "autoUpdate", "autoUpdateOptions"];
693
744
 
694
745
  export declare const propNames_alias_5: readonly ["editor", "regex", "popoverOptions"];
695
746
 
747
+ /**
748
+ * @internal
749
+ */
696
750
  export declare const propNames_alias_6: readonly ["onDismiss"];
697
751
 
752
+ /**
753
+ * @internal
754
+ */
698
755
  export declare const propNames_alias_7: readonly ["placeholder"];
699
756
 
700
757
  export declare function queryClosestAutocompleteItem(element?: Element | null): AutocompleteItem | null;
701
758
 
702
759
  export declare function queryClosestComboBoxItem(element?: Element | null): ComboBoxItem | null;
703
760
 
761
+ /**
762
+ * @public
763
+ */
764
+ declare class Resizable extends LightElement implements Partial<ResizableProps> {
765
+ /**
766
+ * @hidden
767
+ */
768
+ static properties: {
769
+ width: {
770
+ attribute: false;
771
+ };
772
+ height: {
773
+ attribute: false;
774
+ };
775
+ aspectRatio: {
776
+ attribute: false;
777
+ };
778
+ onResize: {
779
+ attribute: false;
780
+ };
781
+ onResizeEnd: {
782
+ attribute: false;
783
+ };
784
+ resizing: {
785
+ attribute: string;
786
+ type: BooleanConstructor;
787
+ reflect: true;
788
+ };
789
+ };
790
+ /**
791
+ * @hidden
792
+ */
793
+ constructor();
794
+ width?: number | string;
795
+ height?: number | string;
796
+ aspectRatio?: number;
797
+ resizing?: boolean;
798
+ onSizeChangeStart?: (size: {
799
+ width: number;
800
+ height: number;
801
+ }) => void;
802
+ onSizeChange?: (size: {
803
+ width: number;
804
+ height: number;
805
+ }) => void | {
806
+ width?: number | string;
807
+ height?: number | string;
808
+ };
809
+ onSizeChangeEnd?: (size: {
810
+ width: number;
811
+ height: number;
812
+ }) => void;
813
+ private startWidth;
814
+ private startHeight;
815
+ private handleResizeStart;
816
+ private handleResize;
817
+ private handleResizeEnd;
818
+ private updateStyle;
819
+ /**
820
+ * @hidden
821
+ */
822
+ connectedCallback(): void;
823
+ /**
824
+ * @hidden
825
+ */
826
+ protected updated(changedProperties: PropertyValues<this>): void;
827
+ }
828
+ export { Resizable }
829
+ export { Resizable as Resizable_alias_1 }
830
+
831
+ /**
832
+ * @internal
833
+ */
834
+ export declare interface ResizableContext {
835
+ onResizeStart: () => readonly [
836
+ width: number,
837
+ height: number,
838
+ aspectRatio: number
839
+ ];
840
+ onResize: (width: number, height: number) => void;
841
+ onResizeEnd: () => void;
842
+ }
843
+
844
+ /**
845
+ * @internal
846
+ */
847
+ export declare const resizableContext: {
848
+ __context__: ResizableContext;
849
+ };
850
+
851
+ /**
852
+ * @public
853
+ */
854
+ declare class ResizableHandle extends LightElement implements Partial<ResizableHandleProps> {
855
+ private context;
856
+ /**
857
+ * @hidden
858
+ */
859
+ static properties: {
860
+ position: {
861
+ attribute: false;
862
+ };
863
+ };
864
+ position?: ResizableHandleProps['position'];
865
+ connectedCallback(): void;
866
+ }
867
+ export { ResizableHandle }
868
+ export { ResizableHandle as ResizableHandle_alias_1 }
869
+
870
+ /**
871
+ * @internal
872
+ */
873
+ declare type ResizableHandleProps = {
874
+ position: 'top' | 'right' | 'bottom' | 'left' | 'top-left' | 'top-right' | 'bottom-right' | 'bottom-left';
875
+ };
876
+ export { ResizableHandleProps }
877
+ export { ResizableHandleProps as ResizableHandleProps_alias_1 }
878
+
879
+ /**
880
+ * @public
881
+ */
882
+ declare interface ResizableProps {
883
+ width?: string | number;
884
+ height?: string | number;
885
+ aspectRatio?: number;
886
+ onSizeChangeStart?: (size: {
887
+ width: number;
888
+ height: number;
889
+ }) => void;
890
+ onSizeChange?: (size: {
891
+ width: number;
892
+ height: number;
893
+ }) => void | {
894
+ width?: number | string;
895
+ height?: number | string;
896
+ };
897
+ onSizeChangeEnd?: (size: {
898
+ width: number;
899
+ height: number;
900
+ }) => void;
901
+ }
902
+ export { ResizableProps }
903
+ export { ResizableProps as ResizableProps_alias_1 }
904
+
704
905
  /** Rounds a value to the nearest device pixel ratio. */
705
906
  export declare function roundByDPR(value: number): number;
706
907
 
@@ -0,0 +1,9 @@
1
+ // src/components/resizable/context.ts
2
+ import { createContext } from "@lit/context";
3
+ var resizableContext = createContext(
4
+ "prosekit-resizable-context"
5
+ );
6
+
7
+ export {
8
+ resizableContext
9
+ };
@@ -10,7 +10,7 @@ import "@prosekit/core";
10
10
 
11
11
  // src/components/inline-popover/controller.ts
12
12
  import { defineUpdateHandler } from "@prosekit/core";
13
- import "lit";
13
+ import { trackDismissableElement } from "@zag-js/dismissable";
14
14
 
15
15
  // src/components/inline-popover/helpers.ts
16
16
  import { isNodeSelection, isTextSelection } from "@prosekit/core";
@@ -47,7 +47,7 @@ function getDomRange() {
47
47
  var InlinePopoverController = class {
48
48
  constructor(host) {
49
49
  this.host = host;
50
- this.mouseHovering = false;
50
+ this.interacting = false;
51
51
  this.host.addController(this);
52
52
  }
53
53
  setEditor(editor) {
@@ -59,19 +59,21 @@ var InlinePopoverController = class {
59
59
  }
60
60
  hostConnected() {
61
61
  var _a;
62
- const handleMouseDown = () => {
63
- this.mouseHovering = true;
62
+ const handlePointerDown = () => {
63
+ this.interacting = true;
64
64
  };
65
- const handleMouseUp = () => {
66
- this.mouseHovering = false;
67
- this.update();
68
- };
69
- document.addEventListener("mousedown", handleMouseDown);
70
- document.addEventListener("mouseup", handleMouseUp);
65
+ this.host.addEventListener("pointerdown", handlePointerDown);
66
+ const cleanupDismissable = trackDismissableElement(this.host, {
67
+ defer: true,
68
+ pointerBlocking: false,
69
+ onDismiss: () => {
70
+ this.interacting = false;
71
+ }
72
+ });
71
73
  (_a = this.cleanupEventListener) == null ? void 0 : _a.call(this);
72
74
  this.cleanupEventListener = () => {
73
- document.removeEventListener("mousedown", handleMouseDown);
74
- document.removeEventListener("mouseup", handleMouseUp);
75
+ this.host.removeEventListener("pointerdown", handlePointerDown);
76
+ cleanupDismissable();
75
77
  };
76
78
  }
77
79
  hostDisconnected() {
@@ -83,7 +85,7 @@ var InlinePopoverController = class {
83
85
  }
84
86
  update() {
85
87
  const editor = this.editor;
86
- if (!editor || this.mouseHovering) {
88
+ if (!editor || this.interacting) {
87
89
  return;
88
90
  }
89
91
  const reference = getVirtualSelectionElement(editor.view);
@@ -0,0 +1,3 @@
1
+ export { ResizableHandle_alias_1 as ResizableHandle } from './_tsup-dts-rollup';
2
+ export { ResizableHandleProps_alias_1 as ResizableHandleProps } from './_tsup-dts-rollup';
3
+ export { propNames_alias_17 as propNames } from './_tsup-dts-rollup';
@@ -0,0 +1,159 @@
1
+ import {
2
+ resizableContext
3
+ } from "./chunk-WEUGKLVB.js";
4
+ import {
5
+ LightElement,
6
+ defineCustomElement
7
+ } from "./chunk-S32IZIQF.js";
8
+
9
+ // src/components/resizable-handle/component.ts
10
+ import { ContextConsumer } from "@lit/context";
11
+
12
+ // src/utils/is-finite-positive-number.ts
13
+ function isFinitePositiveNumber(value) {
14
+ return typeof value === "number" && Number.isFinite(value) && value > 0;
15
+ }
16
+
17
+ // src/components/resizable-handle/calc-resize.ts
18
+ function calcResize(position, w, h, dx, dy, aspectRatio) {
19
+ aspectRatio = aspectRatio ? aspectRatio : w / h;
20
+ aspectRatio = isFinitePositiveNumber(aspectRatio) ? aspectRatio : 1;
21
+ switch (position) {
22
+ case "bottom-right":
23
+ return calcBottomRightResize(w, h, dx, dy, aspectRatio);
24
+ case "bottom-left":
25
+ return calcBottomLeftResize(w, h, dx, dy, aspectRatio);
26
+ case "top-right":
27
+ return calcTopRightResize(w, h, dx, dy, aspectRatio);
28
+ case "top-left":
29
+ return calcTopLeftResize(w, h, dx, dy, aspectRatio);
30
+ case "top":
31
+ return calcTopResize(w, h, dx, dy, aspectRatio);
32
+ case "right":
33
+ return calcRightResize(w, h, dx, dy, aspectRatio);
34
+ case "bottom":
35
+ return calcBottomResize(w, h, dx, dy, aspectRatio);
36
+ case "left":
37
+ return calcLeftResize(w, h, dx, dy, aspectRatio);
38
+ default:
39
+ throw new RangeError(`Invalid position: ${position}`);
40
+ }
41
+ }
42
+ var calcBottomRightResize = (w, h, dx, dy, r) => {
43
+ w += dx;
44
+ h += dy;
45
+ const sum = w + h;
46
+ h = sum / (r + 1);
47
+ w = sum - h;
48
+ return [w, h];
49
+ };
50
+ var calcBottomLeftResize = (w, h, dx, dy, r) => {
51
+ w -= dx;
52
+ h += dy;
53
+ const sum = w + h;
54
+ h = sum / (r + 1);
55
+ w = sum - h;
56
+ return [w, h];
57
+ };
58
+ var calcTopRightResize = (w, h, dx, dy, r) => {
59
+ w += dx;
60
+ h -= dy;
61
+ const sum = w + h;
62
+ h = sum / (r + 1);
63
+ w = sum - h;
64
+ return [w, h];
65
+ };
66
+ var calcTopLeftResize = (w, h, dx, dy, r) => {
67
+ w -= dx;
68
+ h -= dy;
69
+ const sum = w + h;
70
+ h = sum / (r + 1);
71
+ w = sum - h;
72
+ return [w, h];
73
+ };
74
+ var calcTopResize = (w, h, dx, dy, r) => {
75
+ h -= dy;
76
+ w = h * r;
77
+ return [w, h];
78
+ };
79
+ var calcRightResize = (w, h, dx, dy, r) => {
80
+ w += dx;
81
+ h = w / r;
82
+ return [w, h];
83
+ };
84
+ var calcBottomResize = (w, h, dx, dy, r) => {
85
+ h += dy;
86
+ w = h * r;
87
+ return [w, h];
88
+ };
89
+ var calcLeftResize = (w, h, dx, dy, r) => {
90
+ w -= dx;
91
+ h = w / r;
92
+ return [w, h];
93
+ };
94
+
95
+ // src/components/resizable-handle/component.ts
96
+ var propNames = [];
97
+ var ResizableHandle = class extends LightElement {
98
+ constructor() {
99
+ super(...arguments);
100
+ this.context = new ContextConsumer(this, {
101
+ context: resizableContext
102
+ });
103
+ }
104
+ connectedCallback() {
105
+ super.connectedCallback();
106
+ let startX = 0;
107
+ let startY = 0;
108
+ let width = 0;
109
+ let height = 0;
110
+ let aspectRatio = 1;
111
+ const handlePointerMove = (event) => {
112
+ var _a;
113
+ event.preventDefault();
114
+ const dx = event.x - startX;
115
+ const dy = event.y - startY;
116
+ const [w, h] = calcResize(
117
+ this.position || "bottom-right",
118
+ width,
119
+ height,
120
+ dx,
121
+ dy,
122
+ aspectRatio
123
+ );
124
+ (_a = this.context.value) == null ? void 0 : _a.onResize(w, h);
125
+ };
126
+ const handlePointerDown = (event) => {
127
+ var _a;
128
+ event.preventDefault();
129
+ startX = event.x;
130
+ startY = event.y;
131
+ const size = (_a = this.context.value) == null ? void 0 : _a.onResizeStart();
132
+ if (size) {
133
+ ;
134
+ [width, height, aspectRatio] = size;
135
+ }
136
+ this.ownerDocument.addEventListener("pointermove", handlePointerMove);
137
+ this.ownerDocument.addEventListener("pointerup", handlePointerUp);
138
+ };
139
+ const handlePointerUp = (event) => {
140
+ var _a;
141
+ event.preventDefault();
142
+ (_a = this.context.value) == null ? void 0 : _a.onResizeEnd();
143
+ this.ownerDocument.removeEventListener("pointermove", handlePointerMove);
144
+ this.ownerDocument.removeEventListener("pointerup", handlePointerUp);
145
+ };
146
+ this.addEventListener("pointerdown", handlePointerDown);
147
+ }
148
+ };
149
+ /**
150
+ * @hidden
151
+ */
152
+ ResizableHandle.properties = {
153
+ position: { attribute: false }
154
+ };
155
+ defineCustomElement("prosekit-resizable-handle", ResizableHandle);
156
+ export {
157
+ ResizableHandle,
158
+ propNames
159
+ };
@@ -0,0 +1,3 @@
1
+ export { Resizable_alias_1 as Resizable } from './_tsup-dts-rollup';
2
+ export { propNames_alias_15 as propNames } from './_tsup-dts-rollup';
3
+ export { ResizableProps_alias_1 as ResizableProps } from './_tsup-dts-rollup';
@@ -0,0 +1,110 @@
1
+ import {
2
+ resizableContext
3
+ } from "./chunk-WEUGKLVB.js";
4
+ import {
5
+ LightElement,
6
+ defineCustomElement
7
+ } from "./chunk-S32IZIQF.js";
8
+
9
+ // src/components/resizable/component.ts
10
+ import { ContextProvider } from "@lit/context";
11
+ var propNames = [
12
+ "width",
13
+ "height",
14
+ "aspectRatio",
15
+ "onSizeChangeStart",
16
+ "onSizeChange",
17
+ "onSizeChangeEnd"
18
+ ];
19
+ var Resizable = class extends LightElement {
20
+ /**
21
+ * @hidden
22
+ */
23
+ constructor() {
24
+ super();
25
+ this.startWidth = 0;
26
+ this.startHeight = 0;
27
+ new ContextProvider(this, {
28
+ context: resizableContext,
29
+ initialValue: {
30
+ onResizeStart: () => this.handleResizeStart(),
31
+ onResize: (w, h) => this.handleResize(w, h),
32
+ onResizeEnd: () => this.handleResizeEnd()
33
+ }
34
+ });
35
+ }
36
+ handleResizeStart() {
37
+ var _a, _b;
38
+ const { width, height } = this.getBoundingClientRect();
39
+ this.startWidth = width;
40
+ this.startHeight = height;
41
+ (_a = this.onSizeChangeStart) == null ? void 0 : _a.call(this, { width, height });
42
+ this.resizing = true;
43
+ return [width, height, (_b = this.aspectRatio) != null ? _b : width / height];
44
+ }
45
+ handleResize(width, height) {
46
+ var _a, _b, _c;
47
+ const output = (_a = this.onSizeChange) == null ? void 0 : _a.call(this, { width, height });
48
+ this.width = (_b = output == null ? void 0 : output.width) != null ? _b : width;
49
+ this.height = (_c = output == null ? void 0 : output.height) != null ? _c : height;
50
+ }
51
+ handleResizeEnd() {
52
+ var _a;
53
+ const { width, height } = this.getBoundingClientRect();
54
+ this.resizing = false;
55
+ (_a = this.onSizeChangeEnd) == null ? void 0 : _a.call(this, { width, height });
56
+ }
57
+ updateStyle() {
58
+ const w = this.width;
59
+ const h = this.height;
60
+ const r = this.aspectRatio;
61
+ if (w != null && w !== "" && Number.isFinite(w)) {
62
+ this.style.width = typeof w === "number" ? `${w}px` : w;
63
+ } else {
64
+ this.style.width = "";
65
+ }
66
+ if (h != null && h !== "" && Number.isFinite(h)) {
67
+ this.style.height = typeof h === "number" ? `${h}px` : h;
68
+ } else {
69
+ this.style.height = "";
70
+ }
71
+ if (r && Number.isFinite(r)) {
72
+ this.style.aspectRatio = `${r}`;
73
+ if (this.style.width && this.startWidth >= this.startHeight && r >= 1) {
74
+ this.style.height = "auto";
75
+ } else if (this.style.height && this.startWidth <= this.startHeight && r <= 1) {
76
+ this.style.width = "auto";
77
+ }
78
+ }
79
+ }
80
+ /**
81
+ * @hidden
82
+ */
83
+ connectedCallback() {
84
+ super.connectedCallback();
85
+ this.updateStyle();
86
+ }
87
+ /**
88
+ * @hidden
89
+ */
90
+ updated(changedProperties) {
91
+ super.updated(changedProperties);
92
+ this.updateStyle();
93
+ }
94
+ };
95
+ /**
96
+ * @hidden
97
+ */
98
+ Resizable.properties = {
99
+ width: { attribute: false },
100
+ height: { attribute: false },
101
+ aspectRatio: { attribute: false },
102
+ onResize: { attribute: false },
103
+ onResizeEnd: { attribute: false },
104
+ resizing: { attribute: "data-resizing", type: Boolean, reflect: true }
105
+ };
106
+ defineCustomElement("prosekit-resizable", Resizable);
107
+ export {
108
+ Resizable,
109
+ propNames
110
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/lit",
3
3
  "type": "module",
4
- "version": "0.1.7",
4
+ "version": "0.1.9",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "ocavue",
@@ -79,26 +79,37 @@
79
79
  "types": "./dist/prosekit-lit-popover.d.ts",
80
80
  "import": "./dist/prosekit-lit-popover.js",
81
81
  "default": "./dist/prosekit-lit-popover.js"
82
+ },
83
+ "./resizable": {
84
+ "types": "./dist/prosekit-lit-resizable.d.ts",
85
+ "import": "./dist/prosekit-lit-resizable.js",
86
+ "default": "./dist/prosekit-lit-resizable.js"
87
+ },
88
+ "./resizable-handle": {
89
+ "types": "./dist/prosekit-lit-resizable-handle.d.ts",
90
+ "import": "./dist/prosekit-lit-resizable-handle.js",
91
+ "default": "./dist/prosekit-lit-resizable-handle.js"
82
92
  }
83
93
  },
84
94
  "files": [
85
95
  "dist"
86
96
  ],
87
97
  "dependencies": {
88
- "@floating-ui/dom": "^1.5.3",
98
+ "@floating-ui/dom": "^1.5.4",
89
99
  "@lit/context": "^1.1.0",
90
- "@prosekit/core": "^0.2.2",
91
- "@prosekit/extensions": "^0.2.1",
100
+ "@prosekit/core": "^0.2.4",
101
+ "@prosekit/extensions": "^0.2.3",
92
102
  "@prosekit/pm": "^0.1.1",
93
103
  "@superhuman/command-score": "^0.5.0",
94
- "lit": "^3.1.0"
104
+ "@zag-js/dismissable": "^0.32.0",
105
+ "lit": "^3.1.1"
95
106
  },
96
107
  "devDependencies": {
97
108
  "@prosekit/dev": "*",
98
109
  "minify-literals": "^1.0.8",
99
110
  "tsup": "^8.0.1",
100
111
  "typescript": "^5.3.3",
101
- "vitest": "^1.1.1"
112
+ "vitest": "^1.1.3"
102
113
  },
103
114
  "scripts": {
104
115
  "build:tsup": "tsup",
@@ -139,6 +150,12 @@
139
150
  ],
140
151
  "popover": [
141
152
  "./dist/prosekit-lit-popover.d.ts"
153
+ ],
154
+ "resizable": [
155
+ "./dist/prosekit-lit-resizable.d.ts"
156
+ ],
157
+ "resizable-handle": [
158
+ "./dist/prosekit-lit-resizable-handle.d.ts"
142
159
  ]
143
160
  }
144
161
  }