@widgetic/creator 0.4.3 → 0.4.4
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/README.md +4 -0
- package/dist/CreatorApp.svelte +327 -188
- package/dist/components/DesignQuickEdit.svelte +0 -1
- package/dist/components/WidgetShapeLivePreviews.svelte +11 -6
- package/dist/components/WidgetShapeLivePreviews.svelte.d.ts +3 -1
- package/dist/i18n/language.d.ts +244 -7
- package/package.json +2 -1
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
102
|
<div class="design-quick-edit flex flex-col gap-2 overflow-visible rounded-lg border border-gray-200 bg-white p-3 shadow-sm">
|
|
103
|
-
<p class="text-xs leading-relaxed text-gray-600">{spec.summary}</p>
|
|
104
103
|
{#if detached}
|
|
105
104
|
<p class="text-[10px] leading-relaxed text-gray-400">
|
|
106
105
|
{$t('creator.designEdit.shownAsAppliedTheseControls')}
|
|
@@ -209,31 +209,36 @@
|
|
|
209
209
|
* showing the version from before the generation.
|
|
210
210
|
*/
|
|
211
211
|
const RELOAD_COALESCE_MS = 1200;
|
|
212
|
+
// Completion, history alignment and the unpublished-head pass all ask for a
|
|
213
|
+
// reload of the same Worker document. A second one in this window only flashes.
|
|
214
|
+
const RELOAD_QUIET_MS = 3000;
|
|
212
215
|
let lastReloadAtByWidgetId: Record<string, number> = {};
|
|
213
216
|
const coalescedReloadTimers = new Map<string, ReturnType<typeof setTimeout>>();
|
|
214
217
|
|
|
215
|
-
export function requestReload(widgetId: string): void {
|
|
218
|
+
export function requestReload(widgetId: string, options?: { immediate?: boolean }): void {
|
|
216
219
|
const now = Date.now();
|
|
217
220
|
const sinceLast = now - (lastReloadAtByWidgetId[widgetId] || 0);
|
|
218
221
|
// A second call inside the window used to be dropped when a timer already
|
|
219
222
|
// existed, so the codegen reload (the one that matches the new commit)
|
|
220
223
|
// never ran and the shape kept the previous build. Replace the timer so
|
|
221
224
|
// the later request wins. While generating, wait and try again.
|
|
222
|
-
|
|
225
|
+
// `immediate` is the call after the run flag has been cleared: the prop can
|
|
226
|
+
// still say generating for this turn, and waiting here left the old document up.
|
|
227
|
+
if (isGenerating) {
|
|
223
228
|
const existing = coalescedReloadTimers.get(widgetId);
|
|
224
229
|
if (existing) clearTimeout(existing);
|
|
225
|
-
const wait = isGenerating
|
|
226
|
-
? RELOAD_COALESCE_MS
|
|
227
|
-
: Math.max(0, RELOAD_COALESCE_MS - sinceLast);
|
|
228
230
|
coalescedReloadTimers.set(
|
|
229
231
|
widgetId,
|
|
230
232
|
setTimeout(() => {
|
|
231
233
|
coalescedReloadTimers.delete(widgetId);
|
|
232
234
|
requestReload(widgetId);
|
|
233
|
-
},
|
|
235
|
+
}, RELOAD_COALESCE_MS),
|
|
234
236
|
);
|
|
235
237
|
return;
|
|
236
238
|
}
|
|
239
|
+
if (!options?.immediate && sinceLast < RELOAD_QUIET_MS) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
237
242
|
const coalesced = coalescedReloadTimers.get(widgetId);
|
|
238
243
|
if (coalesced) {
|
|
239
244
|
clearTimeout(coalesced);
|
|
@@ -94,7 +94,9 @@ interface Props {
|
|
|
94
94
|
isGenerating?: boolean;
|
|
95
95
|
}
|
|
96
96
|
declare const WidgetShapeLivePreviews: import("svelte").Component<Props, {
|
|
97
|
-
requestReload: (widgetId: string
|
|
97
|
+
requestReload: (widgetId: string, options?: {
|
|
98
|
+
immediate?: boolean;
|
|
99
|
+
}) => void;
|
|
98
100
|
cancelReloads: (widgetId?: string) => void;
|
|
99
101
|
setSelectedVersion: (widgetId: string, versionId: string | null) => void;
|
|
100
102
|
sync: () => void;
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { CANVAS_MESSAGES } from '@widgetic/canvas/i18n';
|
|
2
1
|
export type { CreatorCatalogs, CreatorMessageSlices } from './languageKit.js';
|
|
3
2
|
/**
|
|
4
3
|
* The language of a creator on a page. The creator has three packages inside it that draw words of their own (the editor,
|
|
@@ -533,7 +532,245 @@ export declare const CREATOR_CATALOGS: {
|
|
|
533
532
|
};
|
|
534
533
|
readonly editor: any;
|
|
535
534
|
readonly chat: any;
|
|
536
|
-
readonly canvas:
|
|
535
|
+
readonly canvas: {
|
|
536
|
+
readonly 'canvas.state.loading': "Loading canvas\u2026";
|
|
537
|
+
readonly 'canvas.state.initFailed': "Canvas failed to initialize.";
|
|
538
|
+
readonly 'canvas.error.imageFromUrl': "Failed to load image from URL. Make sure the URL is correct and allows cross-origin requests.";
|
|
539
|
+
readonly 'canvas.defaults.text': "Hello World!";
|
|
540
|
+
readonly 'canvas.defaults.textBox': "Type here";
|
|
541
|
+
readonly 'canvas.defaults.frameLabel': "Frame";
|
|
542
|
+
readonly 'canvas.defaults.untitledFrame': "Untitled Frame";
|
|
543
|
+
readonly 'canvas.defaults.untitledShape': "Untitled Shape";
|
|
544
|
+
readonly 'canvas.draw.dropImage': "Drop image";
|
|
545
|
+
readonly 'canvas.draw.dropVideo': "Drop video";
|
|
546
|
+
readonly 'canvas.draw.or': "or";
|
|
547
|
+
readonly 'canvas.draw.doubleClick': "double click";
|
|
548
|
+
readonly 'canvas.draw.widgetName': "Widget";
|
|
549
|
+
readonly 'canvas.draw.widgetPreview': "Widget preview";
|
|
550
|
+
readonly 'canvas.tool.select': "Select";
|
|
551
|
+
readonly 'canvas.tool.hand': "Hand / Pan";
|
|
552
|
+
readonly 'canvas.tool.erase': "Erase";
|
|
553
|
+
readonly 'canvas.tool.draw': "Draw";
|
|
554
|
+
readonly 'canvas.tool.arrow': "Arrow";
|
|
555
|
+
readonly 'canvas.tool.rectangle': "Rectangle";
|
|
556
|
+
readonly 'canvas.tool.triangle': "Triangle";
|
|
557
|
+
readonly 'canvas.tool.ellipse': "Ellipse";
|
|
558
|
+
readonly 'canvas.tool.circle': "Circle";
|
|
559
|
+
readonly 'canvas.tool.frame': "Frame";
|
|
560
|
+
readonly 'canvas.tool.text': "Text";
|
|
561
|
+
readonly 'canvas.tool.image': "Image";
|
|
562
|
+
readonly 'canvas.tool.video': "Video";
|
|
563
|
+
readonly 'canvas.tool.shapes': "Shapes";
|
|
564
|
+
readonly 'canvas.tool.moreShapes': "More Shapes";
|
|
565
|
+
readonly 'canvas.tool.undo': "Undo";
|
|
566
|
+
readonly 'canvas.tool.redo': "Redo";
|
|
567
|
+
readonly 'canvas.tool.withKey': "{name} ({key})";
|
|
568
|
+
readonly 'canvas.tool.undoTitle': "Undo (Ctrl+Z)";
|
|
569
|
+
readonly 'canvas.tool.redoTitle': "Redo (Ctrl+Shift+Z)";
|
|
570
|
+
readonly 'canvas.tool.stickyOn': "Tool Lock: ON \u2014 drawing tool stays active";
|
|
571
|
+
readonly 'canvas.tool.stickyOff': "Tool Lock: OFF \u2014 reverts to Select after placing";
|
|
572
|
+
readonly 'canvas.tool.stickyLabel': "Toggle sticky tool mode";
|
|
573
|
+
readonly 'canvas.menu.mediaShapes': "Media Shapes";
|
|
574
|
+
readonly 'canvas.category.geometric': "Geometric Shapes";
|
|
575
|
+
readonly 'canvas.category.arrows': "Arrow Shapes";
|
|
576
|
+
readonly 'canvas.category.media': "Media Icons";
|
|
577
|
+
readonly 'canvas.category.ui': "UI Icons";
|
|
578
|
+
readonly 'canvas.category.symbols': "Symbol Shapes";
|
|
579
|
+
readonly 'canvas.shape.hexagon': "Hexagon";
|
|
580
|
+
readonly 'canvas.shape.oval': "Oval";
|
|
581
|
+
readonly 'canvas.shape.play': "Play";
|
|
582
|
+
readonly 'canvas.shape.pause': "Pause";
|
|
583
|
+
readonly 'canvas.shape.stop': "Stop";
|
|
584
|
+
readonly 'canvas.shape.rewind': "Rewind";
|
|
585
|
+
readonly 'canvas.shape.fastForward': "Fast Forward";
|
|
586
|
+
readonly 'canvas.shape.record': "Record";
|
|
587
|
+
readonly 'canvas.shape.arrowRight': "Arrow Right";
|
|
588
|
+
readonly 'canvas.shape.arrowLeft': "Arrow Left";
|
|
589
|
+
readonly 'canvas.shape.arrowUp': "Arrow Up";
|
|
590
|
+
readonly 'canvas.shape.arrowDown': "Arrow Down";
|
|
591
|
+
readonly 'canvas.shape.doubleArrow': "Double Arrow";
|
|
592
|
+
readonly 'canvas.shape.curvedArrow': "Curved Arrow";
|
|
593
|
+
readonly 'canvas.shape.checkMark': "Check Mark";
|
|
594
|
+
readonly 'canvas.shape.cross': "Cross / X";
|
|
595
|
+
readonly 'canvas.shape.plus': "Plus";
|
|
596
|
+
readonly 'canvas.shape.minus': "Minus";
|
|
597
|
+
readonly 'canvas.shape.info': "Info";
|
|
598
|
+
readonly 'canvas.shape.warning': "Warning";
|
|
599
|
+
readonly 'canvas.shape.star': "Star";
|
|
600
|
+
readonly 'canvas.shape.heart': "Heart";
|
|
601
|
+
readonly 'canvas.shape.speechBubble': "Speech Bubble";
|
|
602
|
+
readonly 'canvas.shape.rhombus': "Rhombus";
|
|
603
|
+
readonly 'canvas.shape.lightning': "Lightning";
|
|
604
|
+
readonly 'canvas.shape.shield': "Shield";
|
|
605
|
+
readonly 'canvas.action.cut': "Cut";
|
|
606
|
+
readonly 'canvas.action.copy': "Copy";
|
|
607
|
+
readonly 'canvas.action.paste': "Paste";
|
|
608
|
+
readonly 'canvas.action.duplicate': "Duplicate";
|
|
609
|
+
readonly 'canvas.action.delete': "Delete";
|
|
610
|
+
readonly 'canvas.action.group': "Group";
|
|
611
|
+
readonly 'canvas.action.ungroup': "Ungroup";
|
|
612
|
+
readonly 'canvas.action.selectAll': "Select All";
|
|
613
|
+
readonly 'canvas.action.clearAll': "Clear All";
|
|
614
|
+
readonly 'canvas.layer.title': "Layer Order";
|
|
615
|
+
readonly 'canvas.layer.front': "Bring to Front";
|
|
616
|
+
readonly 'canvas.layer.forward': "Bring Forward";
|
|
617
|
+
readonly 'canvas.layer.backward': "Send Backward";
|
|
618
|
+
readonly 'canvas.layer.back': "Send to Back";
|
|
619
|
+
readonly 'canvas.layer.frontShort': "Front";
|
|
620
|
+
readonly 'canvas.layer.upShort': "Up";
|
|
621
|
+
readonly 'canvas.layer.downShort': "Down";
|
|
622
|
+
readonly 'canvas.layer.backShort': "Back";
|
|
623
|
+
readonly 'canvas.shortcuts.title': "Keyboard Shortcuts";
|
|
624
|
+
readonly 'canvas.shortcuts.close': "Close keyboard shortcuts";
|
|
625
|
+
readonly 'canvas.shortcuts.footer': "Press {key} {hint} or click {icon} in the zoom panel to toggle";
|
|
626
|
+
readonly 'canvas.shortcuts.footerHint': "(Shift + /)";
|
|
627
|
+
readonly 'canvas.shortcuts.groupTools': "Tools";
|
|
628
|
+
readonly 'canvas.shortcuts.groupSelection': "Selection";
|
|
629
|
+
readonly 'canvas.shortcuts.groupHistory': "History";
|
|
630
|
+
readonly 'canvas.shortcuts.groupZoom': "Zoom & Canvas";
|
|
631
|
+
readonly 'canvas.shortcuts.drillThrough': "Drill-through Select";
|
|
632
|
+
readonly 'canvas.shortcuts.redoAlt': "Redo (alt)";
|
|
633
|
+
readonly 'canvas.shortcuts.save': "Save";
|
|
634
|
+
readonly 'canvas.shortcuts.zoomIn': "Zoom In";
|
|
635
|
+
readonly 'canvas.shortcuts.zoomOut': "Zoom Out";
|
|
636
|
+
readonly 'canvas.shortcuts.zoomReset': "Reset Zoom (100%)";
|
|
637
|
+
readonly 'canvas.shortcuts.fit': "Fit to screen";
|
|
638
|
+
readonly 'canvas.shortcuts.pan': "Pan canvas";
|
|
639
|
+
readonly 'canvas.shortcuts.move1': "Move selected (1px)";
|
|
640
|
+
readonly 'canvas.shortcuts.move10': "Move selected (10px)";
|
|
641
|
+
readonly 'canvas.shortcuts.frameResize': "Resize, keep children size";
|
|
642
|
+
readonly 'canvas.shortcuts.frameEdit': "Enter / exit frame edit";
|
|
643
|
+
readonly 'canvas.key.ctrlCmd': "Ctrl/Cmd";
|
|
644
|
+
readonly 'canvas.key.alt': "Alt";
|
|
645
|
+
readonly 'canvas.key.shift': "Shift";
|
|
646
|
+
readonly 'canvas.key.delete': "Del";
|
|
647
|
+
readonly 'canvas.key.space': "Space";
|
|
648
|
+
readonly 'canvas.key.click': "Click";
|
|
649
|
+
readonly 'canvas.key.drag': "Drag";
|
|
650
|
+
readonly 'canvas.key.dragCorner': "Drag corner";
|
|
651
|
+
readonly 'canvas.key.doubleClick': "Double-click";
|
|
652
|
+
readonly 'canvas.zoom.expandTitle': "Zoom {percent}% \u2014 click to expand";
|
|
653
|
+
readonly 'canvas.zoom.expandLabel': "Expand zoom controls";
|
|
654
|
+
readonly 'canvas.zoom.gridTitle': "Toggle Grid [G]";
|
|
655
|
+
readonly 'canvas.zoom.gridLabel': "Toggle grid";
|
|
656
|
+
readonly 'canvas.zoom.panTitle': "Hand / Pan [H]";
|
|
657
|
+
readonly 'canvas.zoom.panLabel': "Hand / pan tool";
|
|
658
|
+
readonly 'canvas.zoom.outTitle': "Zoom Out [Ctrl/Cmd] + [\u2212]";
|
|
659
|
+
readonly 'canvas.zoom.outLabel': "Zoom out";
|
|
660
|
+
readonly 'canvas.zoom.inTitle': "Zoom In [Ctrl/Cmd] + [+]";
|
|
661
|
+
readonly 'canvas.zoom.inLabel': "Zoom in";
|
|
662
|
+
readonly 'canvas.zoom.resetTitle': "Reset zoom to 100% [Ctrl/Cmd] + [0]";
|
|
663
|
+
readonly 'canvas.zoom.resetLabel': "Reset zoom to 100%";
|
|
664
|
+
readonly 'canvas.zoom.levelLabel': "Zoom level (percent)";
|
|
665
|
+
readonly 'canvas.zoom.oneToOneTitle': "Reset Zoom 100% [Ctrl/Cmd] + [0]";
|
|
666
|
+
readonly 'canvas.zoom.fitTitle': "Fit Content to View [Ctrl/Cmd] + [9]";
|
|
667
|
+
readonly 'canvas.zoom.fitLabel': "Fit content to view";
|
|
668
|
+
readonly 'canvas.zoom.shortcutsTitle': "Keyboard Shortcuts [?]";
|
|
669
|
+
readonly 'canvas.zoom.shortcutsLabel': "Toggle keyboard shortcuts panel";
|
|
670
|
+
readonly 'canvas.zoom.unsavedTitle': "Unsaved changes \u2014 click to save [Cmd+S]";
|
|
671
|
+
readonly 'canvas.zoom.savedTitle': "All changes saved [Cmd+S]";
|
|
672
|
+
readonly 'canvas.zoom.minimize': "Minimize Zoom Panel";
|
|
673
|
+
readonly 'canvas.props.shape': "SHAPE:";
|
|
674
|
+
readonly 'canvas.props.showAll': "Show all properties";
|
|
675
|
+
readonly 'canvas.props.showFewer': "Show fewer properties";
|
|
676
|
+
readonly 'canvas.props.close': "Close properties panel";
|
|
677
|
+
readonly 'canvas.props.children': "Children: {count}";
|
|
678
|
+
readonly 'canvas.props.actions': "Actions";
|
|
679
|
+
readonly 'canvas.props.general': "General Properties";
|
|
680
|
+
readonly 'canvas.props.dimensions': "Dimensions";
|
|
681
|
+
readonly 'canvas.props.width': "Width";
|
|
682
|
+
readonly 'canvas.props.height': "Height";
|
|
683
|
+
readonly 'canvas.props.proportionsFixed': "Proportions locked (shape constraint)";
|
|
684
|
+
readonly 'canvas.props.proportionsUnlock': "Unlock proportions";
|
|
685
|
+
readonly 'canvas.props.proportionsLock': "Lock proportions";
|
|
686
|
+
readonly 'canvas.props.textProperties': "Text Properties";
|
|
687
|
+
readonly 'canvas.props.labelProperties': "Label Properties";
|
|
688
|
+
readonly 'canvas.props.boxProperties': "Box Properties";
|
|
689
|
+
readonly 'canvas.props.groupBox': "Group Box";
|
|
690
|
+
readonly 'canvas.props.labelText': "Text/Description";
|
|
691
|
+
readonly 'canvas.props.labelPlaceholder': "Describe this frame (used as widget description & prompt context)";
|
|
692
|
+
readonly 'canvas.props.textBackground': "Text Background";
|
|
693
|
+
readonly 'canvas.type.none': "None";
|
|
694
|
+
readonly 'canvas.type.widget': "Widget";
|
|
695
|
+
readonly 'canvas.type.drawing': "Drawing";
|
|
696
|
+
readonly 'canvas.type.line': "Line";
|
|
697
|
+
readonly 'canvas.type.group': "Group";
|
|
698
|
+
readonly 'canvas.type.selection': "Selection";
|
|
699
|
+
readonly 'canvas.type.drawingOf': "{name} (Drawing)";
|
|
700
|
+
readonly 'canvas.type.customShape': "Custom Shape (Drawing)";
|
|
701
|
+
readonly 'canvas.field.opacity': "Opacity";
|
|
702
|
+
readonly 'canvas.field.cornerRoundness': "Corner Roundness";
|
|
703
|
+
readonly 'canvas.field.backgroundColor': "Background Color";
|
|
704
|
+
readonly 'canvas.field.backgroundOpacity': "Background Opacity";
|
|
705
|
+
readonly 'canvas.field.fillColor': "Fill Color";
|
|
706
|
+
readonly 'canvas.field.fillOpacity': "Fill Opacity";
|
|
707
|
+
readonly 'canvas.field.strokeColor': "Stroke Color";
|
|
708
|
+
readonly 'canvas.field.strokeWidth': "Stroke Width";
|
|
709
|
+
readonly 'canvas.field.strokeType': "Stroke Type";
|
|
710
|
+
readonly 'canvas.field.strokeSolid': "Solid";
|
|
711
|
+
readonly 'canvas.field.strokeDashed': "Dashed";
|
|
712
|
+
readonly 'canvas.field.strokeDotted': "Dotted";
|
|
713
|
+
readonly 'canvas.field.fontSize': "Font Size";
|
|
714
|
+
readonly 'canvas.field.textPadding': "Text Padding";
|
|
715
|
+
readonly 'canvas.field.textColor': "Text Color";
|
|
716
|
+
readonly 'canvas.field.textStrokeColor': "Text Stroke Color";
|
|
717
|
+
readonly 'canvas.field.textStrokeWidth': "Text Stroke Width";
|
|
718
|
+
readonly 'canvas.field.groupFillColor': "Group Fill Color";
|
|
719
|
+
readonly 'canvas.field.groupFillOpacity': "Group Fill Opacity";
|
|
720
|
+
readonly 'canvas.field.groupStrokeColor': "Group Stroke Color";
|
|
721
|
+
readonly 'canvas.field.groupStrokeWidth': "Group Stroke Width";
|
|
722
|
+
readonly 'canvas.field.groupStrokeType': "Group Stroke Type";
|
|
723
|
+
readonly 'canvas.arrange.title': "Align";
|
|
724
|
+
readonly 'canvas.arrange.left': "Align Left";
|
|
725
|
+
readonly 'canvas.arrange.centerH': "Align Center (horizontal)";
|
|
726
|
+
readonly 'canvas.arrange.right': "Align Right";
|
|
727
|
+
readonly 'canvas.arrange.top': "Align Top";
|
|
728
|
+
readonly 'canvas.arrange.middleV': "Align Middle (vertical)";
|
|
729
|
+
readonly 'canvas.arrange.bottom': "Align Bottom";
|
|
730
|
+
readonly 'canvas.image.source': "IMAGE SOURCE";
|
|
731
|
+
readonly 'canvas.image.file': "File:";
|
|
732
|
+
readonly 'canvas.image.noFile': "No file selected";
|
|
733
|
+
readonly 'canvas.image.changeFile': "Change File";
|
|
734
|
+
readonly 'canvas.image.chooseFile': "Choose File";
|
|
735
|
+
readonly 'canvas.image.url': "URL:";
|
|
736
|
+
readonly 'canvas.image.pasteUrl': "Paste URL...";
|
|
737
|
+
readonly 'canvas.image.newUrl': "New URL...";
|
|
738
|
+
readonly 'canvas.image.load': "Load";
|
|
739
|
+
readonly 'canvas.widget.createPreview': "Create Preview";
|
|
740
|
+
readonly 'canvas.widget.capture': "Capture";
|
|
741
|
+
readonly 'canvas.widget.linked': "Widget Linked";
|
|
742
|
+
readonly 'canvas.widget.converting': "Converting...";
|
|
743
|
+
readonly 'canvas.widget.duplicating': "Duplicating...";
|
|
744
|
+
readonly 'canvas.widget.linking': "Linking widget...";
|
|
745
|
+
readonly 'canvas.widget.unlinkedTitle': "Unlinked Widget Shape";
|
|
746
|
+
readonly 'canvas.widget.orphanNotice': "This shape points to a widget that was deleted or moved to another canvas. Remove it from the canvas to avoid confusion.";
|
|
747
|
+
readonly 'canvas.widget.removeFromCanvas': "Remove from canvas";
|
|
748
|
+
readonly 'canvas.widget.namePlaceholder': "Widget name";
|
|
749
|
+
readonly 'canvas.widget.openDetails': "Click to open Widget Details";
|
|
750
|
+
readonly 'canvas.widget.refreshPreview': "Refresh Preview Image";
|
|
751
|
+
readonly 'canvas.widget.primary': "Primary widget";
|
|
752
|
+
readonly 'canvas.widget.primaryTitle': "Use this widget as the canvas primary (red stroke)";
|
|
753
|
+
readonly 'canvas.widget.setPrimary': "Set as primary";
|
|
754
|
+
readonly 'canvas.widget.convertLabel': "Convert to Widget";
|
|
755
|
+
readonly 'canvas.widget.convertButton': "CONVERT TO WIDGET";
|
|
756
|
+
readonly 'canvas.widget.unlinkedName': "Unlinked widget";
|
|
757
|
+
readonly 'canvas.control.color': "Color";
|
|
758
|
+
readonly 'canvas.control.value': "Value";
|
|
759
|
+
readonly 'canvas.control.openPicker': "Open color picker";
|
|
760
|
+
readonly 'canvas.control.removeColor': "Remove color";
|
|
761
|
+
readonly 'canvas.control.fontFamily': "Font Family";
|
|
762
|
+
readonly 'canvas.control.textStyle': "Text Style";
|
|
763
|
+
readonly 'canvas.control.bold': "Bold";
|
|
764
|
+
readonly 'canvas.control.boldMark': "B";
|
|
765
|
+
readonly 'canvas.control.italic': "Italic";
|
|
766
|
+
readonly 'canvas.control.italicMark': "I";
|
|
767
|
+
readonly 'canvas.control.underline': "Underline";
|
|
768
|
+
readonly 'canvas.control.underlineMark': "U";
|
|
769
|
+
readonly 'canvas.control.textAlign': "Text Align";
|
|
770
|
+
readonly 'canvas.control.alignLeft': "Align Left";
|
|
771
|
+
readonly 'canvas.control.alignCenter': "Align Center";
|
|
772
|
+
readonly 'canvas.control.alignRight': "Align Right";
|
|
773
|
+
};
|
|
537
774
|
};
|
|
538
775
|
/** Every message of the creator and of the packages inside it, as one catalog: what a page's `messages` may have a key of. */
|
|
539
776
|
export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
@@ -542,21 +779,21 @@ export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
542
779
|
* 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
|
|
543
780
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
544
781
|
*/
|
|
545
|
-
export declare const checkCreatorMessages: (messages:
|
|
782
|
+
export declare const checkCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides) => import("@widgetic/file-browser").MessageProblem[];
|
|
546
783
|
/** Gives each part the entries of the page's `messages` that are its own (the creator, the editor, the chat, the canvas). */
|
|
547
|
-
export declare const splitCreatorMessages: (messages:
|
|
784
|
+
export declare const splitCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides | null | undefined) => import("./languageKit.js").CreatorMessageSlices;
|
|
548
785
|
/**
|
|
549
786
|
* Called by the root component of a creator while it is created, so everything inside it speaks the page's language.
|
|
550
787
|
* The context belongs to one root component, so two creators on a page can speak two languages.
|
|
551
788
|
*/
|
|
552
|
-
export declare const provideCreatorLanguage: (initial:
|
|
789
|
+
export declare const provideCreatorLanguage: (initial: import("@widgetic/design-system/i18n").I18nSettings) => import("@widgetic/design-system/i18n").I18nHandle<import("./messages.js").CreatorMessageKey>;
|
|
553
790
|
/**
|
|
554
791
|
* Called by a part of the creator while it is created. Gives its words as stores, so a part that is already on the screen
|
|
555
792
|
* changes when the page sets the language again. Outside a creator (a control used on its own) it speaks English.
|
|
556
793
|
*/
|
|
557
|
-
export declare const useCreatorLanguage: () =>
|
|
794
|
+
export declare const useCreatorLanguage: () => import("@widgetic/design-system/i18n").I18nContext<import("./messages.js").CreatorMessageKey>;
|
|
558
795
|
/**
|
|
559
796
|
* The English `t` of the creator, for code that has no component around it. The screens of the creator get their words, in
|
|
560
797
|
* the page's language, from `useCreatorLanguage`.
|
|
561
798
|
*/
|
|
562
|
-
export declare const translateEnglish: Translate<"creator.common.close" | "creator.common.new" | "creator.common.doubleClickToRename" | "creator.common.thisAppNeedsARefresh" | "creator.common.reload" | "creator.common.publish" | "creator.common.switchVersion" | "creator.common.live" | "creator.common.buildThisDraftVersionAnd" | "creator.common.setLive" | "creator.common.retry" | "creator.common.delete" | "creator.common.draft" | "creator.common.loading" | "creator.general.unknownError" | "creator.general.couldNotLoadUploadedImage" | "creator.general.tryUploadingTheImageAgain" | "creator.general.couldNotUpdateConversationStatus" | "creator.general.changeUndone" | "creator.general.failedToLoadEditorSettings" | "creator.general.setTo" | "creator.general.failedToUpdate" | "creator.general.failedToSaveDimensions" | "creator.general.nothingToSave" | "creator.general.serviceTemporarilyUnavailable" | "creator.general.retryingWhenTheApiIs" | "creator.general.invalidFileType" | "creator.general.pleaseSelectAnImageFile" | "creator.general.imageTooLarge" | "creator.general.maximumImageSizeIsMb" | "creator.general.tooManyImages" | "creator.general.maximumImagesAllowedRemoveAn" | "creator.general.failedToProcessImage" | "creator.general.couldNotReadTheImage" | "creator.general.imagePasted" | "creator.general.screenshotCaptureFailed" | "creator.general.missingOperationId" | "creator.general.switchToThatPanelTo" | "creator.general.limitReached" | "creator.general.rateLimited" | "creator.general.theApiRateLimitWas" | "creator.general.liveV" | "creator.general.anUnexpectedErrorOccurredPlease" | "creator.general.latestCommitIsAlreadyLive" | "creator.general.theServerRefusedTheRename" | "creator.general.checkYourConnectionAndTry" | "creator.general.unableToReachTheApi" | "creator.general.pleaseWaitForTheCurrent" | "creator.general.created" | "creator.general.saveBlocked" | "creator.general.keptALocalCopyCheck" | "creator.general.apiClientUnavailable" | "creator.general.screenshotCouldNotBeCaptured" | "creator.general.fixTheSelectionZoomOut" | "creator.general.checkConsoleForDetails" | "creator.general.retryLoad" | "creator.general.dismiss" | "creator.general.saving" | "creator.general.saved" | "creator.general.saveError" | "creator.general.loadingHistory" | "creator.general.upgrade" | "creator.general.fixInCreate" | "creator.general.fixInCreate2" | "creator.general.saving2" | "creator.general.save" | "creator.general.cancel" | "creator.general.noEditableSettingsAvailableYet" | "creator.general.dimensions" | "creator.general.w" | "creator.general.h" | "creator.general.px" | "creator.general.copy" | "creator.general.testPage" | "creator.general.zoomedReference" | "creator.general.keepInDatabase" | "creator.general.deleteFromDatabase" | "creator.general.checkingWhatWillBeDeleted" | "creator.general.describeWhatYouWant" | "creator.session.endedStartAgain" | "creator.session.canvasCannotOpen" | "creator.session.sessionEnded" | "creator.session.sessionExpiredSignInAgain" | "creator.session.sessionExpired" | "creator.session.authenticationExpired" | "creator.session.pleaseLoginAgainToContinue" | "creator.session.signInAgainToPublish" | "creator.session.loginRequiredToDuplicateWidget" | "creator.session.pleaseLoginFirst" | "creator.session.authenticationRequired" | "creator.session.pleaseLoginBeforeCreatingA" | "creator.session.thisWidgetReferencesARepository" | "creator.session.signInAgainThenRetry" | "creator.widget.notFound" | "creator.widget.fallbackName" | "creator.widget.noWidgetSelected" | "creator.widget.shapeRemoved" | "creator.widget.widgetKeptInDatabase" | "creator.widget.widgetDeletedFromDatabase" | "creator.widget.widgetWasAlreadyDeleted" | "creator.widget.failedToDeleteWidgetFrom" | "creator.widget.selectAWidgetFirst" | "creator.widget.duplicateFromTheHeaderCopies" | "creator.widget.failedToLoadWidgets" | "creator.widget.couldNotRestoreShapesYet" | "creator.widget.widgetRenamedTo" | "creator.widget.failedToRenameWidget" | "creator.widget.capturingWidgetScreenshot" | "creator.widget.fetchingWidgetComponent" | "creator.widget.creatingWidgetComponent" | "creator.widget.widgetsApiClientIsNot" | "creator.widget.unlinkedWidgetShape" | "creator.widget.duplicatingWidget" | "creator.widget.failedToDuplicateWidget" | "creator.widget.widgetDuplicated" | "creator.widget.widgetKeptInDatabase2" | "creator.widget.youCanKeepEditingWidgets" | "creator.widget.widgetDraftCreated" | "creator.widget.failedToPrepareWidgetDraft" | "creator.widget.failedToCreateWidgetFrom" | "creator.widget.widgetCreatedButNoId" | "creator.widget.widgetCreated" | "creator.widget.failedToFinalizeWidgetConversion" | "creator.widget.repoIdToDeleteUse" | "creator.widget.restoreShapes" | "creator.widget.directWidgetUrl" | "creator.widget.deleteWidgetShape" | "creator.widget.theseWidgetsBelongToMore" | "creator.canvas.appearsEmptyButWidgets" | "creator.canvas.restoredShapes" | "creator.canvas.removedTheLeftoverShapeFrom" | "creator.canvas.clickAWidgetOnThe" | "creator.canvas.canvasIsNotReadyYet" | "creator.canvas.failedToLoadCanvases" | "creator.canvas.couldNotDeleteThisCanvas" | "creator.canvas.noCanvasIdCannotLoad" | "creator.canvas.canvasMayStillBeLoading" | "creator.canvas.widgetPreviewUpdatedOnCanvas" | "creator.canvas.widgetCanvasAndRepositoryAre" | "creator.canvas.canvasIsRequiredBeforePublishing" | "creator.canvas.thisShapePointsToA" | "creator.canvas.shapeRemovedFromCanvas" | "creator.canvas.canvasIsTakingLongerThan" | "creator.canvas.canvasShapesFailedToRender" | "creator.canvas.failedToLoadCanvasFrom" | "creator.canvas.canvasLoadFailedCheckSupabase" | "creator.canvas.apiMayBeThrottledOr" | "creator.canvas.canvasSnapshotLookedEmptyRefresh" | "creator.canvas.canvasSaved" | "creator.canvas.canvasSaveFailed" | "creator.canvas.canvasSavedLocally" | "creator.canvas.noCanvasIdYet" | "creator.canvas.canvasUnavailable" | "creator.canvas.canvasShapesFailedToLoad" | "creator.canvas.shapeDataMayBeMissing" | "creator.canvas.deleteCanvas" | "creator.composition.compositionCreated" | "creator.composition.failedToCreateComposition" | "creator.composition.compositionSaved" | "creator.composition.compositionRenamed" | "creator.composition.failedToRenameComposition" | "creator.composition.compositionDeleted" | "creator.composition.failedToDeleteComposition" | "creator.composition.fixTheSyntaxErrorIn" | "creator.composition.compositions" | "creator.composition.selectComposition" | "creator.composition.deleteThisComposition" | "creator.composition.webComponentFormatRequiresA" | "creator.composition.compositionUrl" | "creator.codegen.referenceImages" | "creator.codegen.referenceNumber" | "creator.codegen.missingReferenceImage" | "creator.codegen.missingImageError" | "creator.codegen.visionModelNote" | "creator.codegen.noImageTitle" | "creator.codegen.repositoryCreated" | "creator.codegen.failedToCreateRepository" | "creator.codegen.noVisionNote" | "creator.codegen.codeRevertedToCommitRefreshing" | "creator.codegen.widgetCodeAtCommitRefreshing" | "creator.codegen.gitRollbackMayNotHave" | "creator.codegen.codeGenerationCompleted" | "creator.codegen.generationInProgress" | "creator.codegen.reconnectedToAnActiveCode" | "creator.codegen.codeSavedToGitlabAnd" | "creator.codegen.generationStopped" | "creator.codegen.codeGenerationWasCancelledYou" | "creator.codegen.couldNotStopGeneration" | "creator.codegen.generationMayStillBeRunning" | "creator.codegen.imageAddedToYourPrompt" | "creator.codegen.generateCodeFirstToCapture" | "creator.codegen.previewIsMissingTheCapture" | "creator.codegen.promptTooShort" | "creator.codegen.pleaseProvideAPromptWith" | "creator.codegen.mockCodeGenerated" | "creator.codegen.thisIsASimulationNo" | "creator.codegen.missingRepository" | "creator.codegen.coderVision" | "creator.codegen.answeredWithoutGenerating" | "creator.codegen.noGenerationStarted" | "creator.codegen.cannotTrackCodeGenerationProgress" | "creator.codegen.aiGeneratedInvalidSvelteSyntax" | "creator.codegen.codeSavedRebuildingPreview" | "creator.codegen.codeWasNotSaved" | "creator.codegen.codeWasNotSavedToTheRepository" | "creator.codegen.retrySavesItAndRecordsAVersion" | "creator.codegen.generationCompleted" | "creator.codegen.codeSavedPreviewIsLoading" | "creator.codegen.generationAlreadyInProgress" | "creator.codegen.anotherCodeGenerationIsAlready" | "creator.codegen.codeGenerationError" | "creator.codegen.imagePastedToPrompt" | "creator.codegen.codeGenerationInProgressWait" | "creator.codegen.repositoryMissingUseRebuildCode" | "creator.codegen.buildFailedCheckLogsFor" | "creator.codegen.createdWithExistingCode" | "creator.codegen.editTheSketchFreelySending" | "creator.codegen.isReadyGenerationStarted" | "creator.codegen.repositoryIsNowLinkedTo" | "creator.codegen.repositoryExists" | "creator.codegen.repositoryOwnedByAnotherAccount" | "creator.codegen.repositoryFound" | "creator.codegen.linkedToRepository" | "creator.codegen.repositoryReferenceInvalid" | "creator.codegen.supabaseDoesNotHaveThis" | "creator.codegen.unableToVerifyRepositoryStatus" | "creator.codegen.repositoryVerificationFailed" | "creator.codegen.repositoryCreationFailed" | "creator.codegen.couldNotDetermineRepositoryId" | "creator.codegen.repositoryCreatedButNotPersisted" | "creator.codegen.repositoryExistsButFailedTo" | "creator.codegen.repositoryReadyForUse" | "creator.codegen.generationFailed" | "creator.codegen.previewBuilderIsUnavailable" | "creator.codegen.theWidgetCodeWasSaved" | "creator.codegen.rebuildInCreate" | "creator.codegen.codeDoesNotCompile" | "creator.codegen.latestCodeDoesNotCompile" | "creator.codegen.generateCodeFirstToCustomize" | "creator.codegen.noWidgetCodeYet" | "creator.codegen.goToStep1Create" | "creator.codegen.confirmCodeGeneration" | "creator.codegen.reviewThePromptAndReference" | "creator.codegen.describeTheWidgetYouWant" | "creator.codegen.prompt" | "creator.codegen.editPromptFirst" | "creator.codegen.generateNow" | "creator.preview.newerThanLive" | "creator.preview.mayShowLive" | "creator.preview.rebuilt" | "creator.preview.versionHasCodeError" | "creator.preview.versionCouldNotLoad" | "creator.preview.recompiledIn" | "creator.preview.commitRefreshed" | "creator.preview.noValidPreviewAvailable" | "creator.preview.theWidgetDidNotRespond" | "creator.preview.captureErrorRefreshThePreview" | "creator.preview.imageWaitsForGeneration" | "creator.preview.savingImage" | "creator.preview.imageSaved" | "creator.preview.couldNotSaveImage" | "creator.preview.imageNotReturned" | "creator.version.checkpointRestored" | "creator.version.restoreCompletedWithWarnings" | "creator.version.failedToRestoreCheckpoint" | "creator.version.versionIsNowLive" | "creator.version.version" | "creator.version.theSelectedDraftVersionWas" | "creator.version.thisIsADraftVersion" | "creator.version.thisVersionIsNowWhat" | "creator.version.versionRenamed" | "creator.version.versionTitleCleared" | "creator.version.couldNotRenameTheVersion" | "creator.version.closeVersionHistory" | "creator.publish.cannotPublish" | "creator.publish.noEditableSettingsFoundGenerate" | "creator.publish.publishingViaWidgetBuilder" | "creator.publish.widgetPublished" | "creator.publish.publishedAutomaticallyAfterCodeGeneration" | "creator.publish.publishFailed" | "creator.publish.publishing" | "creator.publish.publishingInProgress" | "creator.publish.anotherWidgetIsPublishingWait" | "creator.publish.publishIsRunningInAnother" | "creator.publish.thisVersionIsAlreadyPublished" | "creator.publish.thisDraftHasNoRecorded" | "creator.publish.generateWidgetCodeBeforePublishing" | "creator.publish.publishWidget" | "creator.publish.noNewVersionToPublish" | "creator.publish.publishNewV" | "creator.publish.generateOrRebuildSoWe" | "creator.publish.cannotPublishYet" | "creator.publish.publishedVSuccessfully" | "creator.publish.published" | "creator.publish.widgetPublishFailed" | "creator.publish.failedToLoadPublishHistory" | "creator.publish.pressPublishToMakeThe" | "creator.publish.failedToSetLiveVersion" | "creator.publish.publishTheLatestGeneratedCode" | "creator.publish.liveGenerateNewCodeTo" | "creator.publish.publishThisVersionSoVisitors" | "creator.publish.noHistoryRecordsYetGenerate" | "creator.publish.retryPublish" | "creator.publish.notPublishedYet" | "creator.publish.generateOnCreatePreviewThe" | "creator.publish.widgetNotPublishedYet" | "creator.publish.publishYourWidgetFromThe" | "creator.publish.publishYourWidgetFromTheCreate" | "creator.embed.codeTitle" | "creator.embed.formatIframe" | "creator.embed.formatWebComponent" | "creator.embed.copied" | "creator.embed.versionIsLiveAndReady" | "creator.embed.embedYourWidget" | "creator.embed.setDimensionsAndCopyThe" | "creator.embed.embedWidth" | "creator.embed.embedHeight" | "creator.embed.copyEmbedCode" | "creator.embed.embedFormat" | "creator.dialog.removeShape" | "creator.dialog.alsoDeleteWidget" | "creator.dialog.deleteCanvas" | "creator.dialog.alsoDeleteWidgets" | "creator.status.label" | "creator.status.preparingCodeGeneration" | "creator.status.ready" | "creator.status.completedPreviewReady" | "creator.status.completedAutoSaving" | "creator.status.completedSaved" | "creator.status.completedChangesSaved" | "creator.status.failed" | "creator.status.stoppedByUser" | "creator.status.fixingCompilationErrors" | "creator.status.generatingMockCode" | "creator.status.mockCodeComplete" | "creator.status.processingQueuedRequest" | "creator.status.sessionExpired" | "creator.status.repositoryRequired" | "creator.status.runningQueued" | "creator.status.repositoryReady" | "creator.status.answeredFromDetails" | "creator.status.needMoreDetail" | "creator.status.noGenerationNeeded" | "creator.status.authenticationExpired" | "creator.status.noOperationId" | "creator.status.processingQueued" | "creator.status.inProgress" | "creator.status.generating" | "creator.status.generatingProgress" | "creator.status.savedBuildingPreview" | "creator.status.savedLoadingPreview" | "creator.status.savedPreviewRebuilt" | "creator.status.alreadyRunning" | "creator.status.needsRefresh" | "creator.status.limitReached" | "creator.status.rateLimited" | "creator.status.failedWithReason" | "creator.status.reconnected" | "creator.conversation.version" | "creator.conversation.previousVersion" | "creator.conversation.restoredFromCommit" | "creator.conversation.completedCommitPreviewLoading" | "creator.conversation.completedCommitPreviewReady" | "creator.conversation.completedPreviewLoading" | "creator.conversation.codeSavedShaBuilding" | "creator.conversation.codeSavedShaLoading" | "creator.conversation.codeSavedShaRebuilt" | "creator.conversation.codeSavedCommitPreviewFailed" | "creator.conversation.stoppedRetryPrompt" | "creator.conversation.previewRecompiled" | "creator.conversation.previewRecompiledCommitPart" | "creator.conversation.previewRecompiledDurationPart" | "creator.conversation.alreadyDoneWithCommit" | "creator.conversation.alreadyDone" | "creator.conversation.alreadyDoneFilesSuffix" | "creator.conversation.convert" | "creator.conversation.widgetConversion" | "creator.error.generationFailedWhileYouWere" | "creator.error.generationTrackingLost" | "creator.error.unableToResolveRepositoryFor" | "creator.error.authenticationExpiredPleaseLoginAgain" | "creator.error.cannotTrackCodeGenerationProgress" | "creator.error.usageLimitExceeded" | "creator.error.tooManyRequestsPleaseTry" | "creator.error.codeGenerationFailed" | "creator.error.widgetBuilderIsNotReachable" | "creator.error.buildRequestFailed" | "creator.error.notAuthenticated" | "creator.error.apiClientIsNotConfigured" | "creator.error.publishedVersionIsNotAvailable" | "creator.error.failedToCompileWidgetCode" | "creator.error.previewNotReadyYetClick" | "creator.error.previewNotReadyYetClickRebuild" | "creator.error.previewLoadedButTheWidget" | "creator.error.previewTimedOutTheDev" | "creator.error.couldNotOpenPreviewUrl" | "creator.error.couldNotFetchThePreview" | "creator.error.widgetPreviewRuntimeErrorHttp" | "creator.error.previewBuildFailed" | "creator.error.couldNotReachThePreview" | "creator.error.previewRebuildIsUnavailableIn" | "creator.error.previewBuilderIsUnavailableThe" | "creator.error.previewBuilderReturnedAnUnexpected" | "creator.error.anUnknownErrorOccurred" | "creator.error.couldNotReachTheServer" | "creator.error.buildFailed" | "creator.details.fixThePromptOrAttachments" | "creator.details.codeGenerationWillStartShortly" | "creator.details.saveWillExecuteShortly" | "creator.details.codeGenerationQueued" | "creator.details.saveQueued" | "creator.details.closeWidgetDetails" | "creator.details.widgetDraft" | "creator.details.createWidgetCode" | "creator.details.create" | "creator.details.editComposition" | "creator.details.publishTheWidgetToEdit" | "creator.details.edit" | "creator.details.embedThePublishedWidget" | "creator.details.publishTheWidgetToGet" | "creator.details.embed" | "creator.details.openLivePreview" | "creator.details.closeLivePreview" | "creator.details.showLivePreview" | "creator.details.preview" | "creator.details.dragToResizeChatPreview" | "creator.details.livePreview" | "creator.details.recompileWidgetCodeForPreview" | "creator.details.rebuilding" | "creator.details.rebuild" | "creator.details.clickToFocusThisWidget" | "creator.details.livePreviewBelow" | "creator.details.generatingCode" | "creator.details.loadingPreview" | "creator.details.sketchDraft" | "creator.details.yourSketchIsStillOn" | "creator.details.sendThePromptInChat" | "creator.details.preparingWidget" | "creator.details.settingUpRepository" | "creator.details.widgetHasNoRepository" | "creator.details.repositoryCreationFailedPreviouslyClick" | "creator.details.createRepository" | "creator.details.noCodeYet" | "creator.details.writeAPromptAndGenerate" | "creator.details.generateNow" | "creator.details.previewUnavailable" | "creator.details.rebuildCode" | "creator.details.fixCompileError" | "creator.details.retryBuild" | "creator.details.retry" | "creator.details.buildingPreview" | "creator.details.compilingWidgetCode" | "creator.details.previewWillAppearAfterCode" | "creator.details.resizePanel" | "creator.details.resizeWidth" | "creator.details.resizeHeight" | "creator.brandKit.addFont" | "creator.brandKit.fontLabel" | "creator.brandKit.brandKit" | "creator.brandKit.languageIsFixedAfterThe" | "creator.brandKit.selectLanguage" | "creator.brandKit.libraries" | "creator.brandKit.addLibrary" | "creator.brandKit.uploadLibrary" | "creator.brandKit.removeLibrary" | "creator.brandKit.replacesTheWidgeticPaletteFor" | "creator.brandKit.colorPalette" | "creator.brandKit.primary" | "creator.brandKit.secondary" | "creator.brandKit.title" | "creator.brandKit.sub" | "creator.brandKit.fonts" | "creator.brandKit.font" | "creator.brandKit.removeFont" | "creator.brandKit.uploadFonts" | "creator.brandKit.uploadAFontFileOr" | "creator.brandKit.urlArchiveWoff2TtfOtf" | "creator.brandKit.removeUploadedFont" | "creator.brandKit.icons" | "creator.brandKit.addIconLibrary" | "creator.brandKit.removeIconLibrary" | "creator.brandKit.uploadCustomLibraryTooltip" | "creator.brandKit.uploadIconLibraryTooltip" | "creator.brandKit.urlLibraries" | "creator.brandKit.urlIcons" | "creator.livePreviews.dragWidget" | "creator.livePreviews.primaryWidget" | "creator.livePreviews.setPrimary" | "creator.livePreviews.publishLatest" | "creator.livePreviews.currentlyLive" | "creator.livePreviews.makeThisVersionLive" | "creator.livePreviews.publishThisDraft" | "creator.livePreviews.noCommitToPublish" | "creator.livePreviews.currentVersion" | "creator.livePreviews.editMode" | "creator.livePreviews.refreshPreview" | "creator.livePreviews.refresh" | "creator.livePreviews.openChat" | "creator.livePreviews.chat" | "creator.livePreviews.liveWidgetPreview" | "creator.livePreviews.building" | "creator.versions.addTitle" | "creator.versions.renameVersion" | "creator.versions.addVersionTitle" | "creator.versions.addATitleForThis" | "creator.versions.notPublishedPreviewOnly" | "creator.versions.live" | "creator.selector.select" | "creator.selector.doubleClickToRename" | "creator.selector.toggleList" | "creator.selector.noItemsFound" | "creator.name.unnamed" | "creator.name.saveName" | "creator.name.renameWidget" | "creator.designEdit.shownAsAppliedTheseControls" | "creator.designEdit.notAvailableInThisWidget" | "creator.fileSource.uploadFile" | "creator.fileSource.url">;
|
|
799
|
+
export declare const translateEnglish: import("@widgetic/design-system/i18n").Translate<"creator.common.close" | "creator.common.new" | "creator.common.doubleClickToRename" | "creator.common.thisAppNeedsARefresh" | "creator.common.reload" | "creator.common.publish" | "creator.common.switchVersion" | "creator.common.live" | "creator.common.buildThisDraftVersionAnd" | "creator.common.setLive" | "creator.common.retry" | "creator.common.delete" | "creator.common.draft" | "creator.common.loading" | "creator.general.unknownError" | "creator.general.couldNotLoadUploadedImage" | "creator.general.tryUploadingTheImageAgain" | "creator.general.couldNotUpdateConversationStatus" | "creator.general.changeUndone" | "creator.general.failedToLoadEditorSettings" | "creator.general.setTo" | "creator.general.failedToUpdate" | "creator.general.failedToSaveDimensions" | "creator.general.nothingToSave" | "creator.general.serviceTemporarilyUnavailable" | "creator.general.retryingWhenTheApiIs" | "creator.general.invalidFileType" | "creator.general.pleaseSelectAnImageFile" | "creator.general.imageTooLarge" | "creator.general.maximumImageSizeIsMb" | "creator.general.tooManyImages" | "creator.general.maximumImagesAllowedRemoveAn" | "creator.general.failedToProcessImage" | "creator.general.couldNotReadTheImage" | "creator.general.imagePasted" | "creator.general.screenshotCaptureFailed" | "creator.general.missingOperationId" | "creator.general.switchToThatPanelTo" | "creator.general.limitReached" | "creator.general.rateLimited" | "creator.general.theApiRateLimitWas" | "creator.general.liveV" | "creator.general.anUnexpectedErrorOccurredPlease" | "creator.general.latestCommitIsAlreadyLive" | "creator.general.theServerRefusedTheRename" | "creator.general.checkYourConnectionAndTry" | "creator.general.unableToReachTheApi" | "creator.general.pleaseWaitForTheCurrent" | "creator.general.created" | "creator.general.saveBlocked" | "creator.general.keptALocalCopyCheck" | "creator.general.apiClientUnavailable" | "creator.general.screenshotCouldNotBeCaptured" | "creator.general.fixTheSelectionZoomOut" | "creator.general.checkConsoleForDetails" | "creator.general.retryLoad" | "creator.general.dismiss" | "creator.general.saving" | "creator.general.saved" | "creator.general.saveError" | "creator.general.loadingHistory" | "creator.general.upgrade" | "creator.general.fixInCreate" | "creator.general.fixInCreate2" | "creator.general.saving2" | "creator.general.save" | "creator.general.cancel" | "creator.general.noEditableSettingsAvailableYet" | "creator.general.dimensions" | "creator.general.w" | "creator.general.h" | "creator.general.px" | "creator.general.copy" | "creator.general.testPage" | "creator.general.zoomedReference" | "creator.general.keepInDatabase" | "creator.general.deleteFromDatabase" | "creator.general.checkingWhatWillBeDeleted" | "creator.general.describeWhatYouWant" | "creator.session.endedStartAgain" | "creator.session.canvasCannotOpen" | "creator.session.sessionEnded" | "creator.session.sessionExpiredSignInAgain" | "creator.session.sessionExpired" | "creator.session.authenticationExpired" | "creator.session.pleaseLoginAgainToContinue" | "creator.session.signInAgainToPublish" | "creator.session.loginRequiredToDuplicateWidget" | "creator.session.pleaseLoginFirst" | "creator.session.authenticationRequired" | "creator.session.pleaseLoginBeforeCreatingA" | "creator.session.thisWidgetReferencesARepository" | "creator.session.signInAgainThenRetry" | "creator.widget.notFound" | "creator.widget.fallbackName" | "creator.widget.noWidgetSelected" | "creator.widget.shapeRemoved" | "creator.widget.widgetKeptInDatabase" | "creator.widget.widgetDeletedFromDatabase" | "creator.widget.widgetWasAlreadyDeleted" | "creator.widget.failedToDeleteWidgetFrom" | "creator.widget.selectAWidgetFirst" | "creator.widget.duplicateFromTheHeaderCopies" | "creator.widget.failedToLoadWidgets" | "creator.widget.couldNotRestoreShapesYet" | "creator.widget.widgetRenamedTo" | "creator.widget.failedToRenameWidget" | "creator.widget.capturingWidgetScreenshot" | "creator.widget.fetchingWidgetComponent" | "creator.widget.creatingWidgetComponent" | "creator.widget.widgetsApiClientIsNot" | "creator.widget.unlinkedWidgetShape" | "creator.widget.duplicatingWidget" | "creator.widget.failedToDuplicateWidget" | "creator.widget.widgetDuplicated" | "creator.widget.widgetKeptInDatabase2" | "creator.widget.youCanKeepEditingWidgets" | "creator.widget.widgetDraftCreated" | "creator.widget.failedToPrepareWidgetDraft" | "creator.widget.failedToCreateWidgetFrom" | "creator.widget.widgetCreatedButNoId" | "creator.widget.widgetCreated" | "creator.widget.failedToFinalizeWidgetConversion" | "creator.widget.repoIdToDeleteUse" | "creator.widget.restoreShapes" | "creator.widget.directWidgetUrl" | "creator.widget.deleteWidgetShape" | "creator.widget.theseWidgetsBelongToMore" | "creator.canvas.appearsEmptyButWidgets" | "creator.canvas.restoredShapes" | "creator.canvas.removedTheLeftoverShapeFrom" | "creator.canvas.clickAWidgetOnThe" | "creator.canvas.canvasIsNotReadyYet" | "creator.canvas.failedToLoadCanvases" | "creator.canvas.couldNotDeleteThisCanvas" | "creator.canvas.noCanvasIdCannotLoad" | "creator.canvas.canvasMayStillBeLoading" | "creator.canvas.widgetPreviewUpdatedOnCanvas" | "creator.canvas.widgetCanvasAndRepositoryAre" | "creator.canvas.canvasIsRequiredBeforePublishing" | "creator.canvas.thisShapePointsToA" | "creator.canvas.shapeRemovedFromCanvas" | "creator.canvas.canvasIsTakingLongerThan" | "creator.canvas.canvasShapesFailedToRender" | "creator.canvas.failedToLoadCanvasFrom" | "creator.canvas.canvasLoadFailedCheckSupabase" | "creator.canvas.apiMayBeThrottledOr" | "creator.canvas.canvasSnapshotLookedEmptyRefresh" | "creator.canvas.canvasSaved" | "creator.canvas.canvasSaveFailed" | "creator.canvas.canvasSavedLocally" | "creator.canvas.noCanvasIdYet" | "creator.canvas.canvasUnavailable" | "creator.canvas.canvasShapesFailedToLoad" | "creator.canvas.shapeDataMayBeMissing" | "creator.canvas.deleteCanvas" | "creator.composition.compositionCreated" | "creator.composition.failedToCreateComposition" | "creator.composition.compositionSaved" | "creator.composition.compositionRenamed" | "creator.composition.failedToRenameComposition" | "creator.composition.compositionDeleted" | "creator.composition.failedToDeleteComposition" | "creator.composition.fixTheSyntaxErrorIn" | "creator.composition.compositions" | "creator.composition.selectComposition" | "creator.composition.deleteThisComposition" | "creator.composition.webComponentFormatRequiresA" | "creator.composition.compositionUrl" | "creator.codegen.referenceImages" | "creator.codegen.referenceNumber" | "creator.codegen.missingReferenceImage" | "creator.codegen.missingImageError" | "creator.codegen.visionModelNote" | "creator.codegen.noImageTitle" | "creator.codegen.repositoryCreated" | "creator.codegen.failedToCreateRepository" | "creator.codegen.noVisionNote" | "creator.codegen.codeRevertedToCommitRefreshing" | "creator.codegen.widgetCodeAtCommitRefreshing" | "creator.codegen.gitRollbackMayNotHave" | "creator.codegen.codeGenerationCompleted" | "creator.codegen.generationInProgress" | "creator.codegen.reconnectedToAnActiveCode" | "creator.codegen.codeSavedToGitlabAnd" | "creator.codegen.generationStopped" | "creator.codegen.codeGenerationWasCancelledYou" | "creator.codegen.couldNotStopGeneration" | "creator.codegen.generationMayStillBeRunning" | "creator.codegen.imageAddedToYourPrompt" | "creator.codegen.generateCodeFirstToCapture" | "creator.codegen.previewIsMissingTheCapture" | "creator.codegen.promptTooShort" | "creator.codegen.pleaseProvideAPromptWith" | "creator.codegen.mockCodeGenerated" | "creator.codegen.thisIsASimulationNo" | "creator.codegen.missingRepository" | "creator.codegen.coderVision" | "creator.codegen.answeredWithoutGenerating" | "creator.codegen.noGenerationStarted" | "creator.codegen.cannotTrackCodeGenerationProgress" | "creator.codegen.aiGeneratedInvalidSvelteSyntax" | "creator.codegen.codeSavedRebuildingPreview" | "creator.codegen.codeWasNotSaved" | "creator.codegen.codeWasNotSavedToTheRepository" | "creator.codegen.retrySavesItAndRecordsAVersion" | "creator.codegen.generationCompleted" | "creator.codegen.codeSavedPreviewIsLoading" | "creator.codegen.generationAlreadyInProgress" | "creator.codegen.anotherCodeGenerationIsAlready" | "creator.codegen.codeGenerationError" | "creator.codegen.imagePastedToPrompt" | "creator.codegen.codeGenerationInProgressWait" | "creator.codegen.repositoryMissingUseRebuildCode" | "creator.codegen.buildFailedCheckLogsFor" | "creator.codegen.createdWithExistingCode" | "creator.codegen.editTheSketchFreelySending" | "creator.codegen.isReadyGenerationStarted" | "creator.codegen.repositoryIsNowLinkedTo" | "creator.codegen.repositoryExists" | "creator.codegen.repositoryOwnedByAnotherAccount" | "creator.codegen.repositoryFound" | "creator.codegen.linkedToRepository" | "creator.codegen.repositoryReferenceInvalid" | "creator.codegen.supabaseDoesNotHaveThis" | "creator.codegen.unableToVerifyRepositoryStatus" | "creator.codegen.repositoryVerificationFailed" | "creator.codegen.repositoryCreationFailed" | "creator.codegen.couldNotDetermineRepositoryId" | "creator.codegen.repositoryCreatedButNotPersisted" | "creator.codegen.repositoryExistsButFailedTo" | "creator.codegen.repositoryReadyForUse" | "creator.codegen.generationFailed" | "creator.codegen.previewBuilderIsUnavailable" | "creator.codegen.theWidgetCodeWasSaved" | "creator.codegen.rebuildInCreate" | "creator.codegen.codeDoesNotCompile" | "creator.codegen.latestCodeDoesNotCompile" | "creator.codegen.generateCodeFirstToCustomize" | "creator.codegen.noWidgetCodeYet" | "creator.codegen.goToStep1Create" | "creator.codegen.confirmCodeGeneration" | "creator.codegen.reviewThePromptAndReference" | "creator.codegen.describeTheWidgetYouWant" | "creator.codegen.prompt" | "creator.codegen.editPromptFirst" | "creator.codegen.generateNow" | "creator.preview.newerThanLive" | "creator.preview.mayShowLive" | "creator.preview.rebuilt" | "creator.preview.versionHasCodeError" | "creator.preview.versionCouldNotLoad" | "creator.preview.recompiledIn" | "creator.preview.commitRefreshed" | "creator.preview.noValidPreviewAvailable" | "creator.preview.theWidgetDidNotRespond" | "creator.preview.captureErrorRefreshThePreview" | "creator.preview.imageWaitsForGeneration" | "creator.preview.savingImage" | "creator.preview.imageSaved" | "creator.preview.couldNotSaveImage" | "creator.preview.imageNotReturned" | "creator.version.checkpointRestored" | "creator.version.restoreCompletedWithWarnings" | "creator.version.failedToRestoreCheckpoint" | "creator.version.versionIsNowLive" | "creator.version.version" | "creator.version.theSelectedDraftVersionWas" | "creator.version.thisIsADraftVersion" | "creator.version.thisVersionIsNowWhat" | "creator.version.versionRenamed" | "creator.version.versionTitleCleared" | "creator.version.couldNotRenameTheVersion" | "creator.version.closeVersionHistory" | "creator.publish.cannotPublish" | "creator.publish.noEditableSettingsFoundGenerate" | "creator.publish.publishingViaWidgetBuilder" | "creator.publish.widgetPublished" | "creator.publish.publishedAutomaticallyAfterCodeGeneration" | "creator.publish.publishFailed" | "creator.publish.publishing" | "creator.publish.publishingInProgress" | "creator.publish.anotherWidgetIsPublishingWait" | "creator.publish.publishIsRunningInAnother" | "creator.publish.thisVersionIsAlreadyPublished" | "creator.publish.thisDraftHasNoRecorded" | "creator.publish.generateWidgetCodeBeforePublishing" | "creator.publish.publishWidget" | "creator.publish.noNewVersionToPublish" | "creator.publish.publishNewV" | "creator.publish.generateOrRebuildSoWe" | "creator.publish.cannotPublishYet" | "creator.publish.publishedVSuccessfully" | "creator.publish.published" | "creator.publish.widgetPublishFailed" | "creator.publish.failedToLoadPublishHistory" | "creator.publish.pressPublishToMakeThe" | "creator.publish.failedToSetLiveVersion" | "creator.publish.publishTheLatestGeneratedCode" | "creator.publish.liveGenerateNewCodeTo" | "creator.publish.publishThisVersionSoVisitors" | "creator.publish.noHistoryRecordsYetGenerate" | "creator.publish.retryPublish" | "creator.publish.notPublishedYet" | "creator.publish.generateOnCreatePreviewThe" | "creator.publish.widgetNotPublishedYet" | "creator.publish.publishYourWidgetFromThe" | "creator.publish.publishYourWidgetFromTheCreate" | "creator.embed.codeTitle" | "creator.embed.formatIframe" | "creator.embed.formatWebComponent" | "creator.embed.copied" | "creator.embed.versionIsLiveAndReady" | "creator.embed.embedYourWidget" | "creator.embed.setDimensionsAndCopyThe" | "creator.embed.embedWidth" | "creator.embed.embedHeight" | "creator.embed.copyEmbedCode" | "creator.embed.embedFormat" | "creator.dialog.removeShape" | "creator.dialog.alsoDeleteWidget" | "creator.dialog.deleteCanvas" | "creator.dialog.alsoDeleteWidgets" | "creator.status.label" | "creator.status.preparingCodeGeneration" | "creator.status.ready" | "creator.status.completedPreviewReady" | "creator.status.completedAutoSaving" | "creator.status.completedSaved" | "creator.status.completedChangesSaved" | "creator.status.failed" | "creator.status.stoppedByUser" | "creator.status.fixingCompilationErrors" | "creator.status.generatingMockCode" | "creator.status.mockCodeComplete" | "creator.status.processingQueuedRequest" | "creator.status.sessionExpired" | "creator.status.repositoryRequired" | "creator.status.runningQueued" | "creator.status.repositoryReady" | "creator.status.answeredFromDetails" | "creator.status.needMoreDetail" | "creator.status.noGenerationNeeded" | "creator.status.authenticationExpired" | "creator.status.noOperationId" | "creator.status.processingQueued" | "creator.status.inProgress" | "creator.status.generating" | "creator.status.generatingProgress" | "creator.status.savedBuildingPreview" | "creator.status.savedLoadingPreview" | "creator.status.savedPreviewRebuilt" | "creator.status.alreadyRunning" | "creator.status.needsRefresh" | "creator.status.limitReached" | "creator.status.rateLimited" | "creator.status.failedWithReason" | "creator.status.reconnected" | "creator.conversation.version" | "creator.conversation.previousVersion" | "creator.conversation.restoredFromCommit" | "creator.conversation.completedCommitPreviewLoading" | "creator.conversation.completedCommitPreviewReady" | "creator.conversation.completedPreviewLoading" | "creator.conversation.codeSavedShaBuilding" | "creator.conversation.codeSavedShaLoading" | "creator.conversation.codeSavedShaRebuilt" | "creator.conversation.codeSavedCommitPreviewFailed" | "creator.conversation.stoppedRetryPrompt" | "creator.conversation.previewRecompiled" | "creator.conversation.previewRecompiledCommitPart" | "creator.conversation.previewRecompiledDurationPart" | "creator.conversation.alreadyDoneWithCommit" | "creator.conversation.alreadyDone" | "creator.conversation.alreadyDoneFilesSuffix" | "creator.conversation.convert" | "creator.conversation.widgetConversion" | "creator.error.generationFailedWhileYouWere" | "creator.error.generationTrackingLost" | "creator.error.unableToResolveRepositoryFor" | "creator.error.authenticationExpiredPleaseLoginAgain" | "creator.error.cannotTrackCodeGenerationProgress" | "creator.error.usageLimitExceeded" | "creator.error.tooManyRequestsPleaseTry" | "creator.error.codeGenerationFailed" | "creator.error.widgetBuilderIsNotReachable" | "creator.error.buildRequestFailed" | "creator.error.notAuthenticated" | "creator.error.apiClientIsNotConfigured" | "creator.error.publishedVersionIsNotAvailable" | "creator.error.failedToCompileWidgetCode" | "creator.error.previewNotReadyYetClick" | "creator.error.previewNotReadyYetClickRebuild" | "creator.error.previewLoadedButTheWidget" | "creator.error.previewTimedOutTheDev" | "creator.error.couldNotOpenPreviewUrl" | "creator.error.couldNotFetchThePreview" | "creator.error.widgetPreviewRuntimeErrorHttp" | "creator.error.previewBuildFailed" | "creator.error.couldNotReachThePreview" | "creator.error.previewRebuildIsUnavailableIn" | "creator.error.previewBuilderIsUnavailableThe" | "creator.error.previewBuilderReturnedAnUnexpected" | "creator.error.anUnknownErrorOccurred" | "creator.error.couldNotReachTheServer" | "creator.error.buildFailed" | "creator.details.fixThePromptOrAttachments" | "creator.details.codeGenerationWillStartShortly" | "creator.details.saveWillExecuteShortly" | "creator.details.codeGenerationQueued" | "creator.details.saveQueued" | "creator.details.closeWidgetDetails" | "creator.details.widgetDraft" | "creator.details.createWidgetCode" | "creator.details.create" | "creator.details.editComposition" | "creator.details.publishTheWidgetToEdit" | "creator.details.edit" | "creator.details.embedThePublishedWidget" | "creator.details.publishTheWidgetToGet" | "creator.details.embed" | "creator.details.openLivePreview" | "creator.details.closeLivePreview" | "creator.details.showLivePreview" | "creator.details.preview" | "creator.details.dragToResizeChatPreview" | "creator.details.livePreview" | "creator.details.recompileWidgetCodeForPreview" | "creator.details.rebuilding" | "creator.details.rebuild" | "creator.details.clickToFocusThisWidget" | "creator.details.livePreviewBelow" | "creator.details.generatingCode" | "creator.details.loadingPreview" | "creator.details.sketchDraft" | "creator.details.yourSketchIsStillOn" | "creator.details.sendThePromptInChat" | "creator.details.preparingWidget" | "creator.details.settingUpRepository" | "creator.details.widgetHasNoRepository" | "creator.details.repositoryCreationFailedPreviouslyClick" | "creator.details.createRepository" | "creator.details.noCodeYet" | "creator.details.writeAPromptAndGenerate" | "creator.details.generateNow" | "creator.details.previewUnavailable" | "creator.details.rebuildCode" | "creator.details.fixCompileError" | "creator.details.retryBuild" | "creator.details.retry" | "creator.details.buildingPreview" | "creator.details.compilingWidgetCode" | "creator.details.previewWillAppearAfterCode" | "creator.details.resizePanel" | "creator.details.resizeWidth" | "creator.details.resizeHeight" | "creator.brandKit.addFont" | "creator.brandKit.fontLabel" | "creator.brandKit.brandKit" | "creator.brandKit.languageIsFixedAfterThe" | "creator.brandKit.selectLanguage" | "creator.brandKit.libraries" | "creator.brandKit.addLibrary" | "creator.brandKit.uploadLibrary" | "creator.brandKit.removeLibrary" | "creator.brandKit.replacesTheWidgeticPaletteFor" | "creator.brandKit.colorPalette" | "creator.brandKit.primary" | "creator.brandKit.secondary" | "creator.brandKit.title" | "creator.brandKit.sub" | "creator.brandKit.fonts" | "creator.brandKit.font" | "creator.brandKit.removeFont" | "creator.brandKit.uploadFonts" | "creator.brandKit.uploadAFontFileOr" | "creator.brandKit.urlArchiveWoff2TtfOtf" | "creator.brandKit.removeUploadedFont" | "creator.brandKit.icons" | "creator.brandKit.addIconLibrary" | "creator.brandKit.removeIconLibrary" | "creator.brandKit.uploadCustomLibraryTooltip" | "creator.brandKit.uploadIconLibraryTooltip" | "creator.brandKit.urlLibraries" | "creator.brandKit.urlIcons" | "creator.livePreviews.dragWidget" | "creator.livePreviews.primaryWidget" | "creator.livePreviews.setPrimary" | "creator.livePreviews.publishLatest" | "creator.livePreviews.currentlyLive" | "creator.livePreviews.makeThisVersionLive" | "creator.livePreviews.publishThisDraft" | "creator.livePreviews.noCommitToPublish" | "creator.livePreviews.currentVersion" | "creator.livePreviews.editMode" | "creator.livePreviews.refreshPreview" | "creator.livePreviews.refresh" | "creator.livePreviews.openChat" | "creator.livePreviews.chat" | "creator.livePreviews.liveWidgetPreview" | "creator.livePreviews.building" | "creator.versions.addTitle" | "creator.versions.renameVersion" | "creator.versions.addVersionTitle" | "creator.versions.addATitleForThis" | "creator.versions.notPublishedPreviewOnly" | "creator.versions.live" | "creator.selector.select" | "creator.selector.doubleClickToRename" | "creator.selector.toggleList" | "creator.selector.noItemsFound" | "creator.name.unnamed" | "creator.name.saveName" | "creator.name.renameWidget" | "creator.designEdit.shownAsAppliedTheseControls" | "creator.designEdit.notAvailableInThisWidget" | "creator.fileSource.uploadFile" | "creator.fileSource.url">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/creator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@sveltejs/kit": "^2.20.0",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"render-build": "bash render-build.sh",
|
|
40
40
|
"build": "NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 vite build && npm run package",
|
|
41
41
|
"package": "NODE_ENV=production svelte-package",
|
|
42
|
+
"publish-to-npm": "npm version patch --no-git-tag-version && npm run package && npm publish --ignore-scripts --access public",
|
|
42
43
|
"package:watch": "NODE_ENV=development svelte-package --watch",
|
|
43
44
|
"stop-dev": "lsof -i :5174 | awk 'NR>1 {print $2}' | xargs kill",
|
|
44
45
|
"predev": "node scripts/suppress-postcss-from-warning.js",
|