@widgetic/creator 0.4.3 → 0.4.5
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 +330 -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 +245 -7
- package/dist/i18n/messages.d.ts +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/statusText.js +1 -0
- package/dist/utils/versionPreviewError.js +6 -1
- 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,
|
|
@@ -264,6 +263,7 @@ export declare const CREATOR_CATALOGS: {
|
|
|
264
263
|
readonly 'creator.preview.rebuilt': "Preview rebuilt";
|
|
265
264
|
readonly 'creator.preview.versionHasCodeError': "This version has a code error.";
|
|
266
265
|
readonly 'creator.preview.versionCouldNotLoad': "Could not load this version. Please try again.";
|
|
266
|
+
readonly 'creator.preview.versionHourlyLimit': "Hourly limit reached for generations and version previews. Wait about an hour, then try again.";
|
|
267
267
|
readonly 'creator.preview.recompiledIn': "Recompiled in {ms}ms — commit {commit}.";
|
|
268
268
|
readonly 'creator.preview.commitRefreshed': "Commit {commit}. Preview refreshed.";
|
|
269
269
|
readonly 'creator.preview.noValidPreviewAvailable': "No valid preview available";
|
|
@@ -533,7 +533,245 @@ export declare const CREATOR_CATALOGS: {
|
|
|
533
533
|
};
|
|
534
534
|
readonly editor: any;
|
|
535
535
|
readonly chat: any;
|
|
536
|
-
readonly canvas:
|
|
536
|
+
readonly canvas: {
|
|
537
|
+
readonly 'canvas.state.loading': "Loading canvas\u2026";
|
|
538
|
+
readonly 'canvas.state.initFailed': "Canvas failed to initialize.";
|
|
539
|
+
readonly 'canvas.error.imageFromUrl': "Failed to load image from URL. Make sure the URL is correct and allows cross-origin requests.";
|
|
540
|
+
readonly 'canvas.defaults.text': "Hello World!";
|
|
541
|
+
readonly 'canvas.defaults.textBox': "Type here";
|
|
542
|
+
readonly 'canvas.defaults.frameLabel': "Frame";
|
|
543
|
+
readonly 'canvas.defaults.untitledFrame': "Untitled Frame";
|
|
544
|
+
readonly 'canvas.defaults.untitledShape': "Untitled Shape";
|
|
545
|
+
readonly 'canvas.draw.dropImage': "Drop image";
|
|
546
|
+
readonly 'canvas.draw.dropVideo': "Drop video";
|
|
547
|
+
readonly 'canvas.draw.or': "or";
|
|
548
|
+
readonly 'canvas.draw.doubleClick': "double click";
|
|
549
|
+
readonly 'canvas.draw.widgetName': "Widget";
|
|
550
|
+
readonly 'canvas.draw.widgetPreview': "Widget preview";
|
|
551
|
+
readonly 'canvas.tool.select': "Select";
|
|
552
|
+
readonly 'canvas.tool.hand': "Hand / Pan";
|
|
553
|
+
readonly 'canvas.tool.erase': "Erase";
|
|
554
|
+
readonly 'canvas.tool.draw': "Draw";
|
|
555
|
+
readonly 'canvas.tool.arrow': "Arrow";
|
|
556
|
+
readonly 'canvas.tool.rectangle': "Rectangle";
|
|
557
|
+
readonly 'canvas.tool.triangle': "Triangle";
|
|
558
|
+
readonly 'canvas.tool.ellipse': "Ellipse";
|
|
559
|
+
readonly 'canvas.tool.circle': "Circle";
|
|
560
|
+
readonly 'canvas.tool.frame': "Frame";
|
|
561
|
+
readonly 'canvas.tool.text': "Text";
|
|
562
|
+
readonly 'canvas.tool.image': "Image";
|
|
563
|
+
readonly 'canvas.tool.video': "Video";
|
|
564
|
+
readonly 'canvas.tool.shapes': "Shapes";
|
|
565
|
+
readonly 'canvas.tool.moreShapes': "More Shapes";
|
|
566
|
+
readonly 'canvas.tool.undo': "Undo";
|
|
567
|
+
readonly 'canvas.tool.redo': "Redo";
|
|
568
|
+
readonly 'canvas.tool.withKey': "{name} ({key})";
|
|
569
|
+
readonly 'canvas.tool.undoTitle': "Undo (Ctrl+Z)";
|
|
570
|
+
readonly 'canvas.tool.redoTitle': "Redo (Ctrl+Shift+Z)";
|
|
571
|
+
readonly 'canvas.tool.stickyOn': "Tool Lock: ON \u2014 drawing tool stays active";
|
|
572
|
+
readonly 'canvas.tool.stickyOff': "Tool Lock: OFF \u2014 reverts to Select after placing";
|
|
573
|
+
readonly 'canvas.tool.stickyLabel': "Toggle sticky tool mode";
|
|
574
|
+
readonly 'canvas.menu.mediaShapes': "Media Shapes";
|
|
575
|
+
readonly 'canvas.category.geometric': "Geometric Shapes";
|
|
576
|
+
readonly 'canvas.category.arrows': "Arrow Shapes";
|
|
577
|
+
readonly 'canvas.category.media': "Media Icons";
|
|
578
|
+
readonly 'canvas.category.ui': "UI Icons";
|
|
579
|
+
readonly 'canvas.category.symbols': "Symbol Shapes";
|
|
580
|
+
readonly 'canvas.shape.hexagon': "Hexagon";
|
|
581
|
+
readonly 'canvas.shape.oval': "Oval";
|
|
582
|
+
readonly 'canvas.shape.play': "Play";
|
|
583
|
+
readonly 'canvas.shape.pause': "Pause";
|
|
584
|
+
readonly 'canvas.shape.stop': "Stop";
|
|
585
|
+
readonly 'canvas.shape.rewind': "Rewind";
|
|
586
|
+
readonly 'canvas.shape.fastForward': "Fast Forward";
|
|
587
|
+
readonly 'canvas.shape.record': "Record";
|
|
588
|
+
readonly 'canvas.shape.arrowRight': "Arrow Right";
|
|
589
|
+
readonly 'canvas.shape.arrowLeft': "Arrow Left";
|
|
590
|
+
readonly 'canvas.shape.arrowUp': "Arrow Up";
|
|
591
|
+
readonly 'canvas.shape.arrowDown': "Arrow Down";
|
|
592
|
+
readonly 'canvas.shape.doubleArrow': "Double Arrow";
|
|
593
|
+
readonly 'canvas.shape.curvedArrow': "Curved Arrow";
|
|
594
|
+
readonly 'canvas.shape.checkMark': "Check Mark";
|
|
595
|
+
readonly 'canvas.shape.cross': "Cross / X";
|
|
596
|
+
readonly 'canvas.shape.plus': "Plus";
|
|
597
|
+
readonly 'canvas.shape.minus': "Minus";
|
|
598
|
+
readonly 'canvas.shape.info': "Info";
|
|
599
|
+
readonly 'canvas.shape.warning': "Warning";
|
|
600
|
+
readonly 'canvas.shape.star': "Star";
|
|
601
|
+
readonly 'canvas.shape.heart': "Heart";
|
|
602
|
+
readonly 'canvas.shape.speechBubble': "Speech Bubble";
|
|
603
|
+
readonly 'canvas.shape.rhombus': "Rhombus";
|
|
604
|
+
readonly 'canvas.shape.lightning': "Lightning";
|
|
605
|
+
readonly 'canvas.shape.shield': "Shield";
|
|
606
|
+
readonly 'canvas.action.cut': "Cut";
|
|
607
|
+
readonly 'canvas.action.copy': "Copy";
|
|
608
|
+
readonly 'canvas.action.paste': "Paste";
|
|
609
|
+
readonly 'canvas.action.duplicate': "Duplicate";
|
|
610
|
+
readonly 'canvas.action.delete': "Delete";
|
|
611
|
+
readonly 'canvas.action.group': "Group";
|
|
612
|
+
readonly 'canvas.action.ungroup': "Ungroup";
|
|
613
|
+
readonly 'canvas.action.selectAll': "Select All";
|
|
614
|
+
readonly 'canvas.action.clearAll': "Clear All";
|
|
615
|
+
readonly 'canvas.layer.title': "Layer Order";
|
|
616
|
+
readonly 'canvas.layer.front': "Bring to Front";
|
|
617
|
+
readonly 'canvas.layer.forward': "Bring Forward";
|
|
618
|
+
readonly 'canvas.layer.backward': "Send Backward";
|
|
619
|
+
readonly 'canvas.layer.back': "Send to Back";
|
|
620
|
+
readonly 'canvas.layer.frontShort': "Front";
|
|
621
|
+
readonly 'canvas.layer.upShort': "Up";
|
|
622
|
+
readonly 'canvas.layer.downShort': "Down";
|
|
623
|
+
readonly 'canvas.layer.backShort': "Back";
|
|
624
|
+
readonly 'canvas.shortcuts.title': "Keyboard Shortcuts";
|
|
625
|
+
readonly 'canvas.shortcuts.close': "Close keyboard shortcuts";
|
|
626
|
+
readonly 'canvas.shortcuts.footer': "Press {key} {hint} or click {icon} in the zoom panel to toggle";
|
|
627
|
+
readonly 'canvas.shortcuts.footerHint': "(Shift + /)";
|
|
628
|
+
readonly 'canvas.shortcuts.groupTools': "Tools";
|
|
629
|
+
readonly 'canvas.shortcuts.groupSelection': "Selection";
|
|
630
|
+
readonly 'canvas.shortcuts.groupHistory': "History";
|
|
631
|
+
readonly 'canvas.shortcuts.groupZoom': "Zoom & Canvas";
|
|
632
|
+
readonly 'canvas.shortcuts.drillThrough': "Drill-through Select";
|
|
633
|
+
readonly 'canvas.shortcuts.redoAlt': "Redo (alt)";
|
|
634
|
+
readonly 'canvas.shortcuts.save': "Save";
|
|
635
|
+
readonly 'canvas.shortcuts.zoomIn': "Zoom In";
|
|
636
|
+
readonly 'canvas.shortcuts.zoomOut': "Zoom Out";
|
|
637
|
+
readonly 'canvas.shortcuts.zoomReset': "Reset Zoom (100%)";
|
|
638
|
+
readonly 'canvas.shortcuts.fit': "Fit to screen";
|
|
639
|
+
readonly 'canvas.shortcuts.pan': "Pan canvas";
|
|
640
|
+
readonly 'canvas.shortcuts.move1': "Move selected (1px)";
|
|
641
|
+
readonly 'canvas.shortcuts.move10': "Move selected (10px)";
|
|
642
|
+
readonly 'canvas.shortcuts.frameResize': "Resize, keep children size";
|
|
643
|
+
readonly 'canvas.shortcuts.frameEdit': "Enter / exit frame edit";
|
|
644
|
+
readonly 'canvas.key.ctrlCmd': "Ctrl/Cmd";
|
|
645
|
+
readonly 'canvas.key.alt': "Alt";
|
|
646
|
+
readonly 'canvas.key.shift': "Shift";
|
|
647
|
+
readonly 'canvas.key.delete': "Del";
|
|
648
|
+
readonly 'canvas.key.space': "Space";
|
|
649
|
+
readonly 'canvas.key.click': "Click";
|
|
650
|
+
readonly 'canvas.key.drag': "Drag";
|
|
651
|
+
readonly 'canvas.key.dragCorner': "Drag corner";
|
|
652
|
+
readonly 'canvas.key.doubleClick': "Double-click";
|
|
653
|
+
readonly 'canvas.zoom.expandTitle': "Zoom {percent}% \u2014 click to expand";
|
|
654
|
+
readonly 'canvas.zoom.expandLabel': "Expand zoom controls";
|
|
655
|
+
readonly 'canvas.zoom.gridTitle': "Toggle Grid [G]";
|
|
656
|
+
readonly 'canvas.zoom.gridLabel': "Toggle grid";
|
|
657
|
+
readonly 'canvas.zoom.panTitle': "Hand / Pan [H]";
|
|
658
|
+
readonly 'canvas.zoom.panLabel': "Hand / pan tool";
|
|
659
|
+
readonly 'canvas.zoom.outTitle': "Zoom Out [Ctrl/Cmd] + [\u2212]";
|
|
660
|
+
readonly 'canvas.zoom.outLabel': "Zoom out";
|
|
661
|
+
readonly 'canvas.zoom.inTitle': "Zoom In [Ctrl/Cmd] + [+]";
|
|
662
|
+
readonly 'canvas.zoom.inLabel': "Zoom in";
|
|
663
|
+
readonly 'canvas.zoom.resetTitle': "Reset zoom to 100% [Ctrl/Cmd] + [0]";
|
|
664
|
+
readonly 'canvas.zoom.resetLabel': "Reset zoom to 100%";
|
|
665
|
+
readonly 'canvas.zoom.levelLabel': "Zoom level (percent)";
|
|
666
|
+
readonly 'canvas.zoom.oneToOneTitle': "Reset Zoom 100% [Ctrl/Cmd] + [0]";
|
|
667
|
+
readonly 'canvas.zoom.fitTitle': "Fit Content to View [Ctrl/Cmd] + [9]";
|
|
668
|
+
readonly 'canvas.zoom.fitLabel': "Fit content to view";
|
|
669
|
+
readonly 'canvas.zoom.shortcutsTitle': "Keyboard Shortcuts [?]";
|
|
670
|
+
readonly 'canvas.zoom.shortcutsLabel': "Toggle keyboard shortcuts panel";
|
|
671
|
+
readonly 'canvas.zoom.unsavedTitle': "Unsaved changes \u2014 click to save [Cmd+S]";
|
|
672
|
+
readonly 'canvas.zoom.savedTitle': "All changes saved [Cmd+S]";
|
|
673
|
+
readonly 'canvas.zoom.minimize': "Minimize Zoom Panel";
|
|
674
|
+
readonly 'canvas.props.shape': "SHAPE:";
|
|
675
|
+
readonly 'canvas.props.showAll': "Show all properties";
|
|
676
|
+
readonly 'canvas.props.showFewer': "Show fewer properties";
|
|
677
|
+
readonly 'canvas.props.close': "Close properties panel";
|
|
678
|
+
readonly 'canvas.props.children': "Children: {count}";
|
|
679
|
+
readonly 'canvas.props.actions': "Actions";
|
|
680
|
+
readonly 'canvas.props.general': "General Properties";
|
|
681
|
+
readonly 'canvas.props.dimensions': "Dimensions";
|
|
682
|
+
readonly 'canvas.props.width': "Width";
|
|
683
|
+
readonly 'canvas.props.height': "Height";
|
|
684
|
+
readonly 'canvas.props.proportionsFixed': "Proportions locked (shape constraint)";
|
|
685
|
+
readonly 'canvas.props.proportionsUnlock': "Unlock proportions";
|
|
686
|
+
readonly 'canvas.props.proportionsLock': "Lock proportions";
|
|
687
|
+
readonly 'canvas.props.textProperties': "Text Properties";
|
|
688
|
+
readonly 'canvas.props.labelProperties': "Label Properties";
|
|
689
|
+
readonly 'canvas.props.boxProperties': "Box Properties";
|
|
690
|
+
readonly 'canvas.props.groupBox': "Group Box";
|
|
691
|
+
readonly 'canvas.props.labelText': "Text/Description";
|
|
692
|
+
readonly 'canvas.props.labelPlaceholder': "Describe this frame (used as widget description & prompt context)";
|
|
693
|
+
readonly 'canvas.props.textBackground': "Text Background";
|
|
694
|
+
readonly 'canvas.type.none': "None";
|
|
695
|
+
readonly 'canvas.type.widget': "Widget";
|
|
696
|
+
readonly 'canvas.type.drawing': "Drawing";
|
|
697
|
+
readonly 'canvas.type.line': "Line";
|
|
698
|
+
readonly 'canvas.type.group': "Group";
|
|
699
|
+
readonly 'canvas.type.selection': "Selection";
|
|
700
|
+
readonly 'canvas.type.drawingOf': "{name} (Drawing)";
|
|
701
|
+
readonly 'canvas.type.customShape': "Custom Shape (Drawing)";
|
|
702
|
+
readonly 'canvas.field.opacity': "Opacity";
|
|
703
|
+
readonly 'canvas.field.cornerRoundness': "Corner Roundness";
|
|
704
|
+
readonly 'canvas.field.backgroundColor': "Background Color";
|
|
705
|
+
readonly 'canvas.field.backgroundOpacity': "Background Opacity";
|
|
706
|
+
readonly 'canvas.field.fillColor': "Fill Color";
|
|
707
|
+
readonly 'canvas.field.fillOpacity': "Fill Opacity";
|
|
708
|
+
readonly 'canvas.field.strokeColor': "Stroke Color";
|
|
709
|
+
readonly 'canvas.field.strokeWidth': "Stroke Width";
|
|
710
|
+
readonly 'canvas.field.strokeType': "Stroke Type";
|
|
711
|
+
readonly 'canvas.field.strokeSolid': "Solid";
|
|
712
|
+
readonly 'canvas.field.strokeDashed': "Dashed";
|
|
713
|
+
readonly 'canvas.field.strokeDotted': "Dotted";
|
|
714
|
+
readonly 'canvas.field.fontSize': "Font Size";
|
|
715
|
+
readonly 'canvas.field.textPadding': "Text Padding";
|
|
716
|
+
readonly 'canvas.field.textColor': "Text Color";
|
|
717
|
+
readonly 'canvas.field.textStrokeColor': "Text Stroke Color";
|
|
718
|
+
readonly 'canvas.field.textStrokeWidth': "Text Stroke Width";
|
|
719
|
+
readonly 'canvas.field.groupFillColor': "Group Fill Color";
|
|
720
|
+
readonly 'canvas.field.groupFillOpacity': "Group Fill Opacity";
|
|
721
|
+
readonly 'canvas.field.groupStrokeColor': "Group Stroke Color";
|
|
722
|
+
readonly 'canvas.field.groupStrokeWidth': "Group Stroke Width";
|
|
723
|
+
readonly 'canvas.field.groupStrokeType': "Group Stroke Type";
|
|
724
|
+
readonly 'canvas.arrange.title': "Align";
|
|
725
|
+
readonly 'canvas.arrange.left': "Align Left";
|
|
726
|
+
readonly 'canvas.arrange.centerH': "Align Center (horizontal)";
|
|
727
|
+
readonly 'canvas.arrange.right': "Align Right";
|
|
728
|
+
readonly 'canvas.arrange.top': "Align Top";
|
|
729
|
+
readonly 'canvas.arrange.middleV': "Align Middle (vertical)";
|
|
730
|
+
readonly 'canvas.arrange.bottom': "Align Bottom";
|
|
731
|
+
readonly 'canvas.image.source': "IMAGE SOURCE";
|
|
732
|
+
readonly 'canvas.image.file': "File:";
|
|
733
|
+
readonly 'canvas.image.noFile': "No file selected";
|
|
734
|
+
readonly 'canvas.image.changeFile': "Change File";
|
|
735
|
+
readonly 'canvas.image.chooseFile': "Choose File";
|
|
736
|
+
readonly 'canvas.image.url': "URL:";
|
|
737
|
+
readonly 'canvas.image.pasteUrl': "Paste URL...";
|
|
738
|
+
readonly 'canvas.image.newUrl': "New URL...";
|
|
739
|
+
readonly 'canvas.image.load': "Load";
|
|
740
|
+
readonly 'canvas.widget.createPreview': "Create Preview";
|
|
741
|
+
readonly 'canvas.widget.capture': "Capture";
|
|
742
|
+
readonly 'canvas.widget.linked': "Widget Linked";
|
|
743
|
+
readonly 'canvas.widget.converting': "Converting...";
|
|
744
|
+
readonly 'canvas.widget.duplicating': "Duplicating...";
|
|
745
|
+
readonly 'canvas.widget.linking': "Linking widget...";
|
|
746
|
+
readonly 'canvas.widget.unlinkedTitle': "Unlinked Widget Shape";
|
|
747
|
+
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.";
|
|
748
|
+
readonly 'canvas.widget.removeFromCanvas': "Remove from canvas";
|
|
749
|
+
readonly 'canvas.widget.namePlaceholder': "Widget name";
|
|
750
|
+
readonly 'canvas.widget.openDetails': "Click to open Widget Details";
|
|
751
|
+
readonly 'canvas.widget.refreshPreview': "Refresh Preview Image";
|
|
752
|
+
readonly 'canvas.widget.primary': "Primary widget";
|
|
753
|
+
readonly 'canvas.widget.primaryTitle': "Use this widget as the canvas primary (red stroke)";
|
|
754
|
+
readonly 'canvas.widget.setPrimary': "Set as primary";
|
|
755
|
+
readonly 'canvas.widget.convertLabel': "Convert to Widget";
|
|
756
|
+
readonly 'canvas.widget.convertButton': "CONVERT TO WIDGET";
|
|
757
|
+
readonly 'canvas.widget.unlinkedName': "Unlinked widget";
|
|
758
|
+
readonly 'canvas.control.color': "Color";
|
|
759
|
+
readonly 'canvas.control.value': "Value";
|
|
760
|
+
readonly 'canvas.control.openPicker': "Open color picker";
|
|
761
|
+
readonly 'canvas.control.removeColor': "Remove color";
|
|
762
|
+
readonly 'canvas.control.fontFamily': "Font Family";
|
|
763
|
+
readonly 'canvas.control.textStyle': "Text Style";
|
|
764
|
+
readonly 'canvas.control.bold': "Bold";
|
|
765
|
+
readonly 'canvas.control.boldMark': "B";
|
|
766
|
+
readonly 'canvas.control.italic': "Italic";
|
|
767
|
+
readonly 'canvas.control.italicMark': "I";
|
|
768
|
+
readonly 'canvas.control.underline': "Underline";
|
|
769
|
+
readonly 'canvas.control.underlineMark': "U";
|
|
770
|
+
readonly 'canvas.control.textAlign': "Text Align";
|
|
771
|
+
readonly 'canvas.control.alignLeft': "Align Left";
|
|
772
|
+
readonly 'canvas.control.alignCenter': "Align Center";
|
|
773
|
+
readonly 'canvas.control.alignRight': "Align Right";
|
|
774
|
+
};
|
|
537
775
|
};
|
|
538
776
|
/** 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
777
|
export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
@@ -542,21 +780,21 @@ export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
542
780
|
* 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
781
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
544
782
|
*/
|
|
545
|
-
export declare const checkCreatorMessages: (messages:
|
|
783
|
+
export declare const checkCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides) => import("@widgetic/file-browser").MessageProblem[];
|
|
546
784
|
/** 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:
|
|
785
|
+
export declare const splitCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides | null | undefined) => import("./languageKit.js").CreatorMessageSlices;
|
|
548
786
|
/**
|
|
549
787
|
* Called by the root component of a creator while it is created, so everything inside it speaks the page's language.
|
|
550
788
|
* The context belongs to one root component, so two creators on a page can speak two languages.
|
|
551
789
|
*/
|
|
552
|
-
export declare const provideCreatorLanguage: (initial:
|
|
790
|
+
export declare const provideCreatorLanguage: (initial: import("@widgetic/design-system/i18n").I18nSettings) => import("@widgetic/design-system/i18n").I18nHandle<import("./messages.js").CreatorMessageKey>;
|
|
553
791
|
/**
|
|
554
792
|
* 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
793
|
* changes when the page sets the language again. Outside a creator (a control used on its own) it speaks English.
|
|
556
794
|
*/
|
|
557
|
-
export declare const useCreatorLanguage: () =>
|
|
795
|
+
export declare const useCreatorLanguage: () => import("@widgetic/design-system/i18n").I18nContext<import("./messages.js").CreatorMessageKey>;
|
|
558
796
|
/**
|
|
559
797
|
* The English `t` of the creator, for code that has no component around it. The screens of the creator get their words, in
|
|
560
798
|
* the page's language, from `useCreatorLanguage`.
|
|
561
799
|
*/
|
|
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">;
|
|
800
|
+
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.versionHourlyLimit" | "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/dist/i18n/messages.d.ts
CHANGED
|
@@ -259,6 +259,7 @@ export declare const CREATOR_MESSAGES: {
|
|
|
259
259
|
readonly 'creator.preview.rebuilt': "Preview rebuilt";
|
|
260
260
|
readonly 'creator.preview.versionHasCodeError': "This version has a code error.";
|
|
261
261
|
readonly 'creator.preview.versionCouldNotLoad': "Could not load this version. Please try again.";
|
|
262
|
+
readonly 'creator.preview.versionHourlyLimit': "Hourly limit reached for generations and version previews. Wait about an hour, then try again.";
|
|
262
263
|
readonly 'creator.preview.recompiledIn': "Recompiled in {ms}ms — commit {commit}.";
|
|
263
264
|
readonly 'creator.preview.commitRefreshed': "Commit {commit}. Preview refreshed.";
|
|
264
265
|
readonly 'creator.preview.noValidPreviewAvailable': "No valid preview available";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -267,6 +267,7 @@ export const CREATOR_MESSAGES = {
|
|
|
267
267
|
'creator.preview.rebuilt': 'Preview rebuilt',
|
|
268
268
|
'creator.preview.versionHasCodeError': 'This version has a code error.',
|
|
269
269
|
'creator.preview.versionCouldNotLoad': 'Could not load this version. Please try again.',
|
|
270
|
+
'creator.preview.versionHourlyLimit': 'Hourly limit reached for generations and version previews. Wait about an hour, then try again.',
|
|
270
271
|
'creator.preview.recompiledIn': 'Recompiled in {ms}ms — commit {commit}.',
|
|
271
272
|
'creator.preview.commitRefreshed': 'Commit {commit}. Preview refreshed.',
|
|
272
273
|
'creator.preview.noValidPreviewAvailable': 'No valid preview available',
|
package/dist/i18n/statusText.js
CHANGED
|
@@ -28,6 +28,7 @@ const KNOWN_TEXTS = new Map([
|
|
|
28
28
|
// The two lines of utils/versionPreviewError.js (a JavaScript file, which the node tests of the creator read)
|
|
29
29
|
['This version has a code error.', (t) => t('creator.preview.versionHasCodeError')],
|
|
30
30
|
['Could not load this version. Please try again.', (t) => t('creator.preview.versionCouldNotLoad')],
|
|
31
|
+
['Hourly limit reached for generations and version previews. Wait about an hour, then try again.', (t) => t('creator.preview.versionHourlyLimit')],
|
|
31
32
|
['Code was not saved to the repository. Retry saves it and records a version.', (t) => t('creator.codegen.codeWasNotSavedToTheRepository')],
|
|
32
33
|
['Code saved — building preview…', (t) => t('creator.status.savedBuildingPreview')],
|
|
33
34
|
['Code saved — loading preview…', (t) => t('creator.status.savedLoadingPreview')],
|
|
@@ -8,11 +8,16 @@ export async function parseVersionPreviewError(error) {
|
|
|
8
8
|
const code = payload?.error?.code ?? payload?.code ?? error?.code ?? null;
|
|
9
9
|
const status = Number(response?.status ?? error?.status) || null;
|
|
10
10
|
const kind = status === 422 || code === 'VERSION_BUILD_FAILED' ? 'compile' : 'load';
|
|
11
|
+
const hourlyLimit = code === 'COST_LIMIT_EXCEEDED';
|
|
11
12
|
return {
|
|
12
13
|
kind, code, status,
|
|
13
14
|
message: kind === 'compile'
|
|
14
15
|
? 'This version has a code error.'
|
|
15
|
-
:
|
|
16
|
+
: hourlyLimit
|
|
17
|
+
? 'Hourly limit reached for generations and version previews. Wait about an hour, then try again.'
|
|
18
|
+
: status === 429
|
|
19
|
+
? 'Rate limited — too many requests. Wait ~30s and retry.'
|
|
20
|
+
: 'Could not load this version. Please try again.',
|
|
16
21
|
technicalMessage: payload?.error?.message ?? payload?.message ?? error?.message ?? String(error),
|
|
17
22
|
commitSha: payload?.error?.data?.commitSha ?? payload?.data?.commitSha ?? null,
|
|
18
23
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@widgetic/creator",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
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": "node ../dev-tools/bin/publish-package.mjs",
|
|
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",
|