@prosekit/solid 0.6.1 → 0.6.3

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.
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { autocompleteEmptyEvents, autocompleteEmptyProps, autocompleteItemEvents, autocompleteItemProps, autocompleteListEvents, autocompleteListProps, autocompletePopoverEvents, autocompletePopoverProps } from "@prosekit/web/autocomplete";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-autocomplete.js","names":["AutocompleteEmpty: Component<PropsWithElement<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>>","AutocompleteItem: Component<PropsWithElement<\n AutocompleteItemProps,\n AutocompleteItemElement\n>>","AutocompleteList: Component<PropsWithElement<\n AutocompleteListProps,\n AutocompleteListElement\n>>","AutocompletePopover: Component<PropsWithElement<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>>"],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-list.gen.ts","../src/components/autocomplete/autocomplete-popover.gen.ts"],"sourcesContent":["import { \n type AutocompleteEmptyElement,\n type AutocompleteEmptyProps as Props,\n type AutocompleteEmptyEvents as Events,\n autocompleteEmptyProps,\n autocompleteEmptyEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteEmpty} component.\n */\nexport interface AutocompleteEmptyProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteEmpty: Component<PropsWithElement<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>> = createComponent<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>(\n 'prosekit-autocomplete-empty', \n Object.keys(autocompleteEmptyProps),\n Object.keys(autocompleteEmptyEvents),\n)\n","import { \n type AutocompleteItemElement,\n type AutocompleteItemProps as Props,\n type AutocompleteItemEvents as Events,\n autocompleteItemProps,\n autocompleteItemEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteItem} component.\n */\nexport interface AutocompleteItemProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteItem: Component<PropsWithElement<\n AutocompleteItemProps,\n AutocompleteItemElement\n>> = createComponent<\n AutocompleteItemProps,\n AutocompleteItemElement\n>(\n 'prosekit-autocomplete-item', \n Object.keys(autocompleteItemProps),\n Object.keys(autocompleteItemEvents),\n)\n","import { \n type AutocompleteListElement,\n type AutocompleteListProps as Props,\n type AutocompleteListEvents as Events,\n autocompleteListProps,\n autocompleteListEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteList} component.\n */\nexport interface AutocompleteListProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteList: Component<PropsWithElement<\n AutocompleteListProps,\n AutocompleteListElement\n>> = createComponent<\n AutocompleteListProps,\n AutocompleteListElement\n>(\n 'prosekit-autocomplete-list', \n Object.keys(autocompleteListProps),\n Object.keys(autocompleteListEvents),\n)\n","import { \n type AutocompletePopoverElement,\n type AutocompletePopoverProps as Props,\n type AutocompletePopoverEvents as Events,\n autocompletePopoverProps,\n autocompletePopoverEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompletePopover} component.\n */\nexport interface AutocompletePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompletePopover: Component<PropsWithElement<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>> = createComponent<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>(\n 'prosekit-autocomplete-popover', \n Object.keys(autocompletePopoverProps),\n Object.keys(autocompletePopoverEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,oBAGR,gBAIH,+BACA,OAAO,KAAK,uBAAuB,EACnC,OAAO,KAAK,wBAAwB,CACrC;;;;ACVD,MAAaC,mBAGR,gBAIH,8BACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACVD,MAAaC,mBAGR,gBAIH,8BACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACVD,MAAaC,sBAGR,gBAIH,iCACA,OAAO,KAAK,yBAAyB,EACrC,OAAO,KAAK,0BAA0B,CACvC"}
1
+ {"version":3,"file":"prosekit-solid-autocomplete.js","names":["AutocompleteEmpty: Component<PropsWithElement<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>>","AutocompleteItem: Component<PropsWithElement<\n AutocompleteItemProps,\n AutocompleteItemElement\n>>","AutocompleteList: Component<PropsWithElement<\n AutocompleteListProps,\n AutocompleteListElement\n>>","AutocompletePopover: Component<PropsWithElement<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>>"],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-list.gen.ts","../src/components/autocomplete/autocomplete-popover.gen.ts"],"sourcesContent":["import { \n type AutocompleteEmptyElement,\n type AutocompleteEmptyProps as Props,\n type AutocompleteEmptyEvents as Events,\n autocompleteEmptyProps,\n autocompleteEmptyEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteEmpty} component.\n */\nexport interface AutocompleteEmptyProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteEmpty: Component<PropsWithElement<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>> = createComponent<\n AutocompleteEmptyProps,\n AutocompleteEmptyElement\n>(\n 'prosekit-autocomplete-empty', \n Object.keys(autocompleteEmptyProps),\n Object.keys(autocompleteEmptyEvents),\n)\n","import { \n type AutocompleteItemElement,\n type AutocompleteItemProps as Props,\n type AutocompleteItemEvents as Events,\n autocompleteItemProps,\n autocompleteItemEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteItem} component.\n */\nexport interface AutocompleteItemProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteItem: Component<PropsWithElement<\n AutocompleteItemProps,\n AutocompleteItemElement\n>> = createComponent<\n AutocompleteItemProps,\n AutocompleteItemElement\n>(\n 'prosekit-autocomplete-item', \n Object.keys(autocompleteItemProps),\n Object.keys(autocompleteItemEvents),\n)\n","import { \n type AutocompleteListElement,\n type AutocompleteListProps as Props,\n type AutocompleteListEvents as Events,\n autocompleteListProps,\n autocompleteListEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteList} component.\n */\nexport interface AutocompleteListProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompleteList: Component<PropsWithElement<\n AutocompleteListProps,\n AutocompleteListElement\n>> = createComponent<\n AutocompleteListProps,\n AutocompleteListElement\n>(\n 'prosekit-autocomplete-list', \n Object.keys(autocompleteListProps),\n Object.keys(autocompleteListEvents),\n)\n","import { \n type AutocompletePopoverElement,\n type AutocompletePopoverProps as Props,\n type AutocompletePopoverEvents as Events,\n autocompletePopoverProps,\n autocompletePopoverEvents,\n} from '@prosekit/web/autocomplete'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompletePopover} component.\n */\nexport interface AutocompletePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const AutocompletePopover: Component<PropsWithElement<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>> = createComponent<\n AutocompletePopoverProps,\n AutocompletePopoverElement\n>(\n 'prosekit-autocomplete-popover', \n Object.keys(autocompletePopoverProps),\n Object.keys(autocompletePopoverEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,oBAGR,gBAIH,+BACA,OAAO,KAAK,uBAAuB,EACnC,OAAO,KAAK,wBAAwB,CACrC;;;;ACVD,MAAaC,mBAGR,gBAIH,8BACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACVD,MAAaC,mBAGR,gBAIH,8BACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACVD,MAAaC,sBAGR,gBAIH,iCACA,OAAO,KAAK,yBAAyB,EACrC,OAAO,KAAK,0BAA0B,CACvC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { blockHandleAddEvents, blockHandleAddProps, blockHandleDraggableEvents, blockHandleDraggableProps, blockHandlePopoverEvents, blockHandlePopoverProps } from "@prosekit/web/block-handle";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-block-handle.js","names":["BlockHandleAdd: Component<PropsWithElement<\n BlockHandleAddProps,\n BlockHandleAddElement\n>>","BlockHandleDraggable: Component<PropsWithElement<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>>","BlockHandlePopover: Component<PropsWithElement<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>>"],"sources":["../src/components/block-handle/block-handle-add.gen.ts","../src/components/block-handle/block-handle-draggable.gen.ts","../src/components/block-handle/block-handle-popover.gen.ts"],"sourcesContent":["import { \n type BlockHandleAddElement,\n type BlockHandleAddProps as Props,\n type BlockHandleAddEvents as Events,\n blockHandleAddProps,\n blockHandleAddEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleAdd} component.\n */\nexport interface BlockHandleAddProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandleAdd: Component<PropsWithElement<\n BlockHandleAddProps,\n BlockHandleAddElement\n>> = createComponent<\n BlockHandleAddProps,\n BlockHandleAddElement\n>(\n 'prosekit-block-handle-add', \n Object.keys(blockHandleAddProps),\n Object.keys(blockHandleAddEvents),\n)\n","import { \n type BlockHandleDraggableElement,\n type BlockHandleDraggableProps as Props,\n type BlockHandleDraggableEvents as Events,\n blockHandleDraggableProps,\n blockHandleDraggableEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleDraggable} component.\n */\nexport interface BlockHandleDraggableProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandleDraggable: Component<PropsWithElement<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>> = createComponent<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>(\n 'prosekit-block-handle-draggable', \n Object.keys(blockHandleDraggableProps),\n Object.keys(blockHandleDraggableEvents),\n)\n","import { \n type BlockHandlePopoverElement,\n type BlockHandlePopoverProps as Props,\n type BlockHandlePopoverEvents as Events,\n blockHandlePopoverProps,\n blockHandlePopoverEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandlePopover} component.\n */\nexport interface BlockHandlePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandlePopover: Component<PropsWithElement<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>> = createComponent<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>(\n 'prosekit-block-handle-popover', \n Object.keys(blockHandlePopoverProps),\n Object.keys(blockHandlePopoverEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,iBAGR,gBAIH,6BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,uBAGR,gBAIH,mCACA,OAAO,KAAK,0BAA0B,EACtC,OAAO,KAAK,2BAA2B,CACxC;;;;ACVD,MAAaC,qBAGR,gBAIH,iCACA,OAAO,KAAK,wBAAwB,EACpC,OAAO,KAAK,yBAAyB,CACtC"}
1
+ {"version":3,"file":"prosekit-solid-block-handle.js","names":["BlockHandleAdd: Component<PropsWithElement<\n BlockHandleAddProps,\n BlockHandleAddElement\n>>","BlockHandleDraggable: Component<PropsWithElement<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>>","BlockHandlePopover: Component<PropsWithElement<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>>"],"sources":["../src/components/block-handle/block-handle-add.gen.ts","../src/components/block-handle/block-handle-draggable.gen.ts","../src/components/block-handle/block-handle-popover.gen.ts"],"sourcesContent":["import { \n type BlockHandleAddElement,\n type BlockHandleAddProps as Props,\n type BlockHandleAddEvents as Events,\n blockHandleAddProps,\n blockHandleAddEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleAdd} component.\n */\nexport interface BlockHandleAddProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandleAdd: Component<PropsWithElement<\n BlockHandleAddProps,\n BlockHandleAddElement\n>> = createComponent<\n BlockHandleAddProps,\n BlockHandleAddElement\n>(\n 'prosekit-block-handle-add', \n Object.keys(blockHandleAddProps),\n Object.keys(blockHandleAddEvents),\n)\n","import { \n type BlockHandleDraggableElement,\n type BlockHandleDraggableProps as Props,\n type BlockHandleDraggableEvents as Events,\n blockHandleDraggableProps,\n blockHandleDraggableEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleDraggable} component.\n */\nexport interface BlockHandleDraggableProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandleDraggable: Component<PropsWithElement<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>> = createComponent<\n BlockHandleDraggableProps,\n BlockHandleDraggableElement\n>(\n 'prosekit-block-handle-draggable', \n Object.keys(blockHandleDraggableProps),\n Object.keys(blockHandleDraggableEvents),\n)\n","import { \n type BlockHandlePopoverElement,\n type BlockHandlePopoverProps as Props,\n type BlockHandlePopoverEvents as Events,\n blockHandlePopoverProps,\n blockHandlePopoverEvents,\n} from '@prosekit/web/block-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandlePopover} component.\n */\nexport interface BlockHandlePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const BlockHandlePopover: Component<PropsWithElement<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>> = createComponent<\n BlockHandlePopoverProps,\n BlockHandlePopoverElement\n>(\n 'prosekit-block-handle-popover', \n Object.keys(blockHandlePopoverProps),\n Object.keys(blockHandlePopoverEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,iBAGR,gBAIH,6BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,uBAGR,gBAIH,mCACA,OAAO,KAAK,0BAA0B,EACtC,OAAO,KAAK,2BAA2B,CACxC;;;;ACVD,MAAaC,qBAGR,gBAIH,iCACA,OAAO,KAAK,wBAAwB,EACpC,OAAO,KAAK,yBAAyB,CACtC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { dropIndicatorEvents, dropIndicatorProps } from "@prosekit/web/drop-indicator";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-drop-indicator.js","names":["DropIndicator: Component<PropsWithElement<\n DropIndicatorProps,\n DropIndicatorElement\n>>"],"sources":["../src/components/drop-indicator/drop-indicator.gen.ts"],"sourcesContent":["import { \n type DropIndicatorElement,\n type DropIndicatorProps as Props,\n type DropIndicatorEvents as Events,\n dropIndicatorProps,\n dropIndicatorEvents,\n} from '@prosekit/web/drop-indicator'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link DropIndicator} component.\n */\nexport interface DropIndicatorProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const DropIndicator: Component<PropsWithElement<\n DropIndicatorProps,\n DropIndicatorElement\n>> = createComponent<\n DropIndicatorProps,\n DropIndicatorElement\n>(\n 'prosekit-drop-indicator', \n Object.keys(dropIndicatorProps),\n Object.keys(dropIndicatorEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
1
+ {"version":3,"file":"prosekit-solid-drop-indicator.js","names":["DropIndicator: Component<PropsWithElement<\n DropIndicatorProps,\n DropIndicatorElement\n>>"],"sources":["../src/components/drop-indicator/drop-indicator.gen.ts"],"sourcesContent":["import { \n type DropIndicatorElement,\n type DropIndicatorProps as Props,\n type DropIndicatorEvents as Events,\n dropIndicatorProps,\n dropIndicatorEvents,\n} from '@prosekit/web/drop-indicator'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link DropIndicator} component.\n */\nexport interface DropIndicatorProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const DropIndicator: Component<PropsWithElement<\n DropIndicatorProps,\n DropIndicatorElement\n>> = createComponent<\n DropIndicatorProps,\n DropIndicatorElement\n>(\n 'prosekit-drop-indicator', \n Object.keys(dropIndicatorProps),\n Object.keys(dropIndicatorEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { inlinePopoverEvents, inlinePopoverProps } from "@prosekit/web/inline-popover";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-inline-popover.js","names":["InlinePopover: Component<PropsWithElement<\n InlinePopoverProps,\n InlinePopoverElement\n>>"],"sources":["../src/components/inline-popover/inline-popover.gen.ts"],"sourcesContent":["import { \n type InlinePopoverElement,\n type InlinePopoverProps as Props,\n type InlinePopoverEvents as Events,\n inlinePopoverProps,\n inlinePopoverEvents,\n} from '@prosekit/web/inline-popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link InlinePopover} component.\n */\nexport interface InlinePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const InlinePopover: Component<PropsWithElement<\n InlinePopoverProps,\n InlinePopoverElement\n>> = createComponent<\n InlinePopoverProps,\n InlinePopoverElement\n>(\n 'prosekit-inline-popover', \n Object.keys(inlinePopoverProps),\n Object.keys(inlinePopoverEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
1
+ {"version":3,"file":"prosekit-solid-inline-popover.js","names":["InlinePopover: Component<PropsWithElement<\n InlinePopoverProps,\n InlinePopoverElement\n>>"],"sources":["../src/components/inline-popover/inline-popover.gen.ts"],"sourcesContent":["import { \n type InlinePopoverElement,\n type InlinePopoverProps as Props,\n type InlinePopoverEvents as Events,\n inlinePopoverProps,\n inlinePopoverEvents,\n} from '@prosekit/web/inline-popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link InlinePopover} component.\n */\nexport interface InlinePopoverProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const InlinePopover: Component<PropsWithElement<\n InlinePopoverProps,\n InlinePopoverElement\n>> = createComponent<\n InlinePopoverProps,\n InlinePopoverElement\n>(\n 'prosekit-inline-popover', \n Object.keys(inlinePopoverProps),\n Object.keys(inlinePopoverEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { popoverContentEvents, popoverContentProps, popoverRootEvents, popoverRootProps, popoverTriggerEvents, popoverTriggerProps } from "@prosekit/web/popover";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-popover.js","names":["PopoverContent: Component<PropsWithElement<\n PopoverContentProps,\n PopoverContentElement\n>>","PopoverRoot: Component<PropsWithElement<\n PopoverRootProps,\n PopoverRootElement\n>>","PopoverTrigger: Component<PropsWithElement<\n PopoverTriggerProps,\n PopoverTriggerElement\n>>"],"sources":["../src/components/popover/popover-content.gen.ts","../src/components/popover/popover-root.gen.ts","../src/components/popover/popover-trigger.gen.ts"],"sourcesContent":["import { \n type PopoverContentElement,\n type PopoverContentProps as Props,\n type PopoverContentEvents as Events,\n popoverContentProps,\n popoverContentEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverContent} component.\n */\nexport interface PopoverContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverContent: Component<PropsWithElement<\n PopoverContentProps,\n PopoverContentElement\n>> = createComponent<\n PopoverContentProps,\n PopoverContentElement\n>(\n 'prosekit-popover-content', \n Object.keys(popoverContentProps),\n Object.keys(popoverContentEvents),\n)\n","import { \n type PopoverRootElement,\n type PopoverRootProps as Props,\n type PopoverRootEvents as Events,\n popoverRootProps,\n popoverRootEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverRoot} component.\n */\nexport interface PopoverRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverRoot: Component<PropsWithElement<\n PopoverRootProps,\n PopoverRootElement\n>> = createComponent<\n PopoverRootProps,\n PopoverRootElement\n>(\n 'prosekit-popover-root', \n Object.keys(popoverRootProps),\n Object.keys(popoverRootEvents),\n)\n","import { \n type PopoverTriggerElement,\n type PopoverTriggerProps as Props,\n type PopoverTriggerEvents as Events,\n popoverTriggerProps,\n popoverTriggerEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverTrigger} component.\n */\nexport interface PopoverTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverTrigger: Component<PropsWithElement<\n PopoverTriggerProps,\n PopoverTriggerElement\n>> = createComponent<\n PopoverTriggerProps,\n PopoverTriggerElement\n>(\n 'prosekit-popover-trigger', \n Object.keys(popoverTriggerProps),\n Object.keys(popoverTriggerEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,cAGR,gBAIH,yBACA,OAAO,KAAK,iBAAiB,EAC7B,OAAO,KAAK,kBAAkB,CAC/B;;;;ACVD,MAAaC,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC"}
1
+ {"version":3,"file":"prosekit-solid-popover.js","names":["PopoverContent: Component<PropsWithElement<\n PopoverContentProps,\n PopoverContentElement\n>>","PopoverRoot: Component<PropsWithElement<\n PopoverRootProps,\n PopoverRootElement\n>>","PopoverTrigger: Component<PropsWithElement<\n PopoverTriggerProps,\n PopoverTriggerElement\n>>"],"sources":["../src/components/popover/popover-content.gen.ts","../src/components/popover/popover-root.gen.ts","../src/components/popover/popover-trigger.gen.ts"],"sourcesContent":["import { \n type PopoverContentElement,\n type PopoverContentProps as Props,\n type PopoverContentEvents as Events,\n popoverContentProps,\n popoverContentEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverContent} component.\n */\nexport interface PopoverContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverContent: Component<PropsWithElement<\n PopoverContentProps,\n PopoverContentElement\n>> = createComponent<\n PopoverContentProps,\n PopoverContentElement\n>(\n 'prosekit-popover-content', \n Object.keys(popoverContentProps),\n Object.keys(popoverContentEvents),\n)\n","import { \n type PopoverRootElement,\n type PopoverRootProps as Props,\n type PopoverRootEvents as Events,\n popoverRootProps,\n popoverRootEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverRoot} component.\n */\nexport interface PopoverRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverRoot: Component<PropsWithElement<\n PopoverRootProps,\n PopoverRootElement\n>> = createComponent<\n PopoverRootProps,\n PopoverRootElement\n>(\n 'prosekit-popover-root', \n Object.keys(popoverRootProps),\n Object.keys(popoverRootEvents),\n)\n","import { \n type PopoverTriggerElement,\n type PopoverTriggerProps as Props,\n type PopoverTriggerEvents as Events,\n popoverTriggerProps,\n popoverTriggerEvents,\n} from '@prosekit/web/popover'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverTrigger} component.\n */\nexport interface PopoverTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const PopoverTrigger: Component<PropsWithElement<\n PopoverTriggerProps,\n PopoverTriggerElement\n>> = createComponent<\n PopoverTriggerProps,\n PopoverTriggerElement\n>(\n 'prosekit-popover-trigger', \n Object.keys(popoverTriggerProps),\n Object.keys(popoverTriggerEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,cAGR,gBAIH,yBACA,OAAO,KAAK,iBAAiB,EAC7B,OAAO,KAAK,kBAAkB,CAC/B;;;;ACVD,MAAaC,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { resizableHandleEvents, resizableHandleProps, resizableRootEvents, resizableRootProps } from "@prosekit/web/resizable";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-resizable.js","names":["ResizableHandle: Component<PropsWithElement<\n ResizableHandleProps,\n ResizableHandleElement\n>>","ResizableRoot: Component<PropsWithElement<\n ResizableRootProps,\n ResizableRootElement\n>>"],"sources":["../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/resizable-root.gen.ts"],"sourcesContent":["import { \n type ResizableHandleElement,\n type ResizableHandleProps as Props,\n type ResizableHandleEvents as Events,\n resizableHandleProps,\n resizableHandleEvents,\n} from '@prosekit/web/resizable'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableHandle} component.\n */\nexport interface ResizableHandleProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const ResizableHandle: Component<PropsWithElement<\n ResizableHandleProps,\n ResizableHandleElement\n>> = createComponent<\n ResizableHandleProps,\n ResizableHandleElement\n>(\n 'prosekit-resizable-handle', \n Object.keys(resizableHandleProps),\n Object.keys(resizableHandleEvents),\n)\n","import { \n type ResizableRootElement,\n type ResizableRootProps as Props,\n type ResizableRootEvents as Events,\n resizableRootProps,\n resizableRootEvents,\n} from '@prosekit/web/resizable'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableRoot} component.\n */\nexport interface ResizableRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const ResizableRoot: Component<PropsWithElement<\n ResizableRootProps,\n ResizableRootElement\n>> = createComponent<\n ResizableRootProps,\n ResizableRootElement\n>(\n 'prosekit-resizable-root', \n Object.keys(resizableRootProps),\n Object.keys(resizableRootEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,kBAGR,gBAIH,6BACA,OAAO,KAAK,qBAAqB,EACjC,OAAO,KAAK,sBAAsB,CACnC;;;;ACVD,MAAaC,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
1
+ {"version":3,"file":"prosekit-solid-resizable.js","names":["ResizableHandle: Component<PropsWithElement<\n ResizableHandleProps,\n ResizableHandleElement\n>>","ResizableRoot: Component<PropsWithElement<\n ResizableRootProps,\n ResizableRootElement\n>>"],"sources":["../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/resizable-root.gen.ts"],"sourcesContent":["import { \n type ResizableHandleElement,\n type ResizableHandleProps as Props,\n type ResizableHandleEvents as Events,\n resizableHandleProps,\n resizableHandleEvents,\n} from '@prosekit/web/resizable'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableHandle} component.\n */\nexport interface ResizableHandleProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const ResizableHandle: Component<PropsWithElement<\n ResizableHandleProps,\n ResizableHandleElement\n>> = createComponent<\n ResizableHandleProps,\n ResizableHandleElement\n>(\n 'prosekit-resizable-handle', \n Object.keys(resizableHandleProps),\n Object.keys(resizableHandleEvents),\n)\n","import { \n type ResizableRootElement,\n type ResizableRootProps as Props,\n type ResizableRootEvents as Events,\n resizableRootProps,\n resizableRootEvents,\n} from '@prosekit/web/resizable'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableRoot} component.\n */\nexport interface ResizableRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const ResizableRoot: Component<PropsWithElement<\n ResizableRootProps,\n ResizableRootElement\n>> = createComponent<\n ResizableRootProps,\n ResizableRootElement\n>(\n 'prosekit-resizable-root', \n Object.keys(resizableRootProps),\n Object.keys(resizableRootEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,kBAGR,gBAIH,6BACA,OAAO,KAAK,qBAAqB,EACjC,OAAO,KAAK,sBAAsB,CACnC;;;;ACVD,MAAaC,gBAGR,gBAIH,2BACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  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
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-table-handle.js","names":["TableHandleColumnRoot: Component<PropsWithElement<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>>","TableHandleColumnTrigger: Component<PropsWithElement<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>>","TableHandleDragPreview: Component<PropsWithElement<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>>","TableHandleDropIndicator: Component<PropsWithElement<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>>","TableHandlePopoverContent: Component<PropsWithElement<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>>","TableHandlePopoverItem: Component<PropsWithElement<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>>","TableHandleRoot: Component<PropsWithElement<\n TableHandleRootProps,\n TableHandleRootElement\n>>","TableHandleRowRoot: Component<PropsWithElement<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>>","TableHandleRowTrigger: Component<PropsWithElement<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>>"],"sources":["../src/components/table-handle/table-handle-column-root.gen.ts","../src/components/table-handle/table-handle-column-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-popover-content.gen.ts","../src/components/table-handle/table-handle-popover-item.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-root.gen.ts","../src/components/table-handle/table-handle-row-trigger.gen.ts"],"sourcesContent":["import { \n type TableHandleColumnRootElement,\n type TableHandleColumnRootProps as Props,\n type TableHandleColumnRootEvents as Events,\n tableHandleColumnRootProps,\n tableHandleColumnRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleColumnRoot} component.\n */\nexport interface TableHandleColumnRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleColumnRoot: Component<PropsWithElement<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>> = createComponent<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>(\n 'prosekit-table-handle-column-root', \n Object.keys(tableHandleColumnRootProps),\n Object.keys(tableHandleColumnRootEvents),\n)\n","import { \n type TableHandleColumnTriggerElement,\n type TableHandleColumnTriggerProps as Props,\n type TableHandleColumnTriggerEvents as Events,\n tableHandleColumnTriggerProps,\n tableHandleColumnTriggerEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleColumnTrigger} component.\n */\nexport interface TableHandleColumnTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleColumnTrigger: Component<PropsWithElement<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>> = createComponent<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>(\n 'prosekit-table-handle-column-trigger', \n Object.keys(tableHandleColumnTriggerProps),\n Object.keys(tableHandleColumnTriggerEvents),\n)\n","import { \n type TableHandleDragPreviewElement,\n type TableHandleDragPreviewProps as Props,\n type TableHandleDragPreviewEvents as Events,\n tableHandleDragPreviewProps,\n tableHandleDragPreviewEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleDragPreview} component.\n */\nexport interface TableHandleDragPreviewProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleDragPreview: Component<PropsWithElement<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>> = createComponent<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>(\n 'prosekit-table-handle-drag-preview', \n Object.keys(tableHandleDragPreviewProps),\n Object.keys(tableHandleDragPreviewEvents),\n)\n","import { \n type TableHandleDropIndicatorElement,\n type TableHandleDropIndicatorProps as Props,\n type TableHandleDropIndicatorEvents as Events,\n tableHandleDropIndicatorProps,\n tableHandleDropIndicatorEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleDropIndicator} component.\n */\nexport interface TableHandleDropIndicatorProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleDropIndicator: Component<PropsWithElement<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>> = createComponent<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>(\n 'prosekit-table-handle-drop-indicator', \n Object.keys(tableHandleDropIndicatorProps),\n Object.keys(tableHandleDropIndicatorEvents),\n)\n","import { \n type TableHandlePopoverContentElement,\n type TableHandlePopoverContentProps as Props,\n type TableHandlePopoverContentEvents as Events,\n tableHandlePopoverContentProps,\n tableHandlePopoverContentEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandlePopoverContent} component.\n */\nexport interface TableHandlePopoverContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandlePopoverContent: Component<PropsWithElement<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>> = createComponent<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>(\n 'prosekit-table-handle-popover-content', \n Object.keys(tableHandlePopoverContentProps),\n Object.keys(tableHandlePopoverContentEvents),\n)\n","import { \n type TableHandlePopoverItemElement,\n type TableHandlePopoverItemProps as Props,\n type TableHandlePopoverItemEvents as Events,\n tableHandlePopoverItemProps,\n tableHandlePopoverItemEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandlePopoverItem} component.\n */\nexport interface TableHandlePopoverItemProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandlePopoverItem: Component<PropsWithElement<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>> = createComponent<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>(\n 'prosekit-table-handle-popover-item', \n Object.keys(tableHandlePopoverItemProps),\n Object.keys(tableHandlePopoverItemEvents),\n)\n","import { \n type TableHandleRootElement,\n type TableHandleRootProps as Props,\n type TableHandleRootEvents as Events,\n tableHandleRootProps,\n tableHandleRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRoot} component.\n */\nexport interface TableHandleRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRoot: Component<PropsWithElement<\n TableHandleRootProps,\n TableHandleRootElement\n>> = createComponent<\n TableHandleRootProps,\n TableHandleRootElement\n>(\n 'prosekit-table-handle-root', \n Object.keys(tableHandleRootProps),\n Object.keys(tableHandleRootEvents),\n)\n","import { \n type TableHandleRowRootElement,\n type TableHandleRowRootProps as Props,\n type TableHandleRowRootEvents as Events,\n tableHandleRowRootProps,\n tableHandleRowRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRowRoot} component.\n */\nexport interface TableHandleRowRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRowRoot: Component<PropsWithElement<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>> = createComponent<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>(\n 'prosekit-table-handle-row-root', \n Object.keys(tableHandleRowRootProps),\n Object.keys(tableHandleRowRootEvents),\n)\n","import { \n type TableHandleRowTriggerElement,\n type TableHandleRowTriggerProps as Props,\n type TableHandleRowTriggerEvents as Events,\n tableHandleRowTriggerProps,\n tableHandleRowTriggerEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRowTrigger} component.\n */\nexport interface TableHandleRowTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRowTrigger: Component<PropsWithElement<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>> = createComponent<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>(\n 'prosekit-table-handle-row-trigger', \n Object.keys(tableHandleRowTriggerProps),\n Object.keys(tableHandleRowTriggerEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,wBAGR,gBAIH,qCACA,OAAO,KAAK,2BAA2B,EACvC,OAAO,KAAK,4BAA4B,CACzC;;;;ACVD,MAAaC,2BAGR,gBAIH,wCACA,OAAO,KAAK,8BAA8B,EAC1C,OAAO,KAAK,+BAA+B,CAC5C;;;;ACVD,MAAaC,yBAGR,gBAIH,sCACA,OAAO,KAAK,4BAA4B,EACxC,OAAO,KAAK,6BAA6B,CAC1C;;;;ACVD,MAAaC,2BAGR,gBAIH,wCACA,OAAO,KAAK,8BAA8B,EAC1C,OAAO,KAAK,+BAA+B,CAC5C;;;;ACVD,MAAaC,4BAGR,gBAIH,yCACA,OAAO,KAAK,+BAA+B,EAC3C,OAAO,KAAK,gCAAgC,CAC7C;;;;ACVD,MAAaC,yBAGR,gBAIH,sCACA,OAAO,KAAK,4BAA4B,EACxC,OAAO,KAAK,6BAA6B,CAC1C;;;;ACVD,MAAaC,kBAGR,gBAIH,8BACA,OAAO,KAAK,qBAAqB,EACjC,OAAO,KAAK,sBAAsB,CACnC;;;;ACVD,MAAaC,qBAGR,gBAIH,kCACA,OAAO,KAAK,wBAAwB,EACpC,OAAO,KAAK,yBAAyB,CACtC;;;;ACVD,MAAaC,wBAGR,gBAIH,qCACA,OAAO,KAAK,2BAA2B,EACvC,OAAO,KAAK,4BAA4B,CACzC"}
1
+ {"version":3,"file":"prosekit-solid-table-handle.js","names":["TableHandleColumnRoot: Component<PropsWithElement<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>>","TableHandleColumnTrigger: Component<PropsWithElement<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>>","TableHandleDragPreview: Component<PropsWithElement<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>>","TableHandleDropIndicator: Component<PropsWithElement<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>>","TableHandlePopoverContent: Component<PropsWithElement<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>>","TableHandlePopoverItem: Component<PropsWithElement<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>>","TableHandleRoot: Component<PropsWithElement<\n TableHandleRootProps,\n TableHandleRootElement\n>>","TableHandleRowRoot: Component<PropsWithElement<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>>","TableHandleRowTrigger: Component<PropsWithElement<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>>"],"sources":["../src/components/table-handle/table-handle-column-root.gen.ts","../src/components/table-handle/table-handle-column-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-popover-content.gen.ts","../src/components/table-handle/table-handle-popover-item.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-root.gen.ts","../src/components/table-handle/table-handle-row-trigger.gen.ts"],"sourcesContent":["import { \n type TableHandleColumnRootElement,\n type TableHandleColumnRootProps as Props,\n type TableHandleColumnRootEvents as Events,\n tableHandleColumnRootProps,\n tableHandleColumnRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleColumnRoot} component.\n */\nexport interface TableHandleColumnRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleColumnRoot: Component<PropsWithElement<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>> = createComponent<\n TableHandleColumnRootProps,\n TableHandleColumnRootElement\n>(\n 'prosekit-table-handle-column-root', \n Object.keys(tableHandleColumnRootProps),\n Object.keys(tableHandleColumnRootEvents),\n)\n","import { \n type TableHandleColumnTriggerElement,\n type TableHandleColumnTriggerProps as Props,\n type TableHandleColumnTriggerEvents as Events,\n tableHandleColumnTriggerProps,\n tableHandleColumnTriggerEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleColumnTrigger} component.\n */\nexport interface TableHandleColumnTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleColumnTrigger: Component<PropsWithElement<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>> = createComponent<\n TableHandleColumnTriggerProps,\n TableHandleColumnTriggerElement\n>(\n 'prosekit-table-handle-column-trigger', \n Object.keys(tableHandleColumnTriggerProps),\n Object.keys(tableHandleColumnTriggerEvents),\n)\n","import { \n type TableHandleDragPreviewElement,\n type TableHandleDragPreviewProps as Props,\n type TableHandleDragPreviewEvents as Events,\n tableHandleDragPreviewProps,\n tableHandleDragPreviewEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleDragPreview} component.\n */\nexport interface TableHandleDragPreviewProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleDragPreview: Component<PropsWithElement<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>> = createComponent<\n TableHandleDragPreviewProps,\n TableHandleDragPreviewElement\n>(\n 'prosekit-table-handle-drag-preview', \n Object.keys(tableHandleDragPreviewProps),\n Object.keys(tableHandleDragPreviewEvents),\n)\n","import { \n type TableHandleDropIndicatorElement,\n type TableHandleDropIndicatorProps as Props,\n type TableHandleDropIndicatorEvents as Events,\n tableHandleDropIndicatorProps,\n tableHandleDropIndicatorEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleDropIndicator} component.\n */\nexport interface TableHandleDropIndicatorProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleDropIndicator: Component<PropsWithElement<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>> = createComponent<\n TableHandleDropIndicatorProps,\n TableHandleDropIndicatorElement\n>(\n 'prosekit-table-handle-drop-indicator', \n Object.keys(tableHandleDropIndicatorProps),\n Object.keys(tableHandleDropIndicatorEvents),\n)\n","import { \n type TableHandlePopoverContentElement,\n type TableHandlePopoverContentProps as Props,\n type TableHandlePopoverContentEvents as Events,\n tableHandlePopoverContentProps,\n tableHandlePopoverContentEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandlePopoverContent} component.\n */\nexport interface TableHandlePopoverContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandlePopoverContent: Component<PropsWithElement<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>> = createComponent<\n TableHandlePopoverContentProps,\n TableHandlePopoverContentElement\n>(\n 'prosekit-table-handle-popover-content', \n Object.keys(tableHandlePopoverContentProps),\n Object.keys(tableHandlePopoverContentEvents),\n)\n","import { \n type TableHandlePopoverItemElement,\n type TableHandlePopoverItemProps as Props,\n type TableHandlePopoverItemEvents as Events,\n tableHandlePopoverItemProps,\n tableHandlePopoverItemEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandlePopoverItem} component.\n */\nexport interface TableHandlePopoverItemProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandlePopoverItem: Component<PropsWithElement<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>> = createComponent<\n TableHandlePopoverItemProps,\n TableHandlePopoverItemElement\n>(\n 'prosekit-table-handle-popover-item', \n Object.keys(tableHandlePopoverItemProps),\n Object.keys(tableHandlePopoverItemEvents),\n)\n","import { \n type TableHandleRootElement,\n type TableHandleRootProps as Props,\n type TableHandleRootEvents as Events,\n tableHandleRootProps,\n tableHandleRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRoot} component.\n */\nexport interface TableHandleRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRoot: Component<PropsWithElement<\n TableHandleRootProps,\n TableHandleRootElement\n>> = createComponent<\n TableHandleRootProps,\n TableHandleRootElement\n>(\n 'prosekit-table-handle-root', \n Object.keys(tableHandleRootProps),\n Object.keys(tableHandleRootEvents),\n)\n","import { \n type TableHandleRowRootElement,\n type TableHandleRowRootProps as Props,\n type TableHandleRowRootEvents as Events,\n tableHandleRowRootProps,\n tableHandleRowRootEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRowRoot} component.\n */\nexport interface TableHandleRowRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRowRoot: Component<PropsWithElement<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>> = createComponent<\n TableHandleRowRootProps,\n TableHandleRowRootElement\n>(\n 'prosekit-table-handle-row-root', \n Object.keys(tableHandleRowRootProps),\n Object.keys(tableHandleRowRootEvents),\n)\n","import { \n type TableHandleRowTriggerElement,\n type TableHandleRowTriggerProps as Props,\n type TableHandleRowTriggerEvents as Events,\n tableHandleRowTriggerProps,\n tableHandleRowTriggerEvents,\n} from '@prosekit/web/table-handle'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TableHandleRowTrigger} component.\n */\nexport interface TableHandleRowTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TableHandleRowTrigger: Component<PropsWithElement<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>> = createComponent<\n TableHandleRowTriggerProps,\n TableHandleRowTriggerElement\n>(\n 'prosekit-table-handle-row-trigger', \n Object.keys(tableHandleRowTriggerProps),\n Object.keys(tableHandleRowTriggerEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,wBAGR,gBAIH,qCACA,OAAO,KAAK,2BAA2B,EACvC,OAAO,KAAK,4BAA4B,CACzC;;;;ACVD,MAAaC,2BAGR,gBAIH,wCACA,OAAO,KAAK,8BAA8B,EAC1C,OAAO,KAAK,+BAA+B,CAC5C;;;;ACVD,MAAaC,yBAGR,gBAIH,sCACA,OAAO,KAAK,4BAA4B,EACxC,OAAO,KAAK,6BAA6B,CAC1C;;;;ACVD,MAAaC,2BAGR,gBAIH,wCACA,OAAO,KAAK,8BAA8B,EAC1C,OAAO,KAAK,+BAA+B,CAC5C;;;;ACVD,MAAaC,4BAGR,gBAIH,yCACA,OAAO,KAAK,+BAA+B,EAC3C,OAAO,KAAK,gCAAgC,CAC7C;;;;ACVD,MAAaC,yBAGR,gBAIH,sCACA,OAAO,KAAK,4BAA4B,EACxC,OAAO,KAAK,6BAA6B,CAC1C;;;;ACVD,MAAaC,kBAGR,gBAIH,8BACA,OAAO,KAAK,qBAAqB,EACjC,OAAO,KAAK,sBAAsB,CACnC;;;;ACVD,MAAaC,qBAGR,gBAIH,kCACA,OAAO,KAAK,wBAAwB,EACpC,OAAO,KAAK,yBAAyB,CACtC;;;;ACVD,MAAaC,wBAGR,gBAIH,qCACA,OAAO,KAAK,2BAA2B,EACvC,OAAO,KAAK,4BAA4B,CACzC"}
@@ -1,4 +1,3 @@
1
- import "./editor-context-B5bsBkGo.js";
2
1
  import { t as createComponent } from "./create-component-DOv1yHjo.js";
3
2
  import { tooltipContentEvents, tooltipContentProps, tooltipRootEvents, tooltipRootProps, tooltipTriggerEvents, tooltipTriggerProps } from "@prosekit/web/tooltip";
4
3
 
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid-tooltip.js","names":["TooltipContent: Component<PropsWithElement<\n TooltipContentProps,\n TooltipContentElement\n>>","TooltipRoot: Component<PropsWithElement<\n TooltipRootProps,\n TooltipRootElement\n>>","TooltipTrigger: Component<PropsWithElement<\n TooltipTriggerProps,\n TooltipTriggerElement\n>>"],"sources":["../src/components/tooltip/tooltip-content.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"sourcesContent":["import { \n type TooltipContentElement,\n type TooltipContentProps as Props,\n type TooltipContentEvents as Events,\n tooltipContentProps,\n tooltipContentEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipContent} component.\n */\nexport interface TooltipContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipContent: Component<PropsWithElement<\n TooltipContentProps,\n TooltipContentElement\n>> = createComponent<\n TooltipContentProps,\n TooltipContentElement\n>(\n 'prosekit-tooltip-content', \n Object.keys(tooltipContentProps),\n Object.keys(tooltipContentEvents),\n)\n","import { \n type TooltipRootElement,\n type TooltipRootProps as Props,\n type TooltipRootEvents as Events,\n tooltipRootProps,\n tooltipRootEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipRoot} component.\n */\nexport interface TooltipRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipRoot: Component<PropsWithElement<\n TooltipRootProps,\n TooltipRootElement\n>> = createComponent<\n TooltipRootProps,\n TooltipRootElement\n>(\n 'prosekit-tooltip-root', \n Object.keys(tooltipRootProps),\n Object.keys(tooltipRootEvents),\n)\n","import { \n type TooltipTriggerElement,\n type TooltipTriggerProps as Props,\n type TooltipTriggerEvents as Events,\n tooltipTriggerProps,\n tooltipTriggerEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipTrigger} component.\n */\nexport interface TooltipTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipTrigger: Component<PropsWithElement<\n TooltipTriggerProps,\n TooltipTriggerElement\n>> = createComponent<\n TooltipTriggerProps,\n TooltipTriggerElement\n>(\n 'prosekit-tooltip-trigger', \n Object.keys(tooltipTriggerProps),\n Object.keys(tooltipTriggerEvents),\n)\n"],"mappings":";;;;;AAkBA,MAAaA,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,cAGR,gBAIH,yBACA,OAAO,KAAK,iBAAiB,EAC7B,OAAO,KAAK,kBAAkB,CAC/B;;;;ACVD,MAAaC,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC"}
1
+ {"version":3,"file":"prosekit-solid-tooltip.js","names":["TooltipContent: Component<PropsWithElement<\n TooltipContentProps,\n TooltipContentElement\n>>","TooltipRoot: Component<PropsWithElement<\n TooltipRootProps,\n TooltipRootElement\n>>","TooltipTrigger: Component<PropsWithElement<\n TooltipTriggerProps,\n TooltipTriggerElement\n>>"],"sources":["../src/components/tooltip/tooltip-content.gen.ts","../src/components/tooltip/tooltip-root.gen.ts","../src/components/tooltip/tooltip-trigger.gen.ts"],"sourcesContent":["import { \n type TooltipContentElement,\n type TooltipContentProps as Props,\n type TooltipContentEvents as Events,\n tooltipContentProps,\n tooltipContentEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipContent} component.\n */\nexport interface TooltipContentProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipContent: Component<PropsWithElement<\n TooltipContentProps,\n TooltipContentElement\n>> = createComponent<\n TooltipContentProps,\n TooltipContentElement\n>(\n 'prosekit-tooltip-content', \n Object.keys(tooltipContentProps),\n Object.keys(tooltipContentEvents),\n)\n","import { \n type TooltipRootElement,\n type TooltipRootProps as Props,\n type TooltipRootEvents as Events,\n tooltipRootProps,\n tooltipRootEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipRoot} component.\n */\nexport interface TooltipRootProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipRoot: Component<PropsWithElement<\n TooltipRootProps,\n TooltipRootElement\n>> = createComponent<\n TooltipRootProps,\n TooltipRootElement\n>(\n 'prosekit-tooltip-root', \n Object.keys(tooltipRootProps),\n Object.keys(tooltipRootEvents),\n)\n","import { \n type TooltipTriggerElement,\n type TooltipTriggerProps as Props,\n type TooltipTriggerEvents as Events,\n tooltipTriggerProps,\n tooltipTriggerEvents,\n} from '@prosekit/web/tooltip'\nimport type { Component } from 'solid-js'\n\nimport type { PropsWithElement } from '../../types'\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link TooltipTrigger} component.\n */\nexport interface TooltipTriggerProps extends Partial<CreateProps<Props, Events>> {}\n\nexport const TooltipTrigger: Component<PropsWithElement<\n TooltipTriggerProps,\n TooltipTriggerElement\n>> = createComponent<\n TooltipTriggerProps,\n TooltipTriggerElement\n>(\n 'prosekit-tooltip-trigger', \n Object.keys(tooltipTriggerProps),\n Object.keys(tooltipTriggerEvents),\n)\n"],"mappings":";;;;AAkBA,MAAaA,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACVD,MAAaC,cAGR,gBAIH,yBACA,OAAO,KAAK,iBAAiB,EAC7B,OAAO,KAAK,kBAAkB,CAC/B;;;;ACVD,MAAaC,iBAGR,gBAIH,4BACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC"}
@@ -84,7 +84,7 @@ function consumeSolidMarkViews() {
84
84
  * @public
85
85
  */
86
86
  function defineSolidMarkView(options) {
87
- const { name, component,...userOptions } = options;
87
+ const { name, component, ...userOptions } = options;
88
88
  return defineMarkViewComponent({
89
89
  group: "solid",
90
90
  name,
@@ -147,7 +147,7 @@ function consumeSolidNodeViews() {
147
147
  * @public
148
148
  */
149
149
  function defineSolidNodeView(options) {
150
- const { name, component,...userOptions } = options;
150
+ const { name, component, ...userOptions } = options;
151
151
  return defineNodeViewComponent({
152
152
  group: "solid",
153
153
  name,
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-solid.js","names":["context: Accessor<SolidMarkViewProps>","context: Accessor<SolidNodeViewProps>","ProseKit: Component<ProseKitProps>","editorAccessor: Accessor<Editor<E>>"],"sources":["../src/utils/to-value.ts","../src/hooks/use-editor-extension.ts","../src/hooks/use-priority-extension.ts","../src/hooks/use-extension.ts","../src/extensions/solid-mark-view.ts","../src/extensions/solid-node-view.ts","../src/components/prosekit.ts","../src/hooks/use-doc-change.ts","../src/hooks/use-editor.ts","../src/hooks/use-editor-derived-value.ts","../src/hooks/use-keymap.ts","../src/hooks/use-state-update.ts"],"sourcesContent":["/**\n * Accesses the value of a MaybeAccessor\n *\n * @example\n * ```ts\n * access(\"foo\") // => \"foo\"\n * access(() => \"foo\") // => \"foo\"\n * ```\n */\nexport function toValue<T>(\n v: (() => T) | T,\n): T {\n return (typeof v === 'function') ? (v as () => T)() : v\n}\n","import {\n EditorNotFoundError,\n type Editor,\n type Extension,\n} from '@prosekit/core'\nimport {\n createEffect,\n onCleanup,\n type Accessor,\n} from 'solid-js'\n\nimport { useEditorContext } from '../contexts/editor-context'\nimport type { MaybeAccessor } from '../types'\nimport { toValue } from '../utils/to-value'\n\n/**\n * @internal\n */\nexport function useEditorExtension(\n editorAccessor: MaybeAccessor<Editor> | undefined | null,\n extensionAccessor: Accessor<Extension | null>,\n): void {\n const editorContext = useEditorContext()\n\n createEffect(() => {\n const editor = toValue(editorAccessor) || toValue(editorContext)\n const extension = extensionAccessor()\n\n if (!editor) {\n throw new EditorNotFoundError()\n }\n if (extension) {\n onCleanup(editor.use(extension))\n }\n })\n}\n","import {\n withPriority,\n type Extension,\n type Priority,\n} from '@prosekit/core'\n\n/**\n * @internal\n */\nexport function usePriorityExtension<T extends Extension = Extension>(\n extension: () => T | null,\n priority?: Priority | null,\n): () => T | null {\n return () => {\n const ext = extension()\n return ext && priority ? withPriority(ext, priority) : ext\n }\n}\n","import type {\n Editor,\n Extension,\n Priority,\n} from '@prosekit/core'\nimport type { Accessor } from 'solid-js'\n\nimport type { MaybeAccessor } from '../types'\n\nimport { useEditorExtension } from './use-editor-extension'\nimport { usePriorityExtension } from './use-priority-extension'\n\nexport interface UseExtensionOptions {\n /**\n * The editor to add the extension to. If not provided, it will use the\n * editor from the nearest `<ProseKit>` component.\n */\n editor?: MaybeAccessor<Editor>\n\n /**\n * Optional priority to add the extension with.\n */\n priority?: Priority\n}\n\n/**\n * Add an extension to the editor.\n */\nexport function useExtension(\n /**\n * The accessor to an extension to add to the editor. If it changes, the previous\n * extension will be removed and the new one (if not null) will be added.\n */\n extension: Accessor<Extension | null>,\n options?: UseExtensionOptions,\n): void {\n useEditorExtension(\n options?.editor,\n usePriorityExtension(extension, options?.priority),\n )\n}\n","import {\n defineMarkViewComponent,\n defineMarkViewFactory,\n type Extension,\n} from '@prosekit/core'\nimport type { MarkViewConstructor } from '@prosekit/pm/view'\nimport type { CoreMarkViewUserOptions } from '@prosemirror-adapter/core'\nimport {\n useMarkViewContext,\n useMarkViewFactory,\n type MarkViewContextProps,\n type SolidMarkViewUserOptions,\n} from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n createMemo,\n type Accessor,\n type Component,\n} from 'solid-js'\n\nimport { useExtension } from '../hooks/use-extension'\n\n/**\n * @public\n */\nexport interface SolidMarkViewProps extends MarkViewContextProps {}\n\n/**\n * @public\n */\nexport type SolidMarkViewComponent = Component<SolidMarkViewProps>\n\n/**\n * Options for {@link defineSolidMarkView}.\n *\n * @public\n */\nexport interface SolidMarkViewOptions extends CoreMarkViewUserOptions<SolidMarkViewComponent> {\n /**\n * The name of the mark type.\n */\n name: string\n}\n\nfunction withMarkViewProps(\n component: SolidMarkViewComponent,\n): Component<SolidMarkViewProps> {\n return function MarkViewPropsWrapper() {\n const context: Accessor<SolidMarkViewProps> = useMarkViewContext()\n const props: SolidMarkViewProps = {\n get contentRef() {\n return context().contentRef\n },\n get view() {\n return context().view\n },\n get mark() {\n return context().mark\n },\n }\n return createComponent(component, props)\n }\n}\n\n/**\n * @internal\n */\nexport function consumeSolidMarkViews(): void {\n const markViewFactory = useMarkViewFactory()\n const extension = createMemo(\n () => defineSolidMarkViewFactory(markViewFactory),\n [markViewFactory],\n )\n\n useExtension(extension)\n}\n\n/**\n * Defines a mark view using a Solid component.\n *\n * @public\n */\nexport function defineSolidMarkView(options: SolidMarkViewOptions): Extension {\n const { name, component, ...userOptions } = options\n\n const args: SolidMarkViewUserOptions = {\n ...userOptions,\n component: withMarkViewProps(component),\n }\n\n return defineMarkViewComponent<SolidMarkViewUserOptions>({\n group: 'solid',\n name,\n args,\n })\n}\n\nfunction defineSolidMarkViewFactory(\n factory: (options: SolidMarkViewOptions) => MarkViewConstructor,\n) {\n return defineMarkViewFactory<SolidMarkViewOptions>({\n group: 'solid',\n factory,\n })\n}\n","import {\n defineNodeViewComponent,\n defineNodeViewFactory,\n type Extension,\n} from '@prosekit/core'\nimport type { NodeViewConstructor } from '@prosekit/pm/view'\nimport type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core'\nimport {\n useNodeViewContext,\n useNodeViewFactory,\n type NodeViewContextProps,\n type SolidNodeViewUserOptions,\n} from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n createMemo,\n type Accessor,\n type Component,\n} from 'solid-js'\n\nimport { useExtension } from '../hooks/use-extension'\n\n/**\n * @public\n */\nexport interface SolidNodeViewProps extends NodeViewContextProps {}\n\n/**\n * @public\n */\nexport type SolidNodeViewComponent = Component<SolidNodeViewProps>\n\n/**\n * Options for {@link defineSolidNodeView}.\n *\n * @public\n */\nexport interface SolidNodeViewOptions extends CoreNodeViewUserOptions<SolidNodeViewComponent> {\n /**\n * The name of the node type.\n */\n name: string\n}\n\nfunction withNodeViewProps(\n component: SolidNodeViewComponent,\n): Component<SolidNodeViewProps> {\n return function NodeViewPropsWrapper() {\n const context: Accessor<SolidNodeViewProps> = useNodeViewContext()\n const props: SolidNodeViewProps = {\n get contentRef() {\n return context().contentRef\n },\n get view() {\n return context().view\n },\n get getPos() {\n return context().getPos\n },\n get setAttrs() {\n return context().setAttrs\n },\n get node() {\n return context().node\n },\n get selected() {\n return context().selected\n },\n get decorations() {\n return context().decorations\n },\n get innerDecorations() {\n return context().innerDecorations\n },\n }\n return createComponent(component, props)\n }\n}\n\n/**\n * @internal\n */\nexport function consumeSolidNodeViews(): void {\n const nodeViewFactory = useNodeViewFactory()\n const extension = createMemo(\n () => defineSolidNodeViewFactory(nodeViewFactory),\n [nodeViewFactory],\n )\n\n useExtension(extension)\n}\n\n/**\n * Defines a node view using a Solid component.\n *\n * @public\n */\nexport function defineSolidNodeView(options: SolidNodeViewOptions): Extension {\n const { name, component, ...userOptions } = options\n\n const args: SolidNodeViewUserOptions = {\n ...userOptions,\n component: withNodeViewProps(component),\n }\n\n return defineNodeViewComponent<SolidNodeViewUserOptions>({\n group: 'solid',\n name,\n args,\n })\n}\n\nfunction defineSolidNodeViewFactory(\n factory: (options: SolidNodeViewOptions) => NodeViewConstructor,\n) {\n return defineNodeViewFactory<SolidNodeViewOptions>({\n group: 'solid',\n factory,\n })\n}\n","import type { Editor } from '@prosekit/core'\nimport { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n type Component,\n type ParentProps,\n} from 'solid-js'\n\nimport { EditorContextProvider } from '../contexts/editor-context'\nimport { consumeSolidMarkViews } from '../extensions/solid-mark-view'\nimport { consumeSolidNodeViews } from '../extensions/solid-node-view'\n\nexport type ProseKitProps = ParentProps<{\n editor: Editor\n}>\n\n/**\n * The root component for a ProseKit editor.\n *\n * @public\n */\nexport const ProseKit: Component<ProseKitProps> = (props) => {\n return createComponent(ProsemirrorAdapterProvider, {\n get children() {\n return createComponent(EditorContextProvider, {\n get value() {\n return props.editor\n },\n get children() {\n consumeSolidNodeViews()\n consumeSolidMarkViews()\n return props.children\n },\n })\n },\n })\n}\n","import { defineDocChangeHandler } from '@prosekit/core'\nimport type { ProseMirrorNode } from '@prosekit/pm/model'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\n/**\n * Calls the given handler whenever the editor document changes.\n *\n * @public\n */\nexport function useDocChange(\n handler: (doc: ProseMirrorNode) => void,\n options?: UseExtensionOptions,\n): void {\n const extension = defineDocChangeHandler((view) => handler(view.state.doc))\n useExtension(() => extension, options)\n}\n","import {\n defineMountHandler,\n defineUpdateHandler,\n ProseKitError,\n union,\n type Editor,\n type Extension,\n} from '@prosekit/core'\nimport {\n createEffect,\n createSignal,\n} from 'solid-js'\n\nimport { useEditorContext } from '../contexts/editor-context'\n\n/**\n * Retrieves the editor instance from the nearest ProseKit component.\n *\n * @public\n */\nexport function useEditor<E extends Extension = any>(options?: {\n /**\n * Whether to update the component when the editor is mounted or editor state\n * is updated.\n *\n * @default false\n */\n update?: boolean\n}): () => Editor<E> {\n const update = options?.update ?? false\n\n const editor = useEditorContext<E>()\n if (!editor) {\n throw new ProseKitError(\n 'useEditor must be used within the ProseKit component',\n )\n }\n\n const [depend, forceUpdate] = useForceUpdate()\n\n createEffect(() => {\n if (update) {\n const extension = union(\n defineMountHandler(forceUpdate),\n defineUpdateHandler(forceUpdate),\n )\n return editor.use(extension)\n }\n }, [editor, update, forceUpdate])\n\n return () => {\n depend()\n return editor\n }\n}\n\nfunction useForceUpdate() {\n return createSignal(undefined, { equals: false })\n}\n","import type {\n Editor,\n Extension,\n} from '@prosekit/core'\nimport {\n createMemo,\n type Accessor,\n} from 'solid-js'\n\nimport type { MaybeAccessor } from '../types'\nimport { toValue } from '../utils/to-value'\n\nimport { useEditor } from './use-editor'\n\nexport interface UseEditorDerivedOptions<E extends Extension = any> {\n /**\n * The editor to add the extension to. If not provided, it will use the\n * editor from the nearest `<ProseKit>` component.\n */\n editor?: MaybeAccessor<Editor<E>>\n}\n\n/**\n * Runs a function to derive a value from the editor instance after editor state\n * changes.\n *\n * This is useful when you need to render something based on the editor state,\n * for example, whether the selected text is wrapped in an italic mark.\n *\n * It returns an accessor of the derived value that updates whenever the editor\n * state changes.\n *\n * @public\n */\nexport function useEditorDerivedValue<E extends Extension, Derived>(\n /**\n * A function that receives the editor instance and returns a derived value.\n *\n * It will be called whenever the editor's document state changes, or when it\n * mounts.\n */\n derive: (editor: Editor<E>) => Derived,\n options?: UseEditorDerivedOptions<E>,\n): Accessor<Derived> {\n const initialEditor = options?.editor\n const editorAccessor: Accessor<Editor<E>> = initialEditor\n ? () => toValue(initialEditor)\n : useEditor<E>({ update: true })\n\n return createMemo(() => derive(editorAccessor()))\n}\n","import {\n defineKeymap,\n type Keymap,\n} from '@prosekit/core'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\nexport function useKeymap(keymap: () => Keymap, options?: UseExtensionOptions): void {\n const extension = () => defineKeymap(keymap())\n useExtension(extension, options)\n}\n","import { defineUpdateHandler } from '@prosekit/core'\nimport type { EditorState } from '@prosekit/pm/state'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\n/**\n * Calls the given handler whenever the editor state changes.\n *\n * @public\n */\nexport function useStateUpdate(\n handler: (state: EditorState) => void,\n options?: UseExtensionOptions,\n): void {\n const extension = defineUpdateHandler((view) => handler(view.state))\n useExtension(() => extension, options)\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"prosekit-solid.js","names":["context: Accessor<SolidMarkViewProps>","context: Accessor<SolidNodeViewProps>","ProseKit: Component<ProseKitProps>","editorAccessor: Accessor<Editor<E>>"],"sources":["../src/utils/to-value.ts","../src/hooks/use-editor-extension.ts","../src/hooks/use-priority-extension.ts","../src/hooks/use-extension.ts","../src/extensions/solid-mark-view.ts","../src/extensions/solid-node-view.ts","../src/components/prosekit.ts","../src/hooks/use-doc-change.ts","../src/hooks/use-editor.ts","../src/hooks/use-editor-derived-value.ts","../src/hooks/use-keymap.ts","../src/hooks/use-state-update.ts"],"sourcesContent":["/**\n * Accesses the value of a MaybeAccessor\n *\n * @example\n * ```ts\n * access(\"foo\") // => \"foo\"\n * access(() => \"foo\") // => \"foo\"\n * ```\n */\nexport function toValue<T>(\n v: (() => T) | T,\n): T {\n return (typeof v === 'function') ? (v as () => T)() : v\n}\n","import {\n EditorNotFoundError,\n type Editor,\n type Extension,\n} from '@prosekit/core'\nimport {\n createEffect,\n onCleanup,\n type Accessor,\n} from 'solid-js'\n\nimport { useEditorContext } from '../contexts/editor-context'\nimport type { MaybeAccessor } from '../types'\nimport { toValue } from '../utils/to-value'\n\n/**\n * @internal\n */\nexport function useEditorExtension(\n editorAccessor: MaybeAccessor<Editor> | undefined | null,\n extensionAccessor: Accessor<Extension | null>,\n): void {\n const editorContext = useEditorContext()\n\n createEffect(() => {\n const editor = toValue(editorAccessor) || toValue(editorContext)\n const extension = extensionAccessor()\n\n if (!editor) {\n throw new EditorNotFoundError()\n }\n if (extension) {\n onCleanup(editor.use(extension))\n }\n })\n}\n","import {\n withPriority,\n type Extension,\n type Priority,\n} from '@prosekit/core'\n\n/**\n * @internal\n */\nexport function usePriorityExtension<T extends Extension = Extension>(\n extension: () => T | null,\n priority?: Priority | null,\n): () => T | null {\n return () => {\n const ext = extension()\n return ext && priority ? withPriority(ext, priority) : ext\n }\n}\n","import type {\n Editor,\n Extension,\n Priority,\n} from '@prosekit/core'\nimport type { Accessor } from 'solid-js'\n\nimport type { MaybeAccessor } from '../types'\n\nimport { useEditorExtension } from './use-editor-extension'\nimport { usePriorityExtension } from './use-priority-extension'\n\nexport interface UseExtensionOptions {\n /**\n * The editor to add the extension to. If not provided, it will use the\n * editor from the nearest `<ProseKit>` component.\n */\n editor?: MaybeAccessor<Editor>\n\n /**\n * Optional priority to add the extension with.\n */\n priority?: Priority\n}\n\n/**\n * Add an extension to the editor.\n */\nexport function useExtension(\n /**\n * The accessor to an extension to add to the editor. If it changes, the previous\n * extension will be removed and the new one (if not null) will be added.\n */\n extension: Accessor<Extension | null>,\n options?: UseExtensionOptions,\n): void {\n useEditorExtension(\n options?.editor,\n usePriorityExtension(extension, options?.priority),\n )\n}\n","import {\n defineMarkViewComponent,\n defineMarkViewFactory,\n type Extension,\n} from '@prosekit/core'\nimport type { MarkViewConstructor } from '@prosekit/pm/view'\nimport type { CoreMarkViewUserOptions } from '@prosemirror-adapter/core'\nimport {\n useMarkViewContext,\n useMarkViewFactory,\n type MarkViewContextProps,\n type SolidMarkViewUserOptions,\n} from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n createMemo,\n type Accessor,\n type Component,\n} from 'solid-js'\n\nimport { useExtension } from '../hooks/use-extension'\n\n/**\n * @public\n */\nexport interface SolidMarkViewProps extends MarkViewContextProps {}\n\n/**\n * @public\n */\nexport type SolidMarkViewComponent = Component<SolidMarkViewProps>\n\n/**\n * Options for {@link defineSolidMarkView}.\n *\n * @public\n */\nexport interface SolidMarkViewOptions extends CoreMarkViewUserOptions<SolidMarkViewComponent> {\n /**\n * The name of the mark type.\n */\n name: string\n}\n\nfunction withMarkViewProps(\n component: SolidMarkViewComponent,\n): Component<SolidMarkViewProps> {\n return function MarkViewPropsWrapper() {\n const context: Accessor<SolidMarkViewProps> = useMarkViewContext()\n const props: SolidMarkViewProps = {\n get contentRef() {\n return context().contentRef\n },\n get view() {\n return context().view\n },\n get mark() {\n return context().mark\n },\n }\n return createComponent(component, props)\n }\n}\n\n/**\n * @internal\n */\nexport function consumeSolidMarkViews(): void {\n const markViewFactory = useMarkViewFactory()\n const extension = createMemo(\n () => defineSolidMarkViewFactory(markViewFactory),\n [markViewFactory],\n )\n\n useExtension(extension)\n}\n\n/**\n * Defines a mark view using a Solid component.\n *\n * @public\n */\nexport function defineSolidMarkView(options: SolidMarkViewOptions): Extension {\n const { name, component, ...userOptions } = options\n\n const args: SolidMarkViewUserOptions = {\n ...userOptions,\n component: withMarkViewProps(component),\n }\n\n return defineMarkViewComponent<SolidMarkViewUserOptions>({\n group: 'solid',\n name,\n args,\n })\n}\n\nfunction defineSolidMarkViewFactory(\n factory: (options: SolidMarkViewOptions) => MarkViewConstructor,\n) {\n return defineMarkViewFactory<SolidMarkViewOptions>({\n group: 'solid',\n factory,\n })\n}\n","import {\n defineNodeViewComponent,\n defineNodeViewFactory,\n type Extension,\n} from '@prosekit/core'\nimport type { NodeViewConstructor } from '@prosekit/pm/view'\nimport type { CoreNodeViewUserOptions } from '@prosemirror-adapter/core'\nimport {\n useNodeViewContext,\n useNodeViewFactory,\n type NodeViewContextProps,\n type SolidNodeViewUserOptions,\n} from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n createMemo,\n type Accessor,\n type Component,\n} from 'solid-js'\n\nimport { useExtension } from '../hooks/use-extension'\n\n/**\n * @public\n */\nexport interface SolidNodeViewProps extends NodeViewContextProps {}\n\n/**\n * @public\n */\nexport type SolidNodeViewComponent = Component<SolidNodeViewProps>\n\n/**\n * Options for {@link defineSolidNodeView}.\n *\n * @public\n */\nexport interface SolidNodeViewOptions extends CoreNodeViewUserOptions<SolidNodeViewComponent> {\n /**\n * The name of the node type.\n */\n name: string\n}\n\nfunction withNodeViewProps(\n component: SolidNodeViewComponent,\n): Component<SolidNodeViewProps> {\n return function NodeViewPropsWrapper() {\n const context: Accessor<SolidNodeViewProps> = useNodeViewContext()\n const props: SolidNodeViewProps = {\n get contentRef() {\n return context().contentRef\n },\n get view() {\n return context().view\n },\n get getPos() {\n return context().getPos\n },\n get setAttrs() {\n return context().setAttrs\n },\n get node() {\n return context().node\n },\n get selected() {\n return context().selected\n },\n get decorations() {\n return context().decorations\n },\n get innerDecorations() {\n return context().innerDecorations\n },\n }\n return createComponent(component, props)\n }\n}\n\n/**\n * @internal\n */\nexport function consumeSolidNodeViews(): void {\n const nodeViewFactory = useNodeViewFactory()\n const extension = createMemo(\n () => defineSolidNodeViewFactory(nodeViewFactory),\n [nodeViewFactory],\n )\n\n useExtension(extension)\n}\n\n/**\n * Defines a node view using a Solid component.\n *\n * @public\n */\nexport function defineSolidNodeView(options: SolidNodeViewOptions): Extension {\n const { name, component, ...userOptions } = options\n\n const args: SolidNodeViewUserOptions = {\n ...userOptions,\n component: withNodeViewProps(component),\n }\n\n return defineNodeViewComponent<SolidNodeViewUserOptions>({\n group: 'solid',\n name,\n args,\n })\n}\n\nfunction defineSolidNodeViewFactory(\n factory: (options: SolidNodeViewOptions) => NodeViewConstructor,\n) {\n return defineNodeViewFactory<SolidNodeViewOptions>({\n group: 'solid',\n factory,\n })\n}\n","import type { Editor } from '@prosekit/core'\nimport { ProsemirrorAdapterProvider } from '@prosemirror-adapter/solid'\nimport {\n createComponent,\n type Component,\n type ParentProps,\n} from 'solid-js'\n\nimport { EditorContextProvider } from '../contexts/editor-context'\nimport { consumeSolidMarkViews } from '../extensions/solid-mark-view'\nimport { consumeSolidNodeViews } from '../extensions/solid-node-view'\n\nexport type ProseKitProps = ParentProps<{\n editor: Editor\n}>\n\n/**\n * The root component for a ProseKit editor.\n *\n * @public\n */\nexport const ProseKit: Component<ProseKitProps> = (props) => {\n return createComponent(ProsemirrorAdapterProvider, {\n get children() {\n return createComponent(EditorContextProvider, {\n get value() {\n return props.editor\n },\n get children() {\n consumeSolidNodeViews()\n consumeSolidMarkViews()\n return props.children\n },\n })\n },\n })\n}\n","import { defineDocChangeHandler } from '@prosekit/core'\nimport type { ProseMirrorNode } from '@prosekit/pm/model'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\n/**\n * Calls the given handler whenever the editor document changes.\n *\n * @public\n */\nexport function useDocChange(\n handler: (doc: ProseMirrorNode) => void,\n options?: UseExtensionOptions,\n): void {\n const extension = defineDocChangeHandler((view) => handler(view.state.doc))\n useExtension(() => extension, options)\n}\n","import {\n defineMountHandler,\n defineUpdateHandler,\n ProseKitError,\n union,\n type Editor,\n type Extension,\n} from '@prosekit/core'\nimport {\n createEffect,\n createSignal,\n} from 'solid-js'\n\nimport { useEditorContext } from '../contexts/editor-context'\n\n/**\n * Retrieves the editor instance from the nearest ProseKit component.\n *\n * @public\n */\nexport function useEditor<E extends Extension = any>(options?: {\n /**\n * Whether to update the component when the editor is mounted or editor state\n * is updated.\n *\n * @default false\n */\n update?: boolean\n}): () => Editor<E> {\n const update = options?.update ?? false\n\n const editor = useEditorContext<E>()\n if (!editor) {\n throw new ProseKitError(\n 'useEditor must be used within the ProseKit component',\n )\n }\n\n const [depend, forceUpdate] = useForceUpdate()\n\n createEffect(() => {\n if (update) {\n const extension = union(\n defineMountHandler(forceUpdate),\n defineUpdateHandler(forceUpdate),\n )\n return editor.use(extension)\n }\n }, [editor, update, forceUpdate])\n\n return () => {\n depend()\n return editor\n }\n}\n\nfunction useForceUpdate() {\n return createSignal(undefined, { equals: false })\n}\n","import type {\n Editor,\n Extension,\n} from '@prosekit/core'\nimport {\n createMemo,\n type Accessor,\n} from 'solid-js'\n\nimport type { MaybeAccessor } from '../types'\nimport { toValue } from '../utils/to-value'\n\nimport { useEditor } from './use-editor'\n\nexport interface UseEditorDerivedOptions<E extends Extension = any> {\n /**\n * The editor to add the extension to. If not provided, it will use the\n * editor from the nearest `<ProseKit>` component.\n */\n editor?: MaybeAccessor<Editor<E>>\n}\n\n/**\n * Runs a function to derive a value from the editor instance after editor state\n * changes.\n *\n * This is useful when you need to render something based on the editor state,\n * for example, whether the selected text is wrapped in an italic mark.\n *\n * It returns an accessor of the derived value that updates whenever the editor\n * state changes.\n *\n * @public\n */\nexport function useEditorDerivedValue<E extends Extension, Derived>(\n /**\n * A function that receives the editor instance and returns a derived value.\n *\n * It will be called whenever the editor's document state changes, or when it\n * mounts.\n */\n derive: (editor: Editor<E>) => Derived,\n options?: UseEditorDerivedOptions<E>,\n): Accessor<Derived> {\n const initialEditor = options?.editor\n const editorAccessor: Accessor<Editor<E>> = initialEditor\n ? () => toValue(initialEditor)\n : useEditor<E>({ update: true })\n\n return createMemo(() => derive(editorAccessor()))\n}\n","import {\n defineKeymap,\n type Keymap,\n} from '@prosekit/core'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\nexport function useKeymap(keymap: () => Keymap, options?: UseExtensionOptions): void {\n const extension = () => defineKeymap(keymap())\n useExtension(extension, options)\n}\n","import { defineUpdateHandler } from '@prosekit/core'\nimport type { EditorState } from '@prosekit/pm/state'\n\nimport {\n useExtension,\n type UseExtensionOptions,\n} from './use-extension'\n\n/**\n * Calls the given handler whenever the editor state changes.\n *\n * @public\n */\nexport function useStateUpdate(\n handler: (state: EditorState) => void,\n options?: UseExtensionOptions,\n): void {\n const extension = defineUpdateHandler((view) => handler(view.state))\n useExtension(() => extension, options)\n}\n"],"mappings":"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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/solid",
3
3
  "type": "module",
4
- "version": "0.6.1",
4
+ "version": "0.6.3",
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.6",
74
- "@prosekit/web": "^0.7.6",
75
- "@prosekit/pm": "^0.1.14"
73
+ "@prosekit/pm": "^0.1.15",
74
+ "@prosekit/core": "^0.9.0",
75
+ "@prosekit/web": "^0.7.8"
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.16.2",
87
+ "tsdown": "^0.17.0",
88
88
  "typescript": "~5.9.3",
89
89
  "@prosekit/config-tsdown": "0.0.0",
90
90
  "@prosekit/config-vitest": "0.0.0"