@collabchron/notiq 1.1.12 → 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.
- package/dist/AICommandBarPlugin-ZEC755KY.mjs +27 -0
- package/dist/{AIDialog-RHRYHSVN.mjs → AIDialog-HJW6PQPR.mjs} +11 -12
- package/dist/{AudioComponent-CKLMLB5T.mjs → AudioComponent-W5XMZPQB.mjs} +10 -6
- package/dist/{DynamicBlockComponent-2LOADZUX.mjs → DynamicBlockComponent-CHRL2GAQ.mjs} +7 -6
- package/dist/{EquationComponent-4NFG55NQ.mjs → EquationComponent-GNQHG53L.mjs} +26 -7
- package/dist/{ExcalidrawComponent-BMSYIPP6.mjs → ExcalidrawComponent-POMYXDSG.mjs} +33 -6
- package/dist/{FileComponent-Y56MX5QD.mjs → FileComponent-EOVCH4V5.mjs} +9 -5
- package/dist/{HintComponet-ET7M2Q7S.mjs → HintComponet-QXL5ESND.mjs} +32 -8
- package/dist/{InlineImageComponent-FVTA4LXZ.mjs → InlineImageComponent-KDN3VGZC.mjs} +8 -3
- package/dist/{StoryBuilderComponent-JN4ZPZOW.mjs → StoryBuilderComponent-CBRFPFTR.mjs} +8 -9
- package/dist/{chunk-6UVNHT3T.mjs → chunk-4SYRK2NH.mjs} +23 -1
- package/dist/chunk-5CJZC5IB.mjs +9086 -0
- package/dist/{chunk-FO7M3X2B.mjs → chunk-6NK5DONB.mjs} +1 -1
- package/dist/{chunk-N6ILV6NF.mjs → chunk-ACW4DLVO.mjs} +21 -7
- package/dist/chunk-BCGD2YXP.mjs +574 -0
- package/dist/{chunk-TC3IISJZ.mjs → chunk-BTR3TPIN.mjs} +18 -5
- package/dist/{chunk-ZYJ7KABY.mjs → chunk-CQCS5YPS.mjs} +3 -5
- package/dist/{chunk-T2UBAZ66.mjs → chunk-D4UBNSUW.mjs} +1 -1
- package/dist/{chunk-KNW2CGIP.mjs → chunk-DBRZIA43.mjs} +4 -1
- package/dist/{chunk-CDAMHK63.mjs → chunk-GJK2L7ZM.mjs} +23 -2
- package/dist/{chunk-ELBTVBTS.mjs → chunk-IKYVBTCJ.mjs} +43 -20
- package/dist/chunk-IXRA5D53.mjs +10447 -0
- package/dist/{chunk-W6VQSFE5.mjs → chunk-J2CEQXG4.mjs} +1 -1
- package/dist/{chunk-43Z4Z2KD.mjs → chunk-JTNLN4JI.mjs} +1 -1
- package/dist/{chunk-OE5JRLCN.mjs → chunk-ONOHG5NB.mjs} +6 -4
- package/dist/{chunk-QNIY45SF.mjs → chunk-OO42URWA.mjs} +27 -6
- package/dist/chunk-PBVRSNGU.mjs +129 -0
- package/dist/chunk-QCS57TIF.mjs +1794 -0
- package/dist/chunk-RNEIJRUS.mjs +60 -0
- package/dist/chunk-TJPTGECP.mjs +1556 -0
- package/dist/{chunk-XYMXGU4T.mjs → chunk-TMYRA2W4.mjs} +1 -1
- package/dist/{chunk-ZFV2HGD3.mjs → chunk-UNEFOZTS.mjs} +1 -1
- package/dist/chunk-X4NI7EQS.mjs +282 -0
- package/dist/{chunk-5D4JF3ZZ.mjs → chunk-XAJ4GACN.mjs} +171 -49
- package/dist/{chunk-7QRJVZQY.mjs → chunk-YVUQRJVV.mjs} +63 -18
- package/dist/components/editor/index.d.ts +1 -1
- package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +1 -0
- package/dist/components/editor/nodes/Hint/index.d.ts +2 -1
- package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +73 -1
- package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +25 -3
- package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +16 -3
- package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +20 -25
- package/dist/components/editor/plugins/MarkdownPastePlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +2 -0
- package/dist/components/editor/plugins/SlashCommand/index.d.ts +18 -1
- package/dist/components/editor/plugins/SmartTypographyPlugin/index.d.ts +26 -0
- package/dist/components/editor/utils/aiStream.d.ts +27 -0
- package/dist/components/editor/utils/excalidrawDiagramBuilder.d.ts +29 -0
- package/dist/components/editor/utils/markdownTransformers.d.ts +4 -1
- package/dist/components/editor/utils/url.d.ts +16 -4
- package/dist/components/providers/AIContext.d.ts +8 -0
- package/dist/components/ui/equation/equationTypography.d.ts +23 -0
- package/dist/core/extension.d.ts +3 -1
- package/dist/core/extensions/blocks-kit.d.ts +22 -1
- package/dist/core/extensions/copilot-and-collab.d.ts +15 -1
- package/dist/core/react/NotiqContent.d.ts +4 -1
- package/dist/core/react/index.d.ts +1 -0
- package/dist/core/react/node-renderers.d.ts +73 -0
- package/dist/core.js +15429 -13116
- package/dist/core.mjs +47 -39
- package/dist/hooks/instructions-messages.d.ts +13 -4
- package/dist/{image-QPB2CVXP.mjs → image-AL6PHM2A.mjs} +17 -12
- package/dist/index.js +15526 -13194
- package/dist/index.mjs +64 -60
- package/dist/{insert-audio-I3PD6JFS.mjs → insert-audio-CRWR7EO5.mjs} +4 -6
- package/dist/{insert-file-PHR7XL4V.mjs → insert-file-I73AZW3L.mjs} +4 -6
- package/dist/{insert-gif-R5ZO4JHC.mjs → insert-gif-KWRC3ACT.mjs} +1 -1
- package/dist/{insert-image-PLBZELHK.mjs → insert-image-XIY6BGW5.mjs} +4 -3
- package/dist/{insert-poll-6BCIFY5G.mjs → insert-poll-J5YVZNZ4.mjs} +4 -3
- package/dist/{insert-table-ZRJP6X52.mjs → insert-table-OIMJRFFK.mjs} +1 -1
- package/dist/{poll-component-VHMM5KKZ.mjs → poll-component-TVHXIKGQ.mjs} +3 -2
- package/dist/react.js +14747 -12554
- package/dist/react.mjs +40 -38
- package/dist/{stepper-KNITDVLG.mjs → stepper-ILF7YXTO.mjs} +63 -73
- package/dist/styles/notiq.css +1 -1
- package/package.json +2 -2
- package/src/styles/notiq.css +20 -0
- package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +0 -12
- package/dist/CodeActionMenuPlugin-FGH6HZLL.mjs +0 -14
- package/dist/CollaborationPlugin-TIZOQBUT.mjs +0 -405
- package/dist/CollaboratorsBar-AMPIAUOY.mjs +0 -20
- package/dist/CommentsPlugin-SDJJTUGK.mjs +0 -19
- package/dist/ExcalidrawPlugin-QLPGJPSX.mjs +0 -14
- package/dist/ExportPlugin-MJHYKQZJ.mjs +0 -43
- package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +0 -12
- package/dist/FloatingTextFormatToolbarPlugin-BXCPN3KD.mjs +0 -45
- package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +0 -360
- package/dist/MobileToolbar-KV5DX4ED.mjs +0 -982
- package/dist/SlashCommand-SPR7G5EI.mjs +0 -39
- package/dist/TableCellActionMenuPlugin-YWBA64J7.mjs +0 -838
- package/dist/TableHoverActionsPlugin-2EIXHEXN.mjs +0 -265
- package/dist/TemplatePlugin-HNTPEXBB.mjs +0 -9
- package/dist/ToolbarPlugin-F52PVNXU.mjs +0 -823
- package/dist/VersionHistoryPlugin-YWGCREKA.mjs +0 -371
- package/dist/background-color-RW5JYLMG.mjs +0 -425
- package/dist/block-format-TODFREE2.mjs +0 -14
- package/dist/chunk-22ZIL6NH.mjs +0 -88
- package/dist/chunk-2LNT36RL.mjs +0 -555
- package/dist/chunk-37LC44W3.mjs +0 -2677
- package/dist/chunk-3IILA3IP.mjs +0 -28
- package/dist/chunk-4DVIYZVB.mjs +0 -193
- package/dist/chunk-4FFTOZGJ.mjs +0 -103
- package/dist/chunk-4UMUPCDK.mjs +0 -68
- package/dist/chunk-6D6QLRYR.mjs +0 -238
- package/dist/chunk-6FQFPPLG.mjs +0 -785
- package/dist/chunk-ACV47ZKE.mjs +0 -201
- package/dist/chunk-BGV62GC2.mjs +0 -26
- package/dist/chunk-C4JWLBYN.mjs +0 -132
- package/dist/chunk-CLRSETYQ.mjs +0 -431
- package/dist/chunk-D3IOUQFR.mjs +0 -441
- package/dist/chunk-EEBA6OAH.mjs +0 -59
- package/dist/chunk-EIZMKFHF.mjs +0 -32
- package/dist/chunk-ENH2IOHI.mjs +0 -1828
- package/dist/chunk-EVPWKNE4.mjs +0 -27
- package/dist/chunk-HOZ4QRFV.mjs +0 -536
- package/dist/chunk-IAFCQV3Z.mjs +0 -349
- package/dist/chunk-J6ZUY5BY.mjs +0 -202
- package/dist/chunk-K5OAFEVY.mjs +0 -191
- package/dist/chunk-KXRLARGI.mjs +0 -26
- package/dist/chunk-LBGM4VVZ.mjs +0 -409
- package/dist/chunk-LLGVCM7M.mjs +0 -809
- package/dist/chunk-LU2XWLOE.mjs +0 -219
- package/dist/chunk-LVRJM45C.mjs +0 -171
- package/dist/chunk-MSAO3YFB.mjs +0 -144
- package/dist/chunk-N3KDPSRI.mjs +0 -496
- package/dist/chunk-OXWTZV3U.mjs +0 -174
- package/dist/chunk-PD5K4AGP.mjs +0 -64
- package/dist/chunk-PFH63ZU4.mjs +0 -33
- package/dist/chunk-R7WFRENU.mjs +0 -262
- package/dist/chunk-RAVYEEIC.mjs +0 -36
- package/dist/chunk-RJQTA6HG.mjs +0 -358
- package/dist/chunk-SAOJHVPE.mjs +0 -153
- package/dist/chunk-SYUCM5G5.mjs +0 -111
- package/dist/chunk-VGAX6YEY.mjs +0 -399
- package/dist/chunk-VNDDDXGH.mjs +0 -682
- package/dist/chunk-WUVIQCX7.mjs +0 -944
- package/dist/chunk-XNJNT6PC.mjs +0 -1701
- package/dist/chunk-XYLTLGY5.mjs +0 -775
- package/dist/chunk-ZKZ7MLSS.mjs +0 -165
- package/dist/color-S55XFDYQ.mjs +0 -13
- package/dist/font-IJKFR4BM.mjs +0 -12
- package/dist/font-size-3HMJHKO2.mjs +0 -15
- package/dist/insert-node-DGCZBGKG.mjs +0 -243
- package/dist/table-dropdown-4VCRSQB6.mjs +0 -391
- package/dist/text-align-TEB4S52S.mjs +0 -121
- package/dist/text-format-T3IY7FBI.mjs +0 -15
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NodeRendererSlot
|
|
3
|
+
} from "./chunk-RNEIJRUS.mjs";
|
|
1
4
|
import {
|
|
2
5
|
__spreadProps,
|
|
3
6
|
__spreadValues,
|
|
@@ -13,7 +16,7 @@ import * as React from "react";
|
|
|
13
16
|
import { Suspense } from "react";
|
|
14
17
|
import { jsx } from "react/jsx-runtime";
|
|
15
18
|
var PollComponent = React.lazy(
|
|
16
|
-
() => import("./poll-component-
|
|
19
|
+
() => import("./poll-component-TVHXIKGQ.mjs")
|
|
17
20
|
);
|
|
18
21
|
function createUID() {
|
|
19
22
|
return Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 5);
|
|
@@ -133,14 +136,25 @@ var PollNode = class _PollNode extends DecoratorNode {
|
|
|
133
136
|
return false;
|
|
134
137
|
}
|
|
135
138
|
decorate() {
|
|
136
|
-
return /* @__PURE__ */ jsx(
|
|
137
|
-
|
|
139
|
+
return /* @__PURE__ */ jsx(
|
|
140
|
+
NodeRendererSlot,
|
|
138
141
|
{
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
+
nodeType: "poll",
|
|
143
|
+
rendererProps: {
|
|
144
|
+
question: this.__question,
|
|
145
|
+
options: this.__options,
|
|
146
|
+
nodeKey: this.__key
|
|
147
|
+
},
|
|
148
|
+
fallback: /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(
|
|
149
|
+
PollComponent,
|
|
150
|
+
{
|
|
151
|
+
question: this.__question,
|
|
152
|
+
options: this.__options,
|
|
153
|
+
nodeKey: this.__key
|
|
154
|
+
}
|
|
155
|
+
) })
|
|
142
156
|
}
|
|
143
|
-
)
|
|
157
|
+
);
|
|
144
158
|
}
|
|
145
159
|
};
|
|
146
160
|
function $createPollNode(question, options) {
|
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
import {
|
|
2
|
+
$createStoryBuilderNode,
|
|
3
|
+
StoryBuilderNode
|
|
4
|
+
} from "./chunk-D4UBNSUW.mjs";
|
|
5
|
+
import {
|
|
6
|
+
DynamicBlockNode
|
|
7
|
+
} from "./chunk-JTNLN4JI.mjs";
|
|
8
|
+
import {
|
|
9
|
+
CollapsibleContainerNode,
|
|
10
|
+
CollapsibleContentNode,
|
|
11
|
+
CollapsibleTitleNode,
|
|
12
|
+
FigmaNode,
|
|
13
|
+
InlineImageNode,
|
|
14
|
+
StepperNode,
|
|
15
|
+
TweetNode,
|
|
16
|
+
YouTubeNode
|
|
17
|
+
} from "./chunk-QCS57TIF.mjs";
|
|
18
|
+
import {
|
|
19
|
+
PollNode
|
|
20
|
+
} from "./chunk-ACW4DLVO.mjs";
|
|
21
|
+
import {
|
|
22
|
+
AudioNode
|
|
23
|
+
} from "./chunk-TMYRA2W4.mjs";
|
|
24
|
+
import {
|
|
25
|
+
FileNode
|
|
26
|
+
} from "./chunk-UNEFOZTS.mjs";
|
|
27
|
+
import {
|
|
28
|
+
ImageNode
|
|
29
|
+
} from "./chunk-IKYVBTCJ.mjs";
|
|
30
|
+
import {
|
|
31
|
+
fetchMetadata,
|
|
32
|
+
getInitialMetadata,
|
|
33
|
+
normalizeUrl
|
|
34
|
+
} from "./chunk-X4NI7EQS.mjs";
|
|
35
|
+
import {
|
|
36
|
+
ExcalidrawNode
|
|
37
|
+
} from "./chunk-OO42URWA.mjs";
|
|
38
|
+
import {
|
|
39
|
+
EquationNode
|
|
40
|
+
} from "./chunk-DBRZIA43.mjs";
|
|
41
|
+
import {
|
|
42
|
+
Hint
|
|
43
|
+
} from "./chunk-YVUQRJVV.mjs";
|
|
44
|
+
import {
|
|
45
|
+
__spreadProps,
|
|
46
|
+
__spreadValues,
|
|
47
|
+
init_react_shim
|
|
48
|
+
} from "./chunk-WYCFGRFJ.mjs";
|
|
49
|
+
|
|
50
|
+
// src/components/editor/nodes/index.ts
|
|
51
|
+
init_react_shim();
|
|
52
|
+
import { CodeHighlightNode, CodeNode } from "@lexical/code";
|
|
53
|
+
import { AutoLinkNode, LinkNode } from "@lexical/link";
|
|
54
|
+
import { ListItemNode, ListNode } from "@lexical/list";
|
|
55
|
+
import { MarkNode } from "@lexical/mark";
|
|
56
|
+
import { OverflowNode } from "@lexical/overflow";
|
|
57
|
+
import { HorizontalRuleNode } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
58
|
+
import { HeadingNode, QuoteNode } from "@lexical/rich-text";
|
|
59
|
+
import { TableCellNode, TableNode, TableRowNode } from "@lexical/table";
|
|
60
|
+
|
|
61
|
+
// src/components/editor/nodes/LayoutNode/LayoutItemNode.ts
|
|
62
|
+
init_react_shim();
|
|
63
|
+
import { addClassNamesToElement } from "@lexical/utils";
|
|
64
|
+
import { ElementNode } from "lexical";
|
|
65
|
+
function $convertLayoutItemElement() {
|
|
66
|
+
return { node: $createLayoutItemNode() };
|
|
67
|
+
}
|
|
68
|
+
var LayoutItemNode = class _LayoutItemNode extends ElementNode {
|
|
69
|
+
static getType() {
|
|
70
|
+
return "layout-item";
|
|
71
|
+
}
|
|
72
|
+
static clone(node) {
|
|
73
|
+
return new _LayoutItemNode(node.__key);
|
|
74
|
+
}
|
|
75
|
+
createDOM(config) {
|
|
76
|
+
const dom = document.createElement("div");
|
|
77
|
+
dom.setAttribute("data-lexical-layout-item", "true");
|
|
78
|
+
if (typeof config.theme.layoutItem === "string") {
|
|
79
|
+
addClassNamesToElement(dom, config.theme.layoutItem);
|
|
80
|
+
}
|
|
81
|
+
return dom;
|
|
82
|
+
}
|
|
83
|
+
updateDOM() {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
static importDOM() {
|
|
87
|
+
return {
|
|
88
|
+
div: (domNode) => {
|
|
89
|
+
if (!domNode.hasAttribute("data-lexical-layout-item")) {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
conversion: $convertLayoutItemElement,
|
|
94
|
+
priority: 2
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
static importJSON(serializedNode) {
|
|
100
|
+
return $createLayoutItemNode().updateFromJSON(serializedNode);
|
|
101
|
+
}
|
|
102
|
+
isShadowRoot() {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
function $createLayoutItemNode() {
|
|
107
|
+
return new LayoutItemNode();
|
|
108
|
+
}
|
|
109
|
+
function $isLayoutItemNode(node) {
|
|
110
|
+
return node instanceof LayoutItemNode;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// src/components/editor/nodes/LayoutNode/LayoutContainerNode.ts
|
|
114
|
+
init_react_shim();
|
|
115
|
+
import { addClassNamesToElement as addClassNamesToElement2 } from "@lexical/utils";
|
|
116
|
+
import { ElementNode as ElementNode2 } from "lexical";
|
|
117
|
+
function $convertLayoutContainerElement(domNode) {
|
|
118
|
+
const styleAttributes = window.getComputedStyle(domNode);
|
|
119
|
+
const templateColumns = styleAttributes.getPropertyValue(
|
|
120
|
+
"grid-template-columns"
|
|
121
|
+
);
|
|
122
|
+
if (templateColumns) {
|
|
123
|
+
const node = $createLayoutContainerNode(templateColumns);
|
|
124
|
+
return { node };
|
|
125
|
+
}
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
var LayoutContainerNode = class _LayoutContainerNode extends ElementNode2 {
|
|
129
|
+
constructor(templateColumns, key) {
|
|
130
|
+
super(key);
|
|
131
|
+
this.__templateColumns = templateColumns;
|
|
132
|
+
}
|
|
133
|
+
static getType() {
|
|
134
|
+
return "layout-container";
|
|
135
|
+
}
|
|
136
|
+
static clone(node) {
|
|
137
|
+
return new _LayoutContainerNode(node.__templateColumns, node.__key);
|
|
138
|
+
}
|
|
139
|
+
createDOM(config) {
|
|
140
|
+
const dom = document.createElement("div");
|
|
141
|
+
dom.style.gridTemplateColumns = this.__templateColumns;
|
|
142
|
+
if (typeof config.theme.layoutContainer === "string") {
|
|
143
|
+
addClassNamesToElement2(dom, config.theme.layoutContainer);
|
|
144
|
+
}
|
|
145
|
+
return dom;
|
|
146
|
+
}
|
|
147
|
+
exportDOM() {
|
|
148
|
+
const element = document.createElement("div");
|
|
149
|
+
element.style.gridTemplateColumns = this.__templateColumns;
|
|
150
|
+
element.setAttribute("data-lexical-layout-container", "true");
|
|
151
|
+
return { element };
|
|
152
|
+
}
|
|
153
|
+
updateDOM(prevNode, dom) {
|
|
154
|
+
if (prevNode.__templateColumns !== this.__templateColumns) {
|
|
155
|
+
dom.style.gridTemplateColumns = this.__templateColumns;
|
|
156
|
+
}
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
static importDOM() {
|
|
160
|
+
return {
|
|
161
|
+
div: (domNode) => {
|
|
162
|
+
if (!domNode.hasAttribute("data-lexical-layout-container")) {
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
return {
|
|
166
|
+
conversion: $convertLayoutContainerElement,
|
|
167
|
+
priority: 2
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
static importJSON(json) {
|
|
173
|
+
return $createLayoutContainerNode().updateFromJSON(json);
|
|
174
|
+
}
|
|
175
|
+
updateFromJSON(serializedNode) {
|
|
176
|
+
return super.updateFromJSON(serializedNode).setTemplateColumns(serializedNode.templateColumns);
|
|
177
|
+
}
|
|
178
|
+
isShadowRoot() {
|
|
179
|
+
return true;
|
|
180
|
+
}
|
|
181
|
+
canBeEmpty() {
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
exportJSON() {
|
|
185
|
+
return __spreadProps(__spreadValues({}, super.exportJSON()), {
|
|
186
|
+
templateColumns: this.__templateColumns
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
getTemplateColumns() {
|
|
190
|
+
return this.getLatest().__templateColumns;
|
|
191
|
+
}
|
|
192
|
+
setTemplateColumns(templateColumns) {
|
|
193
|
+
const self = this.getWritable();
|
|
194
|
+
self.__templateColumns = templateColumns;
|
|
195
|
+
return self;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
function $createLayoutContainerNode(templateColumns = "") {
|
|
199
|
+
return new LayoutContainerNode(templateColumns);
|
|
200
|
+
}
|
|
201
|
+
function $isLayoutContainerNode(node) {
|
|
202
|
+
return node instanceof LayoutContainerNode;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
// src/components/editor/plugins/LinkWithMetaData/index.tsx
|
|
206
|
+
init_react_shim();
|
|
207
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
208
|
+
import {
|
|
209
|
+
$createParagraphNode,
|
|
210
|
+
$getNodeByKey,
|
|
211
|
+
$getSelection,
|
|
212
|
+
$isRangeSelection,
|
|
213
|
+
COMMAND_PRIORITY_LOW,
|
|
214
|
+
createCommand,
|
|
215
|
+
ElementNode as ElementNode3
|
|
216
|
+
} from "lexical";
|
|
217
|
+
import { $insertNodeToNearestRoot } from "@lexical/utils";
|
|
218
|
+
import { useEffect } from "react";
|
|
219
|
+
var LinkWithMetaDataNode = class _LinkWithMetaDataNode extends ElementNode3 {
|
|
220
|
+
constructor(url, editor, metadata, key) {
|
|
221
|
+
super(key);
|
|
222
|
+
this.__metadata = null;
|
|
223
|
+
this.__url = url ? normalizeUrl(url) : null;
|
|
224
|
+
this.__editor = editor;
|
|
225
|
+
this.__metadata = metadata || (this.__url ? getInitialMetadata(this.__url) : null);
|
|
226
|
+
}
|
|
227
|
+
static clone(node) {
|
|
228
|
+
return new _LinkWithMetaDataNode(
|
|
229
|
+
node.__url,
|
|
230
|
+
node.__editor,
|
|
231
|
+
node.__metadata ? __spreadValues({}, node.__metadata) : null,
|
|
232
|
+
node.__key
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
static importJSON(serializedNode) {
|
|
236
|
+
const node = new _LinkWithMetaDataNode(
|
|
237
|
+
serializedNode.url,
|
|
238
|
+
void 0,
|
|
239
|
+
serializedNode.metadata
|
|
240
|
+
);
|
|
241
|
+
return node;
|
|
242
|
+
}
|
|
243
|
+
exportJSON() {
|
|
244
|
+
return __spreadProps(__spreadValues({}, super.exportJSON()), {
|
|
245
|
+
url: this.__url,
|
|
246
|
+
metadata: this.__metadata,
|
|
247
|
+
type: "link-with-metadata",
|
|
248
|
+
version: 1
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
static getType() {
|
|
252
|
+
return "link-with-metadata";
|
|
253
|
+
}
|
|
254
|
+
isInline() {
|
|
255
|
+
return false;
|
|
256
|
+
}
|
|
257
|
+
canBeEmpty() {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
isKeyboardSelectable() {
|
|
261
|
+
return true;
|
|
262
|
+
}
|
|
263
|
+
setMetadata(metadata) {
|
|
264
|
+
const writable = this.getWritable();
|
|
265
|
+
writable.__metadata = metadata;
|
|
266
|
+
}
|
|
267
|
+
getMetadata() {
|
|
268
|
+
return this.__metadata;
|
|
269
|
+
}
|
|
270
|
+
getUrl() {
|
|
271
|
+
return this.__url;
|
|
272
|
+
}
|
|
273
|
+
createDOM(config, editor) {
|
|
274
|
+
var _a, _b, _c, _d, _e;
|
|
275
|
+
const elementDIV = document.createElement("div");
|
|
276
|
+
elementDIV.className = "notiq-link-card my-3 w-full border border-zinc-200 dark:border-zinc-800 bg-white dark:bg-zinc-900 text-zinc-950 dark:text-zinc-50 shadow-sm hover:shadow-md rounded-xl overflow-hidden cursor-pointer transition-all duration-200 select-none";
|
|
277
|
+
elementDIV.setAttribute("contenteditable", "false");
|
|
278
|
+
const container = document.createElement("div");
|
|
279
|
+
container.className = "flex flex-row w-full justify-between items-stretch min-h-[96px]";
|
|
280
|
+
const leftContainer = document.createElement("div");
|
|
281
|
+
leftContainer.className = "flex flex-col flex-1 justify-between p-3.5 sm:p-4 min-w-0";
|
|
282
|
+
const topSection = document.createElement("div");
|
|
283
|
+
topSection.className = "space-y-1";
|
|
284
|
+
const titleLink = document.createElement("a");
|
|
285
|
+
titleLink.className = "font-semibold text-sm sm:text-base text-zinc-900 dark:text-zinc-100 line-clamp-1 truncate block hover:underline";
|
|
286
|
+
titleLink.href = this.__url || "#";
|
|
287
|
+
titleLink.target = "_blank";
|
|
288
|
+
titleLink.rel = "noopener noreferrer";
|
|
289
|
+
titleLink.textContent = ((_a = this.__metadata) == null ? void 0 : _a.title) || this.__url || "No URL provided";
|
|
290
|
+
topSection.appendChild(titleLink);
|
|
291
|
+
const descriptionSmall = document.createElement("p");
|
|
292
|
+
descriptionSmall.className = "text-xs sm:text-sm text-zinc-500 dark:text-zinc-400 line-clamp-2 mt-1 break-words leading-relaxed";
|
|
293
|
+
descriptionSmall.textContent = ((_b = this.__metadata) == null ? void 0 : _b.description) || "Loading preview...";
|
|
294
|
+
topSection.appendChild(descriptionSmall);
|
|
295
|
+
leftContainer.appendChild(topSection);
|
|
296
|
+
const footer = document.createElement("div");
|
|
297
|
+
footer.className = "flex items-center gap-2 mt-3 text-xs text-zinc-400 dark:text-zinc-500";
|
|
298
|
+
const favicon = document.createElement("img");
|
|
299
|
+
favicon.className = "w-4 h-4 rounded-sm object-contain";
|
|
300
|
+
favicon.src = ((_c = this.__metadata) == null ? void 0 : _c.logo) || (this.__url ? `https://www.google.com/s2/favicons?domain=${new URL(this.__url).hostname}&sz=64` : "/favicon.ico");
|
|
301
|
+
favicon.alt = "";
|
|
302
|
+
footer.appendChild(favicon);
|
|
303
|
+
const sourceText = document.createElement("span");
|
|
304
|
+
sourceText.className = "font-medium truncate";
|
|
305
|
+
sourceText.textContent = ((_d = this.__metadata) == null ? void 0 : _d.website) || (this.__url ? new URL(this.__url).hostname : "");
|
|
306
|
+
footer.appendChild(sourceText);
|
|
307
|
+
leftContainer.appendChild(footer);
|
|
308
|
+
container.appendChild(leftContainer);
|
|
309
|
+
const rightContainer = document.createElement("div");
|
|
310
|
+
rightContainer.className = "link-card-thumbnail w-32 sm:w-44 shrink-0 bg-zinc-100 dark:bg-zinc-800 overflow-hidden flex items-center justify-center";
|
|
311
|
+
if ((_e = this.__metadata) == null ? void 0 : _e.image) {
|
|
312
|
+
const image = document.createElement("img");
|
|
313
|
+
image.src = this.__metadata.image;
|
|
314
|
+
image.alt = this.__metadata.title || "Link preview";
|
|
315
|
+
image.className = "w-full h-full object-cover";
|
|
316
|
+
rightContainer.appendChild(image);
|
|
317
|
+
} else {
|
|
318
|
+
rightContainer.style.display = "none";
|
|
319
|
+
}
|
|
320
|
+
container.appendChild(rightContainer);
|
|
321
|
+
elementDIV.appendChild(container);
|
|
322
|
+
elementDIV.addEventListener("click", (e) => {
|
|
323
|
+
if (e.target.tagName.toLowerCase() !== "a" && this.__url) {
|
|
324
|
+
window.open(this.__url, "_blank", "noopener,noreferrer");
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
const currentEditor = editor || this.__editor;
|
|
328
|
+
if (this.__url && currentEditor) {
|
|
329
|
+
const nodeKey = this.getKey();
|
|
330
|
+
fetchMetadata(this.__url).then((metadata) => {
|
|
331
|
+
currentEditor.update(() => {
|
|
332
|
+
const node = $getNodeByKey(nodeKey);
|
|
333
|
+
if ($isLinkNode(node)) {
|
|
334
|
+
node.setMetadata(metadata);
|
|
335
|
+
}
|
|
336
|
+
});
|
|
337
|
+
}).catch((error) => {
|
|
338
|
+
console.error("Error fetching link metadata:", error);
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
return elementDIV;
|
|
342
|
+
}
|
|
343
|
+
updateDOM(prevNode, dom) {
|
|
344
|
+
var _a, _b, _c, _d, _e;
|
|
345
|
+
if (this.__metadata !== prevNode.__metadata || this.__url !== prevNode.__url) {
|
|
346
|
+
const titleLink = dom.querySelector("a");
|
|
347
|
+
const descriptionSmall = dom.querySelector("p");
|
|
348
|
+
const sourceSmall = dom.querySelector("span");
|
|
349
|
+
const favicon = dom.querySelector("img[alt='']");
|
|
350
|
+
const thumbContainer = dom.querySelector(
|
|
351
|
+
".link-card-thumbnail"
|
|
352
|
+
);
|
|
353
|
+
if (titleLink) {
|
|
354
|
+
titleLink.href = this.__url || "#";
|
|
355
|
+
titleLink.textContent = ((_a = this.__metadata) == null ? void 0 : _a.title) || this.__url || "No URL provided";
|
|
356
|
+
}
|
|
357
|
+
if (descriptionSmall) {
|
|
358
|
+
descriptionSmall.textContent = ((_b = this.__metadata) == null ? void 0 : _b.description) || "Loading preview...";
|
|
359
|
+
}
|
|
360
|
+
if (sourceSmall) {
|
|
361
|
+
sourceSmall.textContent = ((_c = this.__metadata) == null ? void 0 : _c.website) || (this.__url ? new URL(this.__url).hostname : "");
|
|
362
|
+
}
|
|
363
|
+
if (favicon && ((_d = this.__metadata) == null ? void 0 : _d.logo)) {
|
|
364
|
+
favicon.src = this.__metadata.logo;
|
|
365
|
+
}
|
|
366
|
+
if (thumbContainer) {
|
|
367
|
+
if ((_e = this.__metadata) == null ? void 0 : _e.image) {
|
|
368
|
+
thumbContainer.style.display = "";
|
|
369
|
+
let image = thumbContainer.querySelector("img");
|
|
370
|
+
if (!image) {
|
|
371
|
+
image = document.createElement("img");
|
|
372
|
+
image.className = "w-full h-full object-cover";
|
|
373
|
+
thumbContainer.appendChild(image);
|
|
374
|
+
}
|
|
375
|
+
image.src = this.__metadata.image;
|
|
376
|
+
image.alt = this.__metadata.title || "Link preview";
|
|
377
|
+
} else {
|
|
378
|
+
thumbContainer.style.display = "none";
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
return true;
|
|
382
|
+
}
|
|
383
|
+
return false;
|
|
384
|
+
}
|
|
385
|
+
exportDOM(editor) {
|
|
386
|
+
const element = this.createDOM(void 0, editor);
|
|
387
|
+
return { element };
|
|
388
|
+
}
|
|
389
|
+
};
|
|
390
|
+
function $createLinkNode(url, editor, metadata) {
|
|
391
|
+
return new LinkWithMetaDataNode(url, editor, metadata);
|
|
392
|
+
}
|
|
393
|
+
function $isLinkNode(node) {
|
|
394
|
+
return node instanceof LinkWithMetaDataNode;
|
|
395
|
+
}
|
|
396
|
+
var TOGGLE_LINK_COMMAND_LinkWithMetaDataNode = createCommand("toggleLinkWithMetadata");
|
|
397
|
+
function LinkWithMetaDataPlugin() {
|
|
398
|
+
const [editor] = useLexicalComposerContext();
|
|
399
|
+
useEffect(() => {
|
|
400
|
+
if (!editor.hasNodes([LinkWithMetaDataNode])) {
|
|
401
|
+
throw new Error(
|
|
402
|
+
"LinkWithMetaDataPlugin: LinkWithMetaDataNode not registered on editor"
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
}, [editor]);
|
|
406
|
+
useEffect(() => {
|
|
407
|
+
return editor.registerCommand(
|
|
408
|
+
TOGGLE_LINK_COMMAND_LinkWithMetaDataNode,
|
|
409
|
+
(payload) => {
|
|
410
|
+
if (!payload) return false;
|
|
411
|
+
const rawUrl = typeof payload === "string" ? payload : payload.url;
|
|
412
|
+
if (!rawUrl) return false;
|
|
413
|
+
const normalized = normalizeUrl(rawUrl);
|
|
414
|
+
const selection = $getSelection();
|
|
415
|
+
if ($isRangeSelection(selection)) {
|
|
416
|
+
const anchor = selection.anchor.getNode();
|
|
417
|
+
const topLevel = anchor.getTopLevelElement();
|
|
418
|
+
const initialMeta = typeof payload === "object" && payload.metadata ? payload.metadata : getInitialMetadata(normalized);
|
|
419
|
+
const linkNode = $createLinkNode(normalized, editor, initialMeta);
|
|
420
|
+
if (topLevel && topLevel.getTextContent().trim() === "") {
|
|
421
|
+
topLevel.replace(linkNode);
|
|
422
|
+
} else {
|
|
423
|
+
$insertNodeToNearestRoot(linkNode);
|
|
424
|
+
}
|
|
425
|
+
const p = $createParagraphNode();
|
|
426
|
+
linkNode.insertAfter(p);
|
|
427
|
+
p.select();
|
|
428
|
+
const nodeKey = linkNode.getKey();
|
|
429
|
+
fetchMetadata(normalized).then((meta) => {
|
|
430
|
+
editor.update(() => {
|
|
431
|
+
const node = $getNodeByKey(nodeKey);
|
|
432
|
+
if ($isLinkNode(node)) {
|
|
433
|
+
node.setMetadata(meta);
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
return true;
|
|
439
|
+
},
|
|
440
|
+
COMMAND_PRIORITY_LOW
|
|
441
|
+
);
|
|
442
|
+
}, [editor]);
|
|
443
|
+
return null;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// src/components/editor/plugins/StoryBuilderPlugin/index.tsx
|
|
447
|
+
init_react_shim();
|
|
448
|
+
import { useLexicalComposerContext as useLexicalComposerContext2 } from "@lexical/react/LexicalComposerContext";
|
|
449
|
+
import { $wrapNodeInElement } from "@lexical/utils";
|
|
450
|
+
import {
|
|
451
|
+
$createParagraphNode as $createParagraphNode2,
|
|
452
|
+
$insertNodes,
|
|
453
|
+
$isRootOrShadowRoot,
|
|
454
|
+
COMMAND_PRIORITY_EDITOR,
|
|
455
|
+
createCommand as createCommand2
|
|
456
|
+
} from "lexical";
|
|
457
|
+
import { useEffect as useEffect2 } from "react";
|
|
458
|
+
var INSERT_STORY_BUILDER_COMMAND = createCommand2("INSERT_STORY_BUILDER_COMMAND");
|
|
459
|
+
function StoryBuilderPlugin() {
|
|
460
|
+
const [editor] = useLexicalComposerContext2();
|
|
461
|
+
useEffect2(() => {
|
|
462
|
+
if (!editor.hasNodes([StoryBuilderNode])) {
|
|
463
|
+
throw new Error("StoryBuilderPlugin: StoryBuilderNode not registered on editor");
|
|
464
|
+
}
|
|
465
|
+
return editor.registerCommand(
|
|
466
|
+
INSERT_STORY_BUILDER_COMMAND,
|
|
467
|
+
(payload) => {
|
|
468
|
+
const storyBuilderNode = $createStoryBuilderNode(payload);
|
|
469
|
+
$insertNodes([storyBuilderNode]);
|
|
470
|
+
if ($isRootOrShadowRoot(storyBuilderNode.getParentOrThrow())) {
|
|
471
|
+
$wrapNodeInElement(storyBuilderNode, $createParagraphNode2).selectEnd();
|
|
472
|
+
}
|
|
473
|
+
return true;
|
|
474
|
+
},
|
|
475
|
+
COMMAND_PRIORITY_EDITOR
|
|
476
|
+
);
|
|
477
|
+
}, [editor]);
|
|
478
|
+
return null;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
// src/components/editor/nodes/index.ts
|
|
482
|
+
var nodes = [
|
|
483
|
+
HeadingNode,
|
|
484
|
+
ListNode,
|
|
485
|
+
ListItemNode,
|
|
486
|
+
QuoteNode,
|
|
487
|
+
CodeNode,
|
|
488
|
+
TableNode,
|
|
489
|
+
TableCellNode,
|
|
490
|
+
TableRowNode,
|
|
491
|
+
CodeHighlightNode,
|
|
492
|
+
StepperNode,
|
|
493
|
+
AutoLinkNode,
|
|
494
|
+
YouTubeNode,
|
|
495
|
+
Hint,
|
|
496
|
+
TweetNode,
|
|
497
|
+
LinkNode,
|
|
498
|
+
OverflowNode,
|
|
499
|
+
HorizontalRuleNode,
|
|
500
|
+
MarkNode,
|
|
501
|
+
ImageNode,
|
|
502
|
+
PollNode,
|
|
503
|
+
LayoutItemNode,
|
|
504
|
+
LayoutContainerNode,
|
|
505
|
+
CollapsibleContainerNode,
|
|
506
|
+
CollapsibleContentNode,
|
|
507
|
+
CollapsibleTitleNode,
|
|
508
|
+
LinkWithMetaDataNode,
|
|
509
|
+
InlineImageNode,
|
|
510
|
+
ExcalidrawNode,
|
|
511
|
+
FigmaNode,
|
|
512
|
+
EquationNode,
|
|
513
|
+
StoryBuilderNode,
|
|
514
|
+
DynamicBlockNode,
|
|
515
|
+
AudioNode,
|
|
516
|
+
FileNode
|
|
517
|
+
];
|
|
518
|
+
var nestedNodes = [
|
|
519
|
+
HeadingNode,
|
|
520
|
+
ListNode,
|
|
521
|
+
ListItemNode,
|
|
522
|
+
LinkNode,
|
|
523
|
+
CodeHighlightNode,
|
|
524
|
+
QuoteNode,
|
|
525
|
+
CodeNode,
|
|
526
|
+
LinkWithMetaDataNode,
|
|
527
|
+
ImageNode,
|
|
528
|
+
InlineImageNode,
|
|
529
|
+
ExcalidrawNode,
|
|
530
|
+
FigmaNode,
|
|
531
|
+
EquationNode,
|
|
532
|
+
StoryBuilderNode,
|
|
533
|
+
DynamicBlockNode,
|
|
534
|
+
AudioNode,
|
|
535
|
+
FileNode
|
|
536
|
+
];
|
|
537
|
+
var nodes_default = nodes;
|
|
538
|
+
|
|
539
|
+
// src/components/providers/AIContext.tsx
|
|
540
|
+
init_react_shim();
|
|
541
|
+
import React2, { createContext, useContext } from "react";
|
|
542
|
+
import { jsx } from "react/jsx-runtime";
|
|
543
|
+
var AIContext = createContext({
|
|
544
|
+
apiEndpoint: "/api/ai"
|
|
545
|
+
});
|
|
546
|
+
var useAI = () => useContext(AIContext);
|
|
547
|
+
var AIProvider = ({
|
|
548
|
+
config,
|
|
549
|
+
children
|
|
550
|
+
}) => {
|
|
551
|
+
const value = React2.useMemo(() => ({
|
|
552
|
+
apiEndpoint: (config == null ? void 0 : config.apiEndpoint) || "/api/ai",
|
|
553
|
+
writingStyle: config == null ? void 0 : config.writingStyle,
|
|
554
|
+
styleGuide: config == null ? void 0 : config.styleGuide
|
|
555
|
+
}), [config]);
|
|
556
|
+
return /* @__PURE__ */ jsx(AIContext.Provider, { value, children });
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
export {
|
|
560
|
+
LayoutItemNode,
|
|
561
|
+
$createLayoutItemNode,
|
|
562
|
+
$isLayoutItemNode,
|
|
563
|
+
LayoutContainerNode,
|
|
564
|
+
$createLayoutContainerNode,
|
|
565
|
+
$isLayoutContainerNode,
|
|
566
|
+
TOGGLE_LINK_COMMAND_LinkWithMetaDataNode,
|
|
567
|
+
LinkWithMetaDataPlugin,
|
|
568
|
+
INSERT_STORY_BUILDER_COMMAND,
|
|
569
|
+
StoryBuilderPlugin,
|
|
570
|
+
nestedNodes,
|
|
571
|
+
nodes_default,
|
|
572
|
+
useAI,
|
|
573
|
+
AIProvider
|
|
574
|
+
};
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-H3P47YXJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
Button
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ONOHG5NB.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cn
|
|
14
14
|
} from "./chunk-JHXDLYEV.mjs";
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
// src/components/ui/excalidraw/ExcalidrawModal.tsx
|
|
20
20
|
init_react_shim();
|
|
21
21
|
import "@excalidraw/excalidraw/index.css";
|
|
22
|
-
import { Excalidraw } from "@excalidraw/excalidraw";
|
|
23
22
|
import { isDOMNode } from "lexical";
|
|
24
23
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
25
24
|
import { createPortal } from "react-dom";
|
|
@@ -89,6 +88,20 @@ function ExcalidrawModal({
|
|
|
89
88
|
const [files, setFiles] = useState(initialFiles);
|
|
90
89
|
const [hasUnsavedChanges, setHasUnsavedChanges] = useState(false);
|
|
91
90
|
const [isFullscreen, setIsFullscreen] = useState(false);
|
|
91
|
+
const [ExcalidrawComponent, setExcalidrawComponent] = useState(null);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
let mounted = true;
|
|
94
|
+
if (typeof window !== "undefined" && isShown) {
|
|
95
|
+
import("@excalidraw/excalidraw").then((mod) => {
|
|
96
|
+
if (mounted) {
|
|
97
|
+
setExcalidrawComponent(() => mod.Excalidraw);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return () => {
|
|
102
|
+
mounted = false;
|
|
103
|
+
};
|
|
104
|
+
}, [isShown]);
|
|
92
105
|
const { resolvedTheme } = useTheme();
|
|
93
106
|
const isDarkMode = resolvedTheme === "dark";
|
|
94
107
|
const isExistingDrawing = useMemo(
|
|
@@ -326,8 +339,8 @@ function ExcalidrawModal({
|
|
|
326
339
|
)
|
|
327
340
|
] })
|
|
328
341
|
] }),
|
|
329
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 w-full h-full overflow-hidden bg-background relative", children: /* @__PURE__ */ jsx(
|
|
330
|
-
|
|
342
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 w-full h-full overflow-hidden bg-background relative", children: ExcalidrawComponent ? /* @__PURE__ */ jsx(
|
|
343
|
+
ExcalidrawComponent,
|
|
331
344
|
{
|
|
332
345
|
onChange,
|
|
333
346
|
excalidrawAPI: setExcalidrawAPI,
|
|
@@ -348,7 +361,7 @@ function ExcalidrawModal({
|
|
|
348
361
|
}
|
|
349
362
|
}
|
|
350
363
|
}
|
|
351
|
-
) }),
|
|
364
|
+
) : /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-full text-sm text-muted-foreground", children: "Loading drawing canvas..." }) }),
|
|
352
365
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t border-border bg-muted/40 px-5 py-3", children: [
|
|
353
366
|
/* @__PURE__ */ jsxs("div", { className: "hidden sm:flex items-center space-x-2 text-xs text-muted-foreground", children: [
|
|
354
367
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1", children: [
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CollapsibleContainerNode,
|
|
3
|
-
CollapsibleTitleNode
|
|
4
|
-
} from "./chunk-4DVIYZVB.mjs";
|
|
5
1
|
import {
|
|
6
2
|
$createStepperNode,
|
|
3
|
+
CollapsibleContainerNode,
|
|
4
|
+
CollapsibleTitleNode,
|
|
7
5
|
NOTIQ_TRANSFORMERS
|
|
8
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QCS57TIF.mjs";
|
|
9
7
|
import {
|
|
10
8
|
__spreadProps,
|
|
11
9
|
__spreadValues,
|