@widgetic/creator 0.4.2 → 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 +6 -0
- package/dist/CreatorApp.svelte +611 -244
- package/dist/CreatorApp.svelte.d.ts +5 -1
- package/dist/components/DesignQuickEdit.svelte +0 -1
- package/dist/components/VersionDropdownRow.svelte +1 -1
- package/dist/components/WidgetDetails.svelte +56 -16
- package/dist/components/WidgetShapeLivePreviews.svelte +29 -8
- package/dist/components/WidgetShapeLivePreviews.svelte.d.ts +3 -1
- package/dist/creator-types.d.ts +27 -3
- package/dist/i18n/language.d.ts +247 -7
- package/dist/i18n/messages.d.ts +3 -0
- package/dist/i18n/messages.js +3 -0
- package/dist/i18n/statusText.js +1 -0
- package/dist/stores/websocketStore.js +14 -2
- package/dist/utils/freezeWatchdog.js +88 -1
- package/dist/utils/operationStream.js +49 -2
- package/dist/utils/partnerMediaUpload.d.ts +25 -0
- package/dist/utils/partnerMediaUpload.js +145 -0
- package/package.json +2 -1
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,
|
|
@@ -215,6 +214,9 @@ export declare const CREATOR_CATALOGS: {
|
|
|
215
214
|
readonly 'creator.codegen.cannotTrackCodeGenerationProgress': "Cannot track code generation progress.";
|
|
216
215
|
readonly 'creator.codegen.aiGeneratedInvalidSvelteSyntax': "AI generated invalid Svelte syntax. Click \"Generate Code\" to retry with improved instructions.";
|
|
217
216
|
readonly 'creator.codegen.codeSavedRebuildingPreview': "Code saved — rebuilding preview";
|
|
217
|
+
readonly 'creator.codegen.codeWasNotSaved': "Code was not saved";
|
|
218
|
+
readonly 'creator.codegen.codeWasNotSavedToTheRepository': "Code was not saved to the repository. Retry saves it and records a version.";
|
|
219
|
+
readonly 'creator.codegen.retrySavesItAndRecordsAVersion': "Retry saves it and records a version.";
|
|
218
220
|
readonly 'creator.codegen.generationCompleted': "\"{name}\" generation completed";
|
|
219
221
|
readonly 'creator.codegen.codeSavedPreviewIsLoading': "Code saved. Preview is loading.";
|
|
220
222
|
readonly 'creator.codegen.generationAlreadyInProgress': "Generation already in progress";
|
|
@@ -530,7 +532,245 @@ export declare const CREATOR_CATALOGS: {
|
|
|
530
532
|
};
|
|
531
533
|
readonly editor: any;
|
|
532
534
|
readonly chat: any;
|
|
533
|
-
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
|
+
};
|
|
534
774
|
};
|
|
535
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. */
|
|
536
776
|
export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
@@ -539,21 +779,21 @@ export declare const ALL_CREATOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
539
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
|
|
540
780
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
541
781
|
*/
|
|
542
|
-
export declare const checkCreatorMessages: (messages:
|
|
782
|
+
export declare const checkCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides) => import("@widgetic/file-browser").MessageProblem[];
|
|
543
783
|
/** Gives each part the entries of the page's `messages` that are its own (the creator, the editor, the chat, the canvas). */
|
|
544
|
-
export declare const splitCreatorMessages: (messages:
|
|
784
|
+
export declare const splitCreatorMessages: (messages: import("@widgetic/file-browser").MessageOverrides | null | undefined) => import("./languageKit.js").CreatorMessageSlices;
|
|
545
785
|
/**
|
|
546
786
|
* Called by the root component of a creator while it is created, so everything inside it speaks the page's language.
|
|
547
787
|
* The context belongs to one root component, so two creators on a page can speak two languages.
|
|
548
788
|
*/
|
|
549
|
-
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>;
|
|
550
790
|
/**
|
|
551
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
|
|
552
792
|
* changes when the page sets the language again. Outside a creator (a control used on its own) it speaks English.
|
|
553
793
|
*/
|
|
554
|
-
export declare const useCreatorLanguage: () =>
|
|
794
|
+
export declare const useCreatorLanguage: () => import("@widgetic/design-system/i18n").I18nContext<import("./messages.js").CreatorMessageKey>;
|
|
555
795
|
/**
|
|
556
796
|
* The English `t` of the creator, for code that has no component around it. The screens of the creator get their words, in
|
|
557
797
|
* the page's language, from `useCreatorLanguage`.
|
|
558
798
|
*/
|
|
559
|
-
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.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/dist/i18n/messages.d.ts
CHANGED
|
@@ -210,6 +210,9 @@ export declare const CREATOR_MESSAGES: {
|
|
|
210
210
|
readonly 'creator.codegen.cannotTrackCodeGenerationProgress': "Cannot track code generation progress.";
|
|
211
211
|
readonly 'creator.codegen.aiGeneratedInvalidSvelteSyntax': "AI generated invalid Svelte syntax. Click \"Generate Code\" to retry with improved instructions.";
|
|
212
212
|
readonly 'creator.codegen.codeSavedRebuildingPreview': "Code saved — rebuilding preview";
|
|
213
|
+
readonly 'creator.codegen.codeWasNotSaved': "Code was not saved";
|
|
214
|
+
readonly 'creator.codegen.codeWasNotSavedToTheRepository': "Code was not saved to the repository. Retry saves it and records a version.";
|
|
215
|
+
readonly 'creator.codegen.retrySavesItAndRecordsAVersion': "Retry saves it and records a version.";
|
|
213
216
|
readonly 'creator.codegen.generationCompleted': "\"{name}\" generation completed";
|
|
214
217
|
readonly 'creator.codegen.codeSavedPreviewIsLoading': "Code saved. Preview is loading.";
|
|
215
218
|
readonly 'creator.codegen.generationAlreadyInProgress': "Generation already in progress";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -217,6 +217,9 @@ export const CREATOR_MESSAGES = {
|
|
|
217
217
|
'creator.codegen.cannotTrackCodeGenerationProgress': 'Cannot track code generation progress.',
|
|
218
218
|
'creator.codegen.aiGeneratedInvalidSvelteSyntax': 'AI generated invalid Svelte syntax. Click "Generate Code" to retry with improved instructions.',
|
|
219
219
|
'creator.codegen.codeSavedRebuildingPreview': 'Code saved — rebuilding preview',
|
|
220
|
+
'creator.codegen.codeWasNotSaved': 'Code was not saved',
|
|
221
|
+
'creator.codegen.codeWasNotSavedToTheRepository': 'Code was not saved to the repository. Retry saves it and records a version.',
|
|
222
|
+
'creator.codegen.retrySavesItAndRecordsAVersion': 'Retry saves it and records a version.',
|
|
220
223
|
'creator.codegen.generationCompleted': '"{name}" generation completed',
|
|
221
224
|
'creator.codegen.codeSavedPreviewIsLoading': 'Code saved. Preview is loading.',
|
|
222
225
|
'creator.codegen.generationAlreadyInProgress': 'Generation already in progress',
|
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
|
+
['Code was not saved to the repository. Retry saves it and records a version.', (t) => t('creator.codegen.codeWasNotSavedToTheRepository')],
|
|
31
32
|
['Code saved — building preview…', (t) => t('creator.status.savedBuildingPreview')],
|
|
32
33
|
['Code saved — loading preview…', (t) => t('creator.status.savedLoadingPreview')],
|
|
33
34
|
['Code saved — preview rebuilt from saved code.', (t) => t('creator.status.savedPreviewRebuilt')],
|
|
@@ -220,14 +220,26 @@ function setupSocketListeners(sock) {
|
|
|
220
220
|
sock.on('code_generation_status', (data) => {
|
|
221
221
|
if (showLogs)
|
|
222
222
|
console.log('[WsStore] Code generation status received:', data);
|
|
223
|
-
|
|
223
|
+
if (import.meta.env.DEV) {
|
|
224
|
+
const query = new URLSearchParams({
|
|
225
|
+
probe: 'socket-status',
|
|
226
|
+
status: `${data?.status ?? ''} ${data?.progress ?? ''}`.slice(0, 180)
|
|
227
|
+
});
|
|
228
|
+
void fetch(`http://localhost:3000/health?${query}`).catch(() => { });
|
|
229
|
+
}
|
|
230
|
+
// Setting the store flushes the canvas page in this socket turn. That
|
|
231
|
+
// flush is the turn that stops answering, so apply the status next turn.
|
|
232
|
+
const nextStatus = {
|
|
224
233
|
operationId: data.operationId ?? null,
|
|
225
234
|
status: data.status ?? null,
|
|
226
235
|
previousStatus: data.previousStatus ?? null,
|
|
227
236
|
progress: data.progress ?? 0,
|
|
228
237
|
error: data.error ?? null,
|
|
229
238
|
timestamp: data.timestamp ?? new Date().toISOString()
|
|
230
|
-
}
|
|
239
|
+
};
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
codeGenerationStatus.set(nextStatus);
|
|
242
|
+
}, 0);
|
|
231
243
|
});
|
|
232
244
|
// =========================================================================
|
|
233
245
|
// Dynamic Worker Preview
|
|
@@ -49,6 +49,14 @@ setInterval(() => {
|
|
|
49
49
|
'ms. Last status: "' + (lastStatus || '—') + '". Select the top page in the console frame picker (not the widget iframe).';
|
|
50
50
|
console.warn(msg);
|
|
51
51
|
postMessage({ type: 'freeze-report', phase: 'start', message: msg });
|
|
52
|
+
// The page thread cannot log this. The worker can. __PROBE_BASE__ is
|
|
53
|
+
// replaced at install time and is empty outside local dev.
|
|
54
|
+
var probeBase = '__PROBE_BASE__';
|
|
55
|
+
if (probeBase) {
|
|
56
|
+
var stallMs = Math.round(now - freezeStartedAt);
|
|
57
|
+
var stallStatus = encodeURIComponent(lastStatus || '');
|
|
58
|
+
fetch(probeBase + '?probe=stall&ms=' + stallMs + '&status=' + stallStatus).catch(function () {});
|
|
59
|
+
}
|
|
52
60
|
}
|
|
53
61
|
} else if (freezeStartedAt) {
|
|
54
62
|
const msg = '[FreezeReport] Main thread recovered after ' + Math.round(now - freezeStartedAt) +
|
|
@@ -119,6 +127,69 @@ function observeLongTasks(watchdog) {
|
|
|
119
127
|
return null;
|
|
120
128
|
}
|
|
121
129
|
}
|
|
130
|
+
function timerCallerFrame(stack) {
|
|
131
|
+
const frames = stack
|
|
132
|
+
.split('\n')
|
|
133
|
+
.map((line) => line.trim())
|
|
134
|
+
.filter((line) => line.startsWith('at ') && !line.includes('freezeWatchdog'));
|
|
135
|
+
return (frames[0] || 'unknown').slice(0, 150);
|
|
136
|
+
}
|
|
137
|
+
function reportDevTimer(probeBase, kind, delayMs, caller) {
|
|
138
|
+
const detail = `${delayMs} ${caller}`.slice(0, 180);
|
|
139
|
+
void fetch(`${probeBase}?probe=${encodeURIComponent(kind)}&status=${encodeURIComponent(detail)}`).catch(() => { });
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Names timers when they start, before the callback runs.
|
|
143
|
+
* setTimeout and setInterval from 1s up, and every requestIdleCallback.
|
|
144
|
+
* A callback that never returns is the last of these lines before the stall.
|
|
145
|
+
*/
|
|
146
|
+
function installDevTimerProbe(probeBase) {
|
|
147
|
+
const marked = window;
|
|
148
|
+
if (marked.__widgeticTimerProbe)
|
|
149
|
+
return;
|
|
150
|
+
marked.__widgeticTimerProbe = true;
|
|
151
|
+
const originalSetTimeout = window.setTimeout.bind(window);
|
|
152
|
+
let shortTimerCount = 0;
|
|
153
|
+
window.setTimeout = ((handler, timeout, ...args) => {
|
|
154
|
+
const delayMs = typeof timeout === 'number' ? timeout : 0;
|
|
155
|
+
if (typeof handler !== 'function') {
|
|
156
|
+
return originalSetTimeout(handler, timeout, ...args);
|
|
157
|
+
}
|
|
158
|
+
const caller = timerCallerFrame(new Error().stack || '');
|
|
159
|
+
const ours = /CreatorApp|Canvas\.svelte|WidgetDetails|Chat\.svelte|operationStream|websocketStore/.test(caller);
|
|
160
|
+
return originalSetTimeout(() => {
|
|
161
|
+
if (delayMs < 500 && !ours)
|
|
162
|
+
shortTimerCount += 1;
|
|
163
|
+
else
|
|
164
|
+
reportDevTimer(probeBase, 'timer', delayMs, caller);
|
|
165
|
+
return handler(...args);
|
|
166
|
+
}, delayMs);
|
|
167
|
+
});
|
|
168
|
+
window.__widgeticShortTimerCount = () => shortTimerCount;
|
|
169
|
+
const originalSetInterval = window.setInterval.bind(window);
|
|
170
|
+
window.setInterval = ((handler, timeout, ...args) => {
|
|
171
|
+
const delayMs = typeof timeout === 'number' ? timeout : 0;
|
|
172
|
+
if (typeof handler !== 'function' || delayMs < 1000) {
|
|
173
|
+
return originalSetInterval(handler, timeout, ...args);
|
|
174
|
+
}
|
|
175
|
+
const caller = timerCallerFrame(new Error().stack || '');
|
|
176
|
+
return originalSetInterval(() => {
|
|
177
|
+
reportDevTimer(probeBase, 'interval', delayMs, caller);
|
|
178
|
+
return handler(...args);
|
|
179
|
+
}, delayMs);
|
|
180
|
+
});
|
|
181
|
+
const originalIdle = window.requestIdleCallback?.bind(window);
|
|
182
|
+
if (originalIdle) {
|
|
183
|
+
window.requestIdleCallback = ((callback, options) => {
|
|
184
|
+
const caller = timerCallerFrame(new Error().stack || '');
|
|
185
|
+
const delayMs = options?.timeout ?? 0;
|
|
186
|
+
return originalIdle((deadline) => {
|
|
187
|
+
reportDevTimer(probeBase, 'idle', delayMs, caller);
|
|
188
|
+
return callback(deadline);
|
|
189
|
+
}, options);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
122
193
|
export function installFreezeWatchdog() {
|
|
123
194
|
if (typeof window === 'undefined' || typeof Worker === 'undefined' || typeof Blob === 'undefined') {
|
|
124
195
|
return null;
|
|
@@ -126,17 +197,33 @@ export function installFreezeWatchdog() {
|
|
|
126
197
|
const existing = window.__widgeticFreezeWatchdog;
|
|
127
198
|
if (existing)
|
|
128
199
|
return existing;
|
|
129
|
-
const
|
|
200
|
+
const probeBase = import.meta.env.DEV ? 'http://localhost:3000/health' : '';
|
|
201
|
+
if (probeBase)
|
|
202
|
+
installDevTimerProbe(probeBase);
|
|
203
|
+
// Both the comment and the variable contain the token. Replace every one.
|
|
204
|
+
const blob = new Blob([WATCHDOG_SOURCE.replaceAll('__PROBE_BASE__', probeBase)], { type: 'text/javascript' });
|
|
130
205
|
const url = URL.createObjectURL(blob);
|
|
131
206
|
const worker = new Worker(url);
|
|
132
207
|
URL.revokeObjectURL(url);
|
|
133
208
|
let lastStatus = '';
|
|
134
209
|
let pendingBreadcrumbs = [];
|
|
210
|
+
let lastHeartbeatAt = 0;
|
|
135
211
|
worker.onmessage = (event) => {
|
|
136
212
|
const data = event.data;
|
|
137
213
|
if (data?.type === 'ping') {
|
|
138
214
|
worker.postMessage({ type: 'pong', status: lastStatus, breadcrumbs: pendingBreadcrumbs });
|
|
139
215
|
pendingBreadcrumbs = [];
|
|
216
|
+
// One line a second, only while this turn can still answer the worker.
|
|
217
|
+
// The last line before a stall is the last second the page thread lived.
|
|
218
|
+
if (probeBase) {
|
|
219
|
+
const now = Date.now();
|
|
220
|
+
if (now - lastHeartbeatAt >= 1000) {
|
|
221
|
+
lastHeartbeatAt = now;
|
|
222
|
+
const second = new Date(now).toISOString().slice(11, 23);
|
|
223
|
+
const shortTimers = window.__widgeticShortTimerCount?.() ?? 0;
|
|
224
|
+
void fetch(`${probeBase}?probe=heartbeat&status=${encodeURIComponent(`${second} short=${shortTimers}`)}`).catch(() => { });
|
|
225
|
+
}
|
|
226
|
+
}
|
|
140
227
|
}
|
|
141
228
|
else if (data?.type === 'freeze-report' && data.message) {
|
|
142
229
|
console.warn(data.message);
|