@prosekit/solid 0.6.0 → 0.6.1

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.
Files changed (27) hide show
  1. package/dist/{create-component-W5lNPtvp.js → create-component-DOv1yHjo.js} +2 -2
  2. package/dist/{create-component-W5lNPtvp.js.map → create-component-DOv1yHjo.js.map} +1 -1
  3. package/dist/{create-props-CFK4CtjG.d.ts → create-props-IUcX0Ggy.d.ts} +1 -1
  4. package/dist/{create-props-CFK4CtjG.d.ts.map → create-props-IUcX0Ggy.d.ts.map} +1 -1
  5. package/dist/{editor-context-CAdqwRwB.js → editor-context-B5bsBkGo.js} +1 -1
  6. package/dist/{editor-context-CAdqwRwB.js.map → editor-context-B5bsBkGo.js.map} +1 -1
  7. package/dist/prosekit-solid-autocomplete.d.ts +2 -2
  8. package/dist/prosekit-solid-autocomplete.js +2 -2
  9. package/dist/prosekit-solid-block-handle.d.ts +2 -2
  10. package/dist/prosekit-solid-block-handle.js +2 -2
  11. package/dist/prosekit-solid-drop-indicator.d.ts +2 -2
  12. package/dist/prosekit-solid-drop-indicator.js +2 -2
  13. package/dist/prosekit-solid-inline-popover.d.ts +2 -2
  14. package/dist/prosekit-solid-inline-popover.js +2 -2
  15. package/dist/prosekit-solid-popover.d.ts +2 -2
  16. package/dist/prosekit-solid-popover.js +2 -2
  17. package/dist/prosekit-solid-resizable.d.ts +2 -2
  18. package/dist/prosekit-solid-resizable.js +2 -2
  19. package/dist/prosekit-solid-table-handle.d.ts +2 -2
  20. package/dist/prosekit-solid-table-handle.js +2 -2
  21. package/dist/prosekit-solid-tooltip.d.ts +2 -2
  22. package/dist/prosekit-solid-tooltip.js +2 -2
  23. package/dist/prosekit-solid.d.ts +1 -1
  24. package/dist/prosekit-solid.js +1 -1
  25. package/dist/{types-BhlAOM8c.d.ts → types-VT1O6Xnr.d.ts} +1 -1
  26. package/dist/{types-BhlAOM8c.d.ts.map → types-VT1O6Xnr.d.ts.map} +1 -1
  27. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { n as useEditorContext } from "./editor-context-CAdqwRwB.js";
1
+ import { n as useEditorContext } from "./editor-context-B5bsBkGo.js";
2
2
  import h from "solid-js/h";
3
3
 
4
4
  //#region src/components/create-component.ts
@@ -39,4 +39,4 @@ function createComponent(tagName, propNames, eventNames) {
39
39
 
40
40
  //#endregion
41
41
  export { createComponent as t };
42
- //# sourceMappingURL=create-component-W5lNPtvp.js.map
42
+ //# sourceMappingURL=create-component-DOv1yHjo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-component-W5lNPtvp.js","names":["properties: Record<string, () => unknown>","eventHandlers: Record<string, AnyFunction>"],"sources":["../src/components/create-component.ts"],"sourcesContent":["import type { AnyFunction } from '@prosekit/core'\nimport type { Component } from 'solid-js'\nimport h from 'solid-js/h'\n\nimport { useEditorContext } from '../contexts/editor-context'\nimport type { PropsWithElement } from '../types'\n\nexport function createComponent<\n Props extends object,\n CustomElement extends HTMLElement,\n>(\n tagName: string,\n propNames: string[],\n eventNames: string[],\n): Component<PropsWithElement<Props, CustomElement>> {\n const hasEditor = propNames.includes('editor')\n const lowerCaseEventNameMap = new Map(\n eventNames.map((name) => [name.toLowerCase(), name]),\n )\n\n const Component = (props: Record<string, unknown>) => {\n const properties: Record<string, () => unknown> = {}\n const eventHandlers: Record<string, AnyFunction> = {}\n\n for (const name of Object.keys(props)) {\n if (propNames.includes(name)) {\n properties['prop:' + name] = () => props[name]\n continue\n }\n\n if (name.startsWith('on')) {\n const lowerCaseEventName = name.slice(2).toLowerCase()\n const eventName = lowerCaseEventNameMap.get(lowerCaseEventName)\n if (eventName) {\n const extractDetail = eventName.endsWith('Change')\n eventHandlers['on:' + eventName] = (event: Event) => {\n const handler = props[name] as AnyFunction | null\n if (typeof handler === 'function') {\n handler(extractDetail ? (event as CustomEvent).detail : event)\n }\n }\n continue\n }\n }\n\n properties[name] = () => props[name]\n }\n\n const editor = useEditorContext()\n\n if (hasEditor && editor) {\n properties['prop:editor'] = () => props['editor'] || editor\n }\n\n return h(tagName, { ...properties, ...eventHandlers })\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return Component as any\n}\n"],"mappings":";;;;AAOA,SAAgB,gBAId,SACA,WACA,YACmD;CACnD,MAAM,YAAY,UAAU,SAAS,SAAS;CAC9C,MAAM,wBAAwB,IAAI,IAChC,WAAW,KAAK,SAAS,CAAC,KAAK,aAAa,EAAE,KAAK,CAAC,CACrD;CAED,MAAM,aAAa,UAAmC;EACpD,MAAMA,aAA4C,EAAE;EACpD,MAAMC,gBAA6C,EAAE;AAErD,OAAK,MAAM,QAAQ,OAAO,KAAK,MAAM,EAAE;AACrC,OAAI,UAAU,SAAS,KAAK,EAAE;AAC5B,eAAW,UAAU,cAAc,MAAM;AACzC;;AAGF,OAAI,KAAK,WAAW,KAAK,EAAE;IACzB,MAAM,qBAAqB,KAAK,MAAM,EAAE,CAAC,aAAa;IACtD,MAAM,YAAY,sBAAsB,IAAI,mBAAmB;AAC/D,QAAI,WAAW;KACb,MAAM,gBAAgB,UAAU,SAAS,SAAS;AAClD,mBAAc,QAAQ,cAAc,UAAiB;MACnD,MAAM,UAAU,MAAM;AACtB,UAAI,OAAO,YAAY,WACrB,SAAQ,gBAAiB,MAAsB,SAAS,MAAM;;AAGlE;;;AAIJ,cAAW,cAAc,MAAM;;EAGjC,MAAM,SAAS,kBAAkB;AAEjC,MAAI,aAAa,OACf,YAAW,uBAAuB,MAAM,aAAa;AAGvD,SAAO,EAAE,SAAS;GAAE,GAAG;GAAY,GAAG;GAAe,CAAC;;AAIxD,QAAO"}
1
+ {"version":3,"file":"create-component-DOv1yHjo.js","names":["properties: Record<string, () => unknown>","eventHandlers: Record<string, AnyFunction>"],"sources":["../src/components/create-component.ts"],"sourcesContent":["import type { AnyFunction } from '@prosekit/core'\nimport type { Component } from 'solid-js'\nimport h from 'solid-js/h'\n\nimport { useEditorContext } from '../contexts/editor-context'\nimport type { PropsWithElement } from '../types'\n\nexport function createComponent<\n Props extends object,\n CustomElement extends HTMLElement,\n>(\n tagName: string,\n propNames: string[],\n eventNames: string[],\n): Component<PropsWithElement<Props, CustomElement>> {\n const hasEditor = propNames.includes('editor')\n const lowerCaseEventNameMap = new Map(\n eventNames.map((name) => [name.toLowerCase(), name]),\n )\n\n const Component = (props: Record<string, unknown>) => {\n const properties: Record<string, () => unknown> = {}\n const eventHandlers: Record<string, AnyFunction> = {}\n\n for (const name of Object.keys(props)) {\n if (propNames.includes(name)) {\n properties['prop:' + name] = () => props[name]\n continue\n }\n\n if (name.startsWith('on')) {\n const lowerCaseEventName = name.slice(2).toLowerCase()\n const eventName = lowerCaseEventNameMap.get(lowerCaseEventName)\n if (eventName) {\n const extractDetail = eventName.endsWith('Change')\n eventHandlers['on:' + eventName] = (event: Event) => {\n const handler = props[name] as AnyFunction | null\n if (typeof handler === 'function') {\n handler(extractDetail ? (event as CustomEvent).detail : event)\n }\n }\n continue\n }\n }\n\n properties[name] = () => props[name]\n }\n\n const editor = useEditorContext()\n\n if (hasEditor && editor) {\n properties['prop:editor'] = () => props['editor'] || editor\n }\n\n return h(tagName, { ...properties, ...eventHandlers })\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return Component as any\n}\n"],"mappings":";;;;AAOA,SAAgB,gBAId,SACA,WACA,YACmD;CACnD,MAAM,YAAY,UAAU,SAAS,SAAS;CAC9C,MAAM,wBAAwB,IAAI,IAChC,WAAW,KAAK,SAAS,CAAC,KAAK,aAAa,EAAE,KAAK,CAAC,CACrD;CAED,MAAM,aAAa,UAAmC;EACpD,MAAMA,aAA4C,EAAE;EACpD,MAAMC,gBAA6C,EAAE;AAErD,OAAK,MAAM,QAAQ,OAAO,KAAK,MAAM,EAAE;AACrC,OAAI,UAAU,SAAS,KAAK,EAAE;AAC5B,eAAW,UAAU,cAAc,MAAM;AACzC;;AAGF,OAAI,KAAK,WAAW,KAAK,EAAE;IACzB,MAAM,qBAAqB,KAAK,MAAM,EAAE,CAAC,aAAa;IACtD,MAAM,YAAY,sBAAsB,IAAI,mBAAmB;AAC/D,QAAI,WAAW;KACb,MAAM,gBAAgB,UAAU,SAAS,SAAS;AAClD,mBAAc,QAAQ,cAAc,UAAiB;MACnD,MAAM,UAAU,MAAM;AACtB,UAAI,OAAO,YAAY,WACrB,SAAQ,gBAAiB,MAAsB,SAAS,MAAM;;AAGlE;;;AAIJ,cAAW,cAAc,MAAM;;EAGjC,MAAM,SAAS,kBAAkB;AAEjC,MAAI,aAAa,OACf,YAAW,uBAAuB,MAAM,aAAa;AAGvD,SAAO,EAAE,SAAS;GAAE,GAAG;GAAY,GAAG;GAAe,CAAC;;AAIxD,QAAO"}
@@ -3,4 +3,4 @@ type CreateProps<Props extends { [PropName in keyof Props]: unknown }, Events ex
3
3
  type CreateEventProps<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void };
4
4
  //#endregion
5
5
  export { CreateProps as t };
6
- //# sourceMappingURL=create-props-CFK4CtjG.d.ts.map
6
+ //# sourceMappingURL=create-props-IUcX0Ggy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-props-CFK4CtjG.d.ts","names":[],"sources":["../src/components/create-props.ts"],"sourcesContent":[],"mappings":";KAAY,yCAAA,MACyB,KADd,GAAA,OAAA,EACc,EAAA,eAAA,gBACE,MAAA,MAAA,GAAS,WAAT,EAAS,CAAA,GAC5C,KAD4C,GACpC,gBADoC,CACnB,MADmB,CAAA;KAG3C,gBAFD,CAAA,eAAA,gBAAyB,MAGU,MAHV,GAGmB,WAHnB,EAAjB,CAAA,GAAA,gBAAgB,MAKN,MALM,IAAA,KAKS,UALT,CAAA,MAAA,GAK6B,SAL7B,CAAA,EAAA,GAAA,CAAA,KAAA,EAMjB,SANiB,SAAA,GAAA,MAAA,QAAA,GAMqB,MANrB,CAM4B,SAN5B,CAAA,CAAA,QAAA,CAAA,GAOpB,MAPoB,CAOb,SAPa,CAAA,EAAA,GAAA,IAAA,EAAQ"}
1
+ {"version":3,"file":"create-props-IUcX0Ggy.d.ts","names":[],"sources":["../src/components/create-props.ts"],"sourcesContent":[],"mappings":";KAAY,yCAAA,MACyB,KADd,GAAA,OAAA,EACc,EAAA,eAAA,gBACE,MAAA,MAAA,GAAS,WAAT,EAAS,CAAA,GAC5C,KAD4C,GACpC,gBADoC,CACnB,MADmB,CAAA;KAG3C,gBAFD,CAAA,eAAA,gBAAyB,MAGU,MAHV,GAGmB,WAHnB,EAAjB,CAAA,GAAA,gBAAgB,MAKN,MALM,IAAA,KAKS,UALT,CAAA,MAAA,GAK6B,SAL7B,CAAA,EAAA,GAAA,CAAA,KAAA,EAMjB,SANiB,SAAA,GAAA,MAAA,QAAA,GAMqB,MANrB,CAM4B,SAN5B,CAAA,CAAA,QAAA,CAAA,GAOpB,MAPoB,CAOb,SAPa,CAAA,EAAA,GAAA,IAAA,EAAQ"}
@@ -15,4 +15,4 @@ const EditorContextProvider = editorContext.Provider;
15
15
 
16
16
  //#endregion
17
17
  export { useEditorContext as n, EditorContextProvider as t };
18
- //# sourceMappingURL=editor-context-CAdqwRwB.js.map
18
+ //# sourceMappingURL=editor-context-B5bsBkGo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-context-CAdqwRwB.js","names":["EditorContextProvider: ContextProviderComponent<Editor | null>"],"sources":["../src/contexts/editor-context.ts"],"sourcesContent":["import type {\n Editor,\n Extension,\n} from '@prosekit/core'\nimport {\n createContext,\n useContext,\n type ContextProviderComponent,\n} from 'solid-js'\n\nconst editorContext = createContext<Editor | null>(null)\n\n/**\n * @internal\n */\nexport function useEditorContext<E extends Extension>(): Editor<E> | null {\n return useContext(editorContext)\n}\n\n/**\n * @internal\n */\nexport const EditorContextProvider: ContextProviderComponent<Editor | null> = editorContext.Provider\n"],"mappings":";;;AAUA,MAAM,gBAAgB,cAA6B,KAAK;;;;AAKxD,SAAgB,mBAA0D;AACxE,QAAO,WAAW,cAAc;;;;;AAMlC,MAAaA,wBAAiE,cAAc"}
1
+ {"version":3,"file":"editor-context-B5bsBkGo.js","names":["EditorContextProvider: ContextProviderComponent<Editor | null>"],"sources":["../src/contexts/editor-context.ts"],"sourcesContent":["import type {\n Editor,\n Extension,\n} from '@prosekit/core'\nimport {\n createContext,\n useContext,\n type ContextProviderComponent,\n} from 'solid-js'\n\nconst editorContext = createContext<Editor | null>(null)\n\n/**\n * @internal\n */\nexport function useEditorContext<E extends Extension>(): Editor<E> | null {\n return useContext(editorContext)\n}\n\n/**\n * @internal\n */\nexport const EditorContextProvider: ContextProviderComponent<Editor | null> = editorContext.Provider\n"],"mappings":";;;AAUA,MAAM,gBAAgB,cAA6B,KAAK;;;;AAKxD,SAAgB,mBAA0D;AACxE,QAAO,WAAW,cAAc;;;;;AAMlC,MAAaA,wBAAiE,cAAc"}
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { AutocompleteEmptyElement, AutocompleteEmptyEvents, AutocompleteEmptyProps as AutocompleteEmptyProps$1, AutocompleteItemElement, AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompleteListElement, AutocompleteListEvents, AutocompleteListProps as AutocompleteListProps$1, AutocompletePopoverElement, AutocompletePopoverEvents, AutocompletePopoverProps as AutocompletePopoverProps$1 } from "@prosekit/web/autocomplete";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { autocompleteEmptyEvents, autocompleteEmptyProps, autocompleteItemEvents, autocompleteItemProps, autocompleteListEvents, autocompleteListProps, autocompletePopoverEvents, autocompletePopoverProps } from "@prosekit/web/autocomplete";
4
4
 
5
5
  //#region src/components/autocomplete/autocomplete-empty.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { BlockHandleAddElement, BlockHandleAddEvents, BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableElement, BlockHandleDraggableEvents, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePopoverElement, BlockHandlePopoverEvents, BlockHandlePopoverProps as BlockHandlePopoverProps$1 } from "@prosekit/web/block-handle";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { blockHandleAddEvents, blockHandleAddProps, blockHandleDraggableEvents, blockHandleDraggableProps, blockHandlePopoverEvents, blockHandlePopoverProps } from "@prosekit/web/block-handle";
4
4
 
5
5
  //#region src/components/block-handle/block-handle-add.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { DropIndicatorElement, DropIndicatorEvents, DropIndicatorProps as DropIndicatorProps$1 } from "@prosekit/web/drop-indicator";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { dropIndicatorEvents, dropIndicatorProps } from "@prosekit/web/drop-indicator";
4
4
 
5
5
  //#region src/components/drop-indicator/drop-indicator.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as InlinePopoverProps$1 } from "@prosekit/web/inline-popover";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { inlinePopoverEvents, inlinePopoverProps } from "@prosekit/web/inline-popover";
4
4
 
5
5
  //#region src/components/inline-popover/inline-popover.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { PopoverContentElement, PopoverContentEvents, PopoverContentProps as PopoverContentProps$1, PopoverRootElement, PopoverRootEvents, PopoverRootProps as PopoverRootProps$1, PopoverTriggerElement, PopoverTriggerEvents, PopoverTriggerProps as PopoverTriggerProps$1 } from "@prosekit/web/popover";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { popoverContentEvents, popoverContentProps, popoverRootEvents, popoverRootProps, popoverTriggerEvents, popoverTriggerProps } from "@prosekit/web/popover";
4
4
 
5
5
  //#region src/components/popover/popover-content.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { ResizableHandleElement, ResizableHandleEvents, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { resizableHandleEvents, resizableHandleProps, resizableRootEvents, resizableRootProps } from "@prosekit/web/resizable";
4
4
 
5
5
  //#region src/components/resizable/resizable-handle.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewEvents, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorEvents, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { tableHandleColumnRootEvents, tableHandleColumnRootProps, tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, tableHandleDragPreviewEvents, tableHandleDragPreviewProps, tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, tableHandlePopoverContentEvents, tableHandlePopoverContentProps, tableHandlePopoverItemEvents, tableHandlePopoverItemProps, tableHandleRootEvents, tableHandleRootProps, tableHandleRowRootEvents, tableHandleRowRootProps, tableHandleRowTriggerEvents, tableHandleRowTriggerProps } from "@prosekit/web/table-handle";
4
4
 
5
5
  //#region src/components/table-handle/table-handle-column-root.gen.ts
@@ -1,5 +1,5 @@
1
- import { i as PropsWithElement } from "./types-BhlAOM8c.js";
2
- import { t as CreateProps } from "./create-props-CFK4CtjG.js";
1
+ import { i as PropsWithElement } from "./types-VT1O6Xnr.js";
2
+ import { t as CreateProps } from "./create-props-IUcX0Ggy.js";
3
3
  import { Component } from "solid-js";
4
4
  import { TooltipContentElement, TooltipContentEvents, TooltipContentProps as TooltipContentProps$1, TooltipRootElement, TooltipRootEvents, TooltipRootProps as TooltipRootProps$1, TooltipTriggerElement, TooltipTriggerEvents, TooltipTriggerProps as TooltipTriggerProps$1 } from "@prosekit/web/tooltip";
5
5
 
@@ -1,5 +1,5 @@
1
- import "./editor-context-CAdqwRwB.js";
2
- import { t as createComponent } from "./create-component-W5lNPtvp.js";
1
+ import "./editor-context-B5bsBkGo.js";
2
+ import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
3
  import { tooltipContentEvents, tooltipContentProps, tooltipRootEvents, tooltipRootProps, tooltipTriggerEvents, tooltipTriggerProps } from "@prosekit/web/tooltip";
4
4
 
5
5
  //#region src/components/tooltip/tooltip-content.gen.ts
@@ -1,4 +1,4 @@
1
- import { i as PropsWithElement, n as PropsWithChildren, r as PropsWithClass, t as MaybeAccessor } from "./types-BhlAOM8c.js";
1
+ import { i as PropsWithElement, n as PropsWithChildren, r as PropsWithClass, t as MaybeAccessor } from "./types-VT1O6Xnr.js";
2
2
  import { MarkViewContextProps, NodeViewContextProps } from "@prosemirror-adapter/solid";
3
3
  import { Accessor, Component, ParentProps } from "solid-js";
4
4
  import { Editor, Extension, Keymap, Priority } from "@prosekit/core";
@@ -1,4 +1,4 @@
1
- import { n as useEditorContext, t as EditorContextProvider } from "./editor-context-CAdqwRwB.js";
1
+ import { n as useEditorContext, t as EditorContextProvider } from "./editor-context-B5bsBkGo.js";
2
2
  import { ProsemirrorAdapterProvider, useMarkViewContext, useMarkViewFactory, useNodeViewContext, useNodeViewFactory } from "@prosemirror-adapter/solid";
3
3
  import { createComponent, createEffect, createMemo, createSignal, onCleanup } from "solid-js";
4
4
  import { EditorNotFoundError, ProseKitError, defineDocChangeHandler, defineKeymap, defineMarkViewComponent, defineMarkViewFactory, defineMountHandler, defineNodeViewComponent, defineNodeViewFactory, defineUpdateHandler, union, withPriority } from "@prosekit/core";
@@ -24,4 +24,4 @@ type PropsWithElement<Props extends object, CustomElement extends HTMLElement> =
24
24
  type MaybeAccessor<T> = T | Accessor<T>;
25
25
  //#endregion
26
26
  export { PropsWithElement as i, PropsWithChildren as n, PropsWithClass as r, MaybeAccessor as t };
27
- //# sourceMappingURL=types-BhlAOM8c.d.ts.map
27
+ //# sourceMappingURL=types-VT1O6Xnr.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-BhlAOM8c.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAOY,KAPA,cAOiB,CAAA,IAAA,OAAgB,CAAA,GAPH,CAQ7B,GAAA;EAMD,KAAA,CAAA,EAAA,MAAA,GAAA,SAAgB;CAA6C;;;;AAAyC,KAPtG,iBAOsG,CAAA,IAAA,OAAA,CAAA,GAPrE,CAOqE,GAAA;EAKtG,QAAA,CAAA,EAXC,UAWY,GAAA,SAAA;CAAM;;;;KALnB,6DAA6D,eAAe,QAAQ,GAAA,CAAI,eAAe;;;;KAKvG,mBAAmB,IAAI,SAAS"}
1
+ {"version":3,"file":"types-VT1O6Xnr.d.ts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;;;;AASA;AAOY,KAPA,cAOiB,CAAA,IAAA,OAAgB,CAAA,GAPH,CAQ7B,GAAA;EAMD,KAAA,CAAA,EAAA,MAAA,GAAA,SAAgB;CAA6C;;;;AAAyC,KAPtG,iBAOsG,CAAA,IAAA,OAAA,CAAA,GAPrE,CAOqE,GAAA;EAKtG,QAAA,CAAA,EAXC,UAWY,GAAA,SAAA;CAAM;;;;KALnB,6DAA6D,eAAe,QAAQ,GAAA,CAAI,eAAe;;;;KAKvG,mBAAmB,IAAI,SAAS"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/solid",
3
3
  "type": "module",
4
- "version": "0.6.0",
4
+ "version": "0.6.1",
5
5
  "private": false,
6
6
  "description": "Solid components and utilities for ProseKit",
7
7
  "author": {
@@ -70,9 +70,9 @@
70
70
  "dependencies": {
71
71
  "@prosemirror-adapter/core": "^0.4.6",
72
72
  "@prosemirror-adapter/solid": "^0.4.6",
73
- "@prosekit/core": "^0.8.4",
74
- "@prosekit/web": "^0.7.5",
75
- "@prosekit/pm": "^0.1.13"
73
+ "@prosekit/core": "^0.8.6",
74
+ "@prosekit/web": "^0.7.6",
75
+ "@prosekit/pm": "^0.1.14"
76
76
  },
77
77
  "peerDependencies": {
78
78
  "solid-js": ">= 1.7.0"
@@ -84,7 +84,7 @@
84
84
  },
85
85
  "devDependencies": {
86
86
  "solid-js": "^1.9.10",
87
- "tsdown": "^0.15.12",
87
+ "tsdown": "^0.16.2",
88
88
  "typescript": "~5.9.3",
89
89
  "@prosekit/config-tsdown": "0.0.0",
90
90
  "@prosekit/config-vitest": "0.0.0"