@widgetic/editor 4.1.20 → 4.1.22
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.
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
setPosition?: (left: number, top: number) => void;
|
|
70
70
|
getPosition?: () => { left: number; top: number };
|
|
71
71
|
} | null = null;
|
|
72
|
-
let pasteStatusKind: '' | 'invalid' | 'applied'
|
|
72
|
+
let pasteStatusKind: '' | 'invalid' | 'applied' = '';
|
|
73
73
|
let pasteIgnoredLabels: string[] = [];
|
|
74
74
|
let codePasteSurface: HTMLTextAreaElement | null = null;
|
|
75
75
|
let widgetDefaultHintVisible = false;
|
|
@@ -156,16 +156,6 @@
|
|
|
156
156
|
widgetDefaultHintVisible = false;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
async function handlePasteEmbedCodeClick() {
|
|
160
|
-
try {
|
|
161
|
-
const text = await navigator.clipboard.readText();
|
|
162
|
-
handlePastedText(text);
|
|
163
|
-
} catch {
|
|
164
|
-
pasteStatusKind = 'clipboard_blocked';
|
|
165
|
-
pasteIgnoredLabels = [];
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
159
|
function handleCodePaste(event: ClipboardEvent) {
|
|
170
160
|
event.preventDefault();
|
|
171
161
|
handlePastedText(event.clipboardData?.getData('text/plain') ?? '');
|
|
@@ -219,7 +209,8 @@
|
|
|
219
209
|
? 'embed-editor-standalone-wrapper bg-inverse flex min-h-screen w-full items-center justify-center p-4 widgetic-colors widgetic-radius'
|
|
220
210
|
: 'embed-editor-inline-wrapper absolute h-full max-h-full'} {assistantEnabled ? 'flex' : ''} {standalone ? '' : assistantEnabled ? 'w-auto' : 'w-editor-panel'}"
|
|
221
211
|
>
|
|
222
|
-
|
|
212
|
+
<!-- Standalone without the assistant: the 450px panel sits in the middle of the page (the box is as wide as the page, so it is centred inside it). -->
|
|
213
|
+
<div class="{assistantEnabled ? 'relative h-full min-w-0' : 'h-full w-full'} {assistantEnabled && !standalone ? 'w-[450px]' : 'w-full'} {standalone && !assistantEnabled ? 'flex justify-center' : ''}">
|
|
223
214
|
<PropsEditor
|
|
224
215
|
bind:this={internalPropsEditorRef}
|
|
225
216
|
class="embed-editor-container {className}"
|
|
@@ -302,15 +293,12 @@
|
|
|
302
293
|
}}
|
|
303
294
|
/>
|
|
304
295
|
<div class="flex flex-col gap-2 pt-2">
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
>
|
|
309
|
-
</div>
|
|
310
|
-
<!-- Paste-only surface: shows the snippet but accepts paste and Cmd/Ctrl+V only. -->
|
|
296
|
+
<!-- Paste-only surface: shows the snippet but accepts paste and Cmd/Ctrl+V only.
|
|
297
|
+
The height is three lines of text PLUS the box's own padding (p-3 = 1.5rem) and border (2px): the box is border-box, so a bare
|
|
298
|
+
3lh left one and a half lines for the text and the code looked cut off, pushed against the edges, without its padding. -->
|
|
311
299
|
<textarea
|
|
312
300
|
bind:this={codePasteSurface}
|
|
313
|
-
class="embed-code-paste-surface text-code text-foreground bg-accent border-border max-h-[3lh] min-h-[3lh] w-full cursor-text resize-none rounded-xl border p-3 [overflow-wrap:anywhere] break-all"
|
|
301
|
+
class="embed-code-paste-surface text-code text-foreground bg-accent border-border max-h-[calc(3lh+1.5rem+2px)] min-h-[calc(3lh+1.5rem+2px)] w-full cursor-text resize-none rounded-xl border p-3 [overflow-wrap:anywhere] break-all"
|
|
314
302
|
readonly
|
|
315
303
|
value={embedCode}
|
|
316
304
|
aria-label={$t('editor.embed.pasteAreaAria')}
|
|
@@ -330,10 +318,6 @@
|
|
|
330
318
|
labels: pasteIgnoredLabels.join(', ')
|
|
331
319
|
})}{/if}
|
|
332
320
|
</p>
|
|
333
|
-
{:else if pasteStatusKind === 'clipboard_blocked'}
|
|
334
|
-
<p class="text-caption text-foreground" role="status" aria-live="polite">
|
|
335
|
-
{$t('editor.embed.pasteClipboardBlocked')}
|
|
336
|
-
</p>
|
|
337
321
|
{/if}
|
|
338
322
|
{#if !embedCode}
|
|
339
323
|
<span class="sr-only">{$t('editor.embed.loading')}</span>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "embedding-options-schema-001",
|
|
3
3
|
"name": "Embedding Options Schema",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"componentGroups": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Embed Composition",
|
|
@@ -128,10 +128,12 @@
|
|
|
128
128
|
"condition": "useIframe === false"
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
]
|
|
131
|
+
],
|
|
132
|
+
"optionGroup": "basic"
|
|
132
133
|
},
|
|
133
134
|
{
|
|
134
|
-
"name": "
|
|
135
|
+
"name": "Layout & overlay",
|
|
136
|
+
"optionGroup": "layout",
|
|
135
137
|
"properties": [
|
|
136
138
|
{
|
|
137
139
|
"name": "embedTarget",
|
|
@@ -155,7 +157,8 @@
|
|
|
155
157
|
"value": "mixed"
|
|
156
158
|
}
|
|
157
159
|
]
|
|
158
|
-
}
|
|
160
|
+
},
|
|
161
|
+
"optionGroup": "layout"
|
|
159
162
|
},
|
|
160
163
|
{
|
|
161
164
|
"name": "overlayPosition",
|
|
@@ -169,15 +172,167 @@
|
|
|
169
172
|
"visibilityCondition": {
|
|
170
173
|
"dependsOn": "embedTarget",
|
|
171
174
|
"condition": "embedTarget === 'overlay' || embedTarget === 'mixed'"
|
|
172
|
-
}
|
|
175
|
+
},
|
|
176
|
+
"optionGroup": "layout"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "addBackgroundColor",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"defaultValue": false,
|
|
182
|
+
"inputController": {
|
|
183
|
+
"type": "switch",
|
|
184
|
+
"helpText": "Add a background color to the overlay. It will prevent click-through.",
|
|
185
|
+
"description": "Add background"
|
|
186
|
+
},
|
|
187
|
+
"visibilityCondition": {
|
|
188
|
+
"dependsOn": "embedTarget",
|
|
189
|
+
"condition": "embedTarget === 'overlay'"
|
|
190
|
+
},
|
|
191
|
+
"optionGroup": "layout"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "overlayBackgroundColor",
|
|
195
|
+
"type": "string",
|
|
196
|
+
"defaultValue": "#000000",
|
|
197
|
+
"inputController": {
|
|
198
|
+
"type": "colorPicker",
|
|
199
|
+
"helpText": "Set the color of the overlay background",
|
|
200
|
+
"description": "Overlay color",
|
|
201
|
+
"config": {
|
|
202
|
+
"showOpacityControls": true,
|
|
203
|
+
"defaultTransparency": 50
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"visibilityCondition": {
|
|
207
|
+
"dependsOn": "addBackgroundColor",
|
|
208
|
+
"condition": "addBackgroundColor === true"
|
|
209
|
+
},
|
|
210
|
+
"optionGroup": "layout"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "keepDimensions",
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"defaultValue": true,
|
|
216
|
+
"inputController": {
|
|
217
|
+
"type": "switch",
|
|
218
|
+
"helpText": "Keep width, height, resize the same",
|
|
219
|
+
"description": "Keep dimensions"
|
|
220
|
+
},
|
|
221
|
+
"visibilityCondition": {
|
|
222
|
+
"dependsOn": "embedTarget",
|
|
223
|
+
"condition": "embedTarget === 'mixed'"
|
|
224
|
+
},
|
|
225
|
+
"optionGroup": "layout"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "overlayResizeMode",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"defaultValue": "fillWidth",
|
|
231
|
+
"inputController": {
|
|
232
|
+
"type": "dropdown",
|
|
233
|
+
"helpText": "Choose how the overlay widget should be resized",
|
|
234
|
+
"description": "Overlay resize mode",
|
|
235
|
+
"options": [
|
|
236
|
+
{
|
|
237
|
+
"label": "Fill width",
|
|
238
|
+
"value": "fillWidth"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"label": "Fill height",
|
|
242
|
+
"value": "fillHeight"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"label": "Fixed size",
|
|
246
|
+
"value": "fixedSize"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"label": "Fixed height",
|
|
250
|
+
"value": "fixedHeight"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"label": "Fixed width",
|
|
254
|
+
"value": "fixedWidth"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"label": "Allow scale down",
|
|
258
|
+
"value": "allowScaleDown"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"label": "Fill",
|
|
262
|
+
"value": "fill"
|
|
263
|
+
}
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
"visibilityCondition": {
|
|
267
|
+
"dependsOn": [
|
|
268
|
+
"embedTarget",
|
|
269
|
+
"keepDimensions"
|
|
270
|
+
],
|
|
271
|
+
"condition": "embedTarget === 'mixed' && keepDimensions === false"
|
|
272
|
+
},
|
|
273
|
+
"optionGroup": "layout"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"name": "overlayWidth",
|
|
277
|
+
"type": "number",
|
|
278
|
+
"defaultValue": 405,
|
|
279
|
+
"inputController": {
|
|
280
|
+
"type": "number",
|
|
281
|
+
"helpText": "Set the width of the overlay widget in pixels",
|
|
282
|
+
"description": "Overlay width",
|
|
283
|
+
"config": {
|
|
284
|
+
"min": 50,
|
|
285
|
+
"max": 4096,
|
|
286
|
+
"step": 1
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"visibilityCondition": {
|
|
290
|
+
"dependsOn": [
|
|
291
|
+
"embedTarget",
|
|
292
|
+
"keepDimensions",
|
|
293
|
+
"overlayResizeMode"
|
|
294
|
+
],
|
|
295
|
+
"condition": "embedTarget === 'mixed' && keepDimensions === false && (overlayResizeMode === 'fixedSize' || overlayResizeMode === 'fixedWidth' || overlayResizeMode === 'allowScaleDown')"
|
|
296
|
+
},
|
|
297
|
+
"optionGroup": "layout"
|
|
173
298
|
},
|
|
299
|
+
{
|
|
300
|
+
"name": "overlayHeight",
|
|
301
|
+
"type": "number",
|
|
302
|
+
"defaultValue": 300,
|
|
303
|
+
"inputController": {
|
|
304
|
+
"type": "number",
|
|
305
|
+
"helpText": "Set the height of the overlay widget in pixels",
|
|
306
|
+
"description": "Overlay height",
|
|
307
|
+
"config": {
|
|
308
|
+
"min": 50,
|
|
309
|
+
"max": 4096,
|
|
310
|
+
"step": 1
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"visibilityCondition": {
|
|
314
|
+
"dependsOn": [
|
|
315
|
+
"embedTarget",
|
|
316
|
+
"keepDimensions",
|
|
317
|
+
"overlayResizeMode"
|
|
318
|
+
],
|
|
319
|
+
"condition": "embedTarget === 'mixed' && keepDimensions === false && (overlayResizeMode === 'fixedSize' || overlayResizeMode === 'fixedHeight' || overlayResizeMode === 'allowScaleDown')"
|
|
320
|
+
},
|
|
321
|
+
"optionGroup": "layout"
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "Triggers",
|
|
327
|
+
"optionGroup": "triggers",
|
|
328
|
+
"properties": [
|
|
174
329
|
{
|
|
175
330
|
"name": "eventTriggers",
|
|
176
331
|
"type": "string",
|
|
177
332
|
"defaultValue": "exitIntent",
|
|
178
333
|
"inputController": {
|
|
179
334
|
"type": "dropdown",
|
|
180
|
-
"helpText": "
|
|
335
|
+
"helpText": "When the overlay opens automatically (Manual opens only via Widgetic.show() in your page code).",
|
|
181
336
|
"description": "Event triggers",
|
|
182
337
|
"options": [
|
|
183
338
|
{
|
|
@@ -187,32 +342,67 @@
|
|
|
187
342
|
{
|
|
188
343
|
"label": "Page load",
|
|
189
344
|
"value": "pageLoad"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"label": "Delay",
|
|
348
|
+
"value": "delay"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"label": "Scroll (pixels)",
|
|
352
|
+
"value": "scroll"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"label": "Scroll (percent)",
|
|
356
|
+
"value": "scrollPercent"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"label": "Manual",
|
|
360
|
+
"value": "manual"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"label": "Times page shown",
|
|
364
|
+
"value": "timesShown"
|
|
190
365
|
}
|
|
191
366
|
]
|
|
192
367
|
},
|
|
193
368
|
"visibilityCondition": {
|
|
194
369
|
"dependsOn": "embedTarget",
|
|
195
370
|
"condition": "embedTarget === 'overlay'"
|
|
196
|
-
}
|
|
371
|
+
},
|
|
372
|
+
"optionGroup": "triggers"
|
|
197
373
|
},
|
|
198
374
|
{
|
|
199
|
-
"name": "
|
|
200
|
-
"type": "
|
|
201
|
-
"defaultValue":
|
|
375
|
+
"name": "triggerDelaySeconds",
|
|
376
|
+
"type": "number",
|
|
377
|
+
"defaultValue": 3,
|
|
378
|
+
"optionGroup": "triggers",
|
|
202
379
|
"inputController": {
|
|
203
|
-
"type": "
|
|
204
|
-
"
|
|
205
|
-
"
|
|
380
|
+
"type": "number",
|
|
381
|
+
"description": "Delay",
|
|
382
|
+
"helpText": "Seconds after the widget is ready before the overlay opens.",
|
|
383
|
+
"config": {
|
|
384
|
+
"min": 0,
|
|
385
|
+
"max": 86400,
|
|
386
|
+
"step": 1
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"visibilityCondition": {
|
|
390
|
+
"dependsOn": [
|
|
391
|
+
"embedTarget",
|
|
392
|
+
"eventTriggers"
|
|
393
|
+
],
|
|
394
|
+
"condition": "embedTarget === 'overlay' && eventTriggers === 'delay'"
|
|
206
395
|
}
|
|
207
396
|
},
|
|
208
397
|
{
|
|
209
|
-
"name": "
|
|
398
|
+
"name": "triggerScrollDistance",
|
|
210
399
|
"type": "number",
|
|
211
|
-
"defaultValue":
|
|
400
|
+
"defaultValue": 100,
|
|
401
|
+
"optionGroup": "triggers",
|
|
212
402
|
"inputController": {
|
|
213
403
|
"type": "number",
|
|
214
|
-
"
|
|
215
|
-
"
|
|
404
|
+
"description": "Scroll distance",
|
|
405
|
+
"helpText": "Pixels scrolled down before the overlay opens.",
|
|
216
406
|
"config": {
|
|
217
407
|
"min": 1,
|
|
218
408
|
"max": 100000,
|
|
@@ -220,161 +410,281 @@
|
|
|
220
410
|
}
|
|
221
411
|
},
|
|
222
412
|
"visibilityCondition": {
|
|
223
|
-
"dependsOn":
|
|
224
|
-
|
|
413
|
+
"dependsOn": [
|
|
414
|
+
"embedTarget",
|
|
415
|
+
"eventTriggers"
|
|
416
|
+
],
|
|
417
|
+
"condition": "embedTarget === 'overlay' && eventTriggers === 'scroll'"
|
|
225
418
|
}
|
|
226
419
|
},
|
|
227
420
|
{
|
|
228
|
-
"name": "
|
|
421
|
+
"name": "triggerScrollPercent",
|
|
229
422
|
"type": "number",
|
|
230
|
-
"defaultValue":
|
|
423
|
+
"defaultValue": 50,
|
|
424
|
+
"optionGroup": "triggers",
|
|
231
425
|
"inputController": {
|
|
232
426
|
"type": "number",
|
|
233
|
-
"
|
|
234
|
-
"
|
|
427
|
+
"description": "Scroll percent",
|
|
428
|
+
"helpText": "Share of page height scrolled (0–100) before the overlay opens.",
|
|
235
429
|
"config": {
|
|
236
|
-
"min":
|
|
237
|
-
"max":
|
|
430
|
+
"min": 0,
|
|
431
|
+
"max": 100,
|
|
238
432
|
"step": 1
|
|
239
433
|
}
|
|
240
434
|
},
|
|
241
435
|
"visibilityCondition": {
|
|
242
|
-
"dependsOn":
|
|
243
|
-
|
|
436
|
+
"dependsOn": [
|
|
437
|
+
"embedTarget",
|
|
438
|
+
"eventTriggers"
|
|
439
|
+
],
|
|
440
|
+
"condition": "embedTarget === 'overlay' && eventTriggers === 'scrollPercent'"
|
|
244
441
|
}
|
|
245
442
|
},
|
|
246
443
|
{
|
|
247
|
-
"name": "
|
|
248
|
-
"type": "
|
|
249
|
-
"defaultValue":
|
|
444
|
+
"name": "triggerPageViews",
|
|
445
|
+
"type": "number",
|
|
446
|
+
"defaultValue": 3,
|
|
447
|
+
"optionGroup": "triggers",
|
|
250
448
|
"inputController": {
|
|
251
|
-
"type": "
|
|
252
|
-
"
|
|
253
|
-
"
|
|
449
|
+
"type": "number",
|
|
450
|
+
"description": "Page views",
|
|
451
|
+
"helpText": "How many times this page must load for this visitor before the widget appears (stored in the browser).",
|
|
452
|
+
"config": {
|
|
453
|
+
"min": 1,
|
|
454
|
+
"max": 1000,
|
|
455
|
+
"step": 1
|
|
456
|
+
}
|
|
254
457
|
},
|
|
255
458
|
"visibilityCondition": {
|
|
256
|
-
"dependsOn":
|
|
257
|
-
|
|
459
|
+
"dependsOn": [
|
|
460
|
+
"embedTarget",
|
|
461
|
+
"eventTriggers"
|
|
462
|
+
],
|
|
463
|
+
"condition": "embedTarget === 'overlay' && eventTriggers === 'timesShown'"
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
]
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"name": "Excludes",
|
|
470
|
+
"optionGroup": "excludes",
|
|
471
|
+
"properties": [
|
|
472
|
+
{
|
|
473
|
+
"name": "excludeUrlPatterns",
|
|
474
|
+
"type": "string",
|
|
475
|
+
"defaultValue": "",
|
|
476
|
+
"optionGroup": "excludes",
|
|
477
|
+
"inputController": {
|
|
478
|
+
"type": "textarea",
|
|
479
|
+
"description": "Exclude URLs",
|
|
480
|
+
"helpText": "Comma- or newline-separated path or URL fragments. The widget does not open on matching pages."
|
|
481
|
+
},
|
|
482
|
+
"visibilityCondition": {
|
|
483
|
+
"dependsOn": "embedTarget",
|
|
484
|
+
"condition": "embedTarget === 'overlay' || embedTarget === 'mixed'"
|
|
258
485
|
}
|
|
259
486
|
},
|
|
260
487
|
{
|
|
261
|
-
"name": "
|
|
488
|
+
"name": "excludeAfterDismiss",
|
|
262
489
|
"type": "boolean",
|
|
263
|
-
"defaultValue":
|
|
490
|
+
"defaultValue": false,
|
|
491
|
+
"optionGroup": "excludes",
|
|
264
492
|
"inputController": {
|
|
265
493
|
"type": "switch",
|
|
266
|
-
"
|
|
267
|
-
"
|
|
494
|
+
"description": "After close",
|
|
495
|
+
"helpText": "Do not show again after the visitor closed the overlay."
|
|
268
496
|
},
|
|
269
497
|
"visibilityCondition": {
|
|
270
|
-
"dependsOn": "
|
|
271
|
-
"condition": "
|
|
498
|
+
"dependsOn": "embedTarget",
|
|
499
|
+
"condition": "embedTarget === 'overlay'"
|
|
272
500
|
}
|
|
273
501
|
},
|
|
274
502
|
{
|
|
275
|
-
"name": "
|
|
503
|
+
"name": "excludeAfterInteract",
|
|
276
504
|
"type": "boolean",
|
|
277
|
-
"defaultValue":
|
|
505
|
+
"defaultValue": false,
|
|
506
|
+
"optionGroup": "excludes",
|
|
278
507
|
"inputController": {
|
|
279
508
|
"type": "switch",
|
|
280
|
-
"
|
|
281
|
-
"
|
|
509
|
+
"description": "After open",
|
|
510
|
+
"helpText": "Do not show again after the widget opened once."
|
|
282
511
|
},
|
|
283
512
|
"visibilityCondition": {
|
|
284
513
|
"dependsOn": "embedTarget",
|
|
285
|
-
"condition": "embedTarget === '
|
|
514
|
+
"condition": "embedTarget === 'overlay'"
|
|
286
515
|
}
|
|
287
|
-
}
|
|
516
|
+
}
|
|
517
|
+
]
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"name": "Visitors",
|
|
521
|
+
"optionGroup": "visitors",
|
|
522
|
+
"properties": [
|
|
288
523
|
{
|
|
289
|
-
"name": "
|
|
524
|
+
"name": "visitorType",
|
|
290
525
|
"type": "string",
|
|
291
|
-
"defaultValue": "
|
|
526
|
+
"defaultValue": "any",
|
|
527
|
+
"optionGroup": "visitors",
|
|
292
528
|
"inputController": {
|
|
293
529
|
"type": "dropdown",
|
|
294
|
-
"
|
|
295
|
-
"
|
|
530
|
+
"description": "Visitor type",
|
|
531
|
+
"helpText": "Limit to first-time or returning visitors (tracked in this browser only).",
|
|
296
532
|
"options": [
|
|
297
533
|
{
|
|
298
|
-
"label": "
|
|
299
|
-
"value": "
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"label": "Fill height",
|
|
303
|
-
"value": "fillHeight"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"label": "Fixed size",
|
|
307
|
-
"value": "fixedSize"
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
"label": "Fixed height",
|
|
311
|
-
"value": "fixedHeight"
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
"label": "Fixed width",
|
|
315
|
-
"value": "fixedWidth"
|
|
534
|
+
"label": "Any",
|
|
535
|
+
"value": "any"
|
|
316
536
|
},
|
|
317
537
|
{
|
|
318
|
-
"label": "
|
|
319
|
-
"value": "
|
|
538
|
+
"label": "New visitor",
|
|
539
|
+
"value": "new"
|
|
320
540
|
},
|
|
321
541
|
{
|
|
322
|
-
"label": "
|
|
323
|
-
"value": "
|
|
542
|
+
"label": "Returning visitor",
|
|
543
|
+
"value": "returning"
|
|
324
544
|
}
|
|
325
545
|
]
|
|
326
546
|
},
|
|
327
547
|
"visibilityCondition": {
|
|
328
|
-
"dependsOn":
|
|
329
|
-
"condition": "embedTarget === '
|
|
548
|
+
"dependsOn": "embedTarget",
|
|
549
|
+
"condition": "embedTarget === 'overlay'"
|
|
330
550
|
}
|
|
331
551
|
},
|
|
332
552
|
{
|
|
333
|
-
"name": "
|
|
553
|
+
"name": "minTimeOnPageSeconds",
|
|
334
554
|
"type": "number",
|
|
335
|
-
"defaultValue":
|
|
555
|
+
"defaultValue": 0,
|
|
556
|
+
"optionGroup": "visitors",
|
|
336
557
|
"inputController": {
|
|
337
558
|
"type": "number",
|
|
338
|
-
"
|
|
339
|
-
"
|
|
559
|
+
"description": "Time on page",
|
|
560
|
+
"helpText": "Wait this many seconds on the page before the overlay may open.",
|
|
340
561
|
"config": {
|
|
341
|
-
"min":
|
|
342
|
-
"max":
|
|
562
|
+
"min": 0,
|
|
563
|
+
"max": 3600,
|
|
343
564
|
"step": 1
|
|
344
565
|
}
|
|
345
566
|
},
|
|
346
567
|
"visibilityCondition": {
|
|
347
|
-
"dependsOn":
|
|
348
|
-
"condition": "embedTarget === '
|
|
568
|
+
"dependsOn": "embedTarget",
|
|
569
|
+
"condition": "embedTarget === 'overlay'"
|
|
349
570
|
}
|
|
350
571
|
},
|
|
351
572
|
{
|
|
352
|
-
"name": "
|
|
573
|
+
"name": "minSitePageViews",
|
|
353
574
|
"type": "number",
|
|
354
|
-
"defaultValue":
|
|
575
|
+
"defaultValue": 0,
|
|
576
|
+
"optionGroup": "visitors",
|
|
355
577
|
"inputController": {
|
|
356
578
|
"type": "number",
|
|
357
|
-
"
|
|
358
|
-
"
|
|
579
|
+
"description": "Site page views",
|
|
580
|
+
"helpText": "Require this many page loads on the site (any Widgetic embed) before the overlay may open.",
|
|
359
581
|
"config": {
|
|
360
|
-
"min":
|
|
361
|
-
"max":
|
|
582
|
+
"min": 0,
|
|
583
|
+
"max": 1000,
|
|
362
584
|
"step": 1
|
|
363
585
|
}
|
|
364
586
|
},
|
|
365
587
|
"visibilityCondition": {
|
|
366
|
-
"dependsOn":
|
|
367
|
-
"condition": "embedTarget === '
|
|
588
|
+
"dependsOn": "embedTarget",
|
|
589
|
+
"condition": "embedTarget === 'overlay'"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
]
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"name": "Schedule",
|
|
596
|
+
"optionGroup": "schedule",
|
|
597
|
+
"properties": [
|
|
598
|
+
{
|
|
599
|
+
"name": "scheduleStartDate",
|
|
600
|
+
"type": "string",
|
|
601
|
+
"defaultValue": "",
|
|
602
|
+
"optionGroup": "schedule",
|
|
603
|
+
"inputController": {
|
|
604
|
+
"type": "text",
|
|
605
|
+
"description": "Start date",
|
|
606
|
+
"helpText": "First day the widget may open (local time)."
|
|
607
|
+
},
|
|
608
|
+
"visibilityCondition": {
|
|
609
|
+
"dependsOn": "embedTarget",
|
|
610
|
+
"condition": "embedTarget === 'overlay'"
|
|
368
611
|
}
|
|
369
612
|
},
|
|
370
613
|
{
|
|
371
|
-
"name": "
|
|
614
|
+
"name": "scheduleEndDate",
|
|
615
|
+
"type": "string",
|
|
616
|
+
"defaultValue": "",
|
|
617
|
+
"optionGroup": "schedule",
|
|
618
|
+
"inputController": {
|
|
619
|
+
"type": "text",
|
|
620
|
+
"description": "End date",
|
|
621
|
+
"helpText": "Last day the widget may open (local time)."
|
|
622
|
+
},
|
|
623
|
+
"visibilityCondition": {
|
|
624
|
+
"dependsOn": "embedTarget",
|
|
625
|
+
"condition": "embedTarget === 'overlay'"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "scheduleDaysOfWeek",
|
|
630
|
+
"type": "string",
|
|
631
|
+
"defaultValue": "",
|
|
632
|
+
"optionGroup": "schedule",
|
|
633
|
+
"inputController": {
|
|
634
|
+
"type": "text",
|
|
635
|
+
"description": "Weekdays",
|
|
636
|
+
"helpText": "Optional list such as mon,wed,fri or 1,3,5 (0=Sunday). Empty means every day."
|
|
637
|
+
},
|
|
638
|
+
"visibilityCondition": {
|
|
639
|
+
"dependsOn": "embedTarget",
|
|
640
|
+
"condition": "embedTarget === 'overlay'"
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"name": "scheduleTimeStart",
|
|
645
|
+
"type": "string",
|
|
646
|
+
"defaultValue": "",
|
|
647
|
+
"optionGroup": "schedule",
|
|
648
|
+
"inputController": {
|
|
649
|
+
"type": "text",
|
|
650
|
+
"description": "From time",
|
|
651
|
+
"helpText": "Earliest local time (HH:mm)."
|
|
652
|
+
},
|
|
653
|
+
"visibilityCondition": {
|
|
654
|
+
"dependsOn": "embedTarget",
|
|
655
|
+
"condition": "embedTarget === 'overlay'"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"name": "scheduleTimeEnd",
|
|
660
|
+
"type": "string",
|
|
661
|
+
"defaultValue": "",
|
|
662
|
+
"optionGroup": "schedule",
|
|
663
|
+
"inputController": {
|
|
664
|
+
"type": "text",
|
|
665
|
+
"description": "Until time",
|
|
666
|
+
"helpText": "Latest local time (HH:mm)."
|
|
667
|
+
},
|
|
668
|
+
"visibilityCondition": {
|
|
669
|
+
"dependsOn": "embedTarget",
|
|
670
|
+
"condition": "embedTarget === 'overlay'"
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
]
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
"name": "Acquisition",
|
|
677
|
+
"optionGroup": "acquisition",
|
|
678
|
+
"properties": [
|
|
679
|
+
{
|
|
680
|
+
"name": "requireDirectTraffic",
|
|
372
681
|
"type": "boolean",
|
|
373
682
|
"defaultValue": false,
|
|
683
|
+
"optionGroup": "acquisition",
|
|
374
684
|
"inputController": {
|
|
375
685
|
"type": "switch",
|
|
376
|
-
"
|
|
377
|
-
"
|
|
686
|
+
"description": "Direct traffic only",
|
|
687
|
+
"helpText": "Open only when there is no referrer (typed URL or bookmark)."
|
|
378
688
|
},
|
|
379
689
|
"visibilityCondition": {
|
|
380
690
|
"dependsOn": "embedTarget",
|
|
@@ -382,22 +692,166 @@
|
|
|
382
692
|
}
|
|
383
693
|
},
|
|
384
694
|
{
|
|
385
|
-
"name": "
|
|
695
|
+
"name": "referrerInclude",
|
|
386
696
|
"type": "string",
|
|
387
|
-
"defaultValue": "
|
|
697
|
+
"defaultValue": "",
|
|
698
|
+
"optionGroup": "acquisition",
|
|
388
699
|
"inputController": {
|
|
389
|
-
"type": "
|
|
390
|
-
"
|
|
391
|
-
"
|
|
700
|
+
"type": "textarea",
|
|
701
|
+
"description": "Referrers",
|
|
702
|
+
"helpText": "Comma-separated host fragments (e.g. google.com, newsletter.example). Empty allows any referrer."
|
|
703
|
+
},
|
|
704
|
+
"visibilityCondition": {
|
|
705
|
+
"dependsOn": "embedTarget",
|
|
706
|
+
"condition": "embedTarget === 'overlay'"
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"name": "urlIncludePatterns",
|
|
711
|
+
"type": "string",
|
|
712
|
+
"defaultValue": "",
|
|
713
|
+
"optionGroup": "acquisition",
|
|
714
|
+
"inputController": {
|
|
715
|
+
"type": "textarea",
|
|
716
|
+
"description": "URL includes",
|
|
717
|
+
"helpText": "Only open when the current URL matches one of these patterns (substring or * wildcard)."
|
|
718
|
+
},
|
|
719
|
+
"visibilityCondition": {
|
|
720
|
+
"dependsOn": "embedTarget",
|
|
721
|
+
"condition": "embedTarget === 'overlay'"
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
"name": "utmSourceMatch",
|
|
726
|
+
"type": "string",
|
|
727
|
+
"defaultValue": "",
|
|
728
|
+
"optionGroup": "acquisition",
|
|
729
|
+
"inputController": {
|
|
730
|
+
"type": "text",
|
|
731
|
+
"description": "UTM source",
|
|
732
|
+
"helpText": "utm_source query must contain this text."
|
|
733
|
+
},
|
|
734
|
+
"visibilityCondition": {
|
|
735
|
+
"dependsOn": "embedTarget",
|
|
736
|
+
"condition": "embedTarget === 'overlay'"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"name": "utmMediumMatch",
|
|
741
|
+
"type": "string",
|
|
742
|
+
"defaultValue": "",
|
|
743
|
+
"optionGroup": "acquisition",
|
|
744
|
+
"inputController": {
|
|
745
|
+
"type": "text",
|
|
746
|
+
"description": "UTM medium",
|
|
747
|
+
"helpText": "utm_medium query must contain this text."
|
|
748
|
+
},
|
|
749
|
+
"visibilityCondition": {
|
|
750
|
+
"dependsOn": "embedTarget",
|
|
751
|
+
"condition": "embedTarget === 'overlay'"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"name": "utmCampaignMatch",
|
|
756
|
+
"type": "string",
|
|
757
|
+
"defaultValue": "",
|
|
758
|
+
"optionGroup": "acquisition",
|
|
759
|
+
"inputController": {
|
|
760
|
+
"type": "text",
|
|
761
|
+
"description": "UTM campaign",
|
|
762
|
+
"helpText": "utm_campaign query must contain this text."
|
|
763
|
+
},
|
|
764
|
+
"visibilityCondition": {
|
|
765
|
+
"dependsOn": "embedTarget",
|
|
766
|
+
"condition": "embedTarget === 'overlay'"
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"name": "View limits",
|
|
773
|
+
"optionGroup": "frequency",
|
|
774
|
+
"properties": [
|
|
775
|
+
{
|
|
776
|
+
"name": "restrictions",
|
|
777
|
+
"type": "boolean",
|
|
778
|
+
"defaultValue": false,
|
|
779
|
+
"inputController": {
|
|
780
|
+
"type": "switch",
|
|
781
|
+
"helpText": "Enable restrictions",
|
|
782
|
+
"description": "Restrictions"
|
|
783
|
+
},
|
|
784
|
+
"optionGroup": "frequency"
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"name": "maxViews",
|
|
788
|
+
"type": "number",
|
|
789
|
+
"defaultValue": 10,
|
|
790
|
+
"inputController": {
|
|
791
|
+
"type": "number",
|
|
792
|
+
"helpText": "Set the maximum number of views",
|
|
793
|
+
"description": "Max # of views",
|
|
392
794
|
"config": {
|
|
393
|
-
"
|
|
394
|
-
"
|
|
795
|
+
"min": 1,
|
|
796
|
+
"max": 100000,
|
|
797
|
+
"step": 1
|
|
395
798
|
}
|
|
396
799
|
},
|
|
397
800
|
"visibilityCondition": {
|
|
398
|
-
"dependsOn": "
|
|
399
|
-
"condition": "
|
|
400
|
-
}
|
|
801
|
+
"dependsOn": "restrictions",
|
|
802
|
+
"condition": "restrictions === true"
|
|
803
|
+
},
|
|
804
|
+
"optionGroup": "frequency"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"name": "timePeriod",
|
|
808
|
+
"type": "number",
|
|
809
|
+
"defaultValue": 120,
|
|
810
|
+
"inputController": {
|
|
811
|
+
"type": "number",
|
|
812
|
+
"helpText": "Set the time period in hours",
|
|
813
|
+
"description": "Time period",
|
|
814
|
+
"config": {
|
|
815
|
+
"min": 1,
|
|
816
|
+
"max": 8760,
|
|
817
|
+
"step": 1
|
|
818
|
+
}
|
|
819
|
+
},
|
|
820
|
+
"visibilityCondition": {
|
|
821
|
+
"dependsOn": "restrictions",
|
|
822
|
+
"condition": "restrictions === true"
|
|
823
|
+
},
|
|
824
|
+
"optionGroup": "frequency"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
"name": "displayOnMobile",
|
|
828
|
+
"type": "boolean",
|
|
829
|
+
"defaultValue": true,
|
|
830
|
+
"inputController": {
|
|
831
|
+
"type": "switch",
|
|
832
|
+
"helpText": "Display on mobile devices",
|
|
833
|
+
"description": "Display on mobile"
|
|
834
|
+
},
|
|
835
|
+
"visibilityCondition": {
|
|
836
|
+
"dependsOn": "restrictions",
|
|
837
|
+
"condition": "restrictions === true"
|
|
838
|
+
},
|
|
839
|
+
"optionGroup": "frequency"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"name": "displayOnDesktop",
|
|
843
|
+
"type": "boolean",
|
|
844
|
+
"defaultValue": true,
|
|
845
|
+
"inputController": {
|
|
846
|
+
"type": "switch",
|
|
847
|
+
"helpText": "Display on desktop devices",
|
|
848
|
+
"description": "Display on desktop"
|
|
849
|
+
},
|
|
850
|
+
"visibilityCondition": {
|
|
851
|
+
"dependsOn": "restrictions",
|
|
852
|
+
"condition": "restrictions === true"
|
|
853
|
+
},
|
|
854
|
+
"optionGroup": "frequency"
|
|
401
855
|
}
|
|
402
856
|
]
|
|
403
857
|
}
|
|
@@ -405,5 +859,47 @@
|
|
|
405
859
|
}
|
|
406
860
|
]
|
|
407
861
|
}
|
|
862
|
+
],
|
|
863
|
+
"optionGroups": [
|
|
864
|
+
{
|
|
865
|
+
"id": "basic",
|
|
866
|
+
"label": "Basic options",
|
|
867
|
+
"order": 1
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"id": "layout",
|
|
871
|
+
"label": "Layout & overlay",
|
|
872
|
+
"order": 2
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"id": "triggers",
|
|
876
|
+
"label": "Triggers",
|
|
877
|
+
"order": 3
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"id": "excludes",
|
|
881
|
+
"label": "Excludes",
|
|
882
|
+
"order": 4
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"id": "visitors",
|
|
886
|
+
"label": "Visitors",
|
|
887
|
+
"order": 5
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"id": "schedule",
|
|
891
|
+
"label": "Schedule",
|
|
892
|
+
"order": 6
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"id": "acquisition",
|
|
896
|
+
"label": "Acquisition",
|
|
897
|
+
"order": 7
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"id": "frequency",
|
|
901
|
+
"label": "View limits",
|
|
902
|
+
"order": 8
|
|
903
|
+
}
|
|
408
904
|
]
|
|
409
905
|
}
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -84,12 +84,10 @@ export declare const EDITOR_CATALOGS: {
|
|
|
84
84
|
readonly 'editor.embed.copiedHint': "Paste it anywhere on your site.";
|
|
85
85
|
readonly 'editor.embed.copyFailed': "Copy failed";
|
|
86
86
|
readonly 'editor.embed.copyFailedHint': "Please try manual selection";
|
|
87
|
-
readonly 'editor.embed.pasteButton': "Paste embed code";
|
|
88
87
|
readonly 'editor.embed.pasteAreaAria': "Embed code paste area";
|
|
89
88
|
readonly 'editor.embed.pasteInvalid': "That is not a Widgetic embed code.";
|
|
90
89
|
readonly 'editor.embed.pasteApplied': "Settings applied. This composition keeps its own embed code.";
|
|
91
90
|
readonly 'editor.embed.pasteNotApplied': " Not applied: {labels}.";
|
|
92
|
-
readonly 'editor.embed.pasteClipboardBlocked': "Press Cmd+V while the box is selected.";
|
|
93
91
|
readonly 'editor.embed.widgetDefaultsBanner': "Started from your last settings for this widget";
|
|
94
92
|
readonly 'editor.embed.widgetDefaultsReset': "Reset";
|
|
95
93
|
readonly 'editor.embedAssistant.tabLabel': "Assistant";
|
|
@@ -474,7 +472,8 @@ export declare const EDITOR_CATALOGS: {
|
|
|
474
472
|
readonly 'dialog.rename.tooLong': "Name must be {max} characters or less";
|
|
475
473
|
readonly 'dialog.close': "Close modal";
|
|
476
474
|
readonly 'toast.rename.started': "Renaming \"{name}\"\u2026";
|
|
477
|
-
readonly 'toast.rename.done': "
|
|
475
|
+
readonly 'toast.rename.done': "File renamed";
|
|
476
|
+
readonly 'toast.rename.folderDone': "Folder renamed";
|
|
478
477
|
readonly 'toast.rename.doneDetail': "Successfully renamed \"{oldName}\" to \"{newName}\"";
|
|
479
478
|
readonly 'toast.rename.failed': "Rename failed";
|
|
480
479
|
readonly 'toast.rename.noChange': "No changes were made";
|
|
@@ -484,7 +483,7 @@ export declare const EDITOR_CATALOGS: {
|
|
|
484
483
|
readonly 'toast.delete.doneFolder': "Deleted folder \"{name}\"";
|
|
485
484
|
readonly 'toast.delete.doneFile': "Deleted \"{name}\"";
|
|
486
485
|
readonly 'toast.delete.doneMany': "{count, plural, one {Deleted # item} other {Deleted # items}}";
|
|
487
|
-
readonly 'toast.delete.doneFolderDetail': "Folder and its
|
|
486
|
+
readonly 'toast.delete.doneFolderDetail': "Folder and its files were removed from your library";
|
|
488
487
|
readonly 'toast.delete.doneFileDetail': "Item was deleted successfully";
|
|
489
488
|
readonly 'toast.delete.doneManyDetail': "{count, plural, one {# item was deleted successfully} other {# items were deleted successfully}}";
|
|
490
489
|
readonly 'toast.delete.doneNames': "Deleted: {names}";
|
|
@@ -673,7 +672,7 @@ export declare const ALL_EDITOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
673
672
|
* the nearest real one), a value that is not text, a template that does not parse, or one that asks for a value the message
|
|
674
673
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
675
674
|
*/
|
|
676
|
-
export declare const checkEditorMessages: (messages: import("@widgetic/
|
|
675
|
+
export declare const checkEditorMessages: (messages: import("@widgetic/design-system/i18n").MessageOverrides) => import("@widgetic/design-system/i18n").MessageProblem[];
|
|
677
676
|
/**
|
|
678
677
|
* Called by the root component of an editor while it is created, so everything inside it speaks the page's language.
|
|
679
678
|
* The context belongs to one root component, so two editors on a page can speak two languages.
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -126,12 +126,10 @@ export declare const EDITOR_MESSAGES: {
|
|
|
126
126
|
readonly 'editor.embed.copiedHint': "Paste it anywhere on your site.";
|
|
127
127
|
readonly 'editor.embed.copyFailed': "Copy failed";
|
|
128
128
|
readonly 'editor.embed.copyFailedHint': "Please try manual selection";
|
|
129
|
-
readonly 'editor.embed.pasteButton': "Paste embed code";
|
|
130
129
|
readonly 'editor.embed.pasteAreaAria': "Embed code paste area";
|
|
131
130
|
readonly 'editor.embed.pasteInvalid': "That is not a Widgetic embed code.";
|
|
132
131
|
readonly 'editor.embed.pasteApplied': "Settings applied. This composition keeps its own embed code.";
|
|
133
132
|
readonly 'editor.embed.pasteNotApplied': " Not applied: {labels}.";
|
|
134
|
-
readonly 'editor.embed.pasteClipboardBlocked': "Press Cmd+V while the box is selected.";
|
|
135
133
|
readonly 'editor.embed.widgetDefaultsBanner': "Started from your last settings for this widget";
|
|
136
134
|
readonly 'editor.embed.widgetDefaultsReset': "Reset";
|
|
137
135
|
readonly 'editor.embedAssistant.tabLabel': "Assistant";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -133,12 +133,10 @@ export const EDITOR_MESSAGES = {
|
|
|
133
133
|
'editor.embed.copiedHint': 'Paste it anywhere on your site.',
|
|
134
134
|
'editor.embed.copyFailed': 'Copy failed',
|
|
135
135
|
'editor.embed.copyFailedHint': 'Please try manual selection',
|
|
136
|
-
'editor.embed.pasteButton': 'Paste embed code',
|
|
137
136
|
'editor.embed.pasteAreaAria': 'Embed code paste area',
|
|
138
137
|
'editor.embed.pasteInvalid': 'That is not a Widgetic embed code.',
|
|
139
138
|
'editor.embed.pasteApplied': 'Settings applied. This composition keeps its own embed code.',
|
|
140
139
|
'editor.embed.pasteNotApplied': ' Not applied: {labels}.',
|
|
141
|
-
'editor.embed.pasteClipboardBlocked': 'Press Cmd+V while the box is selected.',
|
|
142
140
|
'editor.embed.widgetDefaultsBanner': 'Started from your last settings for this widget',
|
|
143
141
|
'editor.embed.widgetDefaultsReset': 'Reset',
|
|
144
142
|
// ===== Embed configuration assistant (side panel) =====
|
package/dist/i18n/translate.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* its sentences with it until the page gives another translator). The editor's screens get their words, in the page's
|
|
4
4
|
* language, from `useEditorLanguage` (see `language.ts`).
|
|
5
5
|
*/
|
|
6
|
-
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"editor.app.loading" | "editor.app.tryAgain" | "editor.app.retry" | "editor.failure.widgetNotPublished" | "editor.failure.sessionEndedWhileSaving" | "editor.failure.sessionEnded" | "editor.failure.compositionNotFound" | "editor.failure.noAccess" | "editor.failure.noWidget" | "editor.failure.widgetNotFound" | "editor.failure.saveNeedsConnection" | "editor.failure.loadNeedsConnection" | "editor.failure.saveFailed" | "editor.failure.loadFailed" | "editor.failure.settingsLoadFailed" | "editor.failure.noSettings" | "editor.failure.errorCode" | "editor.conflict.title" | "editor.conflict.bodyNamed" | "editor.conflict.body" | "editor.conflict.keepMine" | "editor.conflict.keepMineHint" | "editor.conflict.loadLatest" | "editor.conflict.loadLatestHint" | "editor.conflict.working" | "editor.conflict.resolveFailed" | "editor.presence.blockedTitleNamed" | "editor.presence.blockedTitleYou" | "editor.presence.blockedTitle" | "editor.presence.blockedBody" | "editor.presence.lostTitleNamed" | "editor.presence.lostTitleYou" | "editor.presence.lostTitle" | "editor.presence.lostBody" | "editor.presence.takeOver" | "editor.presence.takeOverHint" | "editor.presence.lookOnly" | "editor.presence.lookOnlyHint" | "editor.presence.working" | "editor.presence.actionFailed" | "editor.presence.readOnlyNamed" | "editor.presence.readOnlyYou" | "editor.presence.readOnly" | "editor.presence.readOnlyFree" | "editor.presence.startEditing" | "editor.props.title" | "editor.props.designTab" | "editor.props.contentTab" | "editor.props.contentCard" | "editor.props.save" | "editor.props.saving" | "editor.props.noConfiguration" | "editor.props.noDesignSchema" | "editor.props.noSchemaData" | "editor.props.noComponents" | "editor.props.noProperties" | "editor.props.addItem" | "editor.props.deleteItem" | "editor.contentBulkDrop.idleHint" | "editor.contentBulkDrop.dragOver" | "editor.contentBulkDrop.summaryAddedOnly" | "editor.contentBulkDrop.summaryWithLibraryOnly" | "editor.contentBulkDrop.uploadFailures" | "editor.contentBulkDrop.dismiss" | "editor.contentBulkDrop.uploadFailed" | "editor.contentBulkDrop.tooLarge" | "editor.contentBulkDrop.uploadingHeader" | "editor.embed.title" | "editor.embed.loading" | "editor.embed.noCode" | "editor.embed.codeHeader" | "editor.embed.headerArea" | "editor.embed.copy" | "editor.embed.copied" | "editor.embed.copiedHint" | "editor.embed.copyFailed" | "editor.embed.copyFailedHint" | "editor.embed.
|
|
6
|
+
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"editor.app.loading" | "editor.app.tryAgain" | "editor.app.retry" | "editor.failure.widgetNotPublished" | "editor.failure.sessionEndedWhileSaving" | "editor.failure.sessionEnded" | "editor.failure.compositionNotFound" | "editor.failure.noAccess" | "editor.failure.noWidget" | "editor.failure.widgetNotFound" | "editor.failure.saveNeedsConnection" | "editor.failure.loadNeedsConnection" | "editor.failure.saveFailed" | "editor.failure.loadFailed" | "editor.failure.settingsLoadFailed" | "editor.failure.noSettings" | "editor.failure.errorCode" | "editor.conflict.title" | "editor.conflict.bodyNamed" | "editor.conflict.body" | "editor.conflict.keepMine" | "editor.conflict.keepMineHint" | "editor.conflict.loadLatest" | "editor.conflict.loadLatestHint" | "editor.conflict.working" | "editor.conflict.resolveFailed" | "editor.presence.blockedTitleNamed" | "editor.presence.blockedTitleYou" | "editor.presence.blockedTitle" | "editor.presence.blockedBody" | "editor.presence.lostTitleNamed" | "editor.presence.lostTitleYou" | "editor.presence.lostTitle" | "editor.presence.lostBody" | "editor.presence.takeOver" | "editor.presence.takeOverHint" | "editor.presence.lookOnly" | "editor.presence.lookOnlyHint" | "editor.presence.working" | "editor.presence.actionFailed" | "editor.presence.readOnlyNamed" | "editor.presence.readOnlyYou" | "editor.presence.readOnly" | "editor.presence.readOnlyFree" | "editor.presence.startEditing" | "editor.props.title" | "editor.props.designTab" | "editor.props.contentTab" | "editor.props.contentCard" | "editor.props.save" | "editor.props.saving" | "editor.props.noConfiguration" | "editor.props.noDesignSchema" | "editor.props.noSchemaData" | "editor.props.noComponents" | "editor.props.noProperties" | "editor.props.addItem" | "editor.props.deleteItem" | "editor.contentBulkDrop.idleHint" | "editor.contentBulkDrop.dragOver" | "editor.contentBulkDrop.summaryAddedOnly" | "editor.contentBulkDrop.summaryWithLibraryOnly" | "editor.contentBulkDrop.uploadFailures" | "editor.contentBulkDrop.dismiss" | "editor.contentBulkDrop.uploadFailed" | "editor.contentBulkDrop.tooLarge" | "editor.contentBulkDrop.uploadingHeader" | "editor.embed.title" | "editor.embed.loading" | "editor.embed.noCode" | "editor.embed.codeHeader" | "editor.embed.headerArea" | "editor.embed.copy" | "editor.embed.copied" | "editor.embed.copiedHint" | "editor.embed.copyFailed" | "editor.embed.copyFailedHint" | "editor.embed.pasteAreaAria" | "editor.embed.pasteInvalid" | "editor.embed.pasteApplied" | "editor.embed.pasteNotApplied" | "editor.embed.widgetDefaultsBanner" | "editor.embed.widgetDefaultsReset" | "editor.embedAssistant.tabLabel" | "editor.embedAssistant.title" | "editor.embedAssistant.welcome" | "editor.embedAssistant.chipOverlayExitIntent" | "editor.embedAssistant.chipCenteredFiveTimes" | "editor.embedAssistant.chipHideOnMobile" | "editor.embedAssistant.composerPlaceholder" | "editor.embedAssistant.newChat" | "editor.embedAssistant.collapse" | "editor.embedAssistant.working" | "editor.embedAssistant.continue" | "editor.embedAssistant.send" | "editor.embedAssistant.copyEmbedCode" | "editor.embedAssistant.errorGeneric" | "editor.embedAssistant.errorRateLimit" | "editor.preview.title" | "editor.preview.dragHandle" | "editor.preview.desktop" | "editor.preview.mobile" | "editor.preview.widthShort" | "editor.preview.heightShort" | "editor.preview.noUrl" | "editor.preview.copyUrl" | "editor.preview.refresh" | "editor.preview.fitToPanel" | "editor.preview.mobileViewport" | "editor.preview.desktopViewport" | "editor.preview.openInNewTab" | "editor.preview.newTab" | "editor.preview.selectWidget" | "editor.preview.widgetName" | "editor.preview.notPublished" | "editor.preview.publishToPreview" | "editor.preview.frameTitle" | "editor.preview.frameTitleNamed" | "editor.preview.unavailable" | "editor.preview.loadFailedPreview" | "editor.preview.retry" | "editor.preview.retryBuild" | "editor.preview.retryPreview" | "editor.preview.fixErrors" | "editor.preview.viewErrors" | "editor.preview.runtimeError" | "editor.preview.compilationErrors" | "editor.preview.compilationErrorsDetail" | "editor.preview.noCodeYet" | "editor.preview.noPreview" | "editor.preview.building" | "editor.preview.loadingWidget" | "editor.preview.loadingPreview" | "editor.preview.checkingWidget" | "editor.preview.applyingSettings" | "editor.preview.connecting" | "editor.preview.generatingCode" | "editor.list.recentlyUsed" | "editor.list.more" | "editor.list.searchResults" | "editor.list.loadingMore" | "editor.list.deleteItem" | "editor.category.all" | "editor.category.mine" | "editor.category.sansSerif" | "editor.category.serif" | "editor.category.script" | "editor.category.other" | "editor.category.icons" | "editor.category.emojis" | "editor.category.clipart" | "editor.font.select" | "editor.font.title" | "editor.font.search" | "editor.font.list" | "editor.font.loading" | "editor.font.noneFound" | "editor.font.noneAvailable" | "editor.font.remove" | "editor.font.weight" | "editor.font.weightList" | "editor.fontWeight.withItalic" | "editor.fontWeight.italic" | "editor.fontWeight.thin" | "editor.fontWeight.extraLight" | "editor.fontWeight.light" | "editor.fontWeight.regular" | "editor.fontWeight.medium" | "editor.fontWeight.semiBold" | "editor.fontWeight.bold" | "editor.fontWeight.extraBold" | "editor.fontWeight.black" | "editor.vector.select" | "editor.vector.title" | "editor.vector.search" | "editor.vector.list" | "editor.vector.noneFound" | "editor.vector.noneAvailable" | "editor.file.useFile" | "editor.file.useImage" | "editor.file.useVideo" | "editor.file.useAudio" | "editor.file.useDocument" | "editor.file.addFile" | "editor.file.addImage" | "editor.file.addVideo" | "editor.file.addAudio" | "editor.file.addDocument" | "editor.file.play" | "editor.file.pause" | "editor.file.notFound" | "editor.file.emptyFolder" | "editor.file.clear" | "editor.file.pickFailed" | "editor.file.dialogTitle" | "editor.file.closeDialog" | "editor.color.noRecent" | "editor.color.picker" | "editor.date.pick" | "editor.date.pickRange" | "editor.date.invalid" | "editor.date.selectMonth" | "editor.date.selectYear" | "editor.date.calendarLabel" | "editor.date.rangeCalendarLabel" | "editor.date.previousMonth" | "editor.date.nextMonth" | "editor.dateField.dayHint" | "editor.dateField.monthHint" | "editor.dateField.yearHint" | "editor.dateField.dayLabel" | "editor.dateField.monthLabel" | "editor.dateField.yearLabel" | "editor.knowledge.loading" | "editor.knowledge.unavailable" | "editor.knowledge.retry" | "editor.knowledge.empty" | "editor.knowledge.listLabel" | "editor.knowledge.characters" | "editor.knowledge.processing" | "editor.knowledge.removeLabel" | "editor.knowledge.removeConfirm" | "editor.knowledge.keep" | "editor.knowledge.removing" | "editor.knowledge.sending" | "editor.knowledge.sendingOf" | "editor.knowledge.addFiles" | "editor.knowledge.dropHint" | "editor.knowledge.addText" | "editor.knowledge.documentsUsed" | "editor.knowledge.textUsed" | "editor.knowledge.titleLabel" | "editor.knowledge.titlePlaceholder" | "editor.knowledge.textLabel" | "editor.knowledge.textPlaceholder" | "editor.knowledge.addDocument" | "editor.knowledge.cancel" | "editor.knowledge.dismiss" | "editor.knowledgeError.titleRequired" | "editor.knowledgeError.titleTooLong" | "editor.knowledgeError.textRequired" | "editor.knowledgeError.textTooLong" | "editor.knowledgeError.fileRequired" | "editor.knowledgeError.fileTooLarge" | "editor.knowledgeError.fileTypeUnsupported" | "editor.knowledgeError.fileUnreadable" | "editor.knowledgeError.fileNoText" | "editor.knowledgeError.duplicate" | "editor.knowledgeError.limitDocuments" | "editor.knowledgeError.limitText" | "editor.knowledgeError.tryLater" | "editor.knowledgeError.tooManyAdds" | "editor.knowledgeError.connection" | "editor.knowledgeError.generic" | "editor.knowledgeError.moreProblems" | "editor.knowledgeError.notSent" | "editor.dropdown.select" | "editor.switch.off" | "editor.switch.on" | "editor.tags.add" | "editor.fixedPosition.set" | "editor.fixedPosition.topLeft" | "editor.fixedPosition.topCenter" | "editor.fixedPosition.topRight" | "editor.fixedPosition.centerLeft" | "editor.fixedPosition.centerCenter" | "editor.fixedPosition.centerRight" | "editor.fixedPosition.bottomLeft" | "editor.fixedPosition.bottomCenter" | "editor.fixedPosition.bottomRight" | "editor.corners.group" | "editor.corners.topLeft" | "editor.corners.topRight" | "editor.corners.bottomLeft" | "editor.corners.bottomRight" | "editor.corners.lock" | "editor.corners.unlock" | "editor.textArea.toolbar" | "editor.textArea.toggleBold" | "editor.textArea.toggleItalic" | "editor.textArea.toggleUnderline" | "editor.textArea.toggleLink" | "editor.textArea.text" | "editor.textArea.paragraph" | "editor.textArea.heading1" | "editor.textArea.heading2" | "editor.textArea.heading3" | "editor.textArea.bulletList" | "editor.textArea.numberedList" | "editor.textArea.checkList" | "editor.textArea.textStyles" | "editor.textArea.listStyles" | "editor.textArea.linkUrlLabel" | "editor.textArea.linkUrlPlaceholder" | "editor.textArea.linkUrlApply" | "editor.textArea.linkUrlRemove" | "editor.textArea.linkUrlEmpty" | "editor.textArea.linkUrlInvalid" | "editor.position.readout" | "editor.stepper.decrease" | "editor.stepper.increase" | "editor.tags.remove" | "editor.list.uploadedByYou" | "editor.vector.loadFailed" | "editor.textArea.closePanel" | "editor.textArea.closeColorMode" | "editor.embed.helpPrompt" | "editor.embed.learnMore" | "editor.embed.helpLinkAria" | "editor.schema.subtitleFont">;
|