@widgetic/creator 0.4.49 → 0.4.50
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/dist/CreatorApp.svelte +395 -85
- package/dist/components/BrandKitPanel.svelte.d.ts +1 -1
- package/dist/components/FileUrlSourceControl.svelte.d.ts +1 -1
- package/dist/components/WidgetDetails.svelte +4 -1
- package/dist/components/WidgetDetails.svelte.d.ts +1 -1
- package/dist/components/WidgetShapeLivePreviews.svelte +1 -1
- package/dist/i18n/language.d.ts +15 -17
- package/dist/i18n/messages.d.ts +7 -9
- package/dist/i18n/messages.js +7 -9
- package/dist/mergeBatchWidgetOntoListRecord.d.ts +16 -0
- package/dist/mergeBatchWidgetOntoListRecord.js +32 -0
- package/dist/sketchBarState.d.ts +10 -3
- package/dist/sketchBarState.js +26 -6
- package/dist/sketchBoardAfterDelete.d.ts +34 -0
- package/dist/sketchBoardAfterDelete.js +20 -0
- package/dist/sketchBoardStatusChip.d.ts +15 -0
- package/dist/sketchBoardStatusChip.js +17 -0
- package/dist/sketchToolbarMode.d.ts +13 -0
- package/dist/sketchToolbarMode.js +13 -0
- package/package.json +3 -3
|
@@ -29,6 +29,6 @@ interface Props {
|
|
|
29
29
|
language?: string;
|
|
30
30
|
languageLocked?: boolean;
|
|
31
31
|
}
|
|
32
|
-
declare const BrandKitPanel: import("svelte").Component<Props, {}, "
|
|
32
|
+
declare const BrandKitPanel: import("svelte").Component<Props, {}, "brandKitEnabled" | "librariesEnabled" | "primary" | "secondary" | "title" | "sub" | "fonts" | "libraries" | "libraryGitUrl" | "libraryFileName" | "libraryUploads" | "fontUploads" | "language">;
|
|
33
33
|
type BrandKitPanel = ReturnType<typeof BrandKitPanel>;
|
|
34
34
|
export default BrandKitPanel;
|
|
@@ -10,6 +10,6 @@ interface Props {
|
|
|
10
10
|
urlPlaceholder?: string;
|
|
11
11
|
accept?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const FileUrlSourceControl: import("svelte").Component<Props, {}, "
|
|
13
|
+
declare const FileUrlSourceControl: import("svelte").Component<Props, {}, "fileName" | "fileContent" | "fileEncoding" | "url">;
|
|
14
14
|
type FileUrlSourceControl = ReturnType<typeof FileUrlSourceControl>;
|
|
15
15
|
export default FileUrlSourceControl;
|
|
@@ -3650,7 +3650,7 @@
|
|
|
3650
3650
|
<!-- The docked panel (Figma "Chat panel", 440 wide) draws its 1px stroke inside its box, as a Figma inside stroke does: with a real
|
|
3651
3651
|
border every inset in the panel (the 16px of the messages, the suggestions and the composer) would lose a pixel. -->
|
|
3652
3652
|
<div
|
|
3653
|
-
class="widget-details-floating-panel pointer-events-auto relative flex flex-col h-full w-full {dockRight ? 'min-w-0 rounded-panel border-
|
|
3653
|
+
class="widget-details-floating-panel pointer-events-auto relative flex flex-col h-full w-full {dockRight ? 'min-w-0 rounded-panel border-0 bg-background shadow-none outline-0 max-lg:rounded-none max-lg:border-0 max-lg:outline-0' : 'min-w-[480px]'}
|
|
3654
3654
|
{!dockRight && fillViewport
|
|
3655
3655
|
? 'bg-white rounded-none border-x border-b border-t-0 ring-0 shadow-none overflow-hidden'
|
|
3656
3656
|
: !dockRight
|
|
@@ -3810,7 +3810,10 @@
|
|
|
3810
3810
|
? 'width: auto; flex: 1 1 auto; min-width: 0;'
|
|
3811
3811
|
: `width: ${previewColumnCollapsed ? 100 : leftColPercent}%; flex: 0 0 ${previewColumnCollapsed ? 100 : leftColPercent}%;`}
|
|
3812
3812
|
>
|
|
3813
|
+
<!-- The outline of the left column belongs to the standalone layout only. The docked chat is a rounded card with no stroke (item 12, Figma 524:949). -->
|
|
3814
|
+
{#if !dockRight}
|
|
3813
3815
|
<div class="widget-details-left-border absolute inset-y-0 start-0 end-0 border border-gray-300 rounded-none pointer-events-none z-10"></div>
|
|
3816
|
+
{/if}
|
|
3814
3817
|
|
|
3815
3818
|
{#if selectedWidgetId}
|
|
3816
3819
|
<div class="widget-details-left-stack relative z-0 flex flex-col h-full min-h-0 overflow-hidden {consoleColumnOpen || dockRight ? 'min-w-0' : 'min-w-[460px]'}">
|
|
@@ -100,7 +100,7 @@ declare const WidgetDetails: $$__sveltets_2_IsomorphicComponent<{
|
|
|
100
100
|
/** Stacking order when multiple Widget Details panels are open. */ panelZIndex?: number;
|
|
101
101
|
/** Cascade offset index (0 = centered, 1+ = shifted down-right). */ panelCascadeIndex?: number;
|
|
102
102
|
/** False when another panel has keyboard/chat focus. */ isFocusedPanel?: boolean;
|
|
103
|
-
currentStep?: "
|
|
103
|
+
currentStep?: "create" | "edit" | "embed";
|
|
104
104
|
/**
|
|
105
105
|
* Canvas Creator is code-only (chat + preview). Edit/Embed header steps stay
|
|
106
106
|
* off until composition editing lives on /composition. Keep the Edit/Embed
|
|
@@ -1158,7 +1158,7 @@
|
|
|
1158
1158
|
First click inside the widget selects the shape (ring + chrome) via
|
|
1159
1159
|
focus, while the iframe keeps receiving the pointer events themselves. -->
|
|
1160
1160
|
<iframe
|
|
1161
|
-
class="widget-shape-live-preview-iframe pointer-events-auto absolute border-0 bg-
|
|
1161
|
+
class="widget-shape-live-preview-iframe pointer-events-auto absolute border-0 bg-transparent"
|
|
1162
1162
|
class:pointer-events-none={blockIframePointer || edgeHit || selectedPreviewBlocked || !!resolveSelectorEnabled?.(overlay.widgetId)}
|
|
1163
1163
|
class:opacity-0={selectedPreviewBlocked}
|
|
1164
1164
|
style="left: {IFRAME_INSET_PX}px; top: {IFRAME_INSET_PX}px; right: {IFRAME_INSET_PX}px; /* rtl-ok: the same inset on both sides of the frame */ bottom: {IFRAME_INSET_PX}px; width: calc(100% - {IFRAME_INSET_PX * 2}px); height: calc(100% - {IFRAME_INSET_PX * 2}px);"
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
17
17
|
readonly 'creator.common.thisAppNeedsARefresh': "This app needs a refresh";
|
|
18
18
|
readonly 'creator.common.reload': "Reload";
|
|
19
19
|
readonly 'creator.common.publish': "Publish";
|
|
20
|
-
readonly 'creator.common.update': "Update";
|
|
21
20
|
readonly 'creator.common.switchVersion': "Switch version";
|
|
22
21
|
readonly 'creator.common.live': "Live";
|
|
23
22
|
readonly 'creator.common.setLive': "Set live";
|
|
@@ -104,7 +103,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
104
103
|
readonly 'creator.widget.untitledName': "Untitled widget";
|
|
105
104
|
readonly 'creator.widget.shapeRemoved': "Shape removed";
|
|
106
105
|
readonly 'creator.widget.widgetKeptInDatabase': "Widget kept in database";
|
|
107
|
-
readonly 'creator.widget.widgetDeletedFromDatabase': "Widget deleted from database";
|
|
108
106
|
readonly 'creator.widget.widgetWasAlreadyDeleted': "Widget was already deleted";
|
|
109
107
|
readonly 'creator.widget.failedToDeleteWidgetFrom': "Failed to delete widget from database";
|
|
110
108
|
readonly 'creator.widget.selectAWidgetFirst': "Select a widget first";
|
|
@@ -119,7 +117,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
119
117
|
readonly 'creator.widget.duplicatingWidget': "Duplicating widget...";
|
|
120
118
|
readonly 'creator.widget.failedToDuplicateWidget': "Failed to duplicate widget";
|
|
121
119
|
readonly 'creator.widget.widgetDuplicated': "Widget duplicated";
|
|
122
|
-
readonly 'creator.widget.widgetKeptInDatabase2': "Widget \"{name}\" kept in database";
|
|
123
120
|
readonly 'creator.widget.youCanKeepEditingWidgets': "You can keep editing widgets. Retry load if shapes are missing.";
|
|
124
121
|
readonly 'creator.widget.oneWidgetAlready': "This canvas already has a widget. Turn Advanced on to add another.";
|
|
125
122
|
readonly 'creator.widget.failedToCreateWidgetFrom': "Failed to create widget from design";
|
|
@@ -128,7 +125,7 @@ export declare const CREATOR_CATALOGS: {
|
|
|
128
125
|
readonly 'creator.widget.repoIdToDeleteUse': "Repo ID: {id}…\nTo delete, use the Delete widget button.";
|
|
129
126
|
readonly 'creator.widget.restoreShapes': "Restore shapes";
|
|
130
127
|
readonly 'creator.widget.directWidgetUrl': "Direct Widget URL";
|
|
131
|
-
readonly 'creator.widget.
|
|
128
|
+
readonly 'creator.widget.deleteWidget': "Delete widget";
|
|
132
129
|
readonly 'creator.widget.theseWidgetsBelongToMore': "These widgets belong to more than one project.";
|
|
133
130
|
readonly 'creator.canvas.appearsEmptyButWidgets': "Canvas appears empty but {count, plural, one {# widget exists} other {# widgets exist}} on this canvas";
|
|
134
131
|
readonly 'creator.canvas.restoredShapes': "Restored {count, plural, one {# widget shape} other {# widget shapes}} on canvas";
|
|
@@ -143,7 +140,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
143
140
|
readonly 'creator.canvas.widgetCanvasAndRepositoryAre': "Widget, canvas, and repository are required.";
|
|
144
141
|
readonly 'creator.canvas.canvasIsRequiredBeforePublishing': "Canvas is required before publishing.";
|
|
145
142
|
readonly 'creator.canvas.thisShapePointsToA': "This shape points to a deleted or moved widget. Select it and press Delete, or use \"Remove from canvas\" in the sidebar.";
|
|
146
|
-
readonly 'creator.canvas.shapeRemovedFromCanvas': "Shape removed from canvas";
|
|
147
143
|
readonly 'creator.canvas.canvasIsTakingLongerThan': "Canvas is taking longer than expected";
|
|
148
144
|
readonly 'creator.canvas.canvasShapesFailedToRender': "Canvas shapes failed to render";
|
|
149
145
|
readonly 'creator.canvas.failedToLoadCanvasFrom': "Failed to load canvas from API";
|
|
@@ -161,8 +157,12 @@ export declare const CREATOR_CATALOGS: {
|
|
|
161
157
|
readonly 'creator.canvas.shapeDataMayBeMissing': "Shape data may be missing from the saved canvas (failed autosave or API quota). Widgets still work from the list — click Restore shapes to re-add placeholders on the canvas.";
|
|
162
158
|
readonly 'creator.canvas.deleteCanvas': "Delete Canvas";
|
|
163
159
|
readonly 'creator.embedded.tabCanvas': "Canvas";
|
|
164
|
-
readonly 'creator.sketch.customize': "Customize";
|
|
165
160
|
readonly 'creator.sketch.publishedJustNow': "Published just now";
|
|
161
|
+
readonly 'creator.sketch.boardChipGenerating': "Generating your widget";
|
|
162
|
+
readonly 'creator.sketch.boardChipReady': "Your widget is ready";
|
|
163
|
+
readonly 'creator.sketch.boardChipFailed': "Could not generate your widget";
|
|
164
|
+
readonly 'creator.sketch.boardChipStop': "Stop";
|
|
165
|
+
readonly 'creator.sketch.boardChipTryAgain': "Try again";
|
|
166
166
|
readonly 'creator.sketch.publishNeedsWidget': "Send a message first so your widget gets built, then publish it.";
|
|
167
167
|
readonly 'creator.composition.compositionCreated': "Composition \"{name}\" created";
|
|
168
168
|
readonly 'creator.composition.failedToCreateComposition': "Failed to create composition: {message}";
|
|
@@ -228,7 +228,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
228
228
|
readonly 'creator.codegen.repositoryMissingUseRebuildCode': "Repository missing — use Rebuild code or regenerate to create one.";
|
|
229
229
|
readonly 'creator.codegen.buildFailedCheckLogsFor': "Build failed. Check logs for details.";
|
|
230
230
|
readonly 'creator.codegen.createdWithExistingCode': "\"{name}\" created with existing code";
|
|
231
|
-
readonly 'creator.codegen.assistantModelLabel': "Assistant";
|
|
232
231
|
readonly 'creator.codegen.repositoryIsNowLinkedTo': "Repository {id}… is now linked to this widget.";
|
|
233
232
|
readonly 'creator.codegen.repositoryExists': "Repository exists";
|
|
234
233
|
readonly 'creator.codegen.repositoryOwnedByAnotherAccount': "Repository owned by another account";
|
|
@@ -329,8 +328,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
329
328
|
readonly 'creator.embed.embedHeight': "Embed height";
|
|
330
329
|
readonly 'creator.embed.copyEmbedCode': "Copy Embed Code";
|
|
331
330
|
readonly 'creator.embed.embedFormat': "Embed format";
|
|
332
|
-
readonly 'creator.dialog.removeShape': "Remove {name} from the canvas? This also deletes the associated widget.";
|
|
333
|
-
readonly 'creator.dialog.alsoDeleteWidget': "Also delete the widget {name} from the database?";
|
|
334
331
|
readonly 'creator.dialog.deleteCanvas': "Are you sure you want to delete {name}? This action cannot be undone.";
|
|
335
332
|
readonly 'creator.dialog.alsoDeleteWidgets': "This will also delete {count, plural, one {# widget} other {# widgets}} on this canvas:";
|
|
336
333
|
readonly 'creator.status.label': "Status:";
|
|
@@ -542,6 +539,7 @@ export declare const CREATOR_CATALOGS: {
|
|
|
542
539
|
readonly 'creator.name.unnamed': "Unnamed";
|
|
543
540
|
readonly 'creator.name.saveName': "Save name";
|
|
544
541
|
readonly 'creator.name.renameWidget': "Rename widget";
|
|
542
|
+
readonly 'creator.name.duplicateWidget': "Duplicate";
|
|
545
543
|
readonly 'creator.designEdit.shownAsAppliedTheseControls': "Shown as applied. These controls were made for a different composition — reopen that one to keep adjusting them.";
|
|
546
544
|
readonly 'creator.designEdit.notAvailableInThisWidget': "Not available in this widget";
|
|
547
545
|
readonly 'creator.fileSource.uploadFile': "Upload file";
|
|
@@ -569,6 +567,7 @@ export declare const CREATOR_CATALOGS: {
|
|
|
569
567
|
readonly 'chat.header.new': "New";
|
|
570
568
|
readonly 'chat.header.untitled': "Untitled";
|
|
571
569
|
readonly 'chat.header.newConversationTitle': "New chat";
|
|
570
|
+
readonly 'chat.header.noPastChats': "No previous chats yet";
|
|
572
571
|
readonly 'chat.header.newConversation': "Start new conversation";
|
|
573
572
|
readonly 'chat.header.console': "Console";
|
|
574
573
|
readonly 'chat.header.close': "Close chat";
|
|
@@ -720,7 +719,6 @@ export declare const CREATOR_CATALOGS: {
|
|
|
720
719
|
readonly 'chat.error.loadConversations': "Failed to load conversations.";
|
|
721
720
|
readonly 'chat.error.loadConversation': "Failed to load conversation.";
|
|
722
721
|
readonly 'chat.error.sendMessage': "Failed to send message. Please try again.";
|
|
723
|
-
readonly 'chat.error.sendSuggestion': "Failed to send the selected suggestion. Please try again.";
|
|
724
722
|
readonly 'chat.error.screenshotUnavailable': "Screenshot capture failed \u2014 no preview available.";
|
|
725
723
|
readonly 'chat.error.screenshotFailed': "Failed to capture screenshot";
|
|
726
724
|
readonly 'chat.error.screenshotActionFailed': "Screenshot action failed. Please try again.";
|
|
@@ -803,12 +801,12 @@ export declare const CREATOR_CATALOGS: {
|
|
|
803
801
|
readonly 'canvas.action.delete': "Delete";
|
|
804
802
|
readonly 'canvas.action.group': "Group";
|
|
805
803
|
readonly 'canvas.action.ungroup': "Ungroup";
|
|
806
|
-
readonly 'canvas.action.selectAll': "Select
|
|
807
|
-
readonly 'canvas.layer.title': "Layer
|
|
808
|
-
readonly 'canvas.layer.front': "Bring to
|
|
809
|
-
readonly 'canvas.layer.forward': "Bring
|
|
810
|
-
readonly 'canvas.layer.backward': "Send
|
|
811
|
-
readonly 'canvas.layer.back': "Send to
|
|
804
|
+
readonly 'canvas.action.selectAll': "Select all";
|
|
805
|
+
readonly 'canvas.layer.title': "Layer order";
|
|
806
|
+
readonly 'canvas.layer.front': "Bring to front";
|
|
807
|
+
readonly 'canvas.layer.forward': "Bring forward";
|
|
808
|
+
readonly 'canvas.layer.backward': "Send backward";
|
|
809
|
+
readonly 'canvas.layer.back': "Send to back";
|
|
812
810
|
readonly 'canvas.shortcuts.title': "Keyboard Shortcuts";
|
|
813
811
|
readonly 'canvas.shortcuts.close': "Close keyboard shortcuts";
|
|
814
812
|
readonly 'canvas.shortcuts.groupTools': "Tools";
|
|
@@ -929,4 +927,4 @@ export declare const useCreatorLanguage: () => import("@widgetic/design-system/i
|
|
|
929
927
|
* The English `t` of the creator, for code that has no component around it. The screens of the creator get their words, in
|
|
930
928
|
* the page's language, from `useCreatorLanguage`.
|
|
931
929
|
*/
|
|
932
|
-
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.update" | "creator.common.switchVersion" | "creator.common.live" | "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.uploadFailed" | "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.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.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.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.authenticationRequired" | "creator.session.pleaseLoginBeforeCreatingA" | "creator.session.thisWidgetReferencesARepository" | "creator.session.signInAgainThenRetry" | "creator.widget.notFound" | "creator.widget.fallbackName" | "creator.widget.untitledName" | "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.widgetsApiClientIsNot" | "creator.widget.unlinkedWidgetShape" | "creator.widget.duplicatingWidget" | "creator.widget.failedToDuplicateWidget" | "creator.widget.widgetDuplicated" | "creator.widget.widgetKeptInDatabase2" | "creator.widget.youCanKeepEditingWidgets" | "creator.widget.oneWidgetAlready" | "creator.widget.failedToCreateWidgetFrom" | "creator.widget.widgetCreatedButNoId" | "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.sketchRestored" | "creator.canvas.canvasSaveFailed" | "creator.canvas.autosaveFailedWillRetry" | "creator.canvas.canvasSavedLocally" | "creator.canvas.noCanvasIdYet" | "creator.canvas.canvasUnavailable" | "creator.canvas.canvasShapesFailedToLoad" | "creator.canvas.shapeDataMayBeMissing" | "creator.canvas.deleteCanvas" | "creator.embedded.tabCanvas" | "creator.sketch.customize" | "creator.sketch.publishedJustNow" | "creator.sketch.publishNeedsWidget" | "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.missingReferenceImage" | "creator.codegen.unreadableAttachmentsTitle" | "creator.codegen.unreadableAttachments" | "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.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.teammateIsGeneratingSince" | "creator.codegen.generationRunningInTheWidget" | "creator.codegen.yourGenerationRunsElsewhere" | "creator.codegen.newerCodeWasSaved" | "creator.codegen.chosenVersionIsOutOfDate" | "creator.codegen.codeGenerationError" | "creator.codegen.imagePastedToPrompt" | "creator.codegen.codeGenerationInProgressWait" | "creator.codegen.repositoryMissingUseRebuildCode" | "creator.codegen.buildFailedCheckLogsFor" | "creator.codegen.createdWithExistingCode" | "creator.codegen.assistantModelLabel" | "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.previewBuilderIsUnavailable" | "creator.codegen.theWidgetCodeWasSaved" | "creator.codegen.rebuildInCreate" | "creator.codegen.codeDoesNotCompile" | "creator.codegen.latestCodeDoesNotCompile" | "creator.codegen.generateCodeFirstToCustomize" | "creator.codegen.noWidgetCodeYet" | "creator.codegen.goToStep1Create" | "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.restoreRefusedWhileGenerating" | "creator.version.restoreAlreadyRunning" | "creator.version.codeWasNotRolledBack" | "creator.version.restoreRefusedNewerCode" | "creator.version.restoreRefusedLatestCodeUnknown" | "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.publishWidget" | "creator.publish.publishChanges" | "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.generationCompletePreviewReady" | "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.alreadySavedCompilingPreview" | "creator.status.alreadySavedShaCompilingPreview" | "creator.status.alreadySavedPreviewFailed" | "creator.status.alreadySavedShaPreviewFailed" | "creator.status.previewReady" | "creator.status.alreadyRunning" | "creator.status.needsRefresh" | "creator.status.limitReached" | "creator.status.rateLimited" | "creator.status.failedWithReason" | "creator.status.reconnected" | "creator.status.versionSaved" | "creator.status.versionNumberSaved" | "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.savedCodeCouldNotBeCompiled" | "creator.error.couldNotReachThePreview" | "creator.error.previewRebuildIsUnavailableIn" | "creator.error.previewBuilderIsUnavailableThe" | "creator.error.previewBuilderReturnedAnUnexpected" | "creator.error.anUnknownErrorOccurred" | "creator.error.couldNotReachTheServer" | "creator.error.buildFailed" | "creator.error.codeGenerationUnavailable" | "creator.error.featureUnavailable" | "creator.error.requestTimedOut" | "creator.error.permissionDenied" | "creator.error.invalidRequest" | "creator.error.serverError" | "creator.error.somethingWentWrong" | "creator.error.canvasNotFound" | "creator.error.resourceNotFound" | "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.languageIsFixedAfterThe" | "creator.brandKit.selectLanguage" | "creator.brandKit.brandKit" | "creator.brandKit.libraries" | "creator.brandKit.replacesTheWidgeticPaletteFor" | "creator.brandKit.colorPalette" | "creator.brandKit.primary" | "creator.brandKit.secondary" | "creator.brandKit.title" | "creator.brandKit.sub" | "creator.brandKit.fonts" | "creator.brandKit.addFont" | "creator.brandKit.fontLabel" | "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.uploadIconLibraryTooltip" | "creator.brandKit.urlIcons" | "creator.brandKit.addLibrary" | "creator.brandKit.uploadLibrary" | "creator.brandKit.removeLibrary" | "creator.brandKit.uploadCustomLibraryTooltip" | "creator.brandKit.urlLibraries" | "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" | "creator.elementSelector.removeSelectedElement" | "creator.elementSelector.clickPartToReference" | "creator.elementSelector.parentChild" | "creator.elementSelector.hold" | "creator.elementSelector.cmdCtrl" | "creator.elementSelector.toInteract" | "creator.elementSelector.esc" | "creator.elementSelector.done" | "creator.elementSelector.notePlaceholder">;
|
|
930
|
+
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.setLive" | "creator.common.retry" | "creator.common.delete" | "creator.common.draft" | "creator.common.loading" | "creator.general.unknownError" | "creator.general.couldNotLoadUploadedImage" | "creator.general.tryUploadingTheImageAgain" | "creator.general.uploadFailed" | "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.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.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.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.authenticationRequired" | "creator.session.pleaseLoginBeforeCreatingA" | "creator.session.thisWidgetReferencesARepository" | "creator.session.signInAgainThenRetry" | "creator.widget.notFound" | "creator.widget.fallbackName" | "creator.widget.untitledName" | "creator.widget.shapeRemoved" | "creator.widget.widgetKeptInDatabase" | "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.widgetsApiClientIsNot" | "creator.widget.unlinkedWidgetShape" | "creator.widget.duplicatingWidget" | "creator.widget.failedToDuplicateWidget" | "creator.widget.widgetDuplicated" | "creator.widget.youCanKeepEditingWidgets" | "creator.widget.oneWidgetAlready" | "creator.widget.failedToCreateWidgetFrom" | "creator.widget.widgetCreatedButNoId" | "creator.widget.failedToFinalizeWidgetConversion" | "creator.widget.repoIdToDeleteUse" | "creator.widget.restoreShapes" | "creator.widget.directWidgetUrl" | "creator.widget.deleteWidget" | "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.canvasIsTakingLongerThan" | "creator.canvas.canvasShapesFailedToRender" | "creator.canvas.failedToLoadCanvasFrom" | "creator.canvas.canvasLoadFailedCheckSupabase" | "creator.canvas.apiMayBeThrottledOr" | "creator.canvas.canvasSnapshotLookedEmptyRefresh" | "creator.canvas.canvasSaved" | "creator.canvas.sketchRestored" | "creator.canvas.canvasSaveFailed" | "creator.canvas.autosaveFailedWillRetry" | "creator.canvas.canvasSavedLocally" | "creator.canvas.noCanvasIdYet" | "creator.canvas.canvasUnavailable" | "creator.canvas.canvasShapesFailedToLoad" | "creator.canvas.shapeDataMayBeMissing" | "creator.canvas.deleteCanvas" | "creator.embedded.tabCanvas" | "creator.sketch.publishedJustNow" | "creator.sketch.boardChipGenerating" | "creator.sketch.boardChipReady" | "creator.sketch.boardChipFailed" | "creator.sketch.boardChipStop" | "creator.sketch.boardChipTryAgain" | "creator.sketch.publishNeedsWidget" | "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.missingReferenceImage" | "creator.codegen.unreadableAttachmentsTitle" | "creator.codegen.unreadableAttachments" | "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.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.teammateIsGeneratingSince" | "creator.codegen.generationRunningInTheWidget" | "creator.codegen.yourGenerationRunsElsewhere" | "creator.codegen.newerCodeWasSaved" | "creator.codegen.chosenVersionIsOutOfDate" | "creator.codegen.codeGenerationError" | "creator.codegen.imagePastedToPrompt" | "creator.codegen.codeGenerationInProgressWait" | "creator.codegen.repositoryMissingUseRebuildCode" | "creator.codegen.buildFailedCheckLogsFor" | "creator.codegen.createdWithExistingCode" | "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.previewBuilderIsUnavailable" | "creator.codegen.theWidgetCodeWasSaved" | "creator.codegen.rebuildInCreate" | "creator.codegen.codeDoesNotCompile" | "creator.codegen.latestCodeDoesNotCompile" | "creator.codegen.generateCodeFirstToCustomize" | "creator.codegen.noWidgetCodeYet" | "creator.codegen.goToStep1Create" | "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.restoreRefusedWhileGenerating" | "creator.version.restoreAlreadyRunning" | "creator.version.codeWasNotRolledBack" | "creator.version.restoreRefusedNewerCode" | "creator.version.restoreRefusedLatestCodeUnknown" | "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.publishWidget" | "creator.publish.publishChanges" | "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.deleteCanvas" | "creator.dialog.alsoDeleteWidgets" | "creator.status.label" | "creator.status.preparingCodeGeneration" | "creator.status.ready" | "creator.status.completedPreviewReady" | "creator.status.generationCompletePreviewReady" | "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.alreadySavedCompilingPreview" | "creator.status.alreadySavedShaCompilingPreview" | "creator.status.alreadySavedPreviewFailed" | "creator.status.alreadySavedShaPreviewFailed" | "creator.status.previewReady" | "creator.status.alreadyRunning" | "creator.status.needsRefresh" | "creator.status.limitReached" | "creator.status.rateLimited" | "creator.status.failedWithReason" | "creator.status.reconnected" | "creator.status.versionSaved" | "creator.status.versionNumberSaved" | "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.savedCodeCouldNotBeCompiled" | "creator.error.couldNotReachThePreview" | "creator.error.previewRebuildIsUnavailableIn" | "creator.error.previewBuilderIsUnavailableThe" | "creator.error.previewBuilderReturnedAnUnexpected" | "creator.error.anUnknownErrorOccurred" | "creator.error.couldNotReachTheServer" | "creator.error.buildFailed" | "creator.error.codeGenerationUnavailable" | "creator.error.featureUnavailable" | "creator.error.requestTimedOut" | "creator.error.permissionDenied" | "creator.error.invalidRequest" | "creator.error.serverError" | "creator.error.somethingWentWrong" | "creator.error.canvasNotFound" | "creator.error.resourceNotFound" | "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.languageIsFixedAfterThe" | "creator.brandKit.selectLanguage" | "creator.brandKit.brandKit" | "creator.brandKit.libraries" | "creator.brandKit.replacesTheWidgeticPaletteFor" | "creator.brandKit.colorPalette" | "creator.brandKit.primary" | "creator.brandKit.secondary" | "creator.brandKit.title" | "creator.brandKit.sub" | "creator.brandKit.fonts" | "creator.brandKit.addFont" | "creator.brandKit.fontLabel" | "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.uploadIconLibraryTooltip" | "creator.brandKit.urlIcons" | "creator.brandKit.addLibrary" | "creator.brandKit.uploadLibrary" | "creator.brandKit.removeLibrary" | "creator.brandKit.uploadCustomLibraryTooltip" | "creator.brandKit.urlLibraries" | "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.name.duplicateWidget" | "creator.designEdit.shownAsAppliedTheseControls" | "creator.designEdit.notAvailableInThisWidget" | "creator.fileSource.uploadFile" | "creator.fileSource.url" | "creator.elementSelector.removeSelectedElement" | "creator.elementSelector.clickPartToReference" | "creator.elementSelector.parentChild" | "creator.elementSelector.hold" | "creator.elementSelector.cmdCtrl" | "creator.elementSelector.toInteract" | "creator.elementSelector.esc" | "creator.elementSelector.done" | "creator.elementSelector.notePlaceholder">;
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
13
13
|
readonly 'creator.common.thisAppNeedsARefresh': "This app needs a refresh";
|
|
14
14
|
readonly 'creator.common.reload': "Reload";
|
|
15
15
|
readonly 'creator.common.publish': "Publish";
|
|
16
|
-
readonly 'creator.common.update': "Update";
|
|
17
16
|
readonly 'creator.common.switchVersion': "Switch version";
|
|
18
17
|
readonly 'creator.common.live': "Live";
|
|
19
18
|
readonly 'creator.common.setLive': "Set live";
|
|
@@ -100,7 +99,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
100
99
|
readonly 'creator.widget.untitledName': "Untitled widget";
|
|
101
100
|
readonly 'creator.widget.shapeRemoved': "Shape removed";
|
|
102
101
|
readonly 'creator.widget.widgetKeptInDatabase': "Widget kept in database";
|
|
103
|
-
readonly 'creator.widget.widgetDeletedFromDatabase': "Widget deleted from database";
|
|
104
102
|
readonly 'creator.widget.widgetWasAlreadyDeleted': "Widget was already deleted";
|
|
105
103
|
readonly 'creator.widget.failedToDeleteWidgetFrom': "Failed to delete widget from database";
|
|
106
104
|
readonly 'creator.widget.selectAWidgetFirst': "Select a widget first";
|
|
@@ -115,7 +113,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
115
113
|
readonly 'creator.widget.duplicatingWidget': "Duplicating widget...";
|
|
116
114
|
readonly 'creator.widget.failedToDuplicateWidget': "Failed to duplicate widget";
|
|
117
115
|
readonly 'creator.widget.widgetDuplicated': "Widget duplicated";
|
|
118
|
-
readonly 'creator.widget.widgetKeptInDatabase2': "Widget \"{name}\" kept in database";
|
|
119
116
|
readonly 'creator.widget.youCanKeepEditingWidgets': "You can keep editing widgets. Retry load if shapes are missing.";
|
|
120
117
|
readonly 'creator.widget.oneWidgetAlready': "This canvas already has a widget. Turn Advanced on to add another.";
|
|
121
118
|
readonly 'creator.widget.failedToCreateWidgetFrom': "Failed to create widget from design";
|
|
@@ -124,7 +121,7 @@ export declare const CREATOR_MESSAGES: {
|
|
|
124
121
|
readonly 'creator.widget.repoIdToDeleteUse': "Repo ID: {id}…\nTo delete, use the Delete widget button.";
|
|
125
122
|
readonly 'creator.widget.restoreShapes': "Restore shapes";
|
|
126
123
|
readonly 'creator.widget.directWidgetUrl': "Direct Widget URL";
|
|
127
|
-
readonly 'creator.widget.
|
|
124
|
+
readonly 'creator.widget.deleteWidget': "Delete widget";
|
|
128
125
|
readonly 'creator.widget.theseWidgetsBelongToMore': "These widgets belong to more than one project.";
|
|
129
126
|
readonly 'creator.canvas.appearsEmptyButWidgets': "Canvas appears empty but {count, plural, one {# widget exists} other {# widgets exist}} on this canvas";
|
|
130
127
|
readonly 'creator.canvas.restoredShapes': "Restored {count, plural, one {# widget shape} other {# widget shapes}} on canvas";
|
|
@@ -139,7 +136,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
139
136
|
readonly 'creator.canvas.widgetCanvasAndRepositoryAre': "Widget, canvas, and repository are required.";
|
|
140
137
|
readonly 'creator.canvas.canvasIsRequiredBeforePublishing': "Canvas is required before publishing.";
|
|
141
138
|
readonly 'creator.canvas.thisShapePointsToA': "This shape points to a deleted or moved widget. Select it and press Delete, or use \"Remove from canvas\" in the sidebar.";
|
|
142
|
-
readonly 'creator.canvas.shapeRemovedFromCanvas': "Shape removed from canvas";
|
|
143
139
|
readonly 'creator.canvas.canvasIsTakingLongerThan': "Canvas is taking longer than expected";
|
|
144
140
|
readonly 'creator.canvas.canvasShapesFailedToRender': "Canvas shapes failed to render";
|
|
145
141
|
readonly 'creator.canvas.failedToLoadCanvasFrom': "Failed to load canvas from API";
|
|
@@ -157,8 +153,12 @@ export declare const CREATOR_MESSAGES: {
|
|
|
157
153
|
readonly 'creator.canvas.shapeDataMayBeMissing': "Shape data may be missing from the saved canvas (failed autosave or API quota). Widgets still work from the list — click Restore shapes to re-add placeholders on the canvas.";
|
|
158
154
|
readonly 'creator.canvas.deleteCanvas': "Delete Canvas";
|
|
159
155
|
readonly 'creator.embedded.tabCanvas': "Canvas";
|
|
160
|
-
readonly 'creator.sketch.customize': "Customize";
|
|
161
156
|
readonly 'creator.sketch.publishedJustNow': "Published just now";
|
|
157
|
+
readonly 'creator.sketch.boardChipGenerating': "Generating your widget";
|
|
158
|
+
readonly 'creator.sketch.boardChipReady': "Your widget is ready";
|
|
159
|
+
readonly 'creator.sketch.boardChipFailed': "Could not generate your widget";
|
|
160
|
+
readonly 'creator.sketch.boardChipStop': "Stop";
|
|
161
|
+
readonly 'creator.sketch.boardChipTryAgain': "Try again";
|
|
162
162
|
readonly 'creator.sketch.publishNeedsWidget': "Send a message first so your widget gets built, then publish it.";
|
|
163
163
|
readonly 'creator.composition.compositionCreated': "Composition \"{name}\" created";
|
|
164
164
|
readonly 'creator.composition.failedToCreateComposition': "Failed to create composition: {message}";
|
|
@@ -224,7 +224,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
224
224
|
readonly 'creator.codegen.repositoryMissingUseRebuildCode': "Repository missing — use Rebuild code or regenerate to create one.";
|
|
225
225
|
readonly 'creator.codegen.buildFailedCheckLogsFor': "Build failed. Check logs for details.";
|
|
226
226
|
readonly 'creator.codegen.createdWithExistingCode': "\"{name}\" created with existing code";
|
|
227
|
-
readonly 'creator.codegen.assistantModelLabel': "Assistant";
|
|
228
227
|
readonly 'creator.codegen.repositoryIsNowLinkedTo': "Repository {id}… is now linked to this widget.";
|
|
229
228
|
readonly 'creator.codegen.repositoryExists': "Repository exists";
|
|
230
229
|
readonly 'creator.codegen.repositoryOwnedByAnotherAccount': "Repository owned by another account";
|
|
@@ -326,8 +325,6 @@ export declare const CREATOR_MESSAGES: {
|
|
|
326
325
|
readonly 'creator.embed.embedHeight': "Embed height";
|
|
327
326
|
readonly 'creator.embed.copyEmbedCode': "Copy Embed Code";
|
|
328
327
|
readonly 'creator.embed.embedFormat': "Embed format";
|
|
329
|
-
readonly 'creator.dialog.removeShape': "Remove {name} from the canvas? This also deletes the associated widget.";
|
|
330
|
-
readonly 'creator.dialog.alsoDeleteWidget': "Also delete the widget {name} from the database?";
|
|
331
328
|
readonly 'creator.dialog.deleteCanvas': "Are you sure you want to delete {name}? This action cannot be undone.";
|
|
332
329
|
readonly 'creator.dialog.alsoDeleteWidgets': "This will also delete {count, plural, one {# widget} other {# widgets}} on this canvas:";
|
|
333
330
|
readonly 'creator.status.label': "Status:";
|
|
@@ -539,6 +536,7 @@ export declare const CREATOR_MESSAGES: {
|
|
|
539
536
|
readonly 'creator.name.unnamed': "Unnamed";
|
|
540
537
|
readonly 'creator.name.saveName': "Save name";
|
|
541
538
|
readonly 'creator.name.renameWidget': "Rename widget";
|
|
539
|
+
readonly 'creator.name.duplicateWidget': "Duplicate";
|
|
542
540
|
readonly 'creator.designEdit.shownAsAppliedTheseControls': "Shown as applied. These controls were made for a different composition — reopen that one to keep adjusting them.";
|
|
543
541
|
readonly 'creator.designEdit.notAvailableInThisWidget': "Not available in this widget";
|
|
544
542
|
readonly 'creator.fileSource.uploadFile': "Upload file";
|
package/dist/i18n/messages.js
CHANGED
|
@@ -14,7 +14,6 @@ export const CREATOR_MESSAGES = {
|
|
|
14
14
|
'creator.common.thisAppNeedsARefresh': 'This app needs a refresh',
|
|
15
15
|
'creator.common.reload': 'Reload',
|
|
16
16
|
'creator.common.publish': 'Publish',
|
|
17
|
-
'creator.common.update': 'Update',
|
|
18
17
|
'creator.common.switchVersion': 'Switch version',
|
|
19
18
|
'creator.common.live': 'Live',
|
|
20
19
|
'creator.common.setLive': 'Set live',
|
|
@@ -104,7 +103,6 @@ export const CREATOR_MESSAGES = {
|
|
|
104
103
|
'creator.widget.untitledName': 'Untitled widget',
|
|
105
104
|
'creator.widget.shapeRemoved': 'Shape removed',
|
|
106
105
|
'creator.widget.widgetKeptInDatabase': 'Widget kept in database',
|
|
107
|
-
'creator.widget.widgetDeletedFromDatabase': 'Widget deleted from database',
|
|
108
106
|
'creator.widget.widgetWasAlreadyDeleted': 'Widget was already deleted',
|
|
109
107
|
'creator.widget.failedToDeleteWidgetFrom': 'Failed to delete widget from database',
|
|
110
108
|
'creator.widget.selectAWidgetFirst': 'Select a widget first',
|
|
@@ -119,7 +117,6 @@ export const CREATOR_MESSAGES = {
|
|
|
119
117
|
'creator.widget.duplicatingWidget': 'Duplicating widget...',
|
|
120
118
|
'creator.widget.failedToDuplicateWidget': 'Failed to duplicate widget',
|
|
121
119
|
'creator.widget.widgetDuplicated': 'Widget duplicated',
|
|
122
|
-
'creator.widget.widgetKeptInDatabase2': 'Widget "{name}" kept in database',
|
|
123
120
|
'creator.widget.youCanKeepEditingWidgets': 'You can keep editing widgets. Retry load if shapes are missing.',
|
|
124
121
|
'creator.widget.oneWidgetAlready': 'This canvas already has a widget. Turn Advanced on to add another.',
|
|
125
122
|
'creator.widget.failedToCreateWidgetFrom': 'Failed to create widget from design',
|
|
@@ -128,7 +125,7 @@ export const CREATOR_MESSAGES = {
|
|
|
128
125
|
'creator.widget.repoIdToDeleteUse': 'Repo ID: {id}…\nTo delete, use the Delete widget button.',
|
|
129
126
|
'creator.widget.restoreShapes': 'Restore shapes',
|
|
130
127
|
'creator.widget.directWidgetUrl': 'Direct Widget URL',
|
|
131
|
-
'creator.widget.
|
|
128
|
+
'creator.widget.deleteWidget': 'Delete widget',
|
|
132
129
|
'creator.widget.theseWidgetsBelongToMore': 'These widgets belong to more than one project.',
|
|
133
130
|
// The canvas: loading, saving, the empty-canvas banner, restoring shapes.
|
|
134
131
|
'creator.canvas.appearsEmptyButWidgets': 'Canvas appears empty but {count, plural, one {# widget exists} other {# widgets exist}} on this canvas',
|
|
@@ -144,7 +141,6 @@ export const CREATOR_MESSAGES = {
|
|
|
144
141
|
'creator.canvas.widgetCanvasAndRepositoryAre': 'Widget, canvas, and repository are required.',
|
|
145
142
|
'creator.canvas.canvasIsRequiredBeforePublishing': 'Canvas is required before publishing.',
|
|
146
143
|
'creator.canvas.thisShapePointsToA': 'This shape points to a deleted or moved widget. Select it and press Delete, or use "Remove from canvas" in the sidebar.',
|
|
147
|
-
'creator.canvas.shapeRemovedFromCanvas': 'Shape removed from canvas',
|
|
148
144
|
'creator.canvas.canvasIsTakingLongerThan': 'Canvas is taking longer than expected',
|
|
149
145
|
'creator.canvas.canvasShapesFailedToRender': 'Canvas shapes failed to render',
|
|
150
146
|
'creator.canvas.failedToLoadCanvasFrom': 'Failed to load canvas from API',
|
|
@@ -162,8 +158,12 @@ export const CREATOR_MESSAGES = {
|
|
|
162
158
|
'creator.canvas.shapeDataMayBeMissing': 'Shape data may be missing from the saved canvas (failed autosave or API quota). Widgets still work from the list — click Restore shapes to re-add placeholders on the canvas.',
|
|
163
159
|
'creator.canvas.deleteCanvas': 'Delete Canvas',
|
|
164
160
|
'creator.embedded.tabCanvas': 'Canvas',
|
|
165
|
-
'creator.sketch.customize': 'Customize',
|
|
166
161
|
'creator.sketch.publishedJustNow': 'Published just now',
|
|
162
|
+
'creator.sketch.boardChipGenerating': 'Generating your widget',
|
|
163
|
+
'creator.sketch.boardChipReady': 'Your widget is ready',
|
|
164
|
+
'creator.sketch.boardChipFailed': 'Could not generate your widget',
|
|
165
|
+
'creator.sketch.boardChipStop': 'Stop',
|
|
166
|
+
'creator.sketch.boardChipTryAgain': 'Try again',
|
|
167
167
|
'creator.sketch.publishNeedsWidget': 'Send a message first so your widget gets built, then publish it.',
|
|
168
168
|
// The chat tab reuses `creator.livePreviews.chat` ("Chat"): the catalog holds one key per wording.
|
|
169
169
|
// Compositions: creating, saving, renaming, deleting, the Edit step.
|
|
@@ -233,7 +233,6 @@ export const CREATOR_MESSAGES = {
|
|
|
233
233
|
'creator.codegen.repositoryMissingUseRebuildCode': 'Repository missing — use Rebuild code or regenerate to create one.',
|
|
234
234
|
'creator.codegen.buildFailedCheckLogsFor': 'Build failed. Check logs for details.',
|
|
235
235
|
'creator.codegen.createdWithExistingCode': '"{name}" created with existing code',
|
|
236
|
-
'creator.codegen.assistantModelLabel': 'Assistant',
|
|
237
236
|
'creator.codegen.repositoryIsNowLinkedTo': 'Repository {id}… is now linked to this widget.',
|
|
238
237
|
'creator.codegen.repositoryExists': 'Repository exists',
|
|
239
238
|
'creator.codegen.repositoryOwnedByAnotherAccount': 'Repository owned by another account',
|
|
@@ -341,8 +340,6 @@ export const CREATOR_MESSAGES = {
|
|
|
341
340
|
'creator.embed.copyEmbedCode': 'Copy Embed Code',
|
|
342
341
|
'creator.embed.embedFormat': 'Embed format',
|
|
343
342
|
// Sentences with a name inside them, in the creator's dialogs.
|
|
344
|
-
'creator.dialog.removeShape': 'Remove {name} from the canvas? This also deletes the associated widget.',
|
|
345
|
-
'creator.dialog.alsoDeleteWidget': 'Also delete the widget {name} from the database?',
|
|
346
343
|
'creator.dialog.deleteCanvas': 'Are you sure you want to delete {name}? This action cannot be undone.',
|
|
347
344
|
'creator.dialog.alsoDeleteWidgets': 'This will also delete {count, plural, one {# widget} other {# widgets}} on this canvas:',
|
|
348
345
|
// The status bar of a generation: the English lines the creator writes, shown through statusLabel.
|
|
@@ -563,6 +560,7 @@ export const CREATOR_MESSAGES = {
|
|
|
563
560
|
'creator.name.unnamed': 'Unnamed',
|
|
564
561
|
'creator.name.saveName': 'Save name',
|
|
565
562
|
'creator.name.renameWidget': 'Rename widget',
|
|
563
|
+
'creator.name.duplicateWidget': 'Duplicate',
|
|
566
564
|
// The quick edit of design values.
|
|
567
565
|
'creator.designEdit.shownAsAppliedTheseControls': 'Shown as applied. These controls were made for a different composition — reopen that one to keep adjusting them.',
|
|
568
566
|
'creator.designEdit.notAvailableInThisWidget': 'Not available in this widget',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts a row of `POST /widgets/batch` onto the row the creator already has for the same widget, and keeps what the batch row
|
|
3
|
+
* does not carry.
|
|
4
|
+
*
|
|
5
|
+
* The creator reads the widget list as raw JSON, so its rows hold every field the gateway sends (`hasLiveVersion`,
|
|
6
|
+
* `lastPublishCommitSha`, `thumbnailUrl`, `canvas_id`, ...). The batch is read through the generated `Widget` model, which
|
|
7
|
+
* carries fewer fields, and gives `undefined` for the ones it knows but the answer lacks. Writing a batch row over a list row
|
|
8
|
+
* drops the live commit of a published widget, and with it the "published, with unpublished changes" state of the bar
|
|
9
|
+
* above the sketch ("Saved" and "Publish changes"): the bar then read "Live" with no button, or "Publish changes" when the
|
|
10
|
+
* answer came in the other order.
|
|
11
|
+
*
|
|
12
|
+
* - A field the batch row has a value for (a `null` included) is the batch row's: it is the newer read.
|
|
13
|
+
* - A field the batch row lacks (absent or `undefined`) stays as the list row had it.
|
|
14
|
+
* - Neither input is changed; a widget with no earlier row is the batch row as it is.
|
|
15
|
+
*/
|
|
16
|
+
export declare function mergeBatchWidgetOntoListRecord<WidgetRow extends object>(listRecord: object | null | undefined, batchRecord: WidgetRow): WidgetRow;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puts a row of `POST /widgets/batch` onto the row the creator already has for the same widget, and keeps what the batch row
|
|
3
|
+
* does not carry.
|
|
4
|
+
*
|
|
5
|
+
* The creator reads the widget list as raw JSON, so its rows hold every field the gateway sends (`hasLiveVersion`,
|
|
6
|
+
* `lastPublishCommitSha`, `thumbnailUrl`, `canvas_id`, ...). The batch is read through the generated `Widget` model, which
|
|
7
|
+
* carries fewer fields, and gives `undefined` for the ones it knows but the answer lacks. Writing a batch row over a list row
|
|
8
|
+
* drops the live commit of a published widget, and with it the "published, with unpublished changes" state of the bar
|
|
9
|
+
* above the sketch ("Saved" and "Publish changes"): the bar then read "Live" with no button, or "Publish changes" when the
|
|
10
|
+
* answer came in the other order.
|
|
11
|
+
*
|
|
12
|
+
* - A field the batch row has a value for (a `null` included) is the batch row's: it is the newer read.
|
|
13
|
+
* - A field the batch row lacks (absent or `undefined`) stays as the list row had it.
|
|
14
|
+
* - Neither input is changed; a widget with no earlier row is the batch row as it is.
|
|
15
|
+
*/
|
|
16
|
+
export function mergeBatchWidgetOntoListRecord(listRecord, batchRecord) {
|
|
17
|
+
if (!listRecord)
|
|
18
|
+
return batchRecord;
|
|
19
|
+
try {
|
|
20
|
+
const mergedRecord = { ...listRecord };
|
|
21
|
+
for (const [fieldName, fieldValue] of Object.entries(batchRecord)) {
|
|
22
|
+
if (fieldValue !== undefined)
|
|
23
|
+
mergedRecord[fieldName] = fieldValue;
|
|
24
|
+
}
|
|
25
|
+
return mergedRecord;
|
|
26
|
+
}
|
|
27
|
+
catch (mergeError) {
|
|
28
|
+
// A row that cannot be copied is not a reason to lose the batch answer: the batch row stands, as before this helper.
|
|
29
|
+
console.warn('[mergeBatchWidgetOntoListRecord] could not merge the batch row onto the list row', mergeError);
|
|
30
|
+
return batchRecord;
|
|
31
|
+
}
|
|
32
|
+
}
|
package/dist/sketchBarState.d.ts
CHANGED
|
@@ -8,9 +8,8 @@ export declare function isSketchGenerationFailed(panelState: PanelCodegenFlags,
|
|
|
8
8
|
/** Figma ready frame: caption "Saved 2m ago" from widget `updatedAt`. */
|
|
9
9
|
export declare function sketchSavedStatusLabel(savedWord: string, updatedAt: unknown, nowMs?: number): string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Send comes first: a bar with no Publish at all on a new canvas read as "Publish is missing".
|
|
11
|
+
* Figma Creator Bar (514:43): Publish is visible on Ready (526:2706) and Publish changes on History (1248:74452); hidden on
|
|
12
|
+
* Empty, Generating, Failed, and Published-without-changes (524:635, 526:2466, 526:2984, 526:3238).
|
|
14
13
|
*/
|
|
15
14
|
export declare function sketchBarShowsPublish(input: {
|
|
16
15
|
embedded: boolean;
|
|
@@ -19,7 +18,15 @@ export declare function sketchBarShowsPublish(input: {
|
|
|
19
18
|
showsLive: boolean;
|
|
20
19
|
generating: boolean;
|
|
21
20
|
failed: boolean;
|
|
21
|
+
hasUnpublishedChanges?: boolean;
|
|
22
22
|
}): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* The widget row carries two commits: HEAD, the newest commit the server has for the widget (`lastCommitSha`), and live, the
|
|
25
|
+
* commit of the published version (`lastPublishCommitSha`). When both are there and they differ, the widget has changes that
|
|
26
|
+
* are not published, whatever this browser has seen: a build made on another device, or before this browser was opened, leaves
|
|
27
|
+
* nothing in its storage. `isSameCommit` is the creator's own comparison (it accepts a short SHA against a long one).
|
|
28
|
+
*/
|
|
29
|
+
export declare function widgetRowHeadIsAheadOfLive(widget: Record<string, unknown> | null | undefined, isSameCommit: (headSha: string, liveSha: string) => boolean): boolean;
|
|
23
30
|
export declare function sketchBarShowsCustomize(input: {
|
|
24
31
|
embedded: boolean;
|
|
25
32
|
widgetId: string | null;
|
package/dist/sketchBarState.js
CHANGED
|
@@ -29,15 +29,35 @@ export function sketchSavedStatusLabel(savedWord, updatedAt, nowMs = Date.now())
|
|
|
29
29
|
return savedWord;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* Send comes first: a bar with no Publish at all on a new canvas read as "Publish is missing".
|
|
32
|
+
* Figma Creator Bar (514:43): Publish is visible on Ready (526:2706) and Publish changes on History (1248:74452); hidden on
|
|
33
|
+
* Empty, Generating, Failed, and Published-without-changes (524:635, 526:2466, 526:2984, 526:3238).
|
|
35
34
|
*/
|
|
36
35
|
export function sketchBarShowsPublish(input) {
|
|
37
36
|
void input.widgetId;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
if (!input.embedded || input.generating || input.failed)
|
|
38
|
+
return false;
|
|
39
|
+
if (!input.hasGeneratedCode)
|
|
40
|
+
return false;
|
|
41
|
+
if (!input.showsLive)
|
|
42
|
+
return true;
|
|
43
|
+
return !!input.hasUnpublishedChanges;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The widget row carries two commits: HEAD, the newest commit the server has for the widget (`lastCommitSha`), and live, the
|
|
47
|
+
* commit of the published version (`lastPublishCommitSha`). When both are there and they differ, the widget has changes that
|
|
48
|
+
* are not published, whatever this browser has seen: a build made on another device, or before this browser was opened, leaves
|
|
49
|
+
* nothing in its storage. `isSameCommit` is the creator's own comparison (it accepts a short SHA against a long one).
|
|
50
|
+
*/
|
|
51
|
+
export function widgetRowHeadIsAheadOfLive(widget, isSameCommit) {
|
|
52
|
+
if (!widget)
|
|
53
|
+
return false;
|
|
54
|
+
const headSha = String(widget.lastCommitSha ?? widget.last_commit_sha ?? '').trim();
|
|
55
|
+
const liveSha = String(widget.lastPublishCommitSha
|
|
56
|
+
?? widget.last_publish_commit_sha
|
|
57
|
+
?? '').trim();
|
|
58
|
+
if (!headSha || !liveSha)
|
|
59
|
+
return false;
|
|
60
|
+
return !isSameCommit(headSha, liveSha);
|
|
41
61
|
}
|
|
42
62
|
export function sketchBarShowsCustomize(input) {
|
|
43
63
|
return (input.embedded &&
|