@widgetic/creator 0.4.44 → 0.4.45

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.
Files changed (2) hide show
  1. package/dist/i18n/language.d.ts +66 -118
  2. package/package.json +11 -11
@@ -566,7 +566,7 @@ export declare const CREATOR_CATALOGS: {
566
566
  readonly 'creator.elementSelector.done': "done";
567
567
  readonly 'creator.elementSelector.notePlaceholder': "Note for this part";
568
568
  };
569
- readonly editor: any;
569
+ readonly editor: Readonly<Record<string, string>>;
570
570
  readonly chat: {
571
571
  readonly 'chat.contextType.frame': "frame";
572
572
  readonly 'chat.contextType.text': "text";
@@ -580,27 +580,37 @@ export declare const CREATOR_CATALOGS: {
580
580
  readonly 'chat.header.untitled': "Untitled";
581
581
  readonly 'chat.header.newConversationTitle': "New conversation";
582
582
  readonly 'chat.header.newConversation': "Start new conversation";
583
+ readonly 'chat.header.console': "Console";
583
584
  readonly 'chat.header.close': "Close chat";
584
585
  readonly 'chat.contextPreview.expand': "Expand {name} chat context";
585
586
  readonly 'chat.conversation.defaultTitle': "Chat about {name}";
586
- readonly 'chat.messages.startTitle': "Start a conversation";
587
- readonly 'chat.messages.startHint': "Ask a question about your {type} to get started.";
587
+ readonly 'chat.messages.emptyTitle': "What do you want to build?";
588
+ readonly 'chat.messages.emptyHint': "Sketch it on the canvas, or describe it here.";
588
589
  readonly 'chat.messages.loadingHistory': "Loading chat history...";
589
590
  readonly 'chat.messages.thinking': "Assistant is thinking";
590
- readonly 'chat.messages.viewing': "You are here";
591
- readonly 'chat.messages.viewingTitle': "This is the version you are looking at";
591
+ readonly 'chat.generation.thinking': "Thinking";
592
+ readonly 'chat.generation.writingCode': "Writing code";
593
+ readonly 'chat.generation.thoughtFor': "Thought for {seconds} s";
594
+ readonly 'chat.generation.expandThought': "Show thinking";
595
+ readonly 'chat.generation.collapseThought': "Hide thinking";
596
+ readonly 'chat.generation.statusThinking': "Assistant is thinking";
597
+ readonly 'chat.generation.statusWritingCode': "Assistant is writing code";
598
+ readonly 'chat.plan.title': "Build plan";
599
+ readonly 'chat.plan.progress': "{current} of {total}";
600
+ readonly 'chat.plan.showMoreTasks': "Show {count} more tasks";
601
+ readonly 'chat.plan.showFewerTasks': "Show fewer tasks";
602
+ readonly 'chat.plan.regionLabel': "Widget build plan";
592
603
  readonly 'chat.messages.attachmentMissingTitle': "Attachment not available";
593
604
  readonly 'chat.messages.attachmentMissingLabel': "Missing file attachment";
594
- readonly 'chat.messages.attachmentMissingCaption': "Attachment not saved. Re-attach with Upload, then Retry.";
595
- readonly 'chat.messages.retry': "Retry";
596
- readonly 'chat.messages.retryPromptTitle': "Run this prompt again as its own message. The sketch stays with the model, not on the bubble.";
597
- readonly 'chat.messages.retryLastTitle': "Retry the last user prompt (same generation request)";
605
+ readonly 'chat.messages.attachmentMissingCaption': "Attachment not saved. Re-attach with Upload, then send it again.";
598
606
  readonly 'chat.messages.upgrade': "Upgrade";
599
607
  readonly 'chat.messages.upgradeTitle': "Open plans and billing";
600
608
  readonly 'chat.messages.commitId': "(commit id: {id})";
601
609
  readonly 'chat.messages.restore': "Restore Checkpoint";
602
- readonly 'chat.messages.restoreTitle': "Restore widget code to this prompt's commit";
603
- readonly 'chat.messages.alreadyHead': "This checkpoint is already HEAD";
610
+ readonly 'chat.messages.actions': "Message actions";
611
+ readonly 'chat.messages.copy': "Copy";
612
+ readonly 'chat.messages.copied': "Copied";
613
+ readonly 'chat.messages.regenerate': "Regenerate";
604
614
  readonly 'chat.messages.rateGroup': "Rate this version";
605
615
  readonly 'chat.messages.rateUp': "This version is good";
606
616
  readonly 'chat.messages.rateDown': "This version is not good";
@@ -642,6 +652,13 @@ export declare const CREATOR_CATALOGS: {
642
652
  readonly 'chat.input.stop': "Stop generation";
643
653
  readonly 'chat.input.sending': "Sending message...";
644
654
  readonly 'chat.input.send': "Send message";
655
+ readonly 'chat.input.tooLong': "Message is too long";
656
+ readonly 'chat.composer.assistant': "Assistant";
657
+ readonly 'chat.messages.scrollToBottom': "Scroll to latest messages";
658
+ readonly 'chat.messages.clarificationPrompt': "Which option fits best?";
659
+ readonly 'chat.checkpoint.version': "Version {n}";
660
+ readonly 'chat.checkpoint.redo': "Redo";
661
+ readonly 'chat.checkpoint.restored': "Restored to version {n}";
645
662
  readonly 'chat.actions.screenshot': "Screenshot";
646
663
  readonly 'chat.actions.screenshotTitle': "Take Screenshot";
647
664
  readonly 'chat.actions.screenshotLabel': "Take screenshot of current content";
@@ -713,48 +730,42 @@ export declare const CREATOR_CATALOGS: {
713
730
  readonly canvas: {
714
731
  readonly 'canvas.state.loading': "Loading canvas\u2026";
715
732
  readonly 'canvas.state.initFailed': "Canvas failed to initialize.";
716
- readonly 'canvas.error.imageFromUrl': "Failed to load image from URL. Make sure the URL is correct and allows cross-origin requests.";
733
+ readonly 'canvas.state.boardLabel': "Canvas board";
734
+ readonly 'canvas.state.unsupported': "This canvas was made with an older version and cannot be opened. It stays as it is until you add something new.";
735
+ readonly 'canvas.state.invalid': "This canvas could not be read. It stays as it is until you add something new.";
736
+ readonly 'canvas.state.dismiss': "Dismiss";
737
+ readonly 'canvas.hint.title': "Start with a sketch";
717
738
  readonly 'canvas.defaults.textBox': "Type here";
718
- readonly 'canvas.defaults.frameLabel': "Frame";
719
- readonly 'canvas.defaults.untitledFrame': "Untitled Frame";
720
739
  readonly 'canvas.defaults.untitledShape': "Untitled Shape";
721
- readonly 'canvas.draw.dropImage': "Drop image";
722
- readonly 'canvas.draw.dropVideo': "Drop video";
723
- readonly 'canvas.draw.or': "or";
724
- readonly 'canvas.draw.doubleClick': "double click";
725
740
  readonly 'canvas.draw.widgetName': "Widget";
726
741
  readonly 'canvas.draw.widgetPreview': "Widget preview";
742
+ readonly 'canvas.toolbar.label': "Canvas tools";
727
743
  readonly 'canvas.tool.select': "Select";
728
744
  readonly 'canvas.tool.hand': "Hand / Pan";
729
745
  readonly 'canvas.tool.erase': "Erase";
730
746
  readonly 'canvas.tool.draw': "Draw";
731
747
  readonly 'canvas.tool.arrow': "Arrow";
732
748
  readonly 'canvas.tool.rectangle': "Rectangle";
749
+ readonly 'canvas.tool.roundedRectangle': "Rounded rectangle";
733
750
  readonly 'canvas.tool.triangle': "Triangle";
734
751
  readonly 'canvas.tool.ellipse': "Ellipse";
735
752
  readonly 'canvas.tool.circle': "Circle";
736
- readonly 'canvas.tool.frame': "Frame";
737
753
  readonly 'canvas.tool.text': "Text";
738
754
  readonly 'canvas.tool.selector': "Selector";
739
755
  readonly 'canvas.tool.image': "Image";
740
- readonly 'canvas.tool.video': "Video";
756
+ readonly 'canvas.tool.svg': "SVG";
741
757
  readonly 'canvas.tool.shapes': "Shapes";
742
- readonly 'canvas.tool.moreShapes': "More Shapes";
758
+ readonly 'canvas.tool.moreShapes': "More shapes";
743
759
  readonly 'canvas.tool.undo': "Undo";
744
760
  readonly 'canvas.tool.redo': "Redo";
745
- readonly 'canvas.tool.withKey': "{name} ({key})";
746
- readonly 'canvas.tool.undoTitle': "Undo (Ctrl+Z)";
747
- readonly 'canvas.tool.redoTitle': "Redo (Ctrl+Shift+Z)";
748
- readonly 'canvas.tool.stickyOn': "Tool Lock: ON \u2014 drawing tool stays active";
749
- readonly 'canvas.tool.stickyOff': "Tool Lock: OFF \u2014 reverts to Select after placing";
750
- readonly 'canvas.tool.stickyLabel': "Toggle sticky tool mode";
751
- readonly 'canvas.menu.mediaShapes': "Media Shapes";
761
+ readonly 'canvas.menu.media': "Media";
752
762
  readonly 'canvas.category.geometric': "Geometric Shapes";
753
763
  readonly 'canvas.category.arrows': "Arrow Shapes";
754
764
  readonly 'canvas.category.media': "Media Icons";
755
765
  readonly 'canvas.category.ui': "UI Icons";
756
766
  readonly 'canvas.category.symbols': "Symbol Shapes";
757
767
  readonly 'canvas.shape.hexagon': "Hexagon";
768
+ readonly 'canvas.shape.pentagon': "Pentagon";
758
769
  readonly 'canvas.shape.oval': "Oval";
759
770
  readonly 'canvas.shape.play': "Play";
760
771
  readonly 'canvas.shape.pause': "Pause";
@@ -788,20 +799,13 @@ export declare const CREATOR_CATALOGS: {
788
799
  readonly 'canvas.action.group': "Group";
789
800
  readonly 'canvas.action.ungroup': "Ungroup";
790
801
  readonly 'canvas.action.selectAll': "Select All";
791
- readonly 'canvas.action.clearAll': "Clear All";
792
802
  readonly 'canvas.layer.title': "Layer Order";
793
803
  readonly 'canvas.layer.front': "Bring to Front";
794
804
  readonly 'canvas.layer.forward': "Bring Forward";
795
805
  readonly 'canvas.layer.backward': "Send Backward";
796
806
  readonly 'canvas.layer.back': "Send to Back";
797
- readonly 'canvas.layer.frontShort': "Front";
798
- readonly 'canvas.layer.upShort': "Up";
799
- readonly 'canvas.layer.downShort': "Down";
800
- readonly 'canvas.layer.backShort': "Back";
801
807
  readonly 'canvas.shortcuts.title': "Keyboard Shortcuts";
802
808
  readonly 'canvas.shortcuts.close': "Close keyboard shortcuts";
803
- readonly 'canvas.shortcuts.footer': "Press {key} {hint} or click {icon} in the zoom panel to toggle";
804
- readonly 'canvas.shortcuts.footerHint': "(Shift + /)";
805
809
  readonly 'canvas.shortcuts.groupTools': "Tools";
806
810
  readonly 'canvas.shortcuts.groupSelection': "Selection";
807
811
  readonly 'canvas.shortcuts.groupHistory': "History";
@@ -816,8 +820,7 @@ export declare const CREATOR_CATALOGS: {
816
820
  readonly 'canvas.shortcuts.pan': "Pan canvas";
817
821
  readonly 'canvas.shortcuts.move1': "Move selected (1px)";
818
822
  readonly 'canvas.shortcuts.move10': "Move selected (10px)";
819
- readonly 'canvas.shortcuts.frameResize': "Resize, keep children size";
820
- readonly 'canvas.shortcuts.frameEdit': "Enter / exit frame edit";
823
+ readonly 'canvas.key.ctrl': "Ctrl";
821
824
  readonly 'canvas.key.ctrlCmd': "Ctrl/Cmd";
822
825
  readonly 'canvas.key.alt': "Alt";
823
826
  readonly 'canvas.key.shift': "Shift";
@@ -825,96 +828,41 @@ export declare const CREATOR_CATALOGS: {
825
828
  readonly 'canvas.key.space': "Space";
826
829
  readonly 'canvas.key.click': "Click";
827
830
  readonly 'canvas.key.drag': "Drag";
828
- readonly 'canvas.key.dragCorner': "Drag corner";
829
- readonly 'canvas.key.doubleClick': "Double-click";
830
- readonly 'canvas.zoom.expandTitle': "Zoom {percent}% \u2014 click to expand";
831
- readonly 'canvas.zoom.expandLabel': "Expand zoom controls";
832
- readonly 'canvas.zoom.gridTitle': "Toggle Grid [G]";
833
- readonly 'canvas.zoom.gridLabel': "Toggle grid";
834
- readonly 'canvas.zoom.panTitle': "Hand / Pan [H]";
835
- readonly 'canvas.zoom.panLabel': "Hand / pan tool";
836
- readonly 'canvas.zoom.panBanner': "Dragging the canvas";
837
- readonly 'canvas.zoom.outTitle': "Zoom Out [Ctrl/Cmd] + [\u2212]";
831
+ readonly 'canvas.zoom.groupLabel': "Zoom";
838
832
  readonly 'canvas.zoom.outLabel': "Zoom out";
839
- readonly 'canvas.zoom.inTitle': "Zoom In [Ctrl/Cmd] + [+]";
840
833
  readonly 'canvas.zoom.inLabel': "Zoom in";
841
- readonly 'canvas.zoom.resetTitle': "Reset zoom to 100% [Ctrl/Cmd] + [0]";
842
834
  readonly 'canvas.zoom.resetLabel': "Reset zoom to 100%";
843
- readonly 'canvas.zoom.levelLabel': "Zoom level (percent)";
844
- readonly 'canvas.zoom.oneToOneTitle': "Reset Zoom 100% [Ctrl/Cmd] + [0]";
845
- readonly 'canvas.zoom.fitTitle': "Fit Content to View [Ctrl/Cmd] + [9]";
846
835
  readonly 'canvas.zoom.fitLabel': "Fit content to view";
847
- readonly 'canvas.zoom.shortcutsTitle': "Keyboard Shortcuts [?]";
848
- readonly 'canvas.zoom.shortcutsLabel': "Toggle keyboard shortcuts panel";
849
- readonly 'canvas.zoom.unsavedTitle': "Unsaved changes \u2014 click to save [Cmd+S]";
850
- readonly 'canvas.zoom.savedTitle': "All changes saved [Cmd+S]";
851
- readonly 'canvas.zoom.minimize': "Minimize Zoom Panel";
852
- readonly 'canvas.props.shape': "SHAPE:";
853
- readonly 'canvas.props.showAll': "Show all properties";
854
- readonly 'canvas.props.showFewer': "Show fewer properties";
855
- readonly 'canvas.props.close': "Close properties panel";
856
- readonly 'canvas.props.children': "Children: {count}";
857
- readonly 'canvas.props.actions': "Actions";
858
- readonly 'canvas.props.general': "General Properties";
859
- readonly 'canvas.props.dimensions': "Dimensions";
860
- readonly 'canvas.props.width': "Width";
861
- readonly 'canvas.props.height': "Height";
862
- readonly 'canvas.props.proportionsFixed': "Proportions locked (shape constraint)";
863
- readonly 'canvas.props.proportionsUnlock': "Unlock proportions";
864
- readonly 'canvas.props.proportionsLock': "Lock proportions";
865
- readonly 'canvas.props.textProperties': "Text Properties";
866
- readonly 'canvas.props.labelProperties': "Label Properties";
867
- readonly 'canvas.props.boxProperties': "Box Properties";
868
- readonly 'canvas.props.groupBox': "Group Box";
869
- readonly 'canvas.props.labelText': "Text/Description";
870
- readonly 'canvas.props.labelPlaceholder': "Describe this frame (used as widget description & prompt context)";
871
- readonly 'canvas.props.textBackground': "Text Background";
836
+ readonly 'canvas.zoom.unsavedTitle': "Unsaved changes \u2014 click to save";
837
+ readonly 'canvas.zoom.savedTitle': "All changes saved";
838
+ readonly 'canvas.panel.label': "Selection properties";
839
+ readonly 'canvas.panel.close': "Close panel";
840
+ readonly 'canvas.panel.open': "Open selection properties";
841
+ readonly 'canvas.panel.actions': "Actions";
842
+ readonly 'canvas.panel.fill': "Fill";
843
+ readonly 'canvas.panel.stroke': "Stroke";
844
+ readonly 'canvas.panel.strokeWidth': "Stroke width";
845
+ readonly 'canvas.panel.roundness': "Roundness";
846
+ readonly 'canvas.panel.opacity': "Opacity";
847
+ readonly 'canvas.panel.fontSize': "Font size";
848
+ readonly 'canvas.panel.decrease': "Decrease";
849
+ readonly 'canvas.panel.increase': "Increase";
850
+ readonly 'canvas.panel.mixed': "Mixed";
851
+ readonly 'canvas.panel.none': "None";
852
+ readonly 'canvas.panel.noColor': "No color";
853
+ readonly 'canvas.panel.pickColor': "Pick a color";
854
+ readonly 'canvas.panel.hex': "Hex color";
855
+ readonly 'canvas.colorPicker.area': "Saturation and brightness";
856
+ readonly 'canvas.colorPicker.areaValue': "Saturation {s}%, brightness {v}%";
857
+ readonly 'canvas.colorPicker.hue': "Hue";
858
+ readonly 'canvas.colorPicker.add': "Add";
859
+ readonly 'canvas.colorPicker.swatch': "Use {hex}";
872
860
  readonly 'canvas.type.none': "None";
873
861
  readonly 'canvas.type.widget': "Widget";
874
862
  readonly 'canvas.type.drawing': "Drawing";
875
- readonly 'canvas.type.line': "Line";
876
863
  readonly 'canvas.type.group': "Group";
877
864
  readonly 'canvas.type.selection': "Selection";
878
865
  readonly 'canvas.type.drawingOf': "{name} (Drawing)";
879
- readonly 'canvas.type.customShape': "Custom Shape (Drawing)";
880
- readonly 'canvas.field.opacity': "Opacity";
881
- readonly 'canvas.field.cornerRoundness': "Corner Roundness";
882
- readonly 'canvas.field.backgroundColor': "Background Color";
883
- readonly 'canvas.field.backgroundOpacity': "Background Opacity";
884
- readonly 'canvas.field.fillColor': "Fill Color";
885
- readonly 'canvas.field.fillOpacity': "Fill Opacity";
886
- readonly 'canvas.field.strokeColor': "Stroke Color";
887
- readonly 'canvas.field.strokeWidth': "Stroke Width";
888
- readonly 'canvas.field.strokeType': "Stroke Type";
889
- readonly 'canvas.field.strokeSolid': "Solid";
890
- readonly 'canvas.field.strokeDashed': "Dashed";
891
- readonly 'canvas.field.strokeDotted': "Dotted";
892
- readonly 'canvas.field.fontSize': "Font Size";
893
- readonly 'canvas.field.textPadding': "Text Padding";
894
- readonly 'canvas.field.textColor': "Text Color";
895
- readonly 'canvas.field.textStrokeColor': "Text Stroke Color";
896
- readonly 'canvas.field.textStrokeWidth': "Text Stroke Width";
897
- readonly 'canvas.field.groupFillColor': "Group Fill Color";
898
- readonly 'canvas.field.groupFillOpacity': "Group Fill Opacity";
899
- readonly 'canvas.field.groupStrokeColor': "Group Stroke Color";
900
- readonly 'canvas.field.groupStrokeWidth': "Group Stroke Width";
901
- readonly 'canvas.field.groupStrokeType': "Group Stroke Type";
902
- readonly 'canvas.arrange.title': "Align";
903
- readonly 'canvas.arrange.left': "Align Left";
904
- readonly 'canvas.arrange.centerH': "Align Center (horizontal)";
905
- readonly 'canvas.arrange.right': "Align Right";
906
- readonly 'canvas.arrange.top': "Align Top";
907
- readonly 'canvas.arrange.middleV': "Align Middle (vertical)";
908
- readonly 'canvas.arrange.bottom': "Align Bottom";
909
- readonly 'canvas.image.source': "IMAGE SOURCE";
910
- readonly 'canvas.image.file': "File:";
911
- readonly 'canvas.image.noFile': "No file selected";
912
- readonly 'canvas.image.changeFile': "Change File";
913
- readonly 'canvas.image.chooseFile': "Choose File";
914
- readonly 'canvas.image.url': "URL:";
915
- readonly 'canvas.image.pasteUrl': "Paste URL...";
916
- readonly 'canvas.image.newUrl': "New URL...";
917
- readonly 'canvas.image.load': "Load";
918
866
  readonly 'canvas.widget.createPreview': "Create Preview";
919
867
  readonly 'canvas.widget.capture': "Capture";
920
868
  readonly 'canvas.widget.linked': "Widget Linked";
@@ -937,7 +885,7 @@ export declare const CREATOR_CATALOGS: {
937
885
  readonly 'canvas.control.value': "Value";
938
886
  readonly 'canvas.control.openPicker': "Open color picker";
939
887
  readonly 'canvas.control.removeColor': "Remove color";
940
- readonly 'canvas.control.fontFamily': "Font Family";
888
+ readonly 'canvas.control.fontFamily': "Font family";
941
889
  readonly 'canvas.control.textStyle': "Text Style";
942
890
  readonly 'canvas.control.bold': "Bold";
943
891
  readonly 'canvas.control.boldMark': "B";
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@widgetic/creator",
3
- "version": "0.4.44",
3
+ "version": "0.4.45",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "peerDependencies": {
7
7
  "@sveltejs/kit": "^2.20.0",
8
8
  "@widgetic/api-sdk": "^2.0.0",
9
9
  "@widgetic/cache-layer": "^0.1.2",
10
- "@widgetic/canvas": "^0.5.35",
11
- "@widgetic/chat": "^0.1.34",
12
- "@widgetic/design-system": "^0.5.15",
13
- "@widgetic/editor": "^4.0.10",
14
- "@widgetic/file-browser": "^0.5.24",
10
+ "@widgetic/canvas": "^0.5.36",
11
+ "@widgetic/chat": "^0.1.36",
12
+ "@widgetic/design-system": "^0.5.32",
13
+ "@widgetic/editor": "^4.1.3",
14
+ "@widgetic/file-browser": "^0.5.25",
15
15
  "svelte": "^5.25.0"
16
16
  },
17
17
  "svelte": "./dist/index.js",
@@ -74,12 +74,12 @@
74
74
  "@types/node": "26.4.0",
75
75
  "@widgetic/api-sdk": "^2.0.0",
76
76
  "@widgetic/cache-layer": "^0.1.2",
77
- "@widgetic/canvas": "^0.5.35",
78
- "@widgetic/chat": "^0.1.34",
79
- "@widgetic/design-system": "^0.5.15",
77
+ "@widgetic/canvas": "^0.5.36",
78
+ "@widgetic/chat": "^0.1.36",
79
+ "@widgetic/design-system": "^0.5.32",
80
80
  "@widgetic/dev-tools": "^0.3.0",
81
- "@widgetic/editor": "^4.0.10",
82
- "@widgetic/file-browser": "^0.5.24",
81
+ "@widgetic/editor": "^4.1.3",
82
+ "@widgetic/file-browser": "^0.5.25",
83
83
  "autoprefixer": "^10.4.20",
84
84
  "eslint": "^9.0.0",
85
85
  "eslint-config-prettier": "^9.1.0",