@notmrabhi/flowforge 0.1.21 → 0.1.23
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/GatewayBranchEdge-9YF32wwN.js +1 -0
- package/dist/GatewayBranchEdge-Dxoy5B1A.js +1264 -0
- package/dist/SchemaBuilderDrawer-157p-2Vj.js +1136 -0
- package/dist/SchemaBuilderDrawer-Wje7pVrn.js +1 -0
- package/dist/bpmn-CcuE2X_Q.js +2 -0
- package/dist/bpmn-CtfWDaOY.js +33 -0
- package/dist/canvas.cjs +1 -0
- package/dist/canvas.d.ts +809 -0
- package/dist/canvas.js +28 -0
- package/dist/canvasTokens-CAD6G24b.js +32 -0
- package/dist/canvasTokens-gKNYrPl4.js +1 -0
- package/dist/core.cjs +1 -0
- package/dist/core.d.ts +374 -0
- package/dist/core.js +24 -0
- package/dist/defaultUi.cjs +1 -0
- package/dist/defaultUi.d.ts +83 -0
- package/dist/defaultUi.js +18 -0
- package/dist/form.cjs +1 -0
- package/dist/form.d.ts +857 -0
- package/dist/form.js +44 -0
- package/dist/index-B31-Y5uO.js +11 -0
- package/dist/index-B3aHpb84.js +13 -0
- package/dist/index-BU09HbVh.js +10176 -0
- package/dist/index-BnzttJ4w.js +13758 -0
- package/dist/index-BysKSEtZ.js +1 -0
- package/dist/index-CQ0cVcHp.js +2 -0
- package/dist/index-CkjEllpd.js +1 -0
- package/dist/index-Codx5QwP.js +41 -0
- package/dist/index-Cw9DC-tf.js +76 -0
- package/dist/index-CzPi8KQC.js +1310 -0
- package/dist/index-D14V8rKX.js +1 -0
- package/dist/index-Da5NHCS2.js +8132 -0
- package/dist/index-a1IOaYsW.js +9 -0
- package/dist/index-a3QMaedZ.js +2553 -0
- package/dist/index-gtgq_241.js +3 -0
- package/dist/index-l6kvDx-m.js +1360 -0
- package/dist/index-lcviy90e.js +613 -0
- package/dist/index-wOnYb3DO.js +567 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +1409 -0
- package/dist/index.js +107 -0
- package/dist/messages-CO299wPN.js +22 -0
- package/dist/messages-O9Tw_XXR.js +1 -0
- package/dist/nodeRegistry.cjs +1 -0
- package/dist/nodeRegistry.d.ts +334 -0
- package/dist/nodeRegistry.js +555 -0
- package/dist/style.css +6 -0
- package/dist/templateRegistry.cjs +1 -0
- package/dist/templateRegistry.d.ts +83 -0
- package/dist/templateRegistry.js +43 -0
- package/dist/templateSkeletons-D2ecxpVH.js +2954 -0
- package/dist/templateSkeletons-D5dYuslG.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,555 @@
|
|
|
1
|
+
import a from "react";
|
|
2
|
+
import { MdPlayCircleOutline as s, MdStopCircle as p, MdHttp as c, MdNotifications as u, MdCallSplit as b, MdWebhook as n, MdAccountTree as h } from "react-icons/md";
|
|
3
|
+
import { N as d } from "./canvasTokens-CAD6G24b.js";
|
|
4
|
+
const m = {
|
|
5
|
+
formSchema: [],
|
|
6
|
+
bpmnEntry: (e) => e,
|
|
7
|
+
bpmnExit: (e) => e,
|
|
8
|
+
emitBpmnElements: (e) => [{ id: e, $type: "bpmn:Task" }]
|
|
9
|
+
};
|
|
10
|
+
function r(e) {
|
|
11
|
+
return { ...m, ...e };
|
|
12
|
+
}
|
|
13
|
+
const T = r({
|
|
14
|
+
type: "startEvent",
|
|
15
|
+
label: "Start",
|
|
16
|
+
icon: a.createElement(s, { size: 18, color: "#616161" }),
|
|
17
|
+
matches: (e) => e === "start",
|
|
18
|
+
reactFlowType: "startNode",
|
|
19
|
+
emitBpmnElements: (e) => [{ id: e, $type: "bpmn:StartEvent" }],
|
|
20
|
+
maxPerWorkflow: 1
|
|
21
|
+
}), v = r({
|
|
22
|
+
type: "endEvent",
|
|
23
|
+
label: "End",
|
|
24
|
+
icon: a.createElement(p, { size: 18, color: "#616161" }),
|
|
25
|
+
matches: (e) => e === "end" || e.startsWith("end-"),
|
|
26
|
+
reactFlowType: "endNode",
|
|
27
|
+
emitBpmnElements: (e) => [{ id: e, $type: "bpmn:EndEvent" }]
|
|
28
|
+
}), S = r({
|
|
29
|
+
type: "restApi",
|
|
30
|
+
label: "REST API Call",
|
|
31
|
+
icon: a.createElement(c, { size: 18, color: "#546e7a" }),
|
|
32
|
+
matches: (e) => e.startsWith("restApi-"),
|
|
33
|
+
reactFlowType: "restApiNode",
|
|
34
|
+
formSchema: [
|
|
35
|
+
{
|
|
36
|
+
id: "method",
|
|
37
|
+
type: "select",
|
|
38
|
+
label: "HTTP Method",
|
|
39
|
+
required: !0,
|
|
40
|
+
options: [
|
|
41
|
+
{ label: "GET", value: "GET" },
|
|
42
|
+
{ label: "POST", value: "POST" },
|
|
43
|
+
{ label: "PUT", value: "PUT" },
|
|
44
|
+
{ label: "PATCH", value: "PATCH" },
|
|
45
|
+
{ label: "DELETE", value: "DELETE" }
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: "url",
|
|
50
|
+
type: "text",
|
|
51
|
+
label: "URL",
|
|
52
|
+
required: !0,
|
|
53
|
+
placeholder: "https://api.example.com/endpoint",
|
|
54
|
+
formulaEnabled: !0
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: "headers",
|
|
58
|
+
type: "key-value",
|
|
59
|
+
label: "Request Headers",
|
|
60
|
+
placeholder: "Add headers..."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "queryParams",
|
|
64
|
+
type: "key-value",
|
|
65
|
+
label: "Query Parameters",
|
|
66
|
+
shouldHide: ({ values: e }) => e.method !== "GET" && e.method !== "DELETE"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "body",
|
|
70
|
+
type: "json-editor",
|
|
71
|
+
label: "Request Body (JSON)",
|
|
72
|
+
shouldHide: ({ values: e }) => e.method === "GET" || e.method === "DELETE"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "responseMapping",
|
|
76
|
+
type: "array",
|
|
77
|
+
label: "Map Response Fields to Variables",
|
|
78
|
+
children: [
|
|
79
|
+
{
|
|
80
|
+
id: "jsonPath",
|
|
81
|
+
type: "text",
|
|
82
|
+
label: "JSON Path",
|
|
83
|
+
placeholder: "$.data.userId",
|
|
84
|
+
required: !0
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "variableName",
|
|
88
|
+
type: "text",
|
|
89
|
+
label: "Variable Name",
|
|
90
|
+
placeholder: "userId",
|
|
91
|
+
required: !0
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: "timeoutMs",
|
|
97
|
+
type: "number",
|
|
98
|
+
label: "Timeout (ms)",
|
|
99
|
+
placeholder: "5000"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "continueOnError",
|
|
103
|
+
type: "toggle",
|
|
104
|
+
label: "Continue workflow on error"
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
bpmnEntry: (e) => `REST API Call: ${e}`,
|
|
108
|
+
bpmnExit: (e) => `End REST API Call: ${e}`,
|
|
109
|
+
emitBpmnElements: (e, t) => {
|
|
110
|
+
const l = t;
|
|
111
|
+
return [{
|
|
112
|
+
id: e,
|
|
113
|
+
$type: "bpmn:ServiceTask",
|
|
114
|
+
name: `${l.method ?? "HTTP"} ${l.url ?? ""}`.trim()
|
|
115
|
+
}];
|
|
116
|
+
}
|
|
117
|
+
}), x = r({
|
|
118
|
+
type: "notification",
|
|
119
|
+
label: "Send Notification",
|
|
120
|
+
icon: a.createElement(u, { size: 18, color: "#7b1fa2" }),
|
|
121
|
+
matches: (e) => e.startsWith("notification-"),
|
|
122
|
+
reactFlowType: "notificationNode",
|
|
123
|
+
formSchema: [
|
|
124
|
+
{
|
|
125
|
+
id: "channel",
|
|
126
|
+
type: "descriptive-select",
|
|
127
|
+
label: "Notification Channel",
|
|
128
|
+
required: !0,
|
|
129
|
+
options: [
|
|
130
|
+
{ value: "email", label: "Email", description: "Send via SMTP or email provider" },
|
|
131
|
+
{ value: "slack", label: "Slack", description: "Post to a Slack channel or DM" },
|
|
132
|
+
{ value: "teams", label: "Microsoft Teams", description: "Post to a Teams channel or chat" },
|
|
133
|
+
{ value: "sms", label: "SMS", description: "Send a text message" },
|
|
134
|
+
{ value: "in-app", label: "In-App", description: "miniOrange notification center" },
|
|
135
|
+
{ value: "webhook", label: "Webhook", description: "POST to an external URL" }
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
// ── Email fields ──────────────────────────────────────────────────────────
|
|
139
|
+
{
|
|
140
|
+
id: "emailTo",
|
|
141
|
+
type: "tags",
|
|
142
|
+
label: "To",
|
|
143
|
+
placeholder: "Add email address...",
|
|
144
|
+
required: !0,
|
|
145
|
+
shouldHide: ({ values: e }) => e.channel !== "email",
|
|
146
|
+
formulaEnabled: !0
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: "emailCc",
|
|
150
|
+
type: "tags",
|
|
151
|
+
label: "CC",
|
|
152
|
+
placeholder: "Add email address...",
|
|
153
|
+
shouldHide: ({ values: e }) => e.channel !== "email"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
id: "emailSubject",
|
|
157
|
+
type: "text",
|
|
158
|
+
label: "Subject",
|
|
159
|
+
required: !0,
|
|
160
|
+
formulaEnabled: !0,
|
|
161
|
+
shouldHide: ({ values: e }) => e.channel !== "email"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "emailBody",
|
|
165
|
+
type: "rich-text",
|
|
166
|
+
label: "Body",
|
|
167
|
+
required: !0,
|
|
168
|
+
shouldHide: ({ values: e }) => e.channel !== "email"
|
|
169
|
+
},
|
|
170
|
+
// ── Slack fields ──────────────────────────────────────────────────────────
|
|
171
|
+
{
|
|
172
|
+
id: "slackChannel",
|
|
173
|
+
type: "text",
|
|
174
|
+
label: "Channel / DM",
|
|
175
|
+
required: !0,
|
|
176
|
+
placeholder: "#general or @username",
|
|
177
|
+
formulaEnabled: !0,
|
|
178
|
+
shouldHide: ({ values: e }) => e.channel !== "slack"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "slackMessage",
|
|
182
|
+
type: "textarea",
|
|
183
|
+
label: "Message",
|
|
184
|
+
required: !0,
|
|
185
|
+
formulaEnabled: !0,
|
|
186
|
+
shouldHide: ({ values: e }) => e.channel !== "slack"
|
|
187
|
+
},
|
|
188
|
+
// ── Teams fields ──────────────────────────────────────────────────────────
|
|
189
|
+
{
|
|
190
|
+
id: "teamsWebhookUrl",
|
|
191
|
+
type: "text",
|
|
192
|
+
label: "Incoming Webhook URL",
|
|
193
|
+
required: !0,
|
|
194
|
+
placeholder: "https://...",
|
|
195
|
+
shouldHide: ({ values: e }) => e.channel !== "teams"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
id: "teamsMessage",
|
|
199
|
+
type: "textarea",
|
|
200
|
+
label: "Message",
|
|
201
|
+
required: !0,
|
|
202
|
+
formulaEnabled: !0,
|
|
203
|
+
shouldHide: ({ values: e }) => e.channel !== "teams"
|
|
204
|
+
},
|
|
205
|
+
// ── SMS fields ────────────────────────────────────────────────────────────
|
|
206
|
+
{
|
|
207
|
+
id: "smsTo",
|
|
208
|
+
type: "text",
|
|
209
|
+
label: "Phone Number",
|
|
210
|
+
required: !0,
|
|
211
|
+
placeholder: "+1234567890",
|
|
212
|
+
formulaEnabled: !0,
|
|
213
|
+
shouldHide: ({ values: e }) => e.channel !== "sms"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: "smsBody",
|
|
217
|
+
type: "textarea",
|
|
218
|
+
label: "Message",
|
|
219
|
+
required: !0,
|
|
220
|
+
formulaEnabled: !0,
|
|
221
|
+
shouldHide: ({ values: e }) => e.channel !== "sms"
|
|
222
|
+
},
|
|
223
|
+
// ── In-App fields ─────────────────────────────────────────────────────────
|
|
224
|
+
{
|
|
225
|
+
id: "inAppRecipient",
|
|
226
|
+
type: "text",
|
|
227
|
+
label: "Recipient (User ID or Username)",
|
|
228
|
+
required: !0,
|
|
229
|
+
formulaEnabled: !0,
|
|
230
|
+
shouldHide: ({ values: e }) => e.channel !== "in-app"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
id: "inAppTitle",
|
|
234
|
+
type: "text",
|
|
235
|
+
label: "Title",
|
|
236
|
+
required: !0,
|
|
237
|
+
formulaEnabled: !0,
|
|
238
|
+
shouldHide: ({ values: e }) => e.channel !== "in-app"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: "inAppBody",
|
|
242
|
+
type: "textarea",
|
|
243
|
+
label: "Message",
|
|
244
|
+
required: !0,
|
|
245
|
+
formulaEnabled: !0,
|
|
246
|
+
shouldHide: ({ values: e }) => e.channel !== "in-app"
|
|
247
|
+
},
|
|
248
|
+
// ── Webhook fields ────────────────────────────────────────────────────────
|
|
249
|
+
{
|
|
250
|
+
id: "webhookUrl",
|
|
251
|
+
type: "text",
|
|
252
|
+
label: "Webhook URL",
|
|
253
|
+
required: !0,
|
|
254
|
+
placeholder: "https://...",
|
|
255
|
+
formulaEnabled: !0,
|
|
256
|
+
shouldHide: ({ values: e }) => e.channel !== "webhook"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
id: "webhookPayload",
|
|
260
|
+
type: "json-editor",
|
|
261
|
+
label: "Payload (JSON)",
|
|
262
|
+
shouldHide: ({ values: e }) => e.channel !== "webhook"
|
|
263
|
+
},
|
|
264
|
+
// ── Shared options ────────────────────────────────────────────────────────
|
|
265
|
+
{
|
|
266
|
+
id: "sendOnFailure",
|
|
267
|
+
type: "toggle",
|
|
268
|
+
label: "Also send notification on workflow failure"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
id: "deduplicationKey",
|
|
272
|
+
type: "text",
|
|
273
|
+
label: "Deduplication Key",
|
|
274
|
+
placeholder: "Optional — prevents duplicate sends",
|
|
275
|
+
formulaEnabled: !0
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
bpmnEntry: (e) => `Send Notification: ${e}`,
|
|
279
|
+
bpmnExit: (e) => `End Notification: ${e}`,
|
|
280
|
+
emitBpmnElements: (e, t) => [{ id: e, $type: "bpmn:SendTask", name: `Notify via ${t.channel ?? "channel"}` }]
|
|
281
|
+
}), y = [
|
|
282
|
+
{ label: "equals (=)", value: "eq" },
|
|
283
|
+
{ label: "not equals (≠)", value: "neq" },
|
|
284
|
+
{ label: "greater than (>)", value: "gt" },
|
|
285
|
+
{ label: "greater or equal (≥)", value: "gte" },
|
|
286
|
+
{ label: "less than (<)", value: "lt" },
|
|
287
|
+
{ label: "less or equal (≤)", value: "lte" },
|
|
288
|
+
{ label: "contains", value: "contains" },
|
|
289
|
+
{ label: "starts with", value: "startsWith" },
|
|
290
|
+
{ label: "ends with", value: "endsWith" },
|
|
291
|
+
{ label: "is empty", value: "isEmpty" },
|
|
292
|
+
{ label: "is not empty", value: "isNotEmpty" }
|
|
293
|
+
], q = r({
|
|
294
|
+
type: "conditionBranch",
|
|
295
|
+
label: "Condition Branch",
|
|
296
|
+
icon: a.createElement(b, { size: 18, color: "#512da8" }),
|
|
297
|
+
matches: (e) => e.startsWith("conditionBranch-"),
|
|
298
|
+
reactFlowType: "conditionBranchNode",
|
|
299
|
+
/** Initial branch labels — canvas uses these keys to initialise BranchMap on insert.
|
|
300
|
+
* Pre-seeded as Workato-style IF / ELSE IF / ELSE chain. */
|
|
301
|
+
branchLabels: { branch1: "IF · Branch 1", branch2: "ELSE IF · Branch 2", default: "ELSE" },
|
|
302
|
+
formSchema: [
|
|
303
|
+
{
|
|
304
|
+
id: "title",
|
|
305
|
+
type: "text",
|
|
306
|
+
label: "Node Label",
|
|
307
|
+
placeholder: "e.g. Route by User Role"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
id: "branchConfigs",
|
|
311
|
+
type: "array",
|
|
312
|
+
label: "Branches",
|
|
313
|
+
required: !0,
|
|
314
|
+
children: [
|
|
315
|
+
{
|
|
316
|
+
id: "kind",
|
|
317
|
+
type: "select",
|
|
318
|
+
label: "Branch Type",
|
|
319
|
+
required: !0,
|
|
320
|
+
options: [
|
|
321
|
+
{ label: "IF", value: "if" },
|
|
322
|
+
{ label: "ELSE IF", value: "elseif" },
|
|
323
|
+
{ label: "ELSE", value: "else" }
|
|
324
|
+
],
|
|
325
|
+
// Default for new branches is "elseif" so the chain reads correctly when
|
|
326
|
+
// appended between the first IF and the trailing ELSE.
|
|
327
|
+
placeholder: "elseif"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: "key",
|
|
331
|
+
type: "text",
|
|
332
|
+
label: "Branch Key",
|
|
333
|
+
required: !0,
|
|
334
|
+
placeholder: "e.g. admin (no spaces)"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: "label",
|
|
338
|
+
type: "text",
|
|
339
|
+
label: "Branch Label",
|
|
340
|
+
required: !0,
|
|
341
|
+
placeholder: "e.g. Admin Users"
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: "conditions",
|
|
345
|
+
type: "array",
|
|
346
|
+
label: "Conditions",
|
|
347
|
+
// ELSE branches have no condition by definition — hide the array.
|
|
348
|
+
shouldHide: ({ values: e }) => e.kind === "else",
|
|
349
|
+
children: [
|
|
350
|
+
{
|
|
351
|
+
id: "field",
|
|
352
|
+
type: "text",
|
|
353
|
+
label: "Field / Variable",
|
|
354
|
+
required: !0,
|
|
355
|
+
placeholder: "e.g. user.role",
|
|
356
|
+
formulaEnabled: !0
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
id: "operator",
|
|
360
|
+
type: "select",
|
|
361
|
+
label: "Operator",
|
|
362
|
+
required: !0,
|
|
363
|
+
options: y
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
id: "value",
|
|
367
|
+
type: "text",
|
|
368
|
+
label: "Value",
|
|
369
|
+
placeholder: "e.g. admin",
|
|
370
|
+
formulaEnabled: !0,
|
|
371
|
+
shouldHide: ({ values: e }) => e.operator === "isEmpty" || e.operator === "isNotEmpty"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
id: "logicalOperator",
|
|
375
|
+
type: "select",
|
|
376
|
+
label: "Combine with next",
|
|
377
|
+
options: [
|
|
378
|
+
{ label: "AND", value: "AND" },
|
|
379
|
+
{ label: "OR", value: "OR" }
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
]
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
id: "defaultBranch",
|
|
388
|
+
type: "text",
|
|
389
|
+
label: "Default Branch Key (fallback if no condition matches)",
|
|
390
|
+
placeholder: "e.g. default"
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
bpmnEntry: (e) => `Condition Branch: ${e}`,
|
|
394
|
+
bpmnExit: (e) => `End Condition Branch: ${e}`,
|
|
395
|
+
emitBpmnElements: (e, t) => {
|
|
396
|
+
const l = t, o = l.branchConfigs ?? [];
|
|
397
|
+
return [
|
|
398
|
+
{ id: e, $type: "bpmn:ExclusiveGateway", name: l.title ?? "Condition Branch" },
|
|
399
|
+
...o.map((i) => ({
|
|
400
|
+
id: `${e}-${i.key}`,
|
|
401
|
+
$type: "bpmn:SequenceFlow",
|
|
402
|
+
name: i.label
|
|
403
|
+
}))
|
|
404
|
+
];
|
|
405
|
+
}
|
|
406
|
+
}), N = r({
|
|
407
|
+
type: "webhookTrigger",
|
|
408
|
+
label: "Webhook Trigger",
|
|
409
|
+
icon: a.createElement(n, { size: d, color: "#1565c0" }),
|
|
410
|
+
matches: (e) => e.startsWith("webhookTrigger-"),
|
|
411
|
+
reactFlowType: "webhookTriggerNode",
|
|
412
|
+
formSchema: [
|
|
413
|
+
{
|
|
414
|
+
id: "endpointUrl",
|
|
415
|
+
type: "text",
|
|
416
|
+
label: "Endpoint URL",
|
|
417
|
+
disabled: !0,
|
|
418
|
+
placeholder: "Generated after saving"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
id: "authMethod",
|
|
422
|
+
type: "select",
|
|
423
|
+
label: "Authentication",
|
|
424
|
+
required: !0,
|
|
425
|
+
options: [
|
|
426
|
+
{ label: "None", value: "none" },
|
|
427
|
+
{ label: "API Key", value: "api-key" },
|
|
428
|
+
{ label: "HMAC Signature", value: "hmac" }
|
|
429
|
+
]
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
id: "apiKeyHeader",
|
|
433
|
+
type: "text",
|
|
434
|
+
label: "API Key Header Name",
|
|
435
|
+
placeholder: "e.g. X-API-Key",
|
|
436
|
+
shouldHide: ({ values: e }) => e.authMethod !== "api-key"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
id: "hmacSecret",
|
|
440
|
+
type: "text",
|
|
441
|
+
label: "HMAC Secret",
|
|
442
|
+
placeholder: "Shared secret for signature verification",
|
|
443
|
+
shouldHide: ({ values: e }) => e.authMethod !== "hmac"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
id: "payloadDescription",
|
|
447
|
+
type: "textarea",
|
|
448
|
+
label: "Expected Payload Description",
|
|
449
|
+
placeholder: "Describe the expected JSON payload fields..."
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
bpmnEntry: (e) => `Webhook Trigger: ${e}`,
|
|
453
|
+
bpmnExit: (e) => `End Webhook Trigger: ${e}`,
|
|
454
|
+
emitBpmnElements: (e) => [{ id: e, $type: "bpmn:StartEvent", name: "Webhook Trigger" }]
|
|
455
|
+
}), C = {
|
|
456
|
+
triggerKey: "WEBHOOK_TRIGGER",
|
|
457
|
+
label: "Incoming Webhook",
|
|
458
|
+
description: "Start this workflow when an HTTP POST is received at a generated endpoint.",
|
|
459
|
+
triggerCategory: "webhook",
|
|
460
|
+
icon: a.createElement(n, { size: d, color: "#1565c0" })
|
|
461
|
+
};
|
|
462
|
+
function E(e = {}) {
|
|
463
|
+
return r({
|
|
464
|
+
type: "subWorkflow",
|
|
465
|
+
label: "Sub-Workflow",
|
|
466
|
+
icon: a.createElement(h, { size: 18, color: "#00695c" }),
|
|
467
|
+
matches: (t) => t.startsWith("subWorkflow-"),
|
|
468
|
+
reactFlowType: "subWorkflowNode",
|
|
469
|
+
formSchema: [
|
|
470
|
+
{
|
|
471
|
+
id: "workflowId",
|
|
472
|
+
type: "select",
|
|
473
|
+
label: "Workflow to Call",
|
|
474
|
+
required: !0,
|
|
475
|
+
placeholder: "Select a workflow...",
|
|
476
|
+
...e.fetchWorkflowOptions ? { fetchOptions: e.fetchWorkflowOptions } : { options: [] }
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
id: "workflowLabel",
|
|
480
|
+
type: "text",
|
|
481
|
+
label: "Display Name (optional)",
|
|
482
|
+
placeholder: "Override display name shown on canvas"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
id: "inputMapping",
|
|
486
|
+
type: "key-value",
|
|
487
|
+
label: "Input Mapping",
|
|
488
|
+
placeholder: "Map parent variables → sub-workflow inputs",
|
|
489
|
+
formulaEnabled: !0
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
id: "outputMapping",
|
|
493
|
+
type: "key-value",
|
|
494
|
+
label: "Output Mapping",
|
|
495
|
+
placeholder: "Map sub-workflow outputs → parent variables"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
id: "waitForCompletion",
|
|
499
|
+
type: "toggle",
|
|
500
|
+
label: "Wait for sub-workflow to complete before continuing"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
id: "continueOnError",
|
|
504
|
+
type: "toggle",
|
|
505
|
+
label: "Continue parent workflow if sub-workflow fails"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
bpmnEntry: (t) => `Sub-Workflow Call: ${t}`,
|
|
509
|
+
bpmnExit: (t) => `End Sub-Workflow Call: ${t}`,
|
|
510
|
+
emitBpmnElements: (t, l) => {
|
|
511
|
+
const o = l;
|
|
512
|
+
return [{
|
|
513
|
+
id: t,
|
|
514
|
+
$type: "bpmn:CallActivity",
|
|
515
|
+
name: o.workflowLabel || o.workflowId || "Sub-Workflow",
|
|
516
|
+
calledElement: o.workflowId
|
|
517
|
+
}];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
const M = E();
|
|
522
|
+
class f {
|
|
523
|
+
constructor() {
|
|
524
|
+
this.descriptors = /* @__PURE__ */ new Map();
|
|
525
|
+
}
|
|
526
|
+
register(t) {
|
|
527
|
+
return this.descriptors.set(t.type, t), this;
|
|
528
|
+
}
|
|
529
|
+
forType(t) {
|
|
530
|
+
return this.descriptors.get(t);
|
|
531
|
+
}
|
|
532
|
+
forId(t) {
|
|
533
|
+
for (const l of this.descriptors.values())
|
|
534
|
+
if (l.matches(t)) return l;
|
|
535
|
+
}
|
|
536
|
+
list() {
|
|
537
|
+
return [...this.descriptors.values()];
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const H = new f();
|
|
541
|
+
export {
|
|
542
|
+
f as NodeTypeRegistry,
|
|
543
|
+
m as baseNodeDefaults,
|
|
544
|
+
q as conditionBranchDescriptor,
|
|
545
|
+
r as defineNode,
|
|
546
|
+
v as endEventDescriptor,
|
|
547
|
+
E as makeSubWorkflowDescriptor,
|
|
548
|
+
H as nodeTypeRegistry,
|
|
549
|
+
x as notificationDescriptor,
|
|
550
|
+
S as restApiDescriptor,
|
|
551
|
+
T as startEventDescriptor,
|
|
552
|
+
M as subWorkflowDescriptor,
|
|
553
|
+
N as webhookTriggerDescriptor,
|
|
554
|
+
C as webhookTriggerTemplate
|
|
555
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.ff-form-grid,.ff-form-row{display:flex;flex-wrap:wrap;margin-left:0;margin-right:0;column-gap:16px}.ff-form-grid{padding-left:4px;padding-right:4px}.ff-form-grid input::placeholder,.ff-form-grid textarea::placeholder{color:#00000061;opacity:1}.ff-form-grid input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([class*=ff-select]):focus,.ff-form-grid textarea:not(.cm-content):not([class*=cm-]):focus{outline:none;border-color:#86b7fe!important;box-shadow:0 0 0 3px #0d6efd2e!important}.ff-form-grid input[class*=ff-select]:focus{outline:none!important;box-shadow:none!important;border:none!important}.ff-form-grid input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([class*=ff-select]){height:38px;padding:0 12px;font-size:14px;font-family:inherit;border:1px solid #ced4da;border-radius:6px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;width:100%;background:#fff}.ff-form-grid textarea:not(.cm-content):not([class*=cm-]){height:auto;min-height:76px;padding:8px 12px;font-size:14px;font-family:inherit;border:1px solid #ced4da;border-radius:6px;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;width:100%;background:#fff;resize:vertical}.ff-form-grid input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=hidden]):not([class*=ff-select]):disabled,.ff-form-grid textarea:not(.cm-content):not([class*=cm-]):disabled{background:#f8f9fa;color:#00000061;cursor:not-allowed}.ff-form-col-1{flex:1 0 calc(8.333333% - 14.667px);max-width:100%}.ff-form-col-2{flex:1 0 calc(16.666667% - 13.333px);max-width:100%}.ff-form-col-3{flex:1 0 calc(25% - 12px);max-width:100%}.ff-form-col-4{flex:1 0 calc(33.333333% - 10.667px);max-width:100%}.ff-form-col-5{flex:1 0 calc(41.666667% - 9.333px);max-width:100%}.ff-form-col-6{flex:1 0 calc(50% - 8px);max-width:100%}.ff-form-col-7{flex:1 0 calc(58.333333% - 6.667px);max-width:100%}.ff-form-col-8{flex:1 0 calc(66.666667% - 5.333px);max-width:100%}.ff-form-col-9{flex:1 0 calc(75% - 4px);max-width:100%}.ff-form-col-10{flex:1 0 calc(83.333333% - 2.667px);max-width:100%}.ff-form-col-11{flex:1 0 calc(91.666667% - 1.333px);max-width:100%}.ff-form-col-12{flex:1 0 100%;max-width:100%}.ff-form-hidden{display:none!important}.ff-form-mb-0{margin-bottom:0!important}.ff-form-mb-1{margin-bottom:4px!important}.ff-form-mb-4{margin-bottom:32px!important}.ff-form-mt-1{margin-top:4px!important}.ff-form-ms-2{margin-left:8px!important}.ff-form-ps-1{padding-left:4px!important}.ff-form-p-0{padding:0!important}.ff-form-d-flex{display:flex!important}.ff-form-align-start{align-items:flex-start!important}.ff-form-align-center{align-items:center!important}.ff-form-justify-between{justify-content:space-between!important}.ff-form-flex-wrap{flex-wrap:wrap!important}.ff-form-flex-grow-1{flex-grow:1!important}.ff-form-flex-shrink-0{flex-shrink:0!important}.ff-form-gap-1{gap:4px!important}.ff-form-gap-2{gap:8px!important}.ff-form-w-100{width:100%!important}.ff-form-text-12{font-size:12px!important}.ff-form-text-14{font-size:14px!important}.ff-form-text-dark{color:#212121!important}.ff-form-text-danger{color:#dc3545!important}.ff-form-text-primary{color:#0d6efd!important}.ff-form-text-body-tertiary{color:#6c757d!important}.ff-form-fw-medium{font-weight:500!important}.ff-form-text-capitalize{text-transform:capitalize!important}.ff-form-shadow-none{box-shadow:none!important}.ff-form-bg-light{background-color:#f8f9fa!important}.ff-form-divider{margin-top:4px;margin-bottom:4px}.flowforge-canvas .react-flow,.flowforge-canvas .react-flow__renderer,.flowforge-canvas .react-flow__viewport,.flowforge-canvas .react-flow__pane{width:100%!important;height:100%!important}.flowforge-canvas .react-flow__node{width:fit-content!important;max-width:none!important;min-width:0;padding:0;background:transparent;border:none;box-shadow:none}.flowforge-canvas .react-flow__edge,.flowforge-canvas .react-flow__edgeupdater{pointer-events:auto}.flowforge-canvas .react-flow__handle,.flowforge-canvas .react-flow__handle:before,.flowforge-canvas .react-flow__handle:after{opacity:0!important;visibility:hidden!important;background:transparent!important;background-color:transparent!important;border:none!important;border-color:transparent!important;box-shadow:none!important;outline:none!important}.flowforge-canvas .xyflow__handle,.flowforge-canvas .xyflow__handle:before,.flowforge-canvas .xyflow__handle:after{opacity:0!important;visibility:hidden!important;background:transparent!important;border:none!important}.flowforge-canvas{line-height:1.5}.schema-builder-root{display:flex;flex-direction:column}.schema-builder-header{display:flex;align-items:center;margin-bottom:12px}.schema-builder-actions{display:flex;gap:8px;margin-left:auto}.schema-builder-empty-state{border:1.5px dashed rgba(0,0,0,.08);border-radius:12px;padding:64px 32px;text-align:center;background-color:#fafafa;display:flex;flex-direction:column;align-items:center;gap:20px}.schema-builder-empty-icon{color:#94a3b8;margin-bottom:4px}.schema-builder-empty-title{font-size:13px;font-weight:400;color:#334155;max-width:400px;line-height:1.5;margin-bottom:8px}.schema-builder-empty-actions{display:flex;flex-direction:column;align-items:center;gap:12px}.sb-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 16px;border-radius:8px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid transparent}.sb-btn-outline{border-color:#e2e8f0;background:#fff;color:#475569}.sb-btn-outline:hover{background:#f1f5f9;border-color:#cbd5e1}.sb-btn-primary{background:#6366f1;color:#fff;box-shadow:0 1px 3px #6366f14d}.sb-btn-primary:hover{background:#4f46e5}.sb-btn-big{padding:10px 32px;font-size:14px;font-weight:600;border-color:#1e293b;color:#1e293b}.sb-btn-big:hover{background:#f8fafc}.setup-manual-text{font-size:13px;color:#64748b;display:flex;align-items:center;gap:4px}.setup-manual-link{color:#64748b;cursor:pointer;text-decoration:underline}.setup-manual-link:hover{color:#6366f1}.sb-field-row{display:flex;align-items:center;gap:12px;padding:8px 16px;border:1px solid #e2e8f0;border-radius:8px;background-color:#fff;cursor:pointer;transition:all .15s;margin-bottom:8px}.sb-field-row:hover{border-color:#cbd5e1;box-shadow:0 2px 8px #0000000a;background-color:#f8fafc}.sb-field-type-badge{font-size:10px;font-weight:700;padding:2px 8px;border-radius:4px;background-color:#eef2ff;color:#6366f1;flex-shrink:0;white-space:nowrap;text-transform:uppercase}.sb-field-info{flex:1;min-width:0}.sb-field-label{font-size:13px;font-weight:600;color:#0f172a;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-field-meta{font-size:11px;color:#94a3b8;font-family:monospace}.sb-field-actions{display:flex;align-items:center;gap:4px}.sb-icon-btn{background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:5px;padding:0;color:#94a3b8;transition:all .12s}.sb-icon-btn:hover{background-color:#f1f5f9;color:#475569}.sb-icon-btn-danger:hover{background-color:#fee2e2;color:#dc2626}.edge-plus-circle{fill:#fff;stroke:#b0bec5;stroke-width:1.5;transition:stroke .15s,fill .15s}.plus-line{stroke:#757575;transition:stroke .15s}.edge-plus-tooltip{opacity:0;transition:opacity .15s;pointer-events:none}.edge-plus-tooltip .tooltip-bg{fill:#424242}.edge-plus-svg:hover .edge-plus-circle{fill:var(--ff-primary, #1dbf60);stroke:var(--ff-primary, #1dbf60)}.edge-plus-svg:hover .plus-line{stroke:#fff}.edge-plus-svg:hover .edge-plus-tooltip{opacity:1}.edge-plus-html:hover .edge-plus-circle{fill:#1dbf60;stroke:#1dbf60}.edge-plus-html:hover .plus-line{stroke:#fff}.edge-plus-html:hover .edge-plus-tooltip{opacity:1}.ff-d-flex{display:flex!important}.ff-d-inline-flex{display:inline-flex!important}.ff-flex-column{flex-direction:column!important}.ff-flex-wrap{flex-wrap:wrap!important}.ff-align-items-center{align-items:center!important}.ff-align-items-start{align-items:flex-start!important}.ff-justify-content-between{justify-content:space-between!important}.ff-justify-content-start{justify-content:flex-start!important}.ff-justify-content-center{justify-content:center!important}.ff-flex-grow-1{flex-grow:1!important}.ff-flex-shrink-0{flex-shrink:0!important}.ff-gap-1{gap:4px!important}.ff-gap-2{gap:8px!important}.ff-gap-3{gap:16px!important}.ff-m-0{margin:0!important}.ff-mx-1{margin-left:4px!important;margin-right:4px!important}.ff-mx-2{margin-left:8px!important;margin-right:8px!important}.ff-ms-1{margin-left:4px!important}.ff-ms-2{margin-left:8px!important}.ff-me-1{margin-right:4px!important}.ff-me-2{margin-right:8px!important}.ff-mt-1{margin-top:4px!important}.ff-mt-2{margin-top:8px!important}.ff-mb-0{margin-bottom:0!important}.ff-mb-1{margin-bottom:4px!important}.ff-mb-2{margin-bottom:8px!important}.ff-mb-3{margin-bottom:16px!important}.ff-p-2{padding:8px!important}.ff-p-3{padding:16px!important}.ff-px-1{padding-left:4px!important;padding-right:4px!important}.ff-px-2{padding-left:8px!important;padding-right:8px!important}.ff-py-1{padding-top:4px!important;padding-bottom:4px!important}.ff-py-2{padding-top:8px!important;padding-bottom:8px!important}.ff-py-3{padding-top:16px!important;padding-bottom:16px!important}.ff-rounded{border-radius:var(--ff-radius, 6px)!important}.ff-rounded-1{border-radius:4px!important}.ff-rounded-circle{border-radius:50%!important}.ff-rounded-pill{border-radius:999px!important}.ff-border{border:1px solid var(--ff-border, #dee2e6)!important}.ff-badge{display:inline-block;font-size:.75em;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline}.ff-bg-dark{background-color:#212529!important}.ff-bg-primary{background-color:#0d6efd!important}.ff-bg-light{background-color:#f8f9fa!important}.ff-text-white{color:#fff!important}.ff-text-muted{color:var(--ff-muted, #9ca3af)!important}.ff-text-dark{color:var(--ff-text, #212121)!important}.ff-text-black{color:#000!important}.ff-text-warning{color:#ffc107!important}.ff-text-secondary{color:#6c757d!important}.ff-text-center{text-align:center!important}.ff-text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ff-fw-medium{font-weight:500!important}.ff-fw-bold{font-weight:700!important}/*!
|
|
2
|
+
* Quill Editor v1.3.7
|
|
3
|
+
* https://quilljs.com/
|
|
4
|
+
* Copyright (c) 2014, Jason Chen
|
|
5
|
+
* Copyright (c) 2013, salesforce.com
|
|
6
|
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class o{constructor(){this.templates=new Map}register(e){return this.templates.set(e.triggerKey,e),this}lookup(e){return this.templates.get(e)}list(){return[...this.templates.values()]}listByCategory(e){return this.list().filter(t=>t.category===e)}listByTag(e){return this.list().filter(t=>{var s;return(s=t.tags)==null?void 0:s.includes(e)})}search(e){const t=e.toLowerCase();return this.list().filter(s=>{var r,i,a;return s.label.toLowerCase().includes(t)||((r=s.description)==null?void 0:r.toLowerCase().includes(t))||((i=s.tags)==null?void 0:i.some(l=>l.toLowerCase().includes(t)))||((a=s.category)==null?void 0:a.toLowerCase().includes(t))})}categories(){const e=new Set;return this.list().forEach(t=>{t.category&&e.add(t.category)}),Array.from(e)}}const c=new o;exports.TemplateRegistry=o;exports.templateRegistry=c;
|