@widgetic/editor 4.1.14 → 4.1.15
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/components/PreviewChromeControls.svelte +15 -21
- package/dist/components/WidgetPreview.svelte +136 -105
- package/dist/components/color-select/ColorSelect.svelte +203 -224
- package/dist/components/color-select/constants.d.ts +4 -2
- package/dist/components/color-select/constants.js +4 -2
- package/dist/components/color-select/render.js +10 -9
- package/dist/components/editors/CompositionEditorApp.svelte +47 -40
- package/dist/components/editors/EditLeaseNotice.svelte +44 -33
- package/dist/components/editors/EmbedEditor.svelte +133 -259
- package/dist/components/editors/PropsEditor.svelte +418 -1338
- package/dist/components/editors/props-editor.css +5 -68
- package/dist/components/ic/AngleInputController.svelte +202 -277
- package/dist/components/ic/BrowserInputController.svelte +813 -803
- package/dist/components/ic/CheckboxInputController.svelte +92 -169
- package/dist/components/ic/CheckboxInputController.svelte.d.ts +2 -8
- package/dist/components/ic/ColorPickerInputController.svelte +1589 -1587
- package/dist/components/ic/ColorPickerInputController.svelte.d.ts +3 -3
- package/dist/components/ic/DateFieldInputController.svelte +455 -465
- package/dist/components/ic/DatePickerInputController.svelte +355 -368
- package/dist/components/ic/DatePickerInputController.svelte.d.ts +1 -1
- package/dist/components/ic/DropdownInputController.svelte +130 -200
- package/dist/components/ic/FixedPositionInputController.svelte +255 -276
- package/dist/components/ic/FixedPositionInputController.svelte.d.ts +5 -1
- package/dist/components/ic/FontInputController.svelte +2110 -2231
- package/dist/components/ic/FontInputController.svelte.d.ts +11 -11
- package/dist/components/ic/InputControllerHeader.svelte +141 -147
- package/dist/components/ic/InputControllerRow.svelte +74 -0
- package/dist/components/ic/InputControllerRow.svelte.d.ts +14 -0
- package/dist/components/ic/KnowledgeDocumentsInputController.svelte +84 -47
- package/dist/components/ic/KnowledgeTextForm.svelte +35 -33
- package/dist/components/ic/NumberControls.svelte +303 -269
- package/dist/components/ic/NumberControls.svelte.d.ts +4 -1
- package/dist/components/ic/NumberInputController.svelte +361 -301
- package/dist/components/ic/NumberInputController.svelte.d.ts +2 -0
- package/dist/components/ic/PositionInputController.svelte +253 -176
- package/dist/components/ic/PositionInputController.svelte.d.ts +2 -0
- package/dist/components/ic/RadioGroupInputController.svelte +71 -137
- package/dist/components/ic/RadioGroupInputController.svelte.d.ts +2 -8
- package/dist/components/ic/RangeCalendarInputController.svelte +233 -270
- package/dist/components/ic/RangeCalendarInputController.svelte.d.ts +2 -2
- package/dist/components/ic/RoundedCornersInputController.svelte +412 -435
- package/dist/components/ic/RoundedCornersInputController.svelte.d.ts +2 -0
- package/dist/components/ic/SliderInputController.svelte +263 -332
- package/dist/components/ic/SliderInputController.svelte.d.ts +1 -1
- package/dist/components/ic/SliderRangeInputController.svelte +140 -144
- package/dist/components/ic/SliderRangeInputController.svelte.d.ts +3 -3
- package/dist/components/ic/SwitchInputController.svelte +47 -109
- package/dist/components/ic/TagsInputController.svelte +95 -110
- package/dist/components/ic/TextAreaInputController.svelte +1794 -1935
- package/dist/components/ic/TextAreaPreviewInputController.svelte +436 -438
- package/dist/components/ic/TextAreaPreviewInputController.svelte.d.ts +2 -2
- package/dist/components/ic/TextInputController.svelte +65 -75
- package/dist/components/ic/TextInputController.svelte.d.ts +2 -0
- package/dist/components/ic/TimeInputController.svelte +433 -431
- package/dist/components/ic/VectorInputController.svelte +1833 -1831
- package/dist/components/ic/VectorInputController.svelte.d.ts +10 -10
- package/dist/components/ic/index.d.ts +1 -0
- package/dist/components/ic/index.js +1 -0
- package/dist/components/ic/shared/CategoryTabs.svelte +28 -35
- package/dist/components/ic/shared/ItemGrid.svelte +145 -179
- package/dist/components/ic/shared/RecentItemsSection.svelte +208 -271
- package/dist/components/ic/shared/RecentItemsSection.svelte.d.ts +1 -1
- package/dist/components/ui/arrows/OpacitySliderArrows.svelte +23 -38
- package/dist/components/ui/arrows/OpacitySliderArrows.svelte.d.ts +1 -4
- package/dist/components/ui/calendar-editor-fit/EditorCalendarStyles.svelte +45 -0
- package/dist/components/ui/calendar-editor-fit/EditorCalendarStyles.svelte.d.ts +26 -0
- package/dist/components/ui/checkerboard-background/CheckerboardBackground.svelte +20 -12
- package/dist/components/ui/shadow-picker-host/ShadowPickerHost.svelte +39 -0
- package/dist/components/ui/shadow-picker-host/ShadowPickerHost.svelte.d.ts +10 -0
- package/dist/i18n/language.d.ts +43 -36
- package/dist/i18n/messages.d.ts +41 -34
- package/dist/i18n/messages.js +47 -34
- package/dist/i18n/translate.d.ts +1 -1
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +26 -2
- package/package.json +4 -4
|
@@ -1,15 +1,23 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
|
-
|
|
2
|
+
export let className = '';
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
<!-- Content paint: checker tile uses the input surface token, not a legacy grey hex. -->
|
|
6
|
+
<div class="checkerboard-bg h-full w-full {className}" aria-hidden="true"></div>
|
|
7
|
+
|
|
8
|
+
<style>
|
|
9
|
+
.checkerboard-bg {
|
|
10
|
+
background-color: var(--background);
|
|
11
|
+
background-image:
|
|
12
|
+
linear-gradient(45deg, var(--input) 25%, transparent 25%),
|
|
13
|
+
linear-gradient(-45deg, var(--input) 25%, transparent 25%),
|
|
14
|
+
linear-gradient(45deg, transparent 75%, var(--input) 75%),
|
|
15
|
+
linear-gradient(-45deg, transparent 75%, var(--input) 75%);
|
|
16
|
+
background-size: 8px 8px;
|
|
17
|
+
background-position:
|
|
18
|
+
0 0,
|
|
19
|
+
0 4px,
|
|
20
|
+
4px -4px,
|
|
21
|
+
-4px 0;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onDestroy, onMount } from 'svelte';
|
|
3
|
+
import { mount, unmount, type Component } from 'svelte';
|
|
4
|
+
|
|
5
|
+
type HostProps = Record<string, unknown>;
|
|
6
|
+
|
|
7
|
+
interface Props {
|
|
8
|
+
component: Component;
|
|
9
|
+
props?: HostProps;
|
|
10
|
+
class?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let { component, props = {}, class: className = '' }: Props = $props();
|
|
14
|
+
|
|
15
|
+
let hostEl: HTMLDivElement | undefined = $state();
|
|
16
|
+
let mounted: ReturnType<typeof mount> | null = $state(null);
|
|
17
|
+
|
|
18
|
+
function adoptStyles(shadow: ShadowRoot) {
|
|
19
|
+
document.querySelectorAll('link[rel="stylesheet"]').forEach((link) => {
|
|
20
|
+
shadow.appendChild(link.cloneNode(true));
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
onMount(() => {
|
|
25
|
+
if (!hostEl) return;
|
|
26
|
+
const shadow = hostEl.attachShadow({ mode: 'open' });
|
|
27
|
+
adoptStyles(shadow);
|
|
28
|
+
const surface = document.createElement('div');
|
|
29
|
+
surface.className = `bg-background text-foreground ${className}`.trim();
|
|
30
|
+
shadow.appendChild(surface);
|
|
31
|
+
mounted = mount(component, { target: surface, props });
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
onDestroy(() => {
|
|
35
|
+
if (mounted) unmount(mounted);
|
|
36
|
+
});
|
|
37
|
+
</script>
|
|
38
|
+
|
|
39
|
+
<div bind:this={hostEl} class="shadow-picker-host w-full"></div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type Component } from 'svelte';
|
|
2
|
+
type HostProps = Record<string, unknown>;
|
|
3
|
+
interface Props {
|
|
4
|
+
component: Component;
|
|
5
|
+
props?: HostProps;
|
|
6
|
+
class?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ShadowPickerHost: Component<Props, {}, "">;
|
|
9
|
+
type ShadowPickerHost = ReturnType<typeof ShadowPickerHost>;
|
|
10
|
+
export default ShadowPickerHost;
|
package/dist/i18n/language.d.ts
CHANGED
|
@@ -52,12 +52,12 @@ export declare const EDITOR_CATALOGS: {
|
|
|
52
52
|
readonly 'editor.presence.readOnly': "Someone is editing. You are looking only.";
|
|
53
53
|
readonly 'editor.presence.readOnlyFree': "Nobody is editing now.";
|
|
54
54
|
readonly 'editor.presence.startEditing': "Start editing";
|
|
55
|
-
readonly 'editor.props.title': "Edit
|
|
55
|
+
readonly 'editor.props.title': "Edit properties";
|
|
56
56
|
readonly 'editor.props.designTab': "Design";
|
|
57
57
|
readonly 'editor.props.contentTab': "Content";
|
|
58
58
|
readonly 'editor.props.contentCard': "Content";
|
|
59
59
|
readonly 'editor.props.save': "Save";
|
|
60
|
-
readonly 'editor.props.saving': "Saving";
|
|
60
|
+
readonly 'editor.props.saving': "Saving…";
|
|
61
61
|
readonly 'editor.props.noConfiguration': "No schema configuration available";
|
|
62
62
|
readonly 'editor.props.noDesignSchema': "No design schema available";
|
|
63
63
|
readonly 'editor.props.noSchemaData': "No schema data available";
|
|
@@ -65,16 +65,14 @@ export declare const EDITOR_CATALOGS: {
|
|
|
65
65
|
readonly 'editor.props.noProperties': "No properties available";
|
|
66
66
|
readonly 'editor.props.addItem': "Add new";
|
|
67
67
|
readonly 'editor.props.deleteItem': "Delete item";
|
|
68
|
-
readonly 'editor.embed.title': "Edit
|
|
69
|
-
readonly 'editor.embed.loading': "Loading
|
|
68
|
+
readonly 'editor.embed.title': "Edit options";
|
|
69
|
+
readonly 'editor.embed.loading': "Loading…";
|
|
70
70
|
readonly 'editor.embed.noCode': "No embed code available";
|
|
71
71
|
readonly 'editor.embed.codeHeader': "Embed code";
|
|
72
72
|
readonly 'editor.embed.headerArea': "Embed code header area";
|
|
73
|
-
readonly 'editor.embed.readMore': "Read more about embedding";
|
|
74
73
|
readonly 'editor.embed.copy': "Copy to clipboard";
|
|
75
74
|
readonly 'editor.embed.copied': "Copied to clipboard";
|
|
76
75
|
readonly 'editor.embed.copiedHint': "Paste it anywhere on your site.";
|
|
77
|
-
readonly 'editor.embed.copiedDone': "Content copied successfully.";
|
|
78
76
|
readonly 'editor.embed.copyFailed': "Copy failed";
|
|
79
77
|
readonly 'editor.embed.copyFailedHint': "Please try manual selection";
|
|
80
78
|
readonly 'editor.preview.title': "Preview";
|
|
@@ -90,28 +88,28 @@ export declare const EDITOR_CATALOGS: {
|
|
|
90
88
|
readonly 'editor.preview.mobileViewport': "Mobile viewport";
|
|
91
89
|
readonly 'editor.preview.desktopViewport': "Desktop viewport (full window)";
|
|
92
90
|
readonly 'editor.preview.openInNewTab': "Open in new tab";
|
|
93
|
-
readonly 'editor.preview.newTab': "
|
|
91
|
+
readonly 'editor.preview.newTab': "New tab";
|
|
94
92
|
readonly 'editor.preview.selectWidget': "Select a widget to preview";
|
|
95
93
|
readonly 'editor.preview.widgetName': "Widget";
|
|
96
94
|
readonly 'editor.preview.notPublished': "Not published yet";
|
|
97
95
|
readonly 'editor.preview.publishToPreview': "Publish the widget in Widget Creator to preview it here.";
|
|
98
96
|
readonly 'editor.preview.frameTitle': "Widget preview";
|
|
99
97
|
readonly 'editor.preview.frameTitleNamed': "Widget preview – {name}";
|
|
100
|
-
readonly 'editor.preview.unavailable': "Preview
|
|
98
|
+
readonly 'editor.preview.unavailable': "Preview unavailable";
|
|
101
99
|
readonly 'editor.preview.loadFailedPreview': "Failed to load widget preview.";
|
|
102
100
|
readonly 'editor.preview.retry': "Retry";
|
|
103
|
-
readonly 'editor.preview.retryBuild': "Retry
|
|
104
|
-
readonly 'editor.preview.retryPreview': "Retry
|
|
105
|
-
readonly 'editor.preview.fixErrors': "Fix
|
|
106
|
-
readonly 'editor.preview.viewErrors': "View
|
|
101
|
+
readonly 'editor.preview.retryBuild': "Retry build";
|
|
102
|
+
readonly 'editor.preview.retryPreview': "Retry preview";
|
|
103
|
+
readonly 'editor.preview.fixErrors': "Fix errors";
|
|
104
|
+
readonly 'editor.preview.viewErrors': "View errors";
|
|
107
105
|
readonly 'editor.preview.runtimeError': "Widget runtime error";
|
|
108
|
-
readonly 'editor.preview.compilationErrors': "Code
|
|
106
|
+
readonly 'editor.preview.compilationErrors': "Code has compilation errors";
|
|
109
107
|
readonly 'editor.preview.compilationErrorsDetail': "The generated code has syntax or compilation errors (HTTP {status}).";
|
|
110
|
-
readonly 'editor.preview.noCodeYet': "No
|
|
111
|
-
readonly 'editor.preview.noPreview': "No
|
|
112
|
-
readonly 'editor.preview.building': "Building
|
|
108
|
+
readonly 'editor.preview.noCodeYet': "No code generated yet";
|
|
109
|
+
readonly 'editor.preview.noPreview': "No preview available";
|
|
110
|
+
readonly 'editor.preview.building': "Building preview…";
|
|
113
111
|
readonly 'editor.preview.loadingWidget': "Loading widget…";
|
|
114
|
-
readonly 'editor.preview.loadingPreview': "Loading
|
|
112
|
+
readonly 'editor.preview.loadingPreview': "Loading preview…";
|
|
115
113
|
readonly 'editor.preview.checkingWidget': "Checking widget on Worker…";
|
|
116
114
|
readonly 'editor.preview.applyingSettings': "Applying composition settings…";
|
|
117
115
|
readonly 'editor.preview.connecting': "Connecting to the widget preview…";
|
|
@@ -119,7 +117,7 @@ export declare const EDITOR_CATALOGS: {
|
|
|
119
117
|
readonly 'editor.list.recentlyUsed': "Recently used";
|
|
120
118
|
readonly 'editor.list.more': "More";
|
|
121
119
|
readonly 'editor.list.searchResults': "Search results";
|
|
122
|
-
readonly 'editor.list.loadingMore': "Loading more items
|
|
120
|
+
readonly 'editor.list.loadingMore': "Loading more items…";
|
|
123
121
|
readonly 'editor.list.deleteItem': "Delete";
|
|
124
122
|
readonly 'editor.category.all': "All";
|
|
125
123
|
readonly 'editor.category.mine': "Mine";
|
|
@@ -130,15 +128,15 @@ export declare const EDITOR_CATALOGS: {
|
|
|
130
128
|
readonly 'editor.category.icons': "Icons";
|
|
131
129
|
readonly 'editor.category.emojis': "Emojis";
|
|
132
130
|
readonly 'editor.category.clipart': "Clipart";
|
|
133
|
-
readonly 'editor.font.select': "Select font
|
|
131
|
+
readonly 'editor.font.select': "Select font…";
|
|
134
132
|
readonly 'editor.font.title': "Fonts";
|
|
135
|
-
readonly 'editor.font.search': "Search
|
|
133
|
+
readonly 'editor.font.search': "Search…";
|
|
136
134
|
readonly 'editor.font.list': "Font list";
|
|
137
135
|
readonly 'editor.font.loading': "Loading fonts";
|
|
138
136
|
readonly 'editor.font.noneFound': "No fonts found";
|
|
139
137
|
readonly 'editor.font.noneAvailable': "No fonts available";
|
|
140
138
|
readonly 'editor.font.remove': "Remove font";
|
|
141
|
-
readonly 'editor.font.weight': "Font
|
|
139
|
+
readonly 'editor.font.weight': "Font weight";
|
|
142
140
|
readonly 'editor.font.weightList': "Font weights";
|
|
143
141
|
readonly 'editor.fontWeight.withItalic': "{weight} Italic";
|
|
144
142
|
readonly 'editor.fontWeight.italic': "Italic";
|
|
@@ -151,9 +149,9 @@ export declare const EDITOR_CATALOGS: {
|
|
|
151
149
|
readonly 'editor.fontWeight.bold': "Bold";
|
|
152
150
|
readonly 'editor.fontWeight.extraBold': "ExtraBold";
|
|
153
151
|
readonly 'editor.fontWeight.black': "Black";
|
|
154
|
-
readonly 'editor.vector.select': "
|
|
152
|
+
readonly 'editor.vector.select': "Choose a vector…";
|
|
155
153
|
readonly 'editor.vector.title': "Vectors";
|
|
156
|
-
readonly 'editor.vector.search': "Search
|
|
154
|
+
readonly 'editor.vector.search': "Search…";
|
|
157
155
|
readonly 'editor.vector.list': "Vector list";
|
|
158
156
|
readonly 'editor.vector.noneFound': "No vectors found";
|
|
159
157
|
readonly 'editor.vector.noneAvailable': "No vectors available";
|
|
@@ -162,11 +160,11 @@ export declare const EDITOR_CATALOGS: {
|
|
|
162
160
|
readonly 'editor.file.useVideo': "Use video";
|
|
163
161
|
readonly 'editor.file.useAudio': "Use audio";
|
|
164
162
|
readonly 'editor.file.useDocument': "Use document";
|
|
165
|
-
readonly 'editor.file.addFile': "Add file
|
|
166
|
-
readonly 'editor.file.addImage': "Add image
|
|
167
|
-
readonly 'editor.file.addVideo': "Add video
|
|
168
|
-
readonly 'editor.file.addAudio': "Add audio
|
|
169
|
-
readonly 'editor.file.addDocument': "Add docs
|
|
163
|
+
readonly 'editor.file.addFile': "Add file…";
|
|
164
|
+
readonly 'editor.file.addImage': "Add image…";
|
|
165
|
+
readonly 'editor.file.addVideo': "Add video…";
|
|
166
|
+
readonly 'editor.file.addAudio': "Add audio…";
|
|
167
|
+
readonly 'editor.file.addDocument': "Add docs…";
|
|
170
168
|
readonly 'editor.file.play': "Play";
|
|
171
169
|
readonly 'editor.file.pause': "Pause";
|
|
172
170
|
readonly 'editor.file.notFound': "File not found";
|
|
@@ -238,9 +236,7 @@ export declare const EDITOR_CATALOGS: {
|
|
|
238
236
|
readonly 'editor.dropdown.select': "Select an option";
|
|
239
237
|
readonly 'editor.switch.off': "Off";
|
|
240
238
|
readonly 'editor.switch.on': "On";
|
|
241
|
-
readonly 'editor.tags.add': "Add tag
|
|
242
|
-
readonly 'editor.position.x': "X:";
|
|
243
|
-
readonly 'editor.position.y': "Y:";
|
|
239
|
+
readonly 'editor.tags.add': "Add tag…";
|
|
244
240
|
readonly 'editor.fixedPosition.set': "Set position to {position}";
|
|
245
241
|
readonly 'editor.fixedPosition.topLeft': "top-left";
|
|
246
242
|
readonly 'editor.fixedPosition.topCenter': "top-center";
|
|
@@ -268,12 +264,23 @@ export declare const EDITOR_CATALOGS: {
|
|
|
268
264
|
readonly 'editor.textArea.heading1': "H1";
|
|
269
265
|
readonly 'editor.textArea.heading2': "H2";
|
|
270
266
|
readonly 'editor.textArea.heading3': "H3";
|
|
271
|
-
readonly 'editor.textArea.bulletList': "Bullet
|
|
272
|
-
readonly 'editor.textArea.numberedList': "Numbered
|
|
273
|
-
readonly 'editor.textArea.checkList': "Check
|
|
267
|
+
readonly 'editor.textArea.bulletList': "Bullet list";
|
|
268
|
+
readonly 'editor.textArea.numberedList': "Numbered list";
|
|
269
|
+
readonly 'editor.textArea.checkList': "Check list";
|
|
274
270
|
readonly 'editor.textArea.textStyles': "Text styles";
|
|
275
271
|
readonly 'editor.textArea.listStyles': "List styles";
|
|
276
272
|
readonly 'editor.textArea.enterUrl': "Enter URL";
|
|
273
|
+
readonly 'editor.position.readout': "x: {x}%, y: {y}%";
|
|
274
|
+
readonly 'editor.stepper.decrease': "Decrease value";
|
|
275
|
+
readonly 'editor.stepper.increase': "Increase value";
|
|
276
|
+
readonly 'editor.tags.remove': "Remove tag";
|
|
277
|
+
readonly 'editor.list.uploadedByYou': "Uploaded by you";
|
|
278
|
+
readonly 'editor.vector.loadFailed': "Failed to load";
|
|
279
|
+
readonly 'editor.textArea.closePanel': "Minimize rich text editor";
|
|
280
|
+
readonly 'editor.textArea.closeColorMode': "Back to text formatting";
|
|
281
|
+
readonly 'editor.embed.helpPrompt': "Not sure how embedding works?";
|
|
282
|
+
readonly 'editor.embed.learnMore': "Learn more";
|
|
283
|
+
readonly 'editor.embed.helpLinkAria': "Read more about embedding";
|
|
277
284
|
readonly 'editor.schema.subtitleFont': "Subtitle Font";
|
|
278
285
|
};
|
|
279
286
|
readonly fileBrowser: {
|
|
@@ -555,7 +562,7 @@ export declare const EDITOR_CATALOGS: {
|
|
|
555
562
|
readonly 'shadEditor.image.tooltip': "Add Image";
|
|
556
563
|
readonly 'shadEditor.image.title': "Image";
|
|
557
564
|
readonly 'shadEditor.image.urlHint': "Insert image url";
|
|
558
|
-
readonly 'shadEditor.image.urlPlaceholder': "Enter image url
|
|
565
|
+
readonly 'shadEditor.image.urlPlaceholder': "Enter image url\u2026";
|
|
559
566
|
readonly 'shadEditor.image.orPick': "OR Pick an Image";
|
|
560
567
|
readonly 'shadEditor.table.tooltip': "Table";
|
|
561
568
|
readonly 'shadEditor.table.insert': "Insert Table";
|
|
@@ -616,7 +623,7 @@ export declare const ALL_EDITOR_MESSAGES: Readonly<Record<string, string>>;
|
|
|
616
623
|
* the nearest real one), a value that is not text, a template that does not parse, or one that asks for a value the message
|
|
617
624
|
* is never given. An empty list means every message will be used. For a test or a build step of the page.
|
|
618
625
|
*/
|
|
619
|
-
export declare const checkEditorMessages: (messages: import("@widgetic/
|
|
626
|
+
export declare const checkEditorMessages: (messages: import("@widgetic/design-system/i18n").MessageOverrides) => import("@widgetic/design-system/i18n").MessageProblem[];
|
|
620
627
|
/**
|
|
621
628
|
* Called by the root component of an editor while it is created, so everything inside it speaks the page's language.
|
|
622
629
|
* The context belongs to one root component, so two editors on a page can speak two languages.
|
package/dist/i18n/messages.d.ts
CHANGED
|
@@ -92,13 +92,13 @@ export declare const EDITOR_MESSAGES: {
|
|
|
92
92
|
readonly 'editor.presence.readOnlyFree': "Nobody is editing now.";
|
|
93
93
|
/** The button of that bar that begins editing. */
|
|
94
94
|
readonly 'editor.presence.startEditing': "Start editing";
|
|
95
|
-
readonly 'editor.props.title': "Edit
|
|
95
|
+
readonly 'editor.props.title': "Edit properties";
|
|
96
96
|
readonly 'editor.props.designTab': "Design";
|
|
97
97
|
readonly 'editor.props.contentTab': "Content";
|
|
98
98
|
/** The title of the card of settings that belong to no item, when the widget gave it none. */
|
|
99
99
|
readonly 'editor.props.contentCard': "Content";
|
|
100
100
|
readonly 'editor.props.save': "Save";
|
|
101
|
-
readonly 'editor.props.saving': "Saving";
|
|
101
|
+
readonly 'editor.props.saving': "Saving…";
|
|
102
102
|
readonly 'editor.props.noConfiguration': "No schema configuration available";
|
|
103
103
|
readonly 'editor.props.noDesignSchema': "No design schema available";
|
|
104
104
|
readonly 'editor.props.noSchemaData': "No schema data available";
|
|
@@ -106,17 +106,15 @@ export declare const EDITOR_MESSAGES: {
|
|
|
106
106
|
readonly 'editor.props.noProperties': "No properties available";
|
|
107
107
|
readonly 'editor.props.addItem': "Add new";
|
|
108
108
|
readonly 'editor.props.deleteItem': "Delete item";
|
|
109
|
-
readonly 'editor.embed.title': "Edit
|
|
110
|
-
readonly 'editor.embed.loading': "Loading
|
|
109
|
+
readonly 'editor.embed.title': "Edit options";
|
|
110
|
+
readonly 'editor.embed.loading': "Loading…";
|
|
111
111
|
readonly 'editor.embed.noCode': "No embed code available";
|
|
112
112
|
readonly 'editor.embed.codeHeader': "Embed code";
|
|
113
113
|
readonly 'editor.embed.headerArea': "Embed code header area";
|
|
114
|
-
readonly 'editor.embed.readMore': "Read more about embedding";
|
|
115
114
|
readonly 'editor.embed.copy': "Copy to clipboard";
|
|
116
115
|
/** The pop-ups after a copy: the title of the one that worked is the same for the editor's pop-up and the header's. */
|
|
117
116
|
readonly 'editor.embed.copied': "Copied to clipboard";
|
|
118
117
|
readonly 'editor.embed.copiedHint': "Paste it anywhere on your site.";
|
|
119
|
-
readonly 'editor.embed.copiedDone': "Content copied successfully.";
|
|
120
118
|
readonly 'editor.embed.copyFailed': "Copy failed";
|
|
121
119
|
readonly 'editor.embed.copyFailedHint': "Please try manual selection";
|
|
122
120
|
readonly 'editor.preview.title': "Preview";
|
|
@@ -133,7 +131,7 @@ export declare const EDITOR_MESSAGES: {
|
|
|
133
131
|
readonly 'editor.preview.mobileViewport': "Mobile viewport";
|
|
134
132
|
readonly 'editor.preview.desktopViewport': "Desktop viewport (full window)";
|
|
135
133
|
readonly 'editor.preview.openInNewTab': "Open in new tab";
|
|
136
|
-
readonly 'editor.preview.newTab': "
|
|
134
|
+
readonly 'editor.preview.newTab': "New tab";
|
|
137
135
|
readonly 'editor.preview.selectWidget': "Select a widget to preview";
|
|
138
136
|
/** What the name of a widget is when it has none. */
|
|
139
137
|
readonly 'editor.preview.widgetName': "Widget";
|
|
@@ -141,22 +139,22 @@ export declare const EDITOR_MESSAGES: {
|
|
|
141
139
|
readonly 'editor.preview.publishToPreview': "Publish the widget in Widget Creator to preview it here.";
|
|
142
140
|
readonly 'editor.preview.frameTitle': "Widget preview";
|
|
143
141
|
readonly 'editor.preview.frameTitleNamed': "Widget preview – {name}";
|
|
144
|
-
readonly 'editor.preview.unavailable': "Preview
|
|
142
|
+
readonly 'editor.preview.unavailable': "Preview unavailable";
|
|
145
143
|
readonly 'editor.preview.loadFailedPreview': "Failed to load widget preview.";
|
|
146
144
|
readonly 'editor.preview.retry': "Retry";
|
|
147
|
-
readonly 'editor.preview.retryBuild': "Retry
|
|
148
|
-
readonly 'editor.preview.retryPreview': "Retry
|
|
149
|
-
readonly 'editor.preview.fixErrors': "Fix
|
|
150
|
-
readonly 'editor.preview.viewErrors': "View
|
|
145
|
+
readonly 'editor.preview.retryBuild': "Retry build";
|
|
146
|
+
readonly 'editor.preview.retryPreview': "Retry preview";
|
|
147
|
+
readonly 'editor.preview.fixErrors': "Fix errors";
|
|
148
|
+
readonly 'editor.preview.viewErrors': "View errors";
|
|
151
149
|
readonly 'editor.preview.runtimeError': "Widget runtime error";
|
|
152
|
-
readonly 'editor.preview.compilationErrors': "Code
|
|
150
|
+
readonly 'editor.preview.compilationErrors': "Code has compilation errors";
|
|
153
151
|
/** `{status}` is the HTTP status the preview page answered with. */
|
|
154
152
|
readonly 'editor.preview.compilationErrorsDetail': "The generated code has syntax or compilation errors (HTTP {status}).";
|
|
155
|
-
readonly 'editor.preview.noCodeYet': "No
|
|
156
|
-
readonly 'editor.preview.noPreview': "No
|
|
157
|
-
readonly 'editor.preview.building': "Building
|
|
153
|
+
readonly 'editor.preview.noCodeYet': "No code generated yet";
|
|
154
|
+
readonly 'editor.preview.noPreview': "No preview available";
|
|
155
|
+
readonly 'editor.preview.building': "Building preview…";
|
|
158
156
|
readonly 'editor.preview.loadingWidget': "Loading widget…";
|
|
159
|
-
readonly 'editor.preview.loadingPreview': "Loading
|
|
157
|
+
readonly 'editor.preview.loadingPreview': "Loading preview…";
|
|
160
158
|
readonly 'editor.preview.checkingWidget': "Checking widget on Worker…";
|
|
161
159
|
readonly 'editor.preview.applyingSettings': "Applying composition settings…";
|
|
162
160
|
readonly 'editor.preview.connecting': "Connecting to the widget preview…";
|
|
@@ -164,7 +162,7 @@ export declare const EDITOR_MESSAGES: {
|
|
|
164
162
|
readonly 'editor.list.recentlyUsed': "Recently used";
|
|
165
163
|
readonly 'editor.list.more': "More";
|
|
166
164
|
readonly 'editor.list.searchResults': "Search results";
|
|
167
|
-
readonly 'editor.list.loadingMore': "Loading more items
|
|
165
|
+
readonly 'editor.list.loadingMore': "Loading more items…";
|
|
168
166
|
readonly 'editor.list.deleteItem': "Delete";
|
|
169
167
|
/** The tabs above a list of fonts or vectors. */
|
|
170
168
|
readonly 'editor.category.all': "All";
|
|
@@ -176,15 +174,15 @@ export declare const EDITOR_MESSAGES: {
|
|
|
176
174
|
readonly 'editor.category.icons': "Icons";
|
|
177
175
|
readonly 'editor.category.emojis': "Emojis";
|
|
178
176
|
readonly 'editor.category.clipart': "Clipart";
|
|
179
|
-
readonly 'editor.font.select': "Select font
|
|
177
|
+
readonly 'editor.font.select': "Select font…";
|
|
180
178
|
readonly 'editor.font.title': "Fonts";
|
|
181
|
-
readonly 'editor.font.search': "Search
|
|
179
|
+
readonly 'editor.font.search': "Search…";
|
|
182
180
|
readonly 'editor.font.list': "Font list";
|
|
183
181
|
readonly 'editor.font.loading': "Loading fonts";
|
|
184
182
|
readonly 'editor.font.noneFound': "No fonts found";
|
|
185
183
|
readonly 'editor.font.noneAvailable': "No fonts available";
|
|
186
184
|
readonly 'editor.font.remove': "Remove font";
|
|
187
|
-
readonly 'editor.font.weight': "Font
|
|
185
|
+
readonly 'editor.font.weight': "Font weight";
|
|
188
186
|
/** The name a screen reader gives the list of weights a font has, when its menu is open. */
|
|
189
187
|
readonly 'editor.font.weightList': "Font weights";
|
|
190
188
|
/** The look of a weight that has a name of its own; `{weight}` is one of the names below ("Bold Italic"). */
|
|
@@ -199,9 +197,9 @@ export declare const EDITOR_MESSAGES: {
|
|
|
199
197
|
readonly 'editor.fontWeight.bold': "Bold";
|
|
200
198
|
readonly 'editor.fontWeight.extraBold': "ExtraBold";
|
|
201
199
|
readonly 'editor.fontWeight.black': "Black";
|
|
202
|
-
readonly 'editor.vector.select': "
|
|
200
|
+
readonly 'editor.vector.select': "Choose a vector…";
|
|
203
201
|
readonly 'editor.vector.title': "Vectors";
|
|
204
|
-
readonly 'editor.vector.search': "Search
|
|
202
|
+
readonly 'editor.vector.search': "Search…";
|
|
205
203
|
readonly 'editor.vector.list': "Vector list";
|
|
206
204
|
readonly 'editor.vector.noneFound': "No vectors found";
|
|
207
205
|
readonly 'editor.vector.noneAvailable': "No vectors available";
|
|
@@ -210,11 +208,11 @@ export declare const EDITOR_MESSAGES: {
|
|
|
210
208
|
readonly 'editor.file.useVideo': "Use video";
|
|
211
209
|
readonly 'editor.file.useAudio': "Use audio";
|
|
212
210
|
readonly 'editor.file.useDocument': "Use document";
|
|
213
|
-
readonly 'editor.file.addFile': "Add file
|
|
214
|
-
readonly 'editor.file.addImage': "Add image
|
|
215
|
-
readonly 'editor.file.addVideo': "Add video
|
|
216
|
-
readonly 'editor.file.addAudio': "Add audio
|
|
217
|
-
readonly 'editor.file.addDocument': "Add docs
|
|
211
|
+
readonly 'editor.file.addFile': "Add file…";
|
|
212
|
+
readonly 'editor.file.addImage': "Add image…";
|
|
213
|
+
readonly 'editor.file.addVideo': "Add video…";
|
|
214
|
+
readonly 'editor.file.addAudio': "Add audio…";
|
|
215
|
+
readonly 'editor.file.addDocument': "Add docs…";
|
|
218
216
|
readonly 'editor.file.play': "Play";
|
|
219
217
|
readonly 'editor.file.pause': "Pause";
|
|
220
218
|
readonly 'editor.file.notFound': "File not found";
|
|
@@ -306,10 +304,8 @@ export declare const EDITOR_MESSAGES: {
|
|
|
306
304
|
readonly 'editor.dropdown.select': "Select an option";
|
|
307
305
|
readonly 'editor.switch.off': "Off";
|
|
308
306
|
readonly 'editor.switch.on': "On";
|
|
309
|
-
readonly 'editor.tags.add': "Add tag
|
|
307
|
+
readonly 'editor.tags.add': "Add tag…";
|
|
310
308
|
/** The two letters beside the position of a point in a picture: how far across, and how far down. */
|
|
311
|
-
readonly 'editor.position.x': "X:";
|
|
312
|
-
readonly 'editor.position.y': "Y:";
|
|
313
309
|
/** The buttons of the nine places on a screen; `{position}` is one of the names below. */
|
|
314
310
|
readonly 'editor.fixedPosition.set': "Set position to {position}";
|
|
315
311
|
readonly 'editor.fixedPosition.topLeft': "top-left";
|
|
@@ -339,15 +335,26 @@ export declare const EDITOR_MESSAGES: {
|
|
|
339
335
|
readonly 'editor.textArea.heading1': "H1";
|
|
340
336
|
readonly 'editor.textArea.heading2': "H2";
|
|
341
337
|
readonly 'editor.textArea.heading3': "H3";
|
|
342
|
-
readonly 'editor.textArea.bulletList': "Bullet
|
|
343
|
-
readonly 'editor.textArea.numberedList': "Numbered
|
|
344
|
-
readonly 'editor.textArea.checkList': "Check
|
|
338
|
+
readonly 'editor.textArea.bulletList': "Bullet list";
|
|
339
|
+
readonly 'editor.textArea.numberedList': "Numbered list";
|
|
340
|
+
readonly 'editor.textArea.checkList': "Check list";
|
|
345
341
|
/** The name a screen reader gives the list of text styles (paragraph, headings) when its menu is open. */
|
|
346
342
|
readonly 'editor.textArea.textStyles': "Text styles";
|
|
347
343
|
/** The name a screen reader gives the list of list styles (bullets, numbers, checks) when its menu is open. */
|
|
348
344
|
readonly 'editor.textArea.listStyles': "List styles";
|
|
349
345
|
/** The question the browser asks when a link is added. */
|
|
350
346
|
readonly 'editor.textArea.enterUrl': "Enter URL";
|
|
347
|
+
readonly 'editor.position.readout': "x: {x}%, y: {y}%";
|
|
348
|
+
readonly 'editor.stepper.decrease': "Decrease value";
|
|
349
|
+
readonly 'editor.stepper.increase': "Increase value";
|
|
350
|
+
readonly 'editor.tags.remove': "Remove tag";
|
|
351
|
+
readonly 'editor.list.uploadedByYou': "Uploaded by you";
|
|
352
|
+
readonly 'editor.vector.loadFailed': "Failed to load";
|
|
353
|
+
readonly 'editor.textArea.closePanel': "Minimize rich text editor";
|
|
354
|
+
readonly 'editor.textArea.closeColorMode': "Back to text formatting";
|
|
355
|
+
readonly 'editor.embed.helpPrompt': "Not sure how embedding works?";
|
|
356
|
+
readonly 'editor.embed.learnMore': "Learn more";
|
|
357
|
+
readonly 'editor.embed.helpLinkAria': "Read more about embedding";
|
|
351
358
|
readonly 'editor.schema.subtitleFont': "Subtitle Font";
|
|
352
359
|
};
|
|
353
360
|
/** The name of one message. */
|