@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
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { WizardField } from "../PageWizard";
|
|
2
|
-
|
|
3
|
-
interface EditButtonProps {
|
|
4
|
-
field: WizardField;
|
|
5
|
-
onEdit: () => void;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function EditButton({ field, onEdit, className = "" }: EditButtonProps) {
|
|
10
|
-
return (
|
|
11
|
-
<button
|
|
12
|
-
type="button"
|
|
13
|
-
onClick={onEdit}
|
|
14
|
-
className={`inline-flex items-center justify-center p-1 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-md shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 ${className}`}
|
|
15
|
-
aria-label={`Edit ${field.name || "field"}`}
|
|
16
|
-
title={`Edit ${field.name || "field"}`}
|
|
17
|
-
>
|
|
18
|
-
<svg
|
|
19
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
20
|
-
className="h-4 w-4"
|
|
21
|
-
fill="none"
|
|
22
|
-
viewBox="0 0 24 24"
|
|
23
|
-
stroke="currentColor"
|
|
24
|
-
>
|
|
25
|
-
<path
|
|
26
|
-
strokeLinecap="round"
|
|
27
|
-
strokeLinejoin="round"
|
|
28
|
-
strokeWidth={2}
|
|
29
|
-
d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
|
|
30
|
-
/>
|
|
31
|
-
</svg>
|
|
32
|
-
</button>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { useState, useEffect } from "react";
|
|
2
|
-
|
|
3
|
-
import { WizardField } from "../PageWizard";
|
|
4
|
-
import { TextField } from "../../editor/fieldTypes";
|
|
5
|
-
|
|
6
|
-
import { Editor } from "primereact/editor";
|
|
7
|
-
|
|
8
|
-
export function FieldEditor({
|
|
9
|
-
field,
|
|
10
|
-
onFieldEdited,
|
|
11
|
-
}: {
|
|
12
|
-
field: WizardField;
|
|
13
|
-
onFieldEdited: () => void;
|
|
14
|
-
}) {
|
|
15
|
-
const [fieldValue, setFieldValue] = useState<string>("");
|
|
16
|
-
const [isEditing, setIsEditing] = useState<boolean>(false);
|
|
17
|
-
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
if (isEditing) {
|
|
20
|
-
const value = (field as TextField).value;
|
|
21
|
-
setFieldValue(typeof value === "string" ? value : "");
|
|
22
|
-
}
|
|
23
|
-
}, [isEditing]);
|
|
24
|
-
|
|
25
|
-
if (!isEditing) {
|
|
26
|
-
return (
|
|
27
|
-
<div
|
|
28
|
-
onClick={() => setIsEditing(true)}
|
|
29
|
-
className="cursor-pointer mb-2"
|
|
30
|
-
>
|
|
31
|
-
<div className="font-bold text-gray-900">{field.name}:</div>
|
|
32
|
-
<div
|
|
33
|
-
className="text-gray-700 [&_ul]:list-disc [&_ul]:pl-5 [&_li]:my-1 [&_p]:my-1"
|
|
34
|
-
dangerouslySetInnerHTML={{ __html: field.value }}
|
|
35
|
-
></div>
|
|
36
|
-
{/* <SimpleIconButton
|
|
37
|
-
|
|
38
|
-
label="Edit"
|
|
39
|
-
icon="pi pi-pencil"
|
|
40
|
-
/> */}
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
const isRichText = field.type === "Rich Text";
|
|
46
|
-
|
|
47
|
-
const handleSave = () => {
|
|
48
|
-
console.log(`Saving changes to field ${field.name}:`, fieldValue);
|
|
49
|
-
field.value = fieldValue;
|
|
50
|
-
setIsEditing(false);
|
|
51
|
-
onFieldEdited();
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
const handleCancel = () => {
|
|
55
|
-
setIsEditing(false);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<div className="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-1000">
|
|
60
|
-
<div className="bg-white rounded-lg shadow-xl p-6 w-full max-w-lg">
|
|
61
|
-
<h3 className="text-lg font-medium text-gray-900 mb-4">
|
|
62
|
-
Edit {field.name || "Field"}
|
|
63
|
-
</h3>
|
|
64
|
-
|
|
65
|
-
{isRichText ? (
|
|
66
|
-
<div className="mb-4">
|
|
67
|
-
<Editor
|
|
68
|
-
className="w-full h-64 p-2 border border-gray-300 rounded-md"
|
|
69
|
-
value={fieldValue}
|
|
70
|
-
onTextChange={(e) => setFieldValue(e.htmlValue || "")}
|
|
71
|
-
/>
|
|
72
|
-
</div>
|
|
73
|
-
) : (
|
|
74
|
-
<div className="mb-4">
|
|
75
|
-
<textarea
|
|
76
|
-
className="w-full p-2 border border-gray-300 rounded-md"
|
|
77
|
-
value={fieldValue}
|
|
78
|
-
onChange={(e) => setFieldValue(e.target.value)}
|
|
79
|
-
/>
|
|
80
|
-
</div>
|
|
81
|
-
)}
|
|
82
|
-
|
|
83
|
-
<div className="flex justify-end space-x-3">
|
|
84
|
-
<button
|
|
85
|
-
type="button"
|
|
86
|
-
onClick={handleCancel}
|
|
87
|
-
className="inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
|
88
|
-
>
|
|
89
|
-
Cancel
|
|
90
|
-
</button>
|
|
91
|
-
<button
|
|
92
|
-
type="button"
|
|
93
|
-
onClick={handleSave}
|
|
94
|
-
className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
|
|
95
|
-
>
|
|
96
|
-
Save
|
|
97
|
-
</button>
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
);
|
|
102
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { classNames } from "primereact/utils";
|
|
2
|
-
import { Logo } from "../../editor/ui/Icons";
|
|
3
|
-
|
|
4
|
-
interface GenerateProps {
|
|
5
|
-
title: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function Generate({ title }: GenerateProps) {
|
|
9
|
-
return (
|
|
10
|
-
<>
|
|
11
|
-
<style>
|
|
12
|
-
{`
|
|
13
|
-
@keyframes colorShift {
|
|
14
|
-
0% { color: #9650FB; }
|
|
15
|
-
25% { color: #FF6B9D; }
|
|
16
|
-
50% { color: #4ECDC4; }
|
|
17
|
-
75% { color: #45B7D1; }
|
|
18
|
-
100% { color: #9650FB; }
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@keyframes sparkle {
|
|
22
|
-
0%, 100% {
|
|
23
|
-
transform: scale(1);
|
|
24
|
-
filter: drop-shadow(0 0 20px currentColor) brightness(1);
|
|
25
|
-
}
|
|
26
|
-
50% {
|
|
27
|
-
transform: scale(1.1);
|
|
28
|
-
filter: drop-shadow(0 0 30px currentColor) brightness(1.3);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.magic-logo {
|
|
33
|
-
animation: colorShift 3s ease-in-out infinite, sparkle 2s ease-in-out infinite;
|
|
34
|
-
filter: drop-shadow(0 0 20px currentColor);
|
|
35
|
-
}
|
|
36
|
-
`}
|
|
37
|
-
</style>
|
|
38
|
-
<div
|
|
39
|
-
className={classNames(
|
|
40
|
-
"animate-fadeIn flex h-full flex-col items-center justify-center transition-all duration-300",
|
|
41
|
-
)}
|
|
42
|
-
>
|
|
43
|
-
<div className="md:mb-20">
|
|
44
|
-
<div className="flex items-center justify-center">
|
|
45
|
-
<div className="h-48 w-48 animate-pulse md:h-64 md:w-64">
|
|
46
|
-
<div className="magic-logo h-full w-full">
|
|
47
|
-
<Logo />
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div className="text-theme-secondary text-center text-sm font-medium">
|
|
53
|
-
{title}
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
</>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default Generate;
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import { StepComponentProps } from "../../config/types";
|
|
2
|
-
import { useEffect, useState } from "react";
|
|
3
|
-
import { ScrollingContentTree } from "../../editor/ScrollingContentTree";
|
|
4
|
-
import { ItemTreeNodeData } from "../../editor/services/contentService";
|
|
5
|
-
import { useEditContext } from "../../editor/client/editContext";
|
|
6
|
-
import { executePrompt, executeSearch } from "../../editor/services/aiService";
|
|
7
|
-
import { createWizardAiContext } from "../service";
|
|
8
|
-
import { ActionButton } from "../../components/ActionButton";
|
|
9
|
-
import { classNames } from "primereact/utils";
|
|
10
|
-
import { Button } from "primereact/button";
|
|
11
|
-
import { Dialog } from "primereact/dialog";
|
|
12
|
-
import { FullItem } from "../../editor/pageModel";
|
|
13
|
-
import { WizardBox } from "../WizardBox";
|
|
14
|
-
import { WizardBoxConnector } from "../WizardBoxConnector";
|
|
15
|
-
import { Settings, Images, ChevronDown, Check } from "lucide-react";
|
|
16
|
-
|
|
17
|
-
type Thumbnail = {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
thumbUrl?: string;
|
|
21
|
-
previewUrl?: string;
|
|
22
|
-
description?: string;
|
|
23
|
-
selected?: boolean;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type Image = {
|
|
27
|
-
title: string;
|
|
28
|
-
keywords: string[];
|
|
29
|
-
options?: Thumbnail[];
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// Responsive image component that chooses the best image size
|
|
33
|
-
const ResponsiveImage = ({
|
|
34
|
-
thumbUrl,
|
|
35
|
-
previewUrl,
|
|
36
|
-
alt,
|
|
37
|
-
className,
|
|
38
|
-
}: {
|
|
39
|
-
thumbUrl?: string;
|
|
40
|
-
previewUrl?: string;
|
|
41
|
-
alt: string;
|
|
42
|
-
className?: string;
|
|
43
|
-
}) => {
|
|
44
|
-
// If we have both URLs, use srcset to let browser choose
|
|
45
|
-
if (thumbUrl && previewUrl) {
|
|
46
|
-
return (
|
|
47
|
-
<img
|
|
48
|
-
src={thumbUrl} // fallback for older browsers
|
|
49
|
-
srcSet={`${thumbUrl} 96w, ${previewUrl} 400w`}
|
|
50
|
-
sizes="(max-width: 640px) calc(50vw - 1rem), (max-width: 768px) calc(33vw - 1rem), calc(16.666vw - 1rem)"
|
|
51
|
-
alt={alt}
|
|
52
|
-
className={className}
|
|
53
|
-
loading="lazy"
|
|
54
|
-
/>
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Fallback to available URL
|
|
59
|
-
return (
|
|
60
|
-
<img
|
|
61
|
-
src={previewUrl || thumbUrl}
|
|
62
|
-
alt={alt}
|
|
63
|
-
className={className}
|
|
64
|
-
loading="lazy"
|
|
65
|
-
/>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export const ImagesStep = (props: StepComponentProps) => {
|
|
70
|
-
const mediaRootId = "3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1";
|
|
71
|
-
const [selectedFolderId, setSelectedFolderId] = useState<string>(mediaRootId);
|
|
72
|
-
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
73
|
-
const [error, setError] = useState<string | null>(null);
|
|
74
|
-
|
|
75
|
-
const editContext = useEditContext();
|
|
76
|
-
|
|
77
|
-
const propName = props.step.fields.propertyName || "images";
|
|
78
|
-
|
|
79
|
-
const [showFolderDialog, setShowFolderDialog] = useState<boolean>(false);
|
|
80
|
-
const [collapsedSections, setCollapsedSections] = useState<Set<number>>(
|
|
81
|
-
new Set(),
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
const [selectedFolder, setSelectedFolder] = useState<FullItem>();
|
|
85
|
-
|
|
86
|
-
useEffect(() => {
|
|
87
|
-
if (props.data[propName]?.length > 0) {
|
|
88
|
-
props.setStepCompleted(true);
|
|
89
|
-
}
|
|
90
|
-
}, [props.data]);
|
|
91
|
-
|
|
92
|
-
const findMatchingImages = async () => {
|
|
93
|
-
setIsLoading(true);
|
|
94
|
-
setError(null);
|
|
95
|
-
props.setData((prevData) => ({
|
|
96
|
-
...prevData,
|
|
97
|
-
[propName]: [],
|
|
98
|
-
}));
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
// First, ask AI for keywords based on the content
|
|
102
|
-
const aiPromptResult = await executePrompt(
|
|
103
|
-
[
|
|
104
|
-
{
|
|
105
|
-
content: `You are an AI assistant for building a web page. You will later have to create images for the page.
|
|
106
|
-
Please anaylze the provided data and suggest a number of images and specific keywords per image. The keywords will be used to find matching images in the image library.
|
|
107
|
-
Response JSON format: { images: Image[] } type Image = { title: string, keywords: string[] }
|
|
108
|
-
Input data: ${JSON.stringify(props.data)}
|
|
109
|
-
Instructions: ${props.step.fields.instructions}`,
|
|
110
|
-
|
|
111
|
-
name: "system",
|
|
112
|
-
role: "system",
|
|
113
|
-
},
|
|
114
|
-
],
|
|
115
|
-
editContext!,
|
|
116
|
-
createWizardAiContext,
|
|
117
|
-
{},
|
|
118
|
-
undefined,
|
|
119
|
-
"gpt-4.1",
|
|
120
|
-
);
|
|
121
|
-
const images = JSON.parse(aiPromptResult.content).images;
|
|
122
|
-
|
|
123
|
-
// Create an array of promises for all search operations
|
|
124
|
-
const searchPromises = images.map(async (image: Image) => {
|
|
125
|
-
const searchResult = await executeSearch({
|
|
126
|
-
query: image.keywords.join(" "),
|
|
127
|
-
rootItemIds: selectedFolderId ? [selectedFolderId] : undefined,
|
|
128
|
-
editContext: editContext!,
|
|
129
|
-
maxResults: 6,
|
|
130
|
-
index: "media",
|
|
131
|
-
skipValidation: true,
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
if (searchResult.type === "success") {
|
|
135
|
-
const thumbnails = (searchResult.data as Thumbnail[]).map(
|
|
136
|
-
(thumbnail) => ({
|
|
137
|
-
name: thumbnail.name,
|
|
138
|
-
id: thumbnail.id,
|
|
139
|
-
thumbUrl: thumbnail.thumbUrl,
|
|
140
|
-
previewUrl: thumbnail.previewUrl,
|
|
141
|
-
description: thumbnail.description,
|
|
142
|
-
}),
|
|
143
|
-
);
|
|
144
|
-
|
|
145
|
-
props.setInternalState((state: any) => ({
|
|
146
|
-
...state,
|
|
147
|
-
thumbnails: [
|
|
148
|
-
...(state.thumbnails || []),
|
|
149
|
-
...thumbnails.filter(
|
|
150
|
-
(newThumb: Thumbnail) =>
|
|
151
|
-
!(state.thumbnails || []).some(
|
|
152
|
-
(existingThumb: Thumbnail) =>
|
|
153
|
-
existingThumb.id === newThumb.id,
|
|
154
|
-
),
|
|
155
|
-
),
|
|
156
|
-
],
|
|
157
|
-
}));
|
|
158
|
-
|
|
159
|
-
props.setData((prevData) => ({
|
|
160
|
-
...prevData,
|
|
161
|
-
|
|
162
|
-
[propName]: [
|
|
163
|
-
...(prevData[propName] || []),
|
|
164
|
-
{
|
|
165
|
-
...image,
|
|
166
|
-
options: thumbnails,
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
}));
|
|
170
|
-
} else {
|
|
171
|
-
setError(
|
|
172
|
-
`Error searching for images: ${searchResult.response.statusText}`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
// Wait for all search operations to complete
|
|
178
|
-
await Promise.all(searchPromises);
|
|
179
|
-
} catch (err) {
|
|
180
|
-
setError(
|
|
181
|
-
`Error finding matching images: ${
|
|
182
|
-
err instanceof Error ? err.message : String(err)
|
|
183
|
-
}`,
|
|
184
|
-
);
|
|
185
|
-
console.error("Error in findMatchingImages:", err);
|
|
186
|
-
} finally {
|
|
187
|
-
setIsLoading(false);
|
|
188
|
-
}
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
useEffect(() => {
|
|
192
|
-
const loadFolder = async () => {
|
|
193
|
-
if (selectedFolderId) {
|
|
194
|
-
const item = await editContext?.itemsRepository.getItem({
|
|
195
|
-
id: selectedFolderId,
|
|
196
|
-
language: "en",
|
|
197
|
-
version: 1,
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
setSelectedFolder(item);
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
loadFolder();
|
|
204
|
-
}, [selectedFolderId]);
|
|
205
|
-
|
|
206
|
-
function SearchButton() {
|
|
207
|
-
return (
|
|
208
|
-
<ActionButton
|
|
209
|
-
onClick={findMatchingImages}
|
|
210
|
-
isLoading={isLoading}
|
|
211
|
-
disabled={isLoading}
|
|
212
|
-
className="w-full"
|
|
213
|
-
>
|
|
214
|
-
Find Matching Images
|
|
215
|
-
</ActionButton>
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
return (
|
|
220
|
-
<div className="flex h-full flex-col md:flex-row">
|
|
221
|
-
<WizardBox
|
|
222
|
-
title="Settings"
|
|
223
|
-
icon={<Settings />}
|
|
224
|
-
description="Configure image search settings and find matching images"
|
|
225
|
-
className="w-96"
|
|
226
|
-
collapsible="mobileOnly"
|
|
227
|
-
defaultCollapsed="mobileOnly"
|
|
228
|
-
footer={<SearchButton />}
|
|
229
|
-
>
|
|
230
|
-
<div className="flex h-full flex-col gap-4">
|
|
231
|
-
<div className="flex-1 overflow-y-auto">
|
|
232
|
-
<div className="relative mb-4 rounded-md border border-gray-400 bg-white p-4">
|
|
233
|
-
<div className="mb-2 text-sm font-bold text-gray-800">
|
|
234
|
-
Image library folder
|
|
235
|
-
</div>
|
|
236
|
-
{selectedFolder && (
|
|
237
|
-
<div className="mb-2 text-sm text-gray-500">
|
|
238
|
-
{selectedFolder.path}
|
|
239
|
-
</div>
|
|
240
|
-
)}
|
|
241
|
-
<Button
|
|
242
|
-
label="Change Folder"
|
|
243
|
-
onClick={() => {
|
|
244
|
-
setShowFolderDialog(true);
|
|
245
|
-
}}
|
|
246
|
-
/>
|
|
247
|
-
<Dialog
|
|
248
|
-
header="Select Folder"
|
|
249
|
-
visible={showFolderDialog}
|
|
250
|
-
onHide={() => {
|
|
251
|
-
setShowFolderDialog(false);
|
|
252
|
-
}}
|
|
253
|
-
style={{ width: "50vw", height: "50vh" }}
|
|
254
|
-
>
|
|
255
|
-
<div className="flex h-full flex-col p-1">
|
|
256
|
-
<div className="relative flex-1">
|
|
257
|
-
<ScrollingContentTree
|
|
258
|
-
rootItemId={mediaRootId}
|
|
259
|
-
onSelectionChange={(selection) => {
|
|
260
|
-
const selectedNode = selection[0] as ItemTreeNodeData;
|
|
261
|
-
if (selectedNode) setSelectedFolderId(selectedNode.id);
|
|
262
|
-
else setSelectedFolderId(mediaRootId);
|
|
263
|
-
setShowFolderDialog(false);
|
|
264
|
-
}}
|
|
265
|
-
/>
|
|
266
|
-
</div>
|
|
267
|
-
</div>
|
|
268
|
-
</Dialog>
|
|
269
|
-
</div>
|
|
270
|
-
</div>
|
|
271
|
-
</div>
|
|
272
|
-
</WizardBox>
|
|
273
|
-
<WizardBoxConnector />
|
|
274
|
-
<WizardBox
|
|
275
|
-
title="Images"
|
|
276
|
-
icon={<Images />}
|
|
277
|
-
description="Select images from the search results"
|
|
278
|
-
noPadding={true}
|
|
279
|
-
className="relative flex-1"
|
|
280
|
-
>
|
|
281
|
-
<div className="absolute inset-0 overflow-auto">
|
|
282
|
-
<div className="p-3 md:p-6">
|
|
283
|
-
{error && <div className="mb-4 text-red-500">{error}</div>}
|
|
284
|
-
|
|
285
|
-
{props.data[propName]?.length > 0 && (
|
|
286
|
-
<div className="space-y-6">
|
|
287
|
-
{props.data[propName]?.map((image: Image, index: number) => {
|
|
288
|
-
const isCollapsed = collapsedSections.has(index);
|
|
289
|
-
|
|
290
|
-
return (
|
|
291
|
-
<div key={index} className="space-y-4">
|
|
292
|
-
<button
|
|
293
|
-
onClick={() => {
|
|
294
|
-
const newCollapsed = new Set(collapsedSections);
|
|
295
|
-
if (isCollapsed) {
|
|
296
|
-
newCollapsed.delete(index);
|
|
297
|
-
} else {
|
|
298
|
-
newCollapsed.add(index);
|
|
299
|
-
}
|
|
300
|
-
setCollapsedSections(newCollapsed);
|
|
301
|
-
}}
|
|
302
|
-
className="flex w-full items-center justify-between text-left"
|
|
303
|
-
>
|
|
304
|
-
<h3 className="font-medium text-gray-900 md:text-lg">
|
|
305
|
-
{image.title}
|
|
306
|
-
</h3>
|
|
307
|
-
<ChevronDown
|
|
308
|
-
className={classNames(
|
|
309
|
-
"h-5 w-5 text-gray-500 transition-transform",
|
|
310
|
-
isCollapsed ? "-rotate-90" : "rotate-0",
|
|
311
|
-
)}
|
|
312
|
-
/>
|
|
313
|
-
</button>
|
|
314
|
-
|
|
315
|
-
{!isCollapsed && (
|
|
316
|
-
<div className="grid grid-cols-6 gap-4">
|
|
317
|
-
{image.options?.map(
|
|
318
|
-
(option: Thumbnail, thumbnailIndex: number) => (
|
|
319
|
-
<div
|
|
320
|
-
key={thumbnailIndex}
|
|
321
|
-
className={classNames(
|
|
322
|
-
"relative aspect-square cursor-pointer overflow-hidden rounded-lg border-2 transition-all",
|
|
323
|
-
option.selected
|
|
324
|
-
? "border-purple-500 ring-2 ring-purple-200"
|
|
325
|
-
: "border-gray-200 hover:border-gray-300",
|
|
326
|
-
)}
|
|
327
|
-
onClick={() => {
|
|
328
|
-
props.setData((prevData) => ({
|
|
329
|
-
...prevData,
|
|
330
|
-
[propName]: prevData[propName].map(
|
|
331
|
-
(img: Image, imgIndex: number) =>
|
|
332
|
-
({
|
|
333
|
-
...img,
|
|
334
|
-
options:
|
|
335
|
-
imgIndex !== index
|
|
336
|
-
? img.options
|
|
337
|
-
: img.options?.map(
|
|
338
|
-
(
|
|
339
|
-
option,
|
|
340
|
-
optionIndex: number,
|
|
341
|
-
) =>
|
|
342
|
-
optionIndex ===
|
|
343
|
-
thumbnailIndex
|
|
344
|
-
? {
|
|
345
|
-
...option,
|
|
346
|
-
selected:
|
|
347
|
-
!option.selected,
|
|
348
|
-
}
|
|
349
|
-
: option,
|
|
350
|
-
),
|
|
351
|
-
}) as Image,
|
|
352
|
-
),
|
|
353
|
-
}));
|
|
354
|
-
}}
|
|
355
|
-
>
|
|
356
|
-
<ResponsiveImage
|
|
357
|
-
thumbUrl={option.thumbUrl}
|
|
358
|
-
previewUrl={option.previewUrl}
|
|
359
|
-
alt={option.name}
|
|
360
|
-
className="h-full w-full object-cover"
|
|
361
|
-
/>
|
|
362
|
-
{option.selected && (
|
|
363
|
-
<div className="absolute top-2 right-2 flex h-6 w-6 items-center justify-center rounded-full bg-purple-500 text-white">
|
|
364
|
-
<Check className="h-4 w-4" />
|
|
365
|
-
</div>
|
|
366
|
-
)}
|
|
367
|
-
</div>
|
|
368
|
-
),
|
|
369
|
-
)}
|
|
370
|
-
</div>
|
|
371
|
-
)}
|
|
372
|
-
</div>
|
|
373
|
-
);
|
|
374
|
-
})}
|
|
375
|
-
</div>
|
|
376
|
-
)}
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
</WizardBox>
|
|
380
|
-
</div>
|
|
381
|
-
);
|
|
382
|
-
};
|