@alpaca-editor/core 1.0.3939 → 1.0.3942
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/ActionButton.d.ts +1 -0
- package/dist/components/ActionButton.js +2 -2
- package/dist/components/ActionButton.js.map +1 -1
- package/dist/editor/FieldActionsOverlay.d.ts +1 -0
- package/dist/editor/FieldActionsOverlay.js +2 -11
- package/dist/editor/FieldActionsOverlay.js.map +1 -1
- package/dist/editor/PictureCropper.js +65 -23
- package/dist/editor/PictureCropper.js.map +1 -1
- package/dist/editor/PictureEditor.js +16 -2
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/Titlebar.js +1 -1
- package/dist/editor/Titlebar.js.map +1 -1
- package/dist/editor/ai/GhostWriter.js +21 -2
- package/dist/editor/ai/GhostWriter.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +7 -3
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.d.ts +5 -0
- package/dist/editor/media-selector/MediaFolderBrowser.js +77 -0
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -0
- package/dist/editor/media-selector/MediaSelector.js +1 -1
- package/dist/editor/media-selector/MediaSelector.js.map +1 -1
- package/dist/editor/media-selector/Thumbnails.js +2 -2
- package/dist/editor/media-selector/index.d.ts +8 -0
- package/dist/editor/media-selector/index.js +9 -0
- package/dist/editor/media-selector/index.js.map +1 -0
- package/dist/editor/menubar/BrowseHistory.js +1 -1
- package/dist/editor/menubar/PageSelector.js +39 -15
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +37 -11
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -1
- package/dist/editor/reviews/Comment.js +1 -1
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/services/aiService.js +0 -1
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/sidebar/ComponentTree.js +3 -4
- package/dist/editor/sidebar/ComponentTree.js.map +1 -1
- package/dist/editor/ui/SimpleTabs.d.ts +1 -0
- package/dist/editor/ui/SimpleTabs.js +3 -3
- package/dist/editor/ui/SimpleTabs.js.map +1 -1
- package/dist/editor/ui/Splitter.js +61 -6
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.d.ts +4 -0
- package/dist/editor/views/MediaFolderEditView.js +40 -0
- package/dist/editor/views/MediaFolderEditView.js.map +1 -0
- package/dist/editor/views/SingleEditView.js +9 -1
- package/dist/editor/views/SingleEditView.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/styles.css +61 -5
- package/package.json +8 -2
- package/.prettierrc +0 -3
- package/build.css +0 -3
- package/components.json +0 -21
- package/eslint.config.mjs +0 -4
- package/images/bg-shape-black.webp +0 -0
- package/images/wizard-bg.png +0 -0
- package/images/wizard-tour.png +0 -0
- package/images/wizard.png +0 -0
- package/src/client-components/api.ts +0 -6
- package/src/client-components/index.ts +0 -19
- package/src/components/ActionButton.tsx +0 -41
- package/src/components/Error.tsx +0 -57
- package/src/components/ui/CardConnector.tsx +0 -56
- package/src/components/ui/button.tsx +0 -62
- package/src/components/ui/card.tsx +0 -372
- package/src/components/ui/context-menu.tsx +0 -250
- package/src/config/config.tsx +0 -917
- package/src/config/types.ts +0 -286
- package/src/editor/ComponentInfo.tsx +0 -90
- package/src/editor/ConfirmationDialog.tsx +0 -103
- package/src/editor/ContentTree.tsx +0 -730
- package/src/editor/ContextMenu.tsx +0 -230
- package/src/editor/Editor.tsx +0 -90
- package/src/editor/EditorWarning.tsx +0 -34
- package/src/editor/EditorWarnings.tsx +0 -33
- package/src/editor/FieldActionsOverlay.tsx +0 -307
- package/src/editor/FieldEditorPopup.tsx +0 -65
- package/src/editor/FieldHistory.tsx +0 -75
- package/src/editor/FieldList.tsx +0 -190
- package/src/editor/FieldListField.tsx +0 -391
- package/src/editor/FieldListFieldWithFallbacks.tsx +0 -217
- package/src/editor/FloatingToolbar.tsx +0 -163
- package/src/editor/ImageEditor.tsx +0 -128
- package/src/editor/ItemInfo.tsx +0 -90
- package/src/editor/LinkEditorDialog.tsx +0 -196
- package/src/editor/MainLayout.tsx +0 -95
- package/src/editor/MobileLayout.tsx +0 -68
- package/src/editor/NewEditorClient.tsx +0 -11
- package/src/editor/PictureCropper.tsx +0 -503
- package/src/editor/PictureEditor.tsx +0 -277
- package/src/editor/PictureEditorDialog.tsx +0 -381
- package/src/editor/PublishDialog.ignore +0 -74
- package/src/editor/ScrollingContentTree.tsx +0 -67
- package/src/editor/Terminal.tsx +0 -227
- package/src/editor/Titlebar.tsx +0 -104
- package/src/editor/ai/AiPopup.tsx +0 -59
- package/src/editor/ai/AiResponseMessage.tsx +0 -106
- package/src/editor/ai/AiTerminal.tsx +0 -503
- package/src/editor/ai/AiToolCall.tsx +0 -61
- package/src/editor/ai/EditorAiTerminal.tsx +0 -20
- package/src/editor/ai/GhostWriter.tsx +0 -432
- package/src/editor/ai/aiPageModel.ts +0 -108
- package/src/editor/ai/editorAiContext.ts +0 -18
- package/src/editor/client/AboutDialog.tsx +0 -44
- package/src/editor/client/EditorClient.tsx +0 -2241
- package/src/editor/client/GenericDialog.tsx +0 -50
- package/src/editor/client/editContext.ts +0 -416
- package/src/editor/client/helpers.ts +0 -44
- package/src/editor/client/itemsRepository.ts +0 -574
- package/src/editor/client/operations.ts +0 -768
- package/src/editor/client/pageModelBuilder.ts +0 -219
- package/src/editor/commands/commands.ts +0 -22
- package/src/editor/commands/componentCommands.tsx +0 -424
- package/src/editor/commands/createVersionCommand.ts +0 -33
- package/src/editor/commands/deleteVersionCommand.ts +0 -71
- package/src/editor/commands/itemCommands.tsx +0 -351
- package/src/editor/commands/localizeItem/LocalizeItemDialog.tsx +0 -201
- package/src/editor/commands/localizeItem/LocalizeItemUtils.ts +0 -27
- package/src/editor/commands/undo.ts +0 -39
- package/src/editor/component-designer/ComponentDesigner.tsx +0 -70
- package/src/editor/component-designer/ComponentDesignerAiTerminal.tsx +0 -11
- package/src/editor/component-designer/ComponentDesignerMenu.tsx +0 -91
- package/src/editor/component-designer/ComponentEditor.tsx +0 -97
- package/src/editor/component-designer/ComponentRenderingCodeEditor.tsx +0 -31
- package/src/editor/component-designer/ComponentRenderingEditor.tsx +0 -104
- package/src/editor/component-designer/ComponentsDropdown.tsx +0 -39
- package/src/editor/component-designer/PlaceholdersEditor.tsx +0 -179
- package/src/editor/component-designer/RenderingsDropdown.tsx +0 -36
- package/src/editor/component-designer/TemplateEditor.tsx +0 -236
- package/src/editor/component-designer/aiContext.ts +0 -23
- package/src/editor/componentTreeHelper.tsx +0 -116
- package/src/editor/context-menu/CopyMoveMenu.tsx +0 -103
- package/src/editor/context-menu/InsertMenu.tsx +0 -347
- package/src/editor/control-center/About.tsx +0 -342
- package/src/editor/control-center/ControlCenterMenu.tsx +0 -76
- package/src/editor/control-center/IndexOverview.tsx +0 -50
- package/src/editor/control-center/IndexSettings.tsx +0 -266
- package/src/editor/control-center/Info.tsx +0 -104
- package/src/editor/control-center/QuotaInfo.tsx +0 -301
- package/src/editor/control-center/Status.tsx +0 -113
- package/src/editor/control-center/WebSocketMessages.tsx +0 -155
- package/src/editor/editor-warnings/ItemLocked.tsx +0 -63
- package/src/editor/editor-warnings/NoLanguageWriteAccess.tsx +0 -22
- package/src/editor/editor-warnings/NoWorkflowWriteAccess.tsx +0 -23
- package/src/editor/editor-warnings/NoWriteAccess.tsx +0 -16
- package/src/editor/editor-warnings/ValidationErrors.tsx +0 -54
- package/src/editor/field-types/AttachmentEditor.tsx +0 -9
- package/src/editor/field-types/CheckboxEditor.tsx +0 -47
- package/src/editor/field-types/DropLinkEditor.tsx +0 -80
- package/src/editor/field-types/DropListEditor.tsx +0 -84
- package/src/editor/field-types/ImageFieldEditor.tsx +0 -65
- package/src/editor/field-types/InternalLinkFieldEditor.tsx +0 -117
- package/src/editor/field-types/LinkFieldEditor.tsx +0 -85
- package/src/editor/field-types/MultiLineText.tsx +0 -82
- package/src/editor/field-types/PictureFieldEditor.tsx +0 -121
- package/src/editor/field-types/RawEditor.tsx +0 -53
- package/src/editor/field-types/ReactQuill.tsx +0 -580
- package/src/editor/field-types/RichTextEditor.tsx +0 -22
- package/src/editor/field-types/RichTextEditorComponent.tsx +0 -127
- package/src/editor/field-types/SingleLineText.tsx +0 -174
- package/src/editor/field-types/TreeListEditor.tsx +0 -261
- package/src/editor/fieldTypes.ts +0 -140
- package/src/editor/media-selector/AiImageSearch.tsx +0 -185
- package/src/editor/media-selector/AiImageSearchPrompt.tsx +0 -94
- package/src/editor/media-selector/MediaSelector.tsx +0 -42
- package/src/editor/media-selector/Preview.tsx +0 -14
- package/src/editor/media-selector/Thumbnails.tsx +0 -48
- package/src/editor/media-selector/TreeSelector.tsx +0 -292
- package/src/editor/media-selector/UploadZone.tsx +0 -137
- package/src/editor/menubar/ActionsMenu.tsx +0 -94
- package/src/editor/menubar/ActiveUsers.tsx +0 -17
- package/src/editor/menubar/ApproveAndPublish.tsx +0 -18
- package/src/editor/menubar/BrowseHistory.tsx +0 -28
- package/src/editor/menubar/ItemLanguageVersion.tsx +0 -76
- package/src/editor/menubar/LanguageSelector.tsx +0 -226
- package/src/editor/menubar/Menu.tsx +0 -83
- package/src/editor/menubar/NavButtons.tsx +0 -74
- package/src/editor/menubar/PageSelector.tsx +0 -166
- package/src/editor/menubar/PageViewerControls.tsx +0 -120
- package/src/editor/menubar/PreviewSecondaryControls.tsx +0 -18
- package/src/editor/menubar/SecondaryControls.tsx +0 -45
- package/src/editor/menubar/Separator.tsx +0 -12
- package/src/editor/menubar/SiteInfo.tsx +0 -53
- package/src/editor/menubar/User.tsx +0 -27
- package/src/editor/menubar/VersionSelector.tsx +0 -142
- package/src/editor/page-editor-chrome/CommentHighlighting.tsx +0 -307
- package/src/editor/page-editor-chrome/CommentHighlightings.tsx +0 -35
- package/src/editor/page-editor-chrome/FieldActionIndicator.tsx +0 -59
- package/src/editor/page-editor-chrome/FieldActionIndicators.tsx +0 -23
- package/src/editor/page-editor-chrome/FieldEditedIndicator.tsx +0 -64
- package/src/editor/page-editor-chrome/FieldEditedIndicators.tsx +0 -35
- package/src/editor/page-editor-chrome/FrameMenu.tsx +0 -338
- package/src/editor/page-editor-chrome/FrameMenus.tsx +0 -48
- package/src/editor/page-editor-chrome/InlineEditor.tsx +0 -765
- package/src/editor/page-editor-chrome/LockedFieldIndicator.tsx +0 -61
- package/src/editor/page-editor-chrome/NoLayout.tsx +0 -36
- package/src/editor/page-editor-chrome/PageEditorChrome.tsx +0 -122
- package/src/editor/page-editor-chrome/PictureEditorOverlay.tsx +0 -161
- package/src/editor/page-editor-chrome/PlaceholderDropZone.tsx +0 -169
- package/src/editor/page-editor-chrome/PlaceholderDropZones.tsx +0 -315
- package/src/editor/page-editor-chrome/SuggestionHighlighting.tsx +0 -300
- package/src/editor/page-editor-chrome/SuggestionHighlightings.tsx +0 -40
- package/src/editor/page-editor-chrome/useInlineAICompletion.tsx +0 -791
- package/src/editor/page-viewer/DeviceToolbar.tsx +0 -70
- package/src/editor/page-viewer/EditorForm.tsx +0 -258
- package/src/editor/page-viewer/MiniMap.tsx +0 -362
- package/src/editor/page-viewer/PageViewer.tsx +0 -169
- package/src/editor/page-viewer/PageViewerFrame.tsx +0 -1022
- package/src/editor/page-viewer/pageModelSkeletonBuilder.ts +0 -412
- package/src/editor/page-viewer/pageViewContext.ts +0 -186
- package/src/editor/pageModel.ts +0 -220
- package/src/editor/picture-shared.tsx +0 -53
- package/src/editor/reviews/Comment.tsx +0 -307
- package/src/editor/reviews/Comments.tsx +0 -125
- package/src/editor/reviews/DiffView.tsx +0 -109
- package/src/editor/reviews/PreviewInfo.tsx +0 -35
- package/src/editor/reviews/Reviews.tsx +0 -280
- package/src/editor/reviews/SuggestedEdit.tsx +0 -316
- package/src/editor/reviews/reviewCommands.tsx +0 -47
- package/src/editor/reviews/useReviews.tsx +0 -70
- package/src/editor/services/aiService.ts +0 -174
- package/src/editor/services/componentDesignerService.ts +0 -151
- package/src/editor/services/contentService.ts +0 -180
- package/src/editor/services/editService.ts +0 -488
- package/src/editor/services/indexService.ts +0 -24
- package/src/editor/services/reviewsService.ts +0 -53
- package/src/editor/services/serviceHelper.ts +0 -95
- package/src/editor/services/suggestedEditsService.ts +0 -39
- package/src/editor/services/systemService.ts +0 -5
- package/src/editor/services/translationService.ts +0 -21
- package/src/editor/services-server/api.ts +0 -150
- package/src/editor/services-server/graphQL.ts +0 -106
- package/src/editor/sidebar/ComponentPalette.tsx +0 -161
- package/src/editor/sidebar/ComponentTree.tsx +0 -548
- package/src/editor/sidebar/ComponentTree2.tsxx +0 -490
- package/src/editor/sidebar/Debug.tsx +0 -111
- package/src/editor/sidebar/DictionaryEditor.tsx +0 -261
- package/src/editor/sidebar/EditHistory.tsx +0 -134
- package/src/editor/sidebar/GraphQL.tsx +0 -164
- package/src/editor/sidebar/Insert.tsx +0 -35
- package/src/editor/sidebar/MainContentTree.tsx +0 -102
- package/src/editor/sidebar/Performance.tsx +0 -53
- package/src/editor/sidebar/Sessions.tsx +0 -35
- package/src/editor/sidebar/Sidebar.tsx +0 -20
- package/src/editor/sidebar/SidebarView.tsx +0 -152
- package/src/editor/sidebar/Translations.tsx +0 -295
- package/src/editor/sidebar/Validation.tsx +0 -102
- package/src/editor/sidebar/ViewSelector.tsx +0 -60
- package/src/editor/sidebar/Workbox.tsx +0 -209
- package/src/editor/ui/CenteredMessage.tsx +0 -7
- package/src/editor/ui/CopyMoveTargetSelectorDialog.tsx +0 -81
- package/src/editor/ui/CopyToClipboardButton.tsx +0 -24
- package/src/editor/ui/DialogButtons.tsx +0 -11
- package/src/editor/ui/Icons.tsx +0 -709
- package/src/editor/ui/ItemList.tsx +0 -76
- package/src/editor/ui/ItemNameDialogNew.tsx +0 -118
- package/src/editor/ui/ItemSearch.tsx +0 -153
- package/src/editor/ui/PerfectTree.tsx +0 -571
- package/src/editor/ui/Section.tsx +0 -35
- package/src/editor/ui/SimpleIconButton.tsx +0 -54
- package/src/editor/ui/SimpleMenu.tsx +0 -40
- package/src/editor/ui/SimpleTable.tsx +0 -60
- package/src/editor/ui/SimpleTabs.tsx +0 -55
- package/src/editor/ui/SimpleToolbar.tsx +0 -7
- package/src/editor/ui/Spinner.tsx +0 -9
- package/src/editor/ui/Splitter.tsx +0 -314
- package/src/editor/ui/StackedPanels.tsx +0 -134
- package/src/editor/ui/Toolbar.tsx +0 -7
- package/src/editor/utils/id-helper.ts +0 -3
- package/src/editor/utils/insertOptions.ts +0 -69
- package/src/editor/utils/itemutils.ts +0 -29
- package/src/editor/utils/useMemoDebug.ts +0 -28
- package/src/editor/utils.ts +0 -486
- package/src/editor/views/CompareView.tsx +0 -245
- package/src/editor/views/EditView.tsx +0 -27
- package/src/editor/views/ItemEditor.tsx +0 -58
- package/src/editor/views/SingleEditView.tsx +0 -46
- 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/fonts/index.ts +0 -10
- package/src/index.ts +0 -23
- package/src/lib/safelist.tsx +0 -16
- package/src/lib/utils.ts +0 -6
- package/src/page-wizard/PageWizard.tsx +0 -139
- package/src/page-wizard/WizardBox.tsx +0 -4
- package/src/page-wizard/WizardBoxConnector.tsx +0 -56
- package/src/page-wizard/WizardSteps.tsx +0 -458
- package/src/page-wizard/service.ts +0 -35
- package/src/page-wizard/startPageWizardCommand.ts +0 -26
- package/src/page-wizard/steps/BuildPageStep.tsx +0 -259
- package/src/page-wizard/steps/CollectStep.tsx +0 -296
- package/src/page-wizard/steps/ComponentTypesSelector.tsx +0 -454
- package/src/page-wizard/steps/Components.tsx +0 -193
- package/src/page-wizard/steps/ContentStep.tsx +0 -890
- package/src/page-wizard/steps/EditButton.tsx +0 -34
- package/src/page-wizard/steps/FieldEditor.tsx +0 -102
- package/src/page-wizard/steps/Generate.tsx +0 -60
- package/src/page-wizard/steps/ImagesStep.tsx +0 -382
- package/src/page-wizard/steps/LayoutStep.tsx +0 -227
- package/src/page-wizard/steps/MetaDataStep.tsx +0 -173
- package/src/page-wizard/steps/SelectStep.tsx +0 -281
- package/src/page-wizard/steps/schema.ts +0 -180
- package/src/page-wizard/steps/usePageCreator.ts +0 -325
- package/src/page-wizard/usePageWizard.ts +0 -79
- package/src/revision.ts +0 -2
- package/src/splash-screen/NewPage.tsx +0 -294
- package/src/splash-screen/OpenPage.tsx +0 -113
- package/src/splash-screen/RecentPages.tsx +0 -123
- package/src/splash-screen/SectionHeadline.tsx +0 -21
- package/src/splash-screen/SplashScreen.tsx +0 -195
- package/src/tour/Tour.tsx +0 -566
- package/src/tour/default-tour.tsx +0 -301
- package/src/tour/preview-tour.tsx +0 -128
- package/src/types.ts +0 -335
- package/styles.css +0 -765
- package/tsconfig.build.json +0 -31
- package/tsconfig.json +0 -14
package/src/types.ts
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
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
|
-
itemId: string;
|
|
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 View = {
|
|
149
|
-
name: string;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
export type UserInfo = {
|
|
153
|
-
user: User;
|
|
154
|
-
views: View[];
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export type User = {
|
|
158
|
-
name: string;
|
|
159
|
-
displayName?: string;
|
|
160
|
-
ai: boolean;
|
|
161
|
-
email?: string;
|
|
162
|
-
isLimitedPreviewUser?: boolean;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export type HistoryEntry = {
|
|
166
|
-
name: string;
|
|
167
|
-
path: string;
|
|
168
|
-
id: string;
|
|
169
|
-
version: number;
|
|
170
|
-
hasLayout: boolean;
|
|
171
|
-
icon?: string;
|
|
172
|
-
templateName: string;
|
|
173
|
-
language: string;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export type FieldHistoryItem = {
|
|
177
|
-
user: string;
|
|
178
|
-
date: string;
|
|
179
|
-
ai: boolean;
|
|
180
|
-
value: unknown;
|
|
181
|
-
rawValue: string;
|
|
182
|
-
version: number;
|
|
183
|
-
undone: boolean;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export type Site = {
|
|
187
|
-
name: string;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
export type ExecuteEditOptions = {
|
|
191
|
-
refresh: "none" | "immediate" | "delayed" | "waitForQuietPeriod";
|
|
192
|
-
};
|
|
193
|
-
|
|
194
|
-
export type Workbox = {
|
|
195
|
-
items: WorkboxItem[];
|
|
196
|
-
};
|
|
197
|
-
export type WorkboxItem = {
|
|
198
|
-
item: ItemDescriptor;
|
|
199
|
-
lockedBy: string;
|
|
200
|
-
canLock: boolean;
|
|
201
|
-
hasLock: boolean;
|
|
202
|
-
publishStatus: {
|
|
203
|
-
[target: string]: string;
|
|
204
|
-
};
|
|
205
|
-
workflowState: string;
|
|
206
|
-
isFinalState: boolean;
|
|
207
|
-
isPublishable: boolean;
|
|
208
|
-
isPublished: boolean;
|
|
209
|
-
path: string;
|
|
210
|
-
name: string;
|
|
211
|
-
workflowCommands: {
|
|
212
|
-
name: string;
|
|
213
|
-
id: string;
|
|
214
|
-
}[];
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
export type InsertOption = {
|
|
218
|
-
typeId: string;
|
|
219
|
-
name: string;
|
|
220
|
-
icon: string;
|
|
221
|
-
group?: string;
|
|
222
|
-
svg?: string;
|
|
223
|
-
isInvalid: boolean;
|
|
224
|
-
message?: string;
|
|
225
|
-
isHidden: any;
|
|
226
|
-
compatibleTypeIds?: string[];
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
export type LanguagesAndVersions = {
|
|
230
|
-
languages: LanguageVersions[];
|
|
231
|
-
versions: Version[];
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
export type IndexStatus = {
|
|
235
|
-
name: string;
|
|
236
|
-
exists: boolean;
|
|
237
|
-
|
|
238
|
-
errors: Error[];
|
|
239
|
-
hasRebuildJob: boolean;
|
|
240
|
-
settingsItemId?: string;
|
|
241
|
-
rebuildJobItemId?: string;
|
|
242
|
-
serviceUrl?: string;
|
|
243
|
-
lastRebuildStartDateTime?: Date;
|
|
244
|
-
languages: {
|
|
245
|
-
[language: string]: {
|
|
246
|
-
lastUpdated: Date;
|
|
247
|
-
numberOfItems: number;
|
|
248
|
-
status: string;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
canRebuild: boolean;
|
|
252
|
-
isRunning: boolean;
|
|
253
|
-
rebuildCount: number;
|
|
254
|
-
rebuildTokensCount: number;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
export type Error = {
|
|
258
|
-
message: string;
|
|
259
|
-
details: string;
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
export type Comment = {
|
|
263
|
-
id: string;
|
|
264
|
-
isNew: boolean;
|
|
265
|
-
itemId: string;
|
|
266
|
-
itemName?: string;
|
|
267
|
-
mainItemId: string;
|
|
268
|
-
language: string;
|
|
269
|
-
version: number;
|
|
270
|
-
fieldId?: string;
|
|
271
|
-
fieldName?: string;
|
|
272
|
-
text?: string;
|
|
273
|
-
fieldValue?: string | null;
|
|
274
|
-
rangeStart?: number;
|
|
275
|
-
rangeEnd?: number;
|
|
276
|
-
author?: string;
|
|
277
|
-
authorDisplayName?: string;
|
|
278
|
-
created?: string;
|
|
279
|
-
isResolved?: boolean;
|
|
280
|
-
resolvedBy?: string;
|
|
281
|
-
resolvedDate?: string;
|
|
282
|
-
position: number;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
export type Reviewer = {
|
|
286
|
-
name: string;
|
|
287
|
-
email: string;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
export type Review = {
|
|
291
|
-
id: string;
|
|
292
|
-
reviewerName: string;
|
|
293
|
-
reviewerEmail: string;
|
|
294
|
-
itemId: string;
|
|
295
|
-
language: string;
|
|
296
|
-
version: number;
|
|
297
|
-
invitationSentDate?: string;
|
|
298
|
-
approvalDate?: string;
|
|
299
|
-
rejectedDate?: string;
|
|
300
|
-
};
|
|
301
|
-
|
|
302
|
-
export type SystemStatusMessage = {
|
|
303
|
-
message: string;
|
|
304
|
-
severity: "info" | "warning" | "error";
|
|
305
|
-
};
|
|
306
|
-
|
|
307
|
-
export type SystemStatus = {
|
|
308
|
-
messages: SystemStatusMessage[];
|
|
309
|
-
};
|
|
310
|
-
|
|
311
|
-
export interface SuggestedEdit {
|
|
312
|
-
id: string;
|
|
313
|
-
mainItemId: string;
|
|
314
|
-
mainItemLanguage: string;
|
|
315
|
-
mainItemVersion: number;
|
|
316
|
-
itemId: string;
|
|
317
|
-
fieldId: string;
|
|
318
|
-
oldValue: string;
|
|
319
|
-
newValue: string;
|
|
320
|
-
author?: string;
|
|
321
|
-
authorDisplayName?: string;
|
|
322
|
-
created?: string;
|
|
323
|
-
status: string;
|
|
324
|
-
updatedBy?: string;
|
|
325
|
-
updated?: string;
|
|
326
|
-
comments?: string;
|
|
327
|
-
type: string;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
export type ContentEditorWarning = {
|
|
331
|
-
title: string;
|
|
332
|
-
text: string;
|
|
333
|
-
icon?: string;
|
|
334
|
-
isExclusive?: boolean;
|
|
335
|
-
};
|