@collabchron/notiq 1.1.11 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/dist/AICommandBarPlugin-ZEC755KY.mjs +27 -0
  2. package/dist/{AIDialog-2WZUFWSC.mjs → AIDialog-HJW6PQPR.mjs} +12 -13
  3. package/dist/{AudioComponent-CKLMLB5T.mjs → AudioComponent-W5XMZPQB.mjs} +10 -6
  4. package/dist/{DynamicBlockComponent-2LOADZUX.mjs → DynamicBlockComponent-CHRL2GAQ.mjs} +7 -6
  5. package/dist/{EquationComponent-4NFG55NQ.mjs → EquationComponent-GNQHG53L.mjs} +26 -7
  6. package/dist/{ExcalidrawComponent-SIMURTCA.mjs → ExcalidrawComponent-POMYXDSG.mjs} +34 -7
  7. package/dist/{FileComponent-Y56MX5QD.mjs → FileComponent-EOVCH4V5.mjs} +9 -5
  8. package/dist/{HintComponet-ET7M2Q7S.mjs → HintComponet-QXL5ESND.mjs} +32 -8
  9. package/dist/{InlineImageComponent-FVTA4LXZ.mjs → InlineImageComponent-KDN3VGZC.mjs} +8 -3
  10. package/dist/{StoryBuilderComponent-WQSNFPMM.mjs → StoryBuilderComponent-CBRFPFTR.mjs} +9 -10
  11. package/dist/{chunk-6UVNHT3T.mjs → chunk-4SYRK2NH.mjs} +23 -1
  12. package/dist/chunk-5CJZC5IB.mjs +9086 -0
  13. package/dist/{chunk-MW6MAUY3.mjs → chunk-6NK5DONB.mjs} +1 -1
  14. package/dist/{chunk-N6ILV6NF.mjs → chunk-ACW4DLVO.mjs} +21 -7
  15. package/dist/chunk-BCGD2YXP.mjs +574 -0
  16. package/dist/{chunk-TC3IISJZ.mjs → chunk-BTR3TPIN.mjs} +18 -5
  17. package/dist/{chunk-XAVQAXOJ.mjs → chunk-CQCS5YPS.mjs} +3 -5
  18. package/dist/{chunk-YTLUQJE2.mjs → chunk-D4UBNSUW.mjs} +1 -1
  19. package/dist/{chunk-KNW2CGIP.mjs → chunk-DBRZIA43.mjs} +4 -1
  20. package/dist/{chunk-CDAMHK63.mjs → chunk-GJK2L7ZM.mjs} +23 -2
  21. package/dist/{chunk-GYYLZ3MQ.mjs → chunk-IKYVBTCJ.mjs} +43 -20
  22. package/dist/chunk-IXRA5D53.mjs +10447 -0
  23. package/dist/{chunk-W6VQSFE5.mjs → chunk-J2CEQXG4.mjs} +1 -1
  24. package/dist/{chunk-43Z4Z2KD.mjs → chunk-JTNLN4JI.mjs} +1 -1
  25. package/dist/{chunk-OE5JRLCN.mjs → chunk-ONOHG5NB.mjs} +6 -4
  26. package/dist/{chunk-XZXGYNTY.mjs → chunk-OO42URWA.mjs} +27 -6
  27. package/dist/chunk-PBVRSNGU.mjs +129 -0
  28. package/dist/chunk-QCS57TIF.mjs +1794 -0
  29. package/dist/chunk-RNEIJRUS.mjs +60 -0
  30. package/dist/chunk-TJPTGECP.mjs +1556 -0
  31. package/dist/{chunk-XYMXGU4T.mjs → chunk-TMYRA2W4.mjs} +1 -1
  32. package/dist/{chunk-ZFV2HGD3.mjs → chunk-UNEFOZTS.mjs} +1 -1
  33. package/dist/chunk-X4NI7EQS.mjs +282 -0
  34. package/dist/chunk-XAJ4GACN.mjs +746 -0
  35. package/dist/{chunk-7QRJVZQY.mjs → chunk-YVUQRJVV.mjs} +63 -18
  36. package/dist/components/editor/Core.d.ts +15 -2
  37. package/dist/components/editor/index.d.ts +16 -5
  38. package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +1 -0
  39. package/dist/components/editor/nodes/Hint/index.d.ts +2 -1
  40. package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +73 -1
  41. package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +25 -3
  42. package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +16 -3
  43. package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +20 -25
  44. package/dist/components/editor/plugins/MarkdownPastePlugin/index.d.ts +5 -0
  45. package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +2 -0
  46. package/dist/components/editor/plugins/SlashCommand/index.d.ts +18 -1
  47. package/dist/components/editor/plugins/SmartTypographyPlugin/index.d.ts +26 -0
  48. package/dist/components/editor/utils/aiStream.d.ts +27 -0
  49. package/dist/components/editor/utils/excalidrawDiagramBuilder.d.ts +29 -0
  50. package/dist/components/editor/utils/markdownTransformers.d.ts +4 -1
  51. package/dist/components/editor/utils/url.d.ts +16 -4
  52. package/dist/components/providers/AIContext.d.ts +8 -0
  53. package/dist/components/ui/equation/equationTypography.d.ts +23 -0
  54. package/dist/core/extension.d.ts +3 -1
  55. package/dist/core/extensions/blocks-kit.d.ts +22 -1
  56. package/dist/core/extensions/copilot-and-collab.d.ts +15 -1
  57. package/dist/core/index.d.ts +2 -1
  58. package/dist/core/react/NotiqContent.d.ts +4 -1
  59. package/dist/core/react/NotiqEditor.d.ts +8 -8
  60. package/dist/core/react/index.d.ts +1 -0
  61. package/dist/core/react/node-renderers.d.ts +73 -0
  62. package/dist/core/types.d.ts +1 -0
  63. package/dist/core.js +18136 -9084
  64. package/dist/core.mjs +58 -44
  65. package/dist/hooks/instructions-messages.d.ts +13 -4
  66. package/dist/{image-TPW7PZZK.mjs → image-AL6PHM2A.mjs} +18 -13
  67. package/dist/index.js +15180 -12858
  68. package/dist/index.mjs +121 -1641
  69. package/dist/{insert-audio-C66RZRKY.mjs → insert-audio-CRWR7EO5.mjs} +6 -8
  70. package/dist/{insert-file-3DTGRO7W.mjs → insert-file-I73AZW3L.mjs} +6 -8
  71. package/dist/{insert-gif-FIMCCBAI.mjs → insert-gif-KWRC3ACT.mjs} +4 -4
  72. package/dist/{insert-image-CZV6HWQZ.mjs → insert-image-XIY6BGW5.mjs} +6 -5
  73. package/dist/{insert-poll-6BCIFY5G.mjs → insert-poll-J5YVZNZ4.mjs} +4 -3
  74. package/dist/{insert-table-ZRJP6X52.mjs → insert-table-OIMJRFFK.mjs} +1 -1
  75. package/dist/{poll-component-VHMM5KKZ.mjs → poll-component-TVHXIKGQ.mjs} +3 -2
  76. package/dist/react.js +17933 -9531
  77. package/dist/react.mjs +41 -34
  78. package/dist/{stepper-4AO5XMO7.mjs → stepper-ILF7YXTO.mjs} +64 -74
  79. package/dist/styles/notiq.css +1 -1
  80. package/package.json +2 -2
  81. package/src/styles/notiq.css +20 -0
  82. package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +0 -12
  83. package/dist/CodeActionMenuPlugin-MRKY67ED.mjs +0 -14
  84. package/dist/CollaborationPlugin-TIZOQBUT.mjs +0 -405
  85. package/dist/CollaboratorsBar-TMKBOBJI.mjs +0 -20
  86. package/dist/CommentsPlugin-5M4RD6YO.mjs +0 -19
  87. package/dist/ExcalidrawPlugin-2SGPIQ6U.mjs +0 -14
  88. package/dist/ExportPlugin-OKZOLBGS.mjs +0 -42
  89. package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +0 -12
  90. package/dist/FloatingTextFormatToolbarPlugin-SO5VON7Q.mjs +0 -45
  91. package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +0 -360
  92. package/dist/MobileToolbar-JKP2MLQJ.mjs +0 -984
  93. package/dist/SlashCommand-2TNOOUBM.mjs +0 -39
  94. package/dist/TableCellActionMenuPlugin-YWBA64J7.mjs +0 -838
  95. package/dist/TableHoverActionsPlugin-2EIXHEXN.mjs +0 -265
  96. package/dist/TemplatePlugin-HNTPEXBB.mjs +0 -9
  97. package/dist/ToolbarPlugin-IIAOU4P5.mjs +0 -35
  98. package/dist/VersionHistoryPlugin-23MAZB4G.mjs +0 -371
  99. package/dist/background-color-OZJCBYCT.mjs +0 -425
  100. package/dist/block-format-MTSIXWID.mjs +0 -14
  101. package/dist/chunk-2KESP7OU.mjs +0 -809
  102. package/dist/chunk-3AHNLIME.mjs +0 -1701
  103. package/dist/chunk-3IILA3IP.mjs +0 -28
  104. package/dist/chunk-4DVIYZVB.mjs +0 -193
  105. package/dist/chunk-4FFTOZGJ.mjs +0 -103
  106. package/dist/chunk-4UMUPCDK.mjs +0 -68
  107. package/dist/chunk-6D6QLRYR.mjs +0 -238
  108. package/dist/chunk-6SRMKQSD.mjs +0 -682
  109. package/dist/chunk-ACV47ZKE.mjs +0 -201
  110. package/dist/chunk-AYNKORDO.mjs +0 -6
  111. package/dist/chunk-BGV62GC2.mjs +0 -26
  112. package/dist/chunk-D3IOUQFR.mjs +0 -441
  113. package/dist/chunk-EEBA6OAH.mjs +0 -59
  114. package/dist/chunk-EIZMKFHF.mjs +0 -32
  115. package/dist/chunk-EVPWKNE4.mjs +0 -27
  116. package/dist/chunk-FMJ7DGWP.mjs +0 -144
  117. package/dist/chunk-FYLRS4BG.mjs +0 -88
  118. package/dist/chunk-HOZ4QRFV.mjs +0 -536
  119. package/dist/chunk-IAFCQV3Z.mjs +0 -349
  120. package/dist/chunk-IU2N42JJ.mjs +0 -1763
  121. package/dist/chunk-J6ZUY5BY.mjs +0 -202
  122. package/dist/chunk-K5OAFEVY.mjs +0 -191
  123. package/dist/chunk-KDA7ZYMJ.mjs +0 -431
  124. package/dist/chunk-KXRLARGI.mjs +0 -26
  125. package/dist/chunk-LAUAYRPC.mjs +0 -944
  126. package/dist/chunk-LLCP7NVE.mjs +0 -449
  127. package/dist/chunk-LU2XWLOE.mjs +0 -219
  128. package/dist/chunk-MPTE332I.mjs +0 -787
  129. package/dist/chunk-MTQZWJHR.mjs +0 -111
  130. package/dist/chunk-OXWTZV3U.mjs +0 -174
  131. package/dist/chunk-PD5K4AGP.mjs +0 -64
  132. package/dist/chunk-PFH63ZU4.mjs +0 -33
  133. package/dist/chunk-PHRVYPVM.mjs +0 -808
  134. package/dist/chunk-R7WFRENU.mjs +0 -262
  135. package/dist/chunk-RAVYEEIC.mjs +0 -36
  136. package/dist/chunk-RJQTA6HG.mjs +0 -358
  137. package/dist/chunk-SAOJHVPE.mjs +0 -153
  138. package/dist/chunk-VGAX6YEY.mjs +0 -399
  139. package/dist/chunk-W6GAJXUS.mjs +0 -334
  140. package/dist/chunk-XYDBUQ6Z.mjs +0 -1978
  141. package/dist/chunk-XYT6XM5S.mjs +0 -496
  142. package/dist/chunk-YDDBQZ77.mjs +0 -409
  143. package/dist/chunk-YE7M2VKR.mjs +0 -132
  144. package/dist/chunk-Z6JAFF55.mjs +0 -555
  145. package/dist/chunk-ZKZ7MLSS.mjs +0 -165
  146. package/dist/color-23323E3B.mjs +0 -13
  147. package/dist/font-IJKFR4BM.mjs +0 -12
  148. package/dist/font-size-GTL6UVQL.mjs +0 -15
  149. package/dist/insert-node-MA3FXEYN.mjs +0 -245
  150. package/dist/table-dropdown-4VCRSQB6.mjs +0 -391
  151. package/dist/text-align-CSDLJUDA.mjs +0 -121
  152. package/dist/text-format-6L5N3CHZ.mjs +0 -15
@@ -8,7 +8,7 @@ import { $applyNodeReplacement, DecoratorNode } from "lexical";
8
8
  import * as React from "react";
9
9
  import { Suspense } from "react";
10
10
  import { jsx } from "react/jsx-runtime";
11
- var StoryBuilderComponent = React.lazy(() => import("./StoryBuilderComponent-WQSNFPMM.mjs"));
11
+ var StoryBuilderComponent = React.lazy(() => import("./StoryBuilderComponent-CBRFPFTR.mjs"));
12
12
  function convertStoryBuilderElement(domNode) {
13
13
  const textContent = domNode.textContent;
14
14
  if (textContent) {
@@ -10,7 +10,7 @@ import katex from "katex";
10
10
  import { $applyNodeReplacement, DecoratorNode } from "lexical";
11
11
  import * as React from "react";
12
12
  import { jsx } from "react/jsx-runtime";
13
- var EquationComponent = React.lazy(() => import("./EquationComponent-4NFG55NQ.mjs"));
13
+ var EquationComponent = React.lazy(() => import("./EquationComponent-GNQHG53L.mjs"));
14
14
  function $convertEquationElement(domNode) {
15
15
  let equation = domNode.getAttribute("data-lexical-equation");
16
16
  const inline = domNode.getAttribute("data-lexical-inline") === "true";
@@ -91,6 +91,9 @@ var EquationNode = class _EquationNode extends DecoratorNode {
91
91
  updateDOM(prevNode) {
92
92
  return this.__inline !== prevNode.__inline;
93
93
  }
94
+ isInline() {
95
+ return this.__inline;
96
+ }
94
97
  getTextContent() {
95
98
  return this.__equation;
96
99
  }
@@ -7,15 +7,34 @@ import {
7
7
  init_react_shim
8
8
  } from "./chunk-WYCFGRFJ.mjs";
9
9
 
10
+ // src/components/providers/SharedHistoryContext.tsx
11
+ init_react_shim();
12
+ import { createEmptyHistoryState } from "@lexical/react/LexicalHistoryPlugin";
13
+ import { createContext, useContext, useMemo } from "react";
14
+ import { jsx } from "react/jsx-runtime";
15
+ var Context = createContext({});
16
+ var SharedHistoryContext = ({
17
+ children
18
+ }) => {
19
+ const historyContext = useMemo(
20
+ () => ({ historyState: createEmptyHistoryState() }),
21
+ []
22
+ );
23
+ return /* @__PURE__ */ jsx(Context.Provider, { value: historyContext, children });
24
+ };
25
+ var useSharedHistoryContext = () => {
26
+ return useContext(Context);
27
+ };
28
+
10
29
  // src/components/ui/separator.tsx
11
30
  init_react_shim();
12
31
  import * as React from "react";
13
32
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
14
- import { jsx } from "react/jsx-runtime";
33
+ import { jsx as jsx2 } from "react/jsx-runtime";
15
34
  var Separator = React.forwardRef(
16
35
  (_a, ref) => {
17
36
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
18
- return /* @__PURE__ */ jsx(
37
+ return /* @__PURE__ */ jsx2(
19
38
  SeparatorPrimitive.Root,
20
39
  __spreadValues({
21
40
  ref,
@@ -33,5 +52,7 @@ var Separator = React.forwardRef(
33
52
  Separator.displayName = SeparatorPrimitive.Root.displayName;
34
53
 
35
54
  export {
55
+ SharedHistoryContext,
56
+ useSharedHistoryContext,
36
57
  Separator
37
58
  };
@@ -1,3 +1,6 @@
1
+ import {
2
+ NodeRendererSlot
3
+ } from "./chunk-RNEIJRUS.mjs";
1
4
  import {
2
5
  __spreadProps,
3
6
  __spreadValues,
@@ -10,7 +13,7 @@ import { $applyNodeReplacement, createEditor, DecoratorNode } from "lexical";
10
13
  import * as React from "react";
11
14
  import { Suspense } from "react";
12
15
  import { jsx } from "react/jsx-runtime";
13
- var ImageComponent = React.lazy(() => import("./image-TPW7PZZK.mjs"));
16
+ var ImageComponent = React.lazy(() => import("./image-AL6PHM2A.mjs"));
14
17
  function isGoogleDocCheckboxImg(img) {
15
18
  return img.parentElement != null && img.parentElement.tagName === "LI" && img.previousSibling === null && img.getAttribute("aria-roledescription") === "checkbox";
16
19
  }
@@ -171,30 +174,50 @@ var ImageNode = class _ImageNode extends DecoratorNode {
171
174
  return this.__altText;
172
175
  }
173
176
  decorate() {
174
- return /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
175
- "div",
177
+ return /* @__PURE__ */ jsx(
178
+ NodeRendererSlot,
176
179
  {
177
- style: {
178
- textAlign: this.__alignment
180
+ nodeType: "image",
181
+ rendererProps: {
182
+ src: this.__src,
183
+ altText: this.__altText,
184
+ width: this.__width,
185
+ height: this.__height,
186
+ maxWidth: this.__maxWidth,
187
+ nodeKey: this.getKey(),
188
+ showCaption: this.__showCaption,
189
+ caption: this.__caption,
190
+ captionsEnabled: this.__captionsEnabled,
191
+ resizable: true,
192
+ rounded: this.__rounded,
193
+ alignment: this.__alignment
179
194
  },
180
- children: /* @__PURE__ */ jsx(
181
- ImageComponent,
195
+ fallback: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
196
+ "div",
182
197
  {
183
- src: this.__src,
184
- altText: this.__altText,
185
- width: this.__width,
186
- height: this.__height,
187
- maxWidth: this.__maxWidth,
188
- nodeKey: this.getKey(),
189
- showCaption: this.__showCaption,
190
- caption: this.__caption,
191
- captionsEnabled: this.__captionsEnabled,
192
- resizable: true,
193
- rounded: this.__rounded
198
+ style: {
199
+ textAlign: this.__alignment
200
+ },
201
+ children: /* @__PURE__ */ jsx(
202
+ ImageComponent,
203
+ {
204
+ src: this.__src,
205
+ altText: this.__altText,
206
+ width: this.__width,
207
+ height: this.__height,
208
+ maxWidth: this.__maxWidth,
209
+ nodeKey: this.getKey(),
210
+ showCaption: this.__showCaption,
211
+ caption: this.__caption,
212
+ captionsEnabled: this.__captionsEnabled,
213
+ resizable: true,
214
+ rounded: this.__rounded
215
+ }
216
+ )
194
217
  }
195
- )
218
+ ) })
196
219
  }
197
- ) });
220
+ );
198
221
  }
199
222
  };
200
223
  function $createImageNode({