@alpaca-editor/core 1.0.0
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/.prettierrc +3 -0
- package/eslint.config.mjs +4 -0
- package/images/bg-shape-black.webp +0 -0
- package/package.json +52 -0
- package/src/client-components/api.ts +6 -0
- package/src/client-components/index.ts +19 -0
- package/src/components/ActionButton.tsx +43 -0
- package/src/components/Error.tsx +57 -0
- package/src/config/config.tsx +737 -0
- package/src/config/types.ts +263 -0
- package/src/editor/ComponentInfo.tsx +77 -0
- package/src/editor/ConfirmationDialog.tsx +103 -0
- package/src/editor/ContentTree.tsx +654 -0
- package/src/editor/ContextMenu.tsx +155 -0
- package/src/editor/Editor.tsx +91 -0
- package/src/editor/EditorWarning.tsx +34 -0
- package/src/editor/EditorWarnings.tsx +33 -0
- package/src/editor/FieldEditorPopup.tsx +65 -0
- package/src/editor/FieldHistory.tsx +74 -0
- package/src/editor/FieldList.tsx +190 -0
- package/src/editor/FieldListField.tsx +387 -0
- package/src/editor/FieldListFieldWithFallbacks.tsx +211 -0
- package/src/editor/FloatingToolbar.tsx +163 -0
- package/src/editor/ImageEditor.tsx +129 -0
- package/src/editor/InsertMenu.tsx +332 -0
- package/src/editor/ItemInfo.tsx +90 -0
- package/src/editor/LinkEditorDialog.tsx +192 -0
- package/src/editor/MainLayout.tsx +94 -0
- package/src/editor/NewEditorClient.tsx +11 -0
- package/src/editor/PictureCropper.tsx +505 -0
- package/src/editor/PictureEditor.tsx +206 -0
- package/src/editor/PictureEditorDialog.tsx +381 -0
- package/src/editor/PublishDialog.ignore +74 -0
- package/src/editor/ScrollingContentTree.tsx +47 -0
- package/src/editor/Terminal.tsx +215 -0
- package/src/editor/Titlebar.tsx +23 -0
- package/src/editor/ai/AiPopup.tsx +59 -0
- package/src/editor/ai/AiResponseMessage.tsx +82 -0
- package/src/editor/ai/AiTerminal.tsx +450 -0
- package/src/editor/ai/AiToolCall.tsx +46 -0
- package/src/editor/ai/EditorAiTerminal.tsx +20 -0
- package/src/editor/ai/editorAiContext.ts +18 -0
- package/src/editor/client/DialogContext.tsx +49 -0
- package/src/editor/client/EditorClient.tsx +1831 -0
- package/src/editor/client/GenericDialog.tsx +50 -0
- package/src/editor/client/editContext.ts +330 -0
- package/src/editor/client/helpers.ts +44 -0
- package/src/editor/client/itemsRepository.ts +391 -0
- package/src/editor/client/operations.ts +610 -0
- package/src/editor/client/pageModelBuilder.ts +182 -0
- package/src/editor/commands/commands.ts +23 -0
- package/src/editor/commands/componentCommands.tsx +408 -0
- package/src/editor/commands/createVersionCommand.ts +33 -0
- package/src/editor/commands/deleteVersionCommand.ts +71 -0
- package/src/editor/commands/itemCommands.tsx +186 -0
- package/src/editor/commands/localizeItem/LocalizeItemDialog.tsx +201 -0
- package/src/editor/commands/undo.ts +39 -0
- package/src/editor/component-designer/ComponentDesigner.tsx +70 -0
- package/src/editor/component-designer/ComponentDesignerAiTerminal.tsx +11 -0
- package/src/editor/component-designer/ComponentDesignerMenu.tsx +91 -0
- package/src/editor/component-designer/ComponentEditor.tsx +97 -0
- package/src/editor/component-designer/ComponentRenderingCodeEditor.tsx +31 -0
- package/src/editor/component-designer/ComponentRenderingEditor.tsx +104 -0
- package/src/editor/component-designer/ComponentsDropdown.tsx +39 -0
- package/src/editor/component-designer/PlaceholdersEditor.tsx +183 -0
- package/src/editor/component-designer/RenderingsDropdown.tsx +36 -0
- package/src/editor/component-designer/TemplateEditor.tsx +236 -0
- package/src/editor/component-designer/aiContext.ts +23 -0
- package/src/editor/componentTreeHelper.tsx +114 -0
- package/src/editor/control-center/ControlCenterMenu.tsx +71 -0
- package/src/editor/control-center/IndexOverview.tsx +50 -0
- package/src/editor/control-center/IndexSettings.tsx +266 -0
- package/src/editor/control-center/Status.tsx +7 -0
- package/src/editor/editor-warnings/ItemLocked.tsx +63 -0
- package/src/editor/editor-warnings/NoLanguageWriteAccess.tsx +22 -0
- package/src/editor/editor-warnings/NoWorkflowWriteAccess.tsx +23 -0
- package/src/editor/editor-warnings/NoWriteAccess.tsx +15 -0
- package/src/editor/editor-warnings/ValidationErrors.tsx +54 -0
- package/src/editor/field-types/AttachmentEditor.tsx +9 -0
- package/src/editor/field-types/CheckboxEditor.tsx +47 -0
- package/src/editor/field-types/DropLinkEditor.tsx +75 -0
- package/src/editor/field-types/DropListEditor.tsx +84 -0
- package/src/editor/field-types/ImageFieldEditor.tsx +65 -0
- package/src/editor/field-types/InternalLinkFieldEditor.tsx +112 -0
- package/src/editor/field-types/LinkFieldEditor.tsx +85 -0
- package/src/editor/field-types/MultiLineText.tsx +63 -0
- package/src/editor/field-types/PictureFieldEditor.tsx +121 -0
- package/src/editor/field-types/RawEditor.tsx +53 -0
- package/src/editor/field-types/ReactQuill.tsx +580 -0
- package/src/editor/field-types/RichTextEditor.tsx +22 -0
- package/src/editor/field-types/RichTextEditorComponent.tsx +108 -0
- package/src/editor/field-types/SingleLineText.tsx +150 -0
- package/src/editor/field-types/TreeListEditor.tsx +261 -0
- package/src/editor/fieldTypes.ts +140 -0
- package/src/editor/media-selector/AiImageSearch.tsx +186 -0
- package/src/editor/media-selector/AiImageSearchPrompt.tsx +95 -0
- package/src/editor/media-selector/MediaSelector.tsx +42 -0
- package/src/editor/media-selector/Preview.tsx +14 -0
- package/src/editor/media-selector/Thumbnails.tsx +48 -0
- package/src/editor/media-selector/TreeSelector.tsx +292 -0
- package/src/editor/media-selector/UploadZone.tsx +137 -0
- package/src/editor/menubar/ActionsMenu.tsx +47 -0
- package/src/editor/menubar/ActiveUsers.tsx +17 -0
- package/src/editor/menubar/ApproveAndPublish.tsx +18 -0
- package/src/editor/menubar/BrowseHistory.tsx +37 -0
- package/src/editor/menubar/ItemLanguageVersion.tsx +52 -0
- package/src/editor/menubar/LanguageSelector.tsx +152 -0
- package/src/editor/menubar/Menu.tsx +83 -0
- package/src/editor/menubar/NavButtons.tsx +74 -0
- package/src/editor/menubar/PageSelector.tsx +139 -0
- package/src/editor/menubar/PageViewerControls.tsx +99 -0
- package/src/editor/menubar/Separator.tsx +12 -0
- package/src/editor/menubar/SiteInfo.tsx +53 -0
- package/src/editor/menubar/User.tsx +27 -0
- package/src/editor/menubar/VersionSelector.tsx +143 -0
- package/src/editor/page-editor-chrome/CommentHighlighting.tsx +287 -0
- package/src/editor/page-editor-chrome/CommentHighlightings.tsx +35 -0
- package/src/editor/page-editor-chrome/FieldActionIndicator.tsx +44 -0
- package/src/editor/page-editor-chrome/FieldActionIndicators.tsx +23 -0
- package/src/editor/page-editor-chrome/FieldEditedIndicator.tsx +64 -0
- package/src/editor/page-editor-chrome/FieldEditedIndicators.tsx +35 -0
- package/src/editor/page-editor-chrome/FrameMenu.tsx +263 -0
- package/src/editor/page-editor-chrome/FrameMenus.tsx +48 -0
- package/src/editor/page-editor-chrome/InlineEditor.tsx +147 -0
- package/src/editor/page-editor-chrome/LockedFieldIndicator.tsx +61 -0
- package/src/editor/page-editor-chrome/NoLayout.tsx +36 -0
- package/src/editor/page-editor-chrome/PageEditorChrome.tsx +119 -0
- package/src/editor/page-editor-chrome/PictureEditorOverlay.tsx +154 -0
- package/src/editor/page-editor-chrome/PlaceholderDropZone.tsx +171 -0
- package/src/editor/page-editor-chrome/PlaceholderDropZones.tsx +233 -0
- package/src/editor/page-viewer/DeviceToolbar.tsx +70 -0
- package/src/editor/page-viewer/EditorForm.tsx +247 -0
- package/src/editor/page-viewer/MiniMap.tsx +351 -0
- package/src/editor/page-viewer/PageViewer.tsx +127 -0
- package/src/editor/page-viewer/PageViewerFrame.tsx +1030 -0
- package/src/editor/page-viewer/pageViewContext.ts +186 -0
- package/src/editor/pageModel.ts +191 -0
- package/src/editor/picture-shared.tsx +53 -0
- package/src/editor/reviews/Comment.tsx +265 -0
- package/src/editor/reviews/Comments.tsx +50 -0
- package/src/editor/reviews/PreviewInfo.tsx +35 -0
- package/src/editor/reviews/Reviews.tsx +280 -0
- package/src/editor/reviews/reviewCommands.tsx +47 -0
- package/src/editor/reviews/useReviews.tsx +70 -0
- package/src/editor/services/aiService.ts +155 -0
- package/src/editor/services/componentDesignerService.ts +151 -0
- package/src/editor/services/contentService.ts +159 -0
- package/src/editor/services/editService.ts +462 -0
- package/src/editor/services/indexService.ts +24 -0
- package/src/editor/services/reviewsService.ts +45 -0
- package/src/editor/services/serviceHelper.ts +95 -0
- package/src/editor/services/systemService.ts +5 -0
- package/src/editor/services/translationService.ts +21 -0
- package/src/editor/services-server/api.ts +150 -0
- package/src/editor/services-server/graphQL.ts +106 -0
- package/src/editor/sidebar/ComponentPalette.tsx +146 -0
- package/src/editor/sidebar/ComponentTree.tsx +512 -0
- package/src/editor/sidebar/ComponentTree2.tsxx +490 -0
- package/src/editor/sidebar/Debug.tsx +105 -0
- package/src/editor/sidebar/DictionaryEditor.tsx +261 -0
- package/src/editor/sidebar/EditHistory.tsx +134 -0
- package/src/editor/sidebar/GraphQL.tsx +164 -0
- package/src/editor/sidebar/Insert.tsx +35 -0
- package/src/editor/sidebar/MainContentTree.tsx +95 -0
- package/src/editor/sidebar/Performance.tsx +53 -0
- package/src/editor/sidebar/Sessions.tsx +35 -0
- package/src/editor/sidebar/Sidebar.tsx +20 -0
- package/src/editor/sidebar/SidebarView.tsx +150 -0
- package/src/editor/sidebar/Translations.tsx +276 -0
- package/src/editor/sidebar/Validation.tsx +102 -0
- package/src/editor/sidebar/ViewSelector.tsx +49 -0
- package/src/editor/sidebar/Workbox.tsx +209 -0
- package/src/editor/ui/CenteredMessage.tsx +7 -0
- package/src/editor/ui/CopyToClipboardButton.tsx +23 -0
- package/src/editor/ui/DialogButtons.tsx +11 -0
- package/src/editor/ui/Icons.tsx +585 -0
- package/src/editor/ui/ItemNameDialog.tsx +94 -0
- package/src/editor/ui/ItemNameDialogNew.tsx +118 -0
- package/src/editor/ui/ItemSearch.tsx +173 -0
- package/src/editor/ui/PerfectTree.tsx +550 -0
- package/src/editor/ui/Section.tsx +35 -0
- package/src/editor/ui/SimpleIconButton.tsx +43 -0
- package/src/editor/ui/SimpleMenu.tsx +48 -0
- package/src/editor/ui/SimpleTable.tsx +63 -0
- package/src/editor/ui/SimpleTabs.tsx +55 -0
- package/src/editor/ui/SimpleToolbar.tsx +7 -0
- package/src/editor/ui/Spinner.tsx +7 -0
- package/src/editor/ui/Splitter.tsx +247 -0
- package/src/editor/ui/StackedPanels.tsx +134 -0
- package/src/editor/ui/Toolbar.tsx +7 -0
- package/src/editor/utils/id-helper.ts +3 -0
- package/src/editor/utils/insertOptions.ts +69 -0
- package/src/editor/utils/itemutils.ts +29 -0
- package/src/editor/utils/useMemoDebug.ts +28 -0
- package/src/editor/utils.ts +435 -0
- package/src/editor/views/CompareView.tsx +256 -0
- package/src/editor/views/EditView.tsx +27 -0
- package/src/editor/views/ItemEditor.tsx +58 -0
- package/src/editor/views/SingleEditView.tsx +44 -0
- package/src/fonts/Geist-Black.woff2 +0 -0
- package/src/fonts/Geist-Bold.woff2 +0 -0
- package/src/fonts/Geist-ExtraBold.woff2 +0 -0
- package/src/fonts/Geist-ExtraLight.woff2 +0 -0
- package/src/fonts/Geist-Light.woff2 +0 -0
- package/src/fonts/Geist-Medium.woff2 +0 -0
- package/src/fonts/Geist-Regular.woff2 +0 -0
- package/src/fonts/Geist-SemiBold.woff2 +0 -0
- package/src/fonts/Geist-Thin.woff2 +0 -0
- package/src/fonts/Geist[wght].woff2 +0 -0
- package/src/index.ts +7 -0
- package/src/page-wizard/PageWizard.tsx +163 -0
- package/src/page-wizard/SelectWizard.tsx +109 -0
- package/src/page-wizard/WizardSteps.tsx +207 -0
- package/src/page-wizard/service.ts +35 -0
- package/src/page-wizard/startPageWizardCommand.ts +27 -0
- package/src/page-wizard/steps/BuildPageStep.tsx +266 -0
- package/src/page-wizard/steps/CollectStep.tsx +233 -0
- package/src/page-wizard/steps/ComponentTypesSelector.tsx +443 -0
- package/src/page-wizard/steps/Components.tsx +193 -0
- package/src/page-wizard/steps/CreatePage.tsx +285 -0
- package/src/page-wizard/steps/CreatePageAndLayoutStep.tsx +384 -0
- package/src/page-wizard/steps/EditButton.tsx +34 -0
- package/src/page-wizard/steps/FieldEditor.tsx +102 -0
- package/src/page-wizard/steps/Generate.tsx +32 -0
- package/src/page-wizard/steps/ImagesStep.tsx +318 -0
- package/src/page-wizard/steps/LayoutStep.tsx +228 -0
- package/src/page-wizard/steps/SelectStep.tsx +256 -0
- package/src/page-wizard/steps/schema.ts +180 -0
- package/src/page-wizard/steps/usePageCreator.ts +279 -0
- package/src/splash-screen/NewPage.tsx +232 -0
- package/src/splash-screen/SectionHeadline.tsx +21 -0
- package/src/splash-screen/SplashScreen.tsx +156 -0
- package/src/tour/Tour.tsx +558 -0
- package/src/tour/default-tour.tsx +300 -0
- package/src/tour/preview-tour.tsx +127 -0
- package/src/types.ts +302 -0
- package/styles.css +476 -0
- package/tsconfig.build.json +21 -0
- package/tsconfig.json +11 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { TextField } from "./editor/fieldTypes";
|
|
2
|
+
import { ItemDescriptor, Version } from "./editor/pageModel";
|
|
3
|
+
|
|
4
|
+
export type Rendering = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export type EditableDictionary = {
|
|
11
|
+
[key: string]: TextField;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export type ValidationResult = {
|
|
15
|
+
item: ItemDescriptor;
|
|
16
|
+
results: SingleValidatorResult[];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type SingleValidatorResult = {
|
|
20
|
+
itemId: string;
|
|
21
|
+
itemName: string;
|
|
22
|
+
fieldId: string;
|
|
23
|
+
fieldName: string;
|
|
24
|
+
validator: string;
|
|
25
|
+
result: 0 | 1 | 2 | 3 | 4 | 5;
|
|
26
|
+
message: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type FieldDescriptor = {
|
|
30
|
+
item: ItemDescriptor;
|
|
31
|
+
fieldId: string;
|
|
32
|
+
fieldName?: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type LanguageVersions = {
|
|
36
|
+
languageCode: string;
|
|
37
|
+
countryCode: string;
|
|
38
|
+
name: string;
|
|
39
|
+
versions: number;
|
|
40
|
+
icon: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type AiPrompt = {
|
|
44
|
+
title: string;
|
|
45
|
+
prompt: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type EditData = {
|
|
49
|
+
loginUrl: string;
|
|
50
|
+
aiPrompts: AiPrompt[];
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type EditSession = {
|
|
54
|
+
sessionId: string;
|
|
55
|
+
url?: string;
|
|
56
|
+
user: User;
|
|
57
|
+
userAgent?: string;
|
|
58
|
+
page?: ItemDescriptor;
|
|
59
|
+
item?: ItemDescriptor;
|
|
60
|
+
fieldLock?: { item: ItemDescriptor; fieldId: string };
|
|
61
|
+
color: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type EditOperation = {
|
|
65
|
+
type:
|
|
66
|
+
| "edit-field"
|
|
67
|
+
| "remove-component"
|
|
68
|
+
| "move-component"
|
|
69
|
+
| "add-component"
|
|
70
|
+
| "synchronize-components"
|
|
71
|
+
| "link-component"
|
|
72
|
+
| "duplicate-components"
|
|
73
|
+
| "rename-item";
|
|
74
|
+
|
|
75
|
+
date: string;
|
|
76
|
+
id: string;
|
|
77
|
+
user?: User;
|
|
78
|
+
undone?: boolean;
|
|
79
|
+
sessionId?: string;
|
|
80
|
+
description: string;
|
|
81
|
+
canUndo?: boolean;
|
|
82
|
+
canRedo?: boolean;
|
|
83
|
+
focus?: string;
|
|
84
|
+
mainItem: ItemDescriptor;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type RenameItemOperation = EditOperation & {
|
|
88
|
+
type: "rename-item";
|
|
89
|
+
item: ItemDescriptor;
|
|
90
|
+
newName: string;
|
|
91
|
+
oldName?: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type EditFieldOperation = EditOperation & {
|
|
95
|
+
type: "edit-field";
|
|
96
|
+
item: ItemDescriptor;
|
|
97
|
+
fieldName: string;
|
|
98
|
+
fieldId: string;
|
|
99
|
+
fieldType?: string;
|
|
100
|
+
value?: any;
|
|
101
|
+
oldValue?: any;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type AddComponentOperation = EditOperation & {
|
|
105
|
+
type: "add-component";
|
|
106
|
+
componentTypeId: string;
|
|
107
|
+
placeholderKey: string;
|
|
108
|
+
placeholderIndex: number;
|
|
109
|
+
componentId?: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export type LinkComponentOperation = EditOperation & {
|
|
113
|
+
type: "link-component";
|
|
114
|
+
itemName?: string;
|
|
115
|
+
linkedComponentItem: ItemDescriptor;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export type MoveComponentOperation = EditOperation & {
|
|
119
|
+
type: "move-component";
|
|
120
|
+
placeholderKey: string;
|
|
121
|
+
placeholderIndex: number;
|
|
122
|
+
componentIds: string[];
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export type DuplicateComponentsOperation = EditOperation & {
|
|
126
|
+
type: "duplicate-components";
|
|
127
|
+
componentIds: string[];
|
|
128
|
+
sourceComponentIds: string[];
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
export type RemoveComponentOperation = EditOperation & {
|
|
132
|
+
type: "remove-component";
|
|
133
|
+
componentIds: string[];
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export type SynchronizeComponentsOperation = EditOperation & {
|
|
137
|
+
type: "synchronize-components";
|
|
138
|
+
placeholders: PlaceholderToSynchronize[];
|
|
139
|
+
delete: boolean;
|
|
140
|
+
itemsCreated?: ItemDescriptor[];
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export type PlaceholderToSynchronize = {
|
|
144
|
+
name?: string;
|
|
145
|
+
item?: ItemDescriptor | null;
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
export type User = {
|
|
149
|
+
name: string;
|
|
150
|
+
displayName?: string;
|
|
151
|
+
ai: boolean;
|
|
152
|
+
email?: string;
|
|
153
|
+
isLimitedPreviewUser?: boolean;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
export type HistoryEntry = {
|
|
157
|
+
name: string;
|
|
158
|
+
path: string;
|
|
159
|
+
id: string;
|
|
160
|
+
version: number;
|
|
161
|
+
hasLayout: boolean;
|
|
162
|
+
icon?: string;
|
|
163
|
+
templateName: string;
|
|
164
|
+
language: string;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
export type FieldHistoryItem = {
|
|
168
|
+
user: string;
|
|
169
|
+
date: string;
|
|
170
|
+
ai: boolean;
|
|
171
|
+
value: unknown;
|
|
172
|
+
rawValue: string;
|
|
173
|
+
version: number;
|
|
174
|
+
undone: boolean;
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
export type Site = {
|
|
178
|
+
name: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
export type ExecuteEditOptions = {
|
|
182
|
+
refresh: "none" | "immediate" | "delayed" | "waitForQuietPeriod";
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export type Workbox = {
|
|
186
|
+
items: WorkboxItem[];
|
|
187
|
+
};
|
|
188
|
+
export type WorkboxItem = {
|
|
189
|
+
item: ItemDescriptor;
|
|
190
|
+
lockedBy: string;
|
|
191
|
+
canLock: boolean;
|
|
192
|
+
hasLock: boolean;
|
|
193
|
+
publishStatus: {
|
|
194
|
+
[target: string]: string;
|
|
195
|
+
};
|
|
196
|
+
workflowState: string;
|
|
197
|
+
isFinalState: boolean;
|
|
198
|
+
isPublishable: boolean;
|
|
199
|
+
isPublished: boolean;
|
|
200
|
+
path: string;
|
|
201
|
+
name: string;
|
|
202
|
+
workflowCommands: {
|
|
203
|
+
name: string;
|
|
204
|
+
id: string;
|
|
205
|
+
}[];
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export type InsertOption = {
|
|
209
|
+
typeId: string;
|
|
210
|
+
name: string;
|
|
211
|
+
icon: string;
|
|
212
|
+
group?: string;
|
|
213
|
+
svg?: string;
|
|
214
|
+
isInvalid: boolean;
|
|
215
|
+
message?: string;
|
|
216
|
+
isHidden: any;
|
|
217
|
+
compatibleTemplates?: string[];
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
export type LanguagesAndVersions = {
|
|
221
|
+
languages: LanguageVersions[];
|
|
222
|
+
versions: Version[];
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type IndexStatus = {
|
|
226
|
+
name: string;
|
|
227
|
+
exists: boolean;
|
|
228
|
+
|
|
229
|
+
errors: Error[];
|
|
230
|
+
hasRebuildJob: boolean;
|
|
231
|
+
settingsItemId?: string;
|
|
232
|
+
rebuildJobItemId?: string;
|
|
233
|
+
serviceUrl?: string;
|
|
234
|
+
lastRebuildStartDateTime?: Date;
|
|
235
|
+
languages: {
|
|
236
|
+
[language: string]: {
|
|
237
|
+
lastUpdated: Date;
|
|
238
|
+
numberOfItems: number;
|
|
239
|
+
status: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
canRebuild: boolean;
|
|
243
|
+
isRunning: boolean;
|
|
244
|
+
rebuildCount: number;
|
|
245
|
+
rebuildTokensCount: number;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export type Error = {
|
|
249
|
+
message: string;
|
|
250
|
+
details: string;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type Comment = {
|
|
254
|
+
id: string;
|
|
255
|
+
isNew: boolean;
|
|
256
|
+
itemId: string;
|
|
257
|
+
itemName?: string;
|
|
258
|
+
mainItemId: string;
|
|
259
|
+
language: string;
|
|
260
|
+
version: number;
|
|
261
|
+
fieldId?: string;
|
|
262
|
+
fieldName?: string;
|
|
263
|
+
text?: string;
|
|
264
|
+
fieldValue?: string | null;
|
|
265
|
+
rangeStart?: number;
|
|
266
|
+
rangeEnd?: number;
|
|
267
|
+
author?: string;
|
|
268
|
+
authorDisplayName?: string;
|
|
269
|
+
created?: string;
|
|
270
|
+
isResolved?: boolean;
|
|
271
|
+
resolvedBy?: string;
|
|
272
|
+
resolvedDate?: string;
|
|
273
|
+
position: number;
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export type Reviewer = {
|
|
277
|
+
name: string;
|
|
278
|
+
email: string;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type Review = {
|
|
282
|
+
id: string;
|
|
283
|
+
reviewerName: string;
|
|
284
|
+
reviewerEmail: string;
|
|
285
|
+
itemId: string;
|
|
286
|
+
language: string;
|
|
287
|
+
version: number;
|
|
288
|
+
invitationSentDate?: string;
|
|
289
|
+
approvalDate?: string;
|
|
290
|
+
rejectedDate?: string;
|
|
291
|
+
};
|
|
292
|
+
|
|
293
|
+
export type SystemStatusMessage = {
|
|
294
|
+
message: string;
|
|
295
|
+
severity: "info" | "warning" | "error";
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
export type SystemStatus = {
|
|
299
|
+
|
|
300
|
+
messages: SystemStatusMessage[];
|
|
301
|
+
};
|
|
302
|
+
|