{"version":3,"sources":["../src/createDataTransfer.ts","../src/getHtmlDocument.ts","../src/jsx.ts","../src/internals/creators.ts","../src/internals/tokens.ts","../src/internals/hyperscript.ts"],"sourcesContent":["export type DataTransferDataMap = Map<DataTransferDataType, unknown>;\n\nexport type DataTransferDataType = string | 'text/html' | 'text/plain';\n\nexport const createDataTransfer = (dataMap: DataTransferDataMap = new Map()) =>\n  ({\n    getData: (type: string) => dataMap.get(type) ?? '',\n    setData: (type: string, value: string) => dataMap.set(type, value),\n  }) as unknown as DataTransfer;\n","export const getHtmlDocument = (html: string) =>\n  new DOMParser().parseFromString(html, 'text/html');\n","import {\n  type HyperscriptShorthands,\n  createHyperscript as createHyperscriptBase,\n  createText as createTestText,\n} from 'slate-hyperscript';\n\nimport { createText } from './internals/creators';\nimport { createHyperscript } from './internals/hyperscript';\n\ndeclare global {\n  // eslint-disable-next-line @typescript-eslint/no-namespace\n  namespace JSX {\n    interface IntrinsicElements {\n      [key: string]: any;\n\n      anchor: any;\n      cursor: any;\n      editor: any;\n      element: any;\n      focus: any;\n      fragment: any;\n      hli: any;\n      hol: any;\n      hp: any;\n      htext: {\n        [key: string]: any;\n        // These optional params will show up in the autocomplete!\n        bold?: boolean;\n        children?: any;\n        code?: boolean;\n        italic?: boolean;\n        underline?: boolean;\n      };\n      hul: any;\n      selection: any;\n    }\n  }\n}\n\nconst voidChildren = [{ text: '' }];\n\nconst elements: HyperscriptShorthands = {\n  ha: { type: 'a' },\n  haudio: { children: voidChildren, type: 'audio' },\n  hblockquote: { type: 'blockquote' },\n  hcallout: { type: 'callout' },\n  hcodeblock: { type: 'code_block' },\n  hcodeline: { type: 'code_line' },\n  hcolumn: { type: 'column' },\n  hcolumngroup: { type: 'column_group' },\n  hdate: { children: voidChildren, type: 'date' },\n  hdefault: { type: 'p' },\n  hequation: { type: 'equation' },\n  hexcalidraw: { type: 'excalidraw' },\n  hfile: { children: voidChildren, type: 'file' },\n  hh1: { type: 'h1' },\n  hh2: { type: 'h2' },\n  hh3: { type: 'h3' },\n  hh4: { type: 'h4' },\n  hh5: { type: 'h5' },\n  hh6: { type: 'h6' },\n  himg: { children: voidChildren, type: 'img' },\n  hinlineequation: { type: 'inline_equation' },\n  hli: { type: 'li' },\n  hlic: { type: 'lic' },\n  hmediaembed: { children: voidChildren, type: 'media_embed' },\n  hmention: { children: voidChildren, type: 'mention' },\n  hmentioninput: { children: voidChildren, type: 'mention_input' },\n  hnli: { type: 'nli' },\n  hol: { type: 'ol' },\n  hp: { type: 'p' },\n  hplaceholder: { children: voidChildren, type: 'placeholder' },\n  htable: { type: 'table' },\n  htd: { type: 'td' },\n  hth: { type: 'th' },\n  htoc: { type: 'toc' },\n  htodoli: { type: 'action_item' },\n  htoggle: { type: 'toggle' },\n  htr: { type: 'tr' },\n  hul: { type: 'ul' },\n  hvideo: { children: voidChildren, type: 'video' },\n};\n\nexport const jsx = createHyperscript({\n  creators: {\n    htext: createTestText,\n  },\n  elements,\n});\n\nexport const jsxt = createHyperscriptBase({\n  creators: {\n    htext: createTestText,\n  },\n  elements,\n});\n\nexport const hjsx = createHyperscript({\n  creators: {\n    htext: createText,\n  },\n  elements,\n});\n","import {\n  type Descendant,\n  type Editor,\n  type TElement,\n  type TNode,\n  type TRange,\n  type TText,\n  ElementApi,\n  NodeApi,\n  RangeApi,\n  TextApi,\n} from '@udecode/slate';\n\nimport {\n  addAnchorToken,\n  addFocusToken,\n  AnchorToken,\n  FocusToken,\n  getAnchorOffset,\n  getFocusOffset,\n  Token,\n} from './tokens';\n\n/**\n * Resolve the descedants of a node by normalizing the children that can be\n * passed into a hyperscript creator function.\n */\n\nconst STRINGS = new WeakSet<TText>();\n\nconst resolveDescendants = (children: any[]): Descendant[] => {\n  const nodes: Descendant[] = [];\n\n  const addChild = (child: TNode | Token): void => {\n    if (child == null) {\n      return;\n    }\n\n    const prev = nodes.at(-1);\n\n    if (typeof child === 'string') {\n      const text = { text: child };\n      STRINGS.add(text);\n      child = text;\n    }\n    if (TextApi.isText(child)) {\n      const c = child; // HACK: fix typescript complaining\n\n      if (\n        TextApi.isText(prev) &&\n        STRINGS.has(prev) &&\n        STRINGS.has(c) &&\n        TextApi.equals(prev, c, { loose: true })\n      ) {\n        prev.text += c.text;\n      } else {\n        nodes.push(c);\n      }\n    } else if (ElementApi.isElement(child)) {\n      nodes.push(child);\n    } else if (child instanceof Token) {\n      let n = nodes.at(-1);\n\n      if (!TextApi.isText(n)) {\n        addChild('');\n        n = nodes.at(-1) as TText;\n      }\n      if (child instanceof AnchorToken) {\n        addAnchorToken(n, child);\n      } else if (child instanceof FocusToken) {\n        addFocusToken(n, child);\n      }\n    } else {\n      throw new TypeError(\n        `Unexpected hyperscript child object: ${child as any}`\n      );\n    }\n  };\n\n  for (const child of children.flat(Number.POSITIVE_INFINITY)) {\n    addChild(child);\n  }\n\n  return nodes;\n};\n\n/** Create an anchor token. */\nexport const createAnchor = (\n  tagName: string,\n  attributes: Record<string, any>\n): AnchorToken => new AnchorToken(attributes);\n\n/** Create an anchor and a focus token. */\nexport const createCursor = (\n  tagName: string,\n  attributes: Record<string, any>\n): Token[] => [new AnchorToken(attributes), new FocusToken(attributes)];\n\n/** Create an `TElement` object. */\nexport const createElement = (\n  tagName: string,\n  attributes: Record<string, any>,\n  children: any[]\n): TElement => ({\n  ...(attributes as any),\n  children: resolveDescendants(children),\n});\n\n/** Create a focus token. */\nexport const createFocus = (\n  tagName: string,\n  attributes: Record<string, any>\n): FocusToken => new FocusToken(attributes);\n\n/** Create a fragment. */\nexport const createFragment = (\n  tagName: string,\n  attributes: Record<string, any>,\n  children: any[]\n): Descendant[] => resolveDescendants(children);\n\n/** Create a `Selection` object. */\nexport const createSelection = (\n  tagName: string,\n  attributes: Record<string, any>,\n  children: any[]\n): TRange => {\n  const anchor: AnchorToken = children.find((c) => c instanceof AnchorToken)!;\n  const focus: FocusToken = children.find((c) => c instanceof FocusToken)!;\n\n  if (!anchor?.offset || !anchor.path) {\n    throw new Error(\n      `The <selection> hyperscript tag must have an <anchor> tag as a child with \\`path\\` and \\`offset\\` attributes defined.`\n    );\n  }\n  if (!focus?.offset || !focus.path) {\n    throw new Error(\n      `The <selection> hyperscript tag must have a <focus> tag as a child with \\`path\\` and \\`offset\\` attributes defined.`\n    );\n  }\n\n  return {\n    anchor: {\n      offset: anchor.offset,\n      path: anchor.path,\n    },\n    focus: {\n      offset: focus.offset,\n      path: focus.path,\n    },\n    ...attributes,\n  };\n};\n\n/** Create a `TText` object. */\nexport const createText = (\n  tagName: string,\n  attributes: Record<string, any>,\n  children: any[]\n): TText => {\n  const nodes = resolveDescendants(children);\n\n  if (nodes.length > 1) {\n    throw new Error(\n      `The <text> hyperscript tag must only contain a single node's worth of children.`\n    );\n  }\n\n  let [node] = nodes;\n\n  if (node == null) {\n    node = { text: '' };\n  }\n  if (!TextApi.isText(node)) {\n    throw new Error(`\n    The <text> hyperscript tag can only contain text content as children.`);\n  }\n\n  // COMPAT: If they used the <text> tag we want to guarantee that it won't be\n  // merge with other string children.\n  STRINGS.delete(node);\n\n  Object.assign(node, attributes);\n\n  return node;\n};\n\n/** Create a top-level `Editor` object. */\nexport const createEditor =\n  (makeEditor: () => Editor) =>\n  (\n    tagName: string,\n    attributes: Record<string, any>,\n    children: any[]\n  ): Editor => {\n    const otherChildren: any[] = [];\n    let selectionChild: TRange | undefined;\n\n    for (const child of children) {\n      if (RangeApi.isRange(child)) {\n        selectionChild = child;\n      } else {\n        otherChildren.push(child);\n      }\n    }\n\n    const descendants = resolveDescendants(otherChildren) as TElement[];\n    const selection: Partial<TRange> = {};\n    const editor = makeEditor();\n    Object.assign(editor, attributes);\n    editor.children = descendants;\n\n    // Search the document's texts to see if any of them have tokens associated\n    // that need incorporated into the selection.\n    for (const [node, path] of NodeApi.texts(editor)) {\n      const anchor = getAnchorOffset(node);\n      const focus = getFocusOffset(node);\n\n      if (anchor != null) {\n        const [offset] = anchor;\n        selection.anchor = { offset, path };\n      }\n      if (focus != null) {\n        const [offset] = focus;\n        selection.focus = { offset, path };\n      }\n    }\n\n    if (selection.anchor && !selection.focus) {\n      throw new Error(\n        `Slate hyperscript ranges must have both \\`<anchor />\\` and \\`<focus />\\` defined if one is defined, but you only defined \\`<anchor />\\`. For collapsed selections, use \\`<cursor />\\` instead.`\n      );\n    }\n    if (!selection.anchor && selection.focus) {\n      throw new Error(\n        `Slate hyperscript ranges must have both \\`<anchor />\\` and \\`<focus />\\` defined if one is defined, but you only defined \\`<focus />\\`. For collapsed selections, use \\`<cursor />\\` instead.`\n      );\n    }\n    if (selectionChild != null) {\n      editor.selection = selectionChild;\n    } else if (RangeApi.isRange(selection)) {\n      editor.selection = selection;\n    }\n\n    return editor;\n  };\n","import type { Path, TNode, TText } from '@udecode/slate';\n\n/** A weak map to hold anchor tokens. */\n\nconst ANCHOR = new WeakMap<TNode, [number, AnchorToken]>();\n\n/** A weak map to hold focus tokens. */\n\nconst FOCUS = new WeakMap<TNode, [number, FocusToken]>();\n\n/** All tokens inherit from a single constructor for `instanceof` checking. */\n\nexport class Token {}\n\n/** Anchor tokens represent the selection's anchor point. */\n\nexport class AnchorToken extends Token {\n  offset?: number;\n  path?: Path;\n\n  constructor(\n    props: {\n      offset?: number;\n      path?: Path;\n    } = {}\n  ) {\n    super();\n    const { offset, path } = props;\n    this.offset = offset;\n    this.path = path;\n  }\n}\n\n/** Focus tokens represent the selection's focus point. */\n\nexport class FocusToken extends Token {\n  offset?: number;\n  path?: Path;\n\n  constructor(\n    props: {\n      offset?: number;\n      path?: Path;\n    } = {}\n  ) {\n    super();\n    const { offset, path } = props;\n    this.offset = offset;\n    this.path = path;\n  }\n}\n\n/** Add an anchor token to the end of a text node. */\n\nexport const addAnchorToken = (text: TText, token: AnchorToken) => {\n  const offset = text.text.length;\n  ANCHOR.set(text, [offset, token]);\n};\n\n/** Get the offset if a text node has an associated anchor token. */\n\nexport const getAnchorOffset = (\n  text: TText\n): [number, AnchorToken] | undefined => {\n  return ANCHOR.get(text);\n};\n\n/** Add a focus token to the end of a text node. */\n\nexport const addFocusToken = (text: TText, token: FocusToken) => {\n  const offset = text.text.length;\n  FOCUS.set(text, [offset, token]);\n};\n\n/** Get the offset if a text node has an associated focus token. */\n\nexport const getFocusOffset = (\n  text: TText\n): [number, FocusToken] | undefined => {\n  return FOCUS.get(text);\n};\n","import { type TElement, createEditor as makeEditor } from '@udecode/slate';\n\nimport {\n  createAnchor,\n  createCursor,\n  createEditor,\n  createElement,\n  createFocus,\n  createFragment,\n  createSelection,\n  createText,\n} from './creators';\n\nfunction isPlainObject(value: unknown): value is Record<string, unknown> {\n  return (\n    typeof value === 'object' &&\n    value !== null &&\n    Object.getPrototypeOf(value) === Object.prototype\n  );\n}\n\n/** The default creators for Slate objects. */\n\nconst DEFAULT_CREATORS = {\n  anchor: createAnchor,\n  cursor: createCursor,\n  editor: createEditor(makeEditor),\n  element: createElement,\n  focus: createFocus,\n  fragment: createFragment,\n  selection: createSelection,\n  text: createText,\n};\n\n/**\n * `HyperscriptCreators` are dictionaries of `HyperscriptCreator` functions\n * keyed by tag name.\n */\n\ntype HyperscriptCreators<T = any> = Record<\n  string,\n  (tagName: string, attributes: Record<string, any>, children: any[]) => T\n>;\n\n/**\n * `HyperscriptShorthands` are dictionaries of properties applied to specific\n * kind of object, keyed by tag name. They allow you to easily define custom\n * hyperscript tags for your domain.\n */\n\ntype HyperscriptShorthands = Record<string, Record<string, any>>;\n\n/** Create a Slate hyperscript function with `options`. */\n\nconst createHyperscript = (\n  options: {\n    creators?: HyperscriptCreators;\n    elements?: HyperscriptShorthands;\n  } = {}\n) => {\n  const { elements = {} } = options;\n  const elementCreators = normalizeElements(elements);\n  const creators = {\n    ...DEFAULT_CREATORS,\n    ...elementCreators,\n    ...options.creators,\n  };\n\n  const jsx = createFactory(creators);\n\n  return jsx;\n};\n\n/** Create a Slate hyperscript function with `options`. */\n\nconst createFactory = <T extends HyperscriptCreators>(creators: T) => {\n  const jsx = <S extends keyof T & string>(\n    tagName: S,\n    attributes?: object,\n    ...children: any[]\n  ): ReturnType<T[S]> => {\n    for (const key in attributes) {\n      if (key.startsWith('__')) {\n        delete (attributes as any)[key];\n      }\n    }\n\n    const creator = creators[tagName];\n\n    if (!creator) {\n      throw new Error(`No hyperscript creator found for tag: <${tagName}>`);\n    }\n    if (attributes == null) {\n      attributes = {};\n    }\n    if (!isPlainObject(attributes)) {\n      children = [attributes].concat(children);\n      attributes = {};\n    }\n\n    children = children.filter(Boolean).flat();\n    const ret = creator(tagName, attributes, children);\n\n    return ret;\n  };\n\n  return jsx;\n};\n\n/** Normalize a dictionary of element shorthands into creator functions. */\n\nconst normalizeElements = (elements: HyperscriptShorthands) => {\n  const creators: HyperscriptCreators<TElement> = {};\n\n  for (const tagName in elements) {\n    const props = elements[tagName];\n\n    if (typeof props !== 'object') {\n      throw new TypeError(\n        `Properties specified for a hyperscript shorthand should be an object, but for the custom element <${tagName}>  tag you passed: ${props}`\n      );\n    }\n\n    creators[tagName] = (\n      tagName: string,\n      attributes: Record<string, any>,\n      children: any[]\n    ) => {\n      for (const key in attributes) {\n        if (key.startsWith('__')) {\n          delete attributes[key];\n        }\n      }\n\n      const el = createElement(\n        'element',\n        { ...props, ...attributes },\n        children\n      );\n\n      return el;\n    };\n  }\n\n  return creators;\n};\n\nexport { createHyperscript };\n"],"mappings":";AAIO,IAAM,qBAAqB,CAAC,UAA+B,oBAAI,IAAI,OACvE;AAAA,EACC,SAAS,CAAC,SAAiB,QAAQ,IAAI,IAAI,KAAK;AAAA,EAChD,SAAS,CAAC,MAAc,UAAkB,QAAQ,IAAI,MAAM,KAAK;AACnE;;;ACRK,IAAM,kBAAkB,CAAC,SAC9B,IAAI,UAAU,EAAE,gBAAgB,MAAM,WAAW;;;ACDnD;AAAA,EAEE,qBAAqB;AAAA,EACrB,cAAc;AAAA,OACT;;;ACJP;AAAA,EAOE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;;;ACPP,IAAM,SAAS,oBAAI,QAAsC;AAIzD,IAAM,QAAQ,oBAAI,QAAqC;A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