@alpaca-headless/alpaca-headless-nextjs 1.0.253 → 1.0.281
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/.eslintrc.json +3 -0
- package/README.md +36 -0
- package/{types → dist}/client-components/ClientLink.d.ts +1 -1
- package/dist/{esm/client-components → client-components}/ClientLink.js +15 -11
- package/dist/client-components/index.d.ts +1 -0
- package/dist/client-components/index.js +2 -0
- package/dist/configure.d.ts +1 -0
- package/dist/configure.js +10 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/dist/middleware/handleRequest.d.ts +7 -0
- package/dist/middleware/handleRequest.js +36 -0
- package/dist/middleware/index.js +3 -0
- package/next.config.mjs +4 -0
- package/package.json +33 -52
- package/postcss.config.js +6 -0
- package/src/client-components/ClientLink.tsx +46 -0
- package/src/client-components/index.ts +2 -0
- package/src/configure.ts +12 -0
- package/src/index.ts +5 -0
- package/src/middleware/handleRequest.ts +49 -0
- package/src/middleware/index.ts +5 -0
- package/tailwind.config.js +15 -27
- package/tailwind.config.ts +20 -0
- package/tsconfig.json +27 -0
- package/dist/editor.css +0 -1329
- package/dist/esm/Editor.js +0 -13
- package/dist/esm/client-components/LinkEditor.js +0 -71
- package/dist/esm/client-components/MultiComponentEditor.js +0 -22
- package/dist/esm/client-components/index.js +0 -4
- package/dist/esm/components/Error.js +0 -10
- package/dist/esm/components/Image.js +0 -33
- package/dist/esm/components/Link.js +0 -30
- package/dist/esm/components/LinkPreview.js +0 -30
- package/dist/esm/components/LockedFieldIndicator.js +0 -21
- package/dist/esm/components/Picture.js +0 -132
- package/dist/esm/components/PictureEditor.js +0 -77
- package/dist/esm/components/PictureEditorWrapper.js +0 -7
- package/dist/esm/components/Placeholder.js +0 -141
- package/dist/esm/components/RichText.js +0 -29
- package/dist/esm/components/RichTextEditor.js +0 -92
- package/dist/esm/components/RichTextEditorWrapper.js +0 -7
- package/dist/esm/components/Slot.js +0 -6
- package/dist/esm/components/Text.js +0 -28
- package/dist/esm/components/TextEditor.js +0 -78
- package/dist/esm/components/TextEditorWrapper.js +0 -19
- package/dist/esm/components/Translate.js +0 -9
- package/dist/esm/components/TranslateEditor.js +0 -24
- package/dist/esm/components/TranslateEditorWrapper.js +0 -7
- package/dist/esm/components/index.js +0 -7
- package/dist/esm/components/picture-shared.js +0 -26
- package/dist/esm/editor/ComponentInfo.js +0 -12
- package/dist/esm/editor/ConfirmationDialog.js +0 -29
- package/dist/esm/editor/ContentTree.js +0 -230
- package/dist/esm/editor/ContextMenu.js +0 -90
- package/dist/esm/editor/DialogButtons.js +0 -4
- package/dist/esm/editor/DictionaryEditor.js +0 -37
- package/dist/esm/editor/EditFrame.js +0 -115
- package/dist/esm/editor/EditFrameWrapper.js +0 -7
- package/dist/esm/editor/EditorClient.js +0 -889
- package/dist/esm/editor/EditorClientHost.js +0 -15
- package/dist/esm/editor/EditorWarning.js +0 -10
- package/dist/esm/editor/EditorWarnings.js +0 -13
- package/dist/esm/editor/FieldEditorPopup.js +0 -23
- package/dist/esm/editor/FieldList.js +0 -48
- package/dist/esm/editor/FieldListField.js +0 -86
- package/dist/esm/editor/FieldListFieldWithFallbacks.js +0 -79
- package/dist/esm/editor/FloatingToolbar.js +0 -89
- package/dist/esm/editor/ItemInfo.js +0 -14
- package/dist/esm/editor/LinkEditorDialog.js +0 -61
- package/dist/esm/editor/MainLayout.js +0 -18
- package/dist/esm/editor/MediaSelector.js +0 -85
- package/dist/esm/editor/Outline.js +0 -82
- package/dist/esm/editor/PageViewer.js +0 -41
- package/dist/esm/editor/PictureEditorDialog.js +0 -201
- package/dist/esm/editor/PlaceholderDropZone.js +0 -130
- package/dist/esm/editor/PlaceholderDropZoneHost.js +0 -7
- package/dist/esm/editor/PreviewClient.js +0 -6
- package/dist/esm/editor/PreviewClientHost.js +0 -7
- package/dist/esm/editor/PreviewPanel.js +0 -7
- package/dist/esm/editor/PublishDialog.js +0 -15
- package/dist/esm/editor/Terminal.js +0 -55
- package/dist/esm/editor/ai/AiPopup.js +0 -28
- package/dist/esm/editor/ai/AiResponseMessage.js +0 -20
- package/dist/esm/editor/ai/AiTerminal.js +0 -216
- package/dist/esm/editor/ai/AiToolCall.js +0 -15
- package/dist/esm/editor/ai/EditorAiTerminal.js +0 -5
- package/dist/esm/editor/commands/commands.js +0 -1
- package/dist/esm/editor/commands/componentCommands.js +0 -287
- package/dist/esm/editor/commands/createVersionCommand.js +0 -26
- package/dist/esm/editor/commands/undo.js +0 -22
- package/dist/esm/editor/component-designer/ComponentDesigner.js +0 -7
- package/dist/esm/editor/component-designer/ComponentDesignerAiTerminal.js +0 -5
- package/dist/esm/editor/component-designer/ComponentDesignerMenu.js +0 -39
- package/dist/esm/editor/component-designer/ComponentPreview.js +0 -20
- package/dist/esm/editor/component-designer/ComponentRenderingEditor.js +0 -38
- package/dist/esm/editor/component-designer/ComponentSelectionTree.js +0 -56
- package/dist/esm/editor/component-designer/componentDesignerContext.js +0 -22
- package/dist/esm/editor/componentTreeHelper.js +0 -20
- package/dist/esm/editor/config/config.js +0 -327
- package/dist/esm/editor/config/types.js +0 -1
- package/dist/esm/editor/editContext.js +0 -11
- package/dist/esm/editor/editor-warnings/ItemLocked.js +0 -40
- package/dist/esm/editor/editor-warnings/ValidationErrors.js +0 -22
- package/dist/esm/editor/fieldTypes/CheckboxEditor.js +0 -21
- package/dist/esm/editor/fieldTypes/DropLinkEditor.js +0 -50
- package/dist/esm/editor/fieldTypes/InternalLinkFieldEditor.js +0 -41
- package/dist/esm/editor/fieldTypes/LinkFieldEditor.js +0 -53
- package/dist/esm/editor/fieldTypes/MultiLineText.js +0 -25
- package/dist/esm/editor/fieldTypes/PictureFieldEditor.js +0 -33
- package/dist/esm/editor/fieldTypes/RawEditor.js +0 -26
- package/dist/esm/editor/fieldTypes/RichTextEditor.js +0 -7
- package/dist/esm/editor/fieldTypes/RichTextEditorComponent.js +0 -46
- package/dist/esm/editor/fieldTypes/SingleLineText.js +0 -23
- package/dist/esm/editor/fieldTypes/TreeListEditor.js +0 -57
- package/dist/esm/editor/itemCommands.js +0 -27
- package/dist/esm/editor/menubar/BrowseHistory.js +0 -39
- package/dist/esm/editor/menubar/ItemLanguageVersion.js +0 -20
- package/dist/esm/editor/menubar/LanguageSelector.js +0 -18
- package/dist/esm/editor/menubar/Menu.js +0 -105
- package/dist/esm/editor/menubar/PageViewerControls.js +0 -66
- package/dist/esm/editor/menubar/VersionSelector.js +0 -18
- package/dist/esm/editor/previewContext.js +0 -5
- package/dist/esm/editor/services/aiService.js +0 -20
- package/dist/esm/editor/services/componentDesignerService.js +0 -23
- package/dist/esm/editor/services/contentService.js +0 -56
- package/dist/esm/editor/services/editService.js +0 -394
- package/dist/esm/editor/services/serviceHelper.js +0 -45
- package/dist/esm/editor/sidebar/ComponentPalette.js +0 -42
- package/dist/esm/editor/sidebar/ComponentTree.js +0 -237
- package/dist/esm/editor/sidebar/Debug.js +0 -46
- package/dist/esm/editor/sidebar/EditHistory.js +0 -66
- package/dist/esm/editor/sidebar/EditorForm.js +0 -24
- package/dist/esm/editor/sidebar/GraphQL.js +0 -85
- package/dist/esm/editor/sidebar/Insert.js +0 -7
- package/dist/esm/editor/sidebar/MainContentTree.js +0 -38
- package/dist/esm/editor/sidebar/Sessions.js +0 -11
- package/dist/esm/editor/sidebar/Sidebar.js +0 -13
- package/dist/esm/editor/sidebar/SidebarView.js +0 -73
- package/dist/esm/editor/sidebar/Workbox.js +0 -77
- package/dist/esm/editor/ui/CopyToClipboardButton.js +0 -14
- package/dist/esm/editor/ui/Icons.js +0 -19
- package/dist/esm/editor/ui/ItemNameDialog.js +0 -33
- package/dist/esm/editor/ui/Section.js +0 -8
- package/dist/esm/editor/utils/insertOptions.js +0 -39
- package/dist/esm/editor/utils.js +0 -71
- package/dist/esm/editor/views/ItemEditor.js +0 -18
- package/dist/esm/fieldTypes.js +0 -1
- package/dist/esm/graphQL.js +0 -50
- package/dist/esm/graphQLTypes.js +0 -1
- package/dist/esm/index.js +0 -9
- package/dist/esm/loadRouteData.js +0 -119
- package/dist/esm/mediaProtection.js +0 -49
- package/dist/esm/middleware/handleRequest.js +0 -45
- package/dist/esm/middleware/index.js +0 -1
- package/dist/esm/public.js +0 -10
- package/dist/esm/renderContext.js +0 -49
- package/dist/esm/renderings.js +0 -87
- package/dist/esm/servertypes.js +0 -1
- package/dist/esm/translate.js +0 -7
- package/dist/primeicons/CHANGELOG.md +0 -303
- package/dist/primeicons/LICENSE +0 -21
- package/dist/primeicons/README.md +0 -14
- package/dist/primeicons/fonts/primeicons.eot +0 -0
- package/dist/primeicons/fonts/primeicons.svg +0 -292
- package/dist/primeicons/fonts/primeicons.ttf +0 -0
- package/dist/primeicons/fonts/primeicons.woff +0 -0
- package/dist/primeicons/fonts/primeicons.woff2 +0 -0
- package/dist/primeicons/package.json +0 -16
- package/dist/primeicons/primeicons.css +0 -1102
- package/dist/primeicons/raw-svg/align-center.svg +0 -1
- package/dist/primeicons/raw-svg/align-justify.svg +0 -1
- package/dist/primeicons/raw-svg/align-left.svg +0 -1
- package/dist/primeicons/raw-svg/align-right.svg +0 -1
- package/dist/primeicons/raw-svg/android.svg +0 -1
- package/dist/primeicons/raw-svg/angle-double-down.svg +0 -1
- package/dist/primeicons/raw-svg/angle-double-left.svg +0 -1
- package/dist/primeicons/raw-svg/angle-double-right.svg +0 -1
- package/dist/primeicons/raw-svg/angle-double-up.svg +0 -1
- package/dist/primeicons/raw-svg/angle-down.svg +0 -1
- package/dist/primeicons/raw-svg/angle-left.svg +0 -1
- package/dist/primeicons/raw-svg/angle-right.svg +0 -1
- package/dist/primeicons/raw-svg/angle-up.svg +0 -1
- package/dist/primeicons/raw-svg/apple.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-circle-down.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-circle-left.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-circle-right.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-circle-up.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-down-left.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-down-right.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-down.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-left.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-right-arrow-left.svg +0 -4
- package/dist/primeicons/raw-svg/arrow-right.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-up-left.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-up-right.svg +0 -1
- package/dist/primeicons/raw-svg/arrow-up.svg +0 -1
- package/dist/primeicons/raw-svg/arrows-alt.svg +0 -4
- package/dist/primeicons/raw-svg/arrows-h.svg +0 -1
- package/dist/primeicons/raw-svg/arrows-v.svg +0 -1
- package/dist/primeicons/raw-svg/at.svg +0 -1
- package/dist/primeicons/raw-svg/backward.svg +0 -4
- package/dist/primeicons/raw-svg/ban.svg +0 -1
- package/dist/primeicons/raw-svg/bars.svg +0 -1
- package/dist/primeicons/raw-svg/bell.svg +0 -1
- package/dist/primeicons/raw-svg/bitcoin.svg +0 -4
- package/dist/primeicons/raw-svg/bolt.svg +0 -1
- package/dist/primeicons/raw-svg/book.svg +0 -1
- package/dist/primeicons/raw-svg/bookmark-fill.svg +0 -1
- package/dist/primeicons/raw-svg/bookmark.svg +0 -1
- package/dist/primeicons/raw-svg/box.svg +0 -1
- package/dist/primeicons/raw-svg/briefcase.svg +0 -1
- package/dist/primeicons/raw-svg/building.svg +0 -1
- package/dist/primeicons/raw-svg/calculator.svg +0 -4
- package/dist/primeicons/raw-svg/calendar-minus.svg +0 -1
- package/dist/primeicons/raw-svg/calendar-plus.svg +0 -1
- package/dist/primeicons/raw-svg/calendar-times.svg +0 -1
- package/dist/primeicons/raw-svg/calendar.svg +0 -1
- package/dist/primeicons/raw-svg/camera.svg +0 -1
- package/dist/primeicons/raw-svg/car.svg +0 -1
- package/dist/primeicons/raw-svg/caret-down.svg +0 -1
- package/dist/primeicons/raw-svg/caret-left.svg +0 -1
- package/dist/primeicons/raw-svg/caret-right.svg +0 -1
- package/dist/primeicons/raw-svg/caret-up.svg +0 -1
- package/dist/primeicons/raw-svg/cart-plus.svg +0 -4
- package/dist/primeicons/raw-svg/chart-bar.svg +0 -1
- package/dist/primeicons/raw-svg/chart-line.svg +0 -1
- package/dist/primeicons/raw-svg/chart-pie.svg +0 -1
- package/dist/primeicons/raw-svg/check-circle.svg +0 -1
- package/dist/primeicons/raw-svg/check-square.svg +0 -1
- package/dist/primeicons/raw-svg/check.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-circle-down.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-circle-left.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-circle-right.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-circle-up.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-down.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-left.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-right.svg +0 -1
- package/dist/primeicons/raw-svg/chevron-up.svg +0 -1
- package/dist/primeicons/raw-svg/circle-fill.svg +0 -1
- package/dist/primeicons/raw-svg/circle-off.svg +0 -1
- package/dist/primeicons/raw-svg/circle-on.svg +0 -1
- package/dist/primeicons/raw-svg/circle.svg +0 -1
- package/dist/primeicons/raw-svg/clock.svg +0 -1
- package/dist/primeicons/raw-svg/clone.svg +0 -1
- package/dist/primeicons/raw-svg/cloud-download.svg +0 -1
- package/dist/primeicons/raw-svg/cloud-upload.svg +0 -1
- package/dist/primeicons/raw-svg/cloud.svg +0 -1
- package/dist/primeicons/raw-svg/code.svg +0 -1
- package/dist/primeicons/raw-svg/cog.svg +0 -1
- package/dist/primeicons/raw-svg/comment.svg +0 -1
- package/dist/primeicons/raw-svg/comments.svg +0 -1
- package/dist/primeicons/raw-svg/compass.svg +0 -1
- package/dist/primeicons/raw-svg/copy.svg +0 -1
- package/dist/primeicons/raw-svg/credit-card.svg +0 -1
- package/dist/primeicons/raw-svg/database.svg +0 -1
- package/dist/primeicons/raw-svg/delete-left.svg +0 -4
- package/dist/primeicons/raw-svg/desktop.svg +0 -1
- package/dist/primeicons/raw-svg/directions-alt.svg +0 -1
- package/dist/primeicons/raw-svg/directions.svg +0 -1
- package/dist/primeicons/raw-svg/discord.svg +0 -4
- package/dist/primeicons/raw-svg/dollar.svg +0 -1
- package/dist/primeicons/raw-svg/download.svg +0 -1
- package/dist/primeicons/raw-svg/eject.svg +0 -1
- package/dist/primeicons/raw-svg/ellipsis-h.svg +0 -1
- package/dist/primeicons/raw-svg/ellipsis-v.svg +0 -1
- package/dist/primeicons/raw-svg/envelope.svg +0 -1
- package/dist/primeicons/raw-svg/eraser.svg +0 -4
- package/dist/primeicons/raw-svg/euro.svg +0 -1
- package/dist/primeicons/raw-svg/exclamation-circle.svg +0 -1
- package/dist/primeicons/raw-svg/exclamation-triangle.svg +0 -1
- package/dist/primeicons/raw-svg/external-link.svg +0 -1
- package/dist/primeicons/raw-svg/eye-slash.svg +0 -1
- package/dist/primeicons/raw-svg/eye.svg +0 -1
- package/dist/primeicons/raw-svg/facebook.svg +0 -1
- package/dist/primeicons/raw-svg/fast-backward.svg +0 -4
- package/dist/primeicons/raw-svg/fast-forward.svg +0 -4
- package/dist/primeicons/raw-svg/file-edit.svg +0 -4
- package/dist/primeicons/raw-svg/file-excel.svg +0 -1
- package/dist/primeicons/raw-svg/file-export.svg +0 -4
- package/dist/primeicons/raw-svg/file-import.svg +0 -4
- package/dist/primeicons/raw-svg/file-o.svg +0 -1
- package/dist/primeicons/raw-svg/file-pdf.svg +0 -1
- package/dist/primeicons/raw-svg/file-word.svg +0 -4
- package/dist/primeicons/raw-svg/file.svg +0 -1
- package/dist/primeicons/raw-svg/filter-fill.svg +0 -1
- package/dist/primeicons/raw-svg/filter-slash.svg +0 -1
- package/dist/primeicons/raw-svg/filter.svg +0 -1
- package/dist/primeicons/raw-svg/flag-fill.svg +0 -1
- package/dist/primeicons/raw-svg/flag.svg +0 -1
- package/dist/primeicons/raw-svg/folder-open.svg +0 -1
- package/dist/primeicons/raw-svg/folder.svg +0 -1
- package/dist/primeicons/raw-svg/forward.svg +0 -4
- package/dist/primeicons/raw-svg/gift.svg +0 -4
- package/dist/primeicons/raw-svg/github.svg +0 -1
- package/dist/primeicons/raw-svg/globe.svg +0 -1
- package/dist/primeicons/raw-svg/google.svg +0 -1
- package/dist/primeicons/raw-svg/hashtag.svg +0 -1
- package/dist/primeicons/raw-svg/heart-fill.svg +0 -1
- package/dist/primeicons/raw-svg/heart.svg +0 -1
- package/dist/primeicons/raw-svg/history.svg +0 -1
- package/dist/primeicons/raw-svg/home.svg +0 -1
- package/dist/primeicons/raw-svg/hourglass.svg +0 -4
- package/dist/primeicons/raw-svg/id-card.svg +0 -1
- package/dist/primeicons/raw-svg/image.svg +0 -1
- package/dist/primeicons/raw-svg/images.svg +0 -1
- package/dist/primeicons/raw-svg/inbox.svg +0 -1
- package/dist/primeicons/raw-svg/info-circle.svg +0 -1
- package/dist/primeicons/raw-svg/info.svg +0 -1
- package/dist/primeicons/raw-svg/instagram.svg +0 -1
- package/dist/primeicons/raw-svg/key.svg +0 -1
- package/dist/primeicons/raw-svg/language.svg +0 -4
- package/dist/primeicons/raw-svg/link.svg +0 -1
- package/dist/primeicons/raw-svg/linkedin.svg +0 -1
- package/dist/primeicons/raw-svg/list.svg +0 -1
- package/dist/primeicons/raw-svg/lock-open.svg +0 -1
- package/dist/primeicons/raw-svg/lock.svg +0 -1
- package/dist/primeicons/raw-svg/map-marker.svg +0 -1
- package/dist/primeicons/raw-svg/map.svg +0 -1
- package/dist/primeicons/raw-svg/megaphone.svg +0 -4
- package/dist/primeicons/raw-svg/microphone.svg +0 -4
- package/dist/primeicons/raw-svg/microsoft.svg +0 -1
- package/dist/primeicons/raw-svg/minus-circle.svg +0 -1
- package/dist/primeicons/raw-svg/minus.svg +0 -1
- package/dist/primeicons/raw-svg/mobile.svg +0 -4
- package/dist/primeicons/raw-svg/money-bill.svg +0 -1
- package/dist/primeicons/raw-svg/moon.svg +0 -1
- package/dist/primeicons/raw-svg/palette.svg +0 -4
- package/dist/primeicons/raw-svg/paperclip.svg +0 -1
- package/dist/primeicons/raw-svg/pause.svg +0 -1
- package/dist/primeicons/raw-svg/paypal.svg +0 -1
- package/dist/primeicons/raw-svg/pencil.svg +0 -1
- package/dist/primeicons/raw-svg/percentage.svg +0 -1
- package/dist/primeicons/raw-svg/phone.svg +0 -1
- package/dist/primeicons/raw-svg/play.svg +0 -1
- package/dist/primeicons/raw-svg/plus-circle.svg +0 -1
- package/dist/primeicons/raw-svg/plus.svg +0 -1
- package/dist/primeicons/raw-svg/pound.svg +0 -1
- package/dist/primeicons/raw-svg/power-off.svg +0 -1
- package/dist/primeicons/raw-svg/prime.svg +0 -1
- package/dist/primeicons/raw-svg/print.svg +0 -1
- package/dist/primeicons/raw-svg/qrcode.svg +0 -1
- package/dist/primeicons/raw-svg/question-circle.svg +0 -4
- package/dist/primeicons/raw-svg/question.svg +0 -1
- package/dist/primeicons/raw-svg/reddit.svg +0 -1
- package/dist/primeicons/raw-svg/refresh.svg +0 -1
- package/dist/primeicons/raw-svg/replay.svg +0 -1
- package/dist/primeicons/raw-svg/reply.svg +0 -1
- package/dist/primeicons/raw-svg/save.svg +0 -1
- package/dist/primeicons/raw-svg/search-minus.svg +0 -1
- package/dist/primeicons/raw-svg/search-plus.svg +0 -1
- package/dist/primeicons/raw-svg/search.svg +0 -1
- package/dist/primeicons/raw-svg/send.svg +0 -1
- package/dist/primeicons/raw-svg/server.svg +0 -1
- package/dist/primeicons/raw-svg/share-alt.svg +0 -1
- package/dist/primeicons/raw-svg/shield.svg +0 -1
- package/dist/primeicons/raw-svg/shopping-bag.svg +0 -1
- package/dist/primeicons/raw-svg/shopping-cart.svg +0 -4
- package/dist/primeicons/raw-svg/sign-in.svg +0 -1
- package/dist/primeicons/raw-svg/sign-out.svg +0 -1
- package/dist/primeicons/raw-svg/sitemap.svg +0 -1
- package/dist/primeicons/raw-svg/slack.svg +0 -1
- package/dist/primeicons/raw-svg/sliders-h.svg +0 -1
- package/dist/primeicons/raw-svg/sliders-v.svg +0 -1
- package/dist/primeicons/raw-svg/sort-alpha-alt-down.svg +0 -6
- package/dist/primeicons/raw-svg/sort-alpha-alt-up.svg +0 -6
- package/dist/primeicons/raw-svg/sort-alpha-down.svg +0 -6
- package/dist/primeicons/raw-svg/sort-alpha-up.svg +0 -6
- package/dist/primeicons/raw-svg/sort-alt-slash.svg +0 -6
- package/dist/primeicons/raw-svg/sort-alt.svg +0 -7
- package/dist/primeicons/raw-svg/sort-amount-down-alt.svg +0 -9
- package/dist/primeicons/raw-svg/sort-amount-down.svg +0 -9
- package/dist/primeicons/raw-svg/sort-amount-up-alt.svg +0 -9
- package/dist/primeicons/raw-svg/sort-amount-up.svg +0 -9
- package/dist/primeicons/raw-svg/sort-down.svg +0 -1
- package/dist/primeicons/raw-svg/sort-numeric-alt-down.svg +0 -1
- package/dist/primeicons/raw-svg/sort-numeric-alt-up.svg +0 -1
- package/dist/primeicons/raw-svg/sort-numeric-down.svg +0 -1
- package/dist/primeicons/raw-svg/sort-numeric-up.svg +0 -8
- package/dist/primeicons/raw-svg/sort-up.svg +0 -1
- package/dist/primeicons/raw-svg/sort.svg +0 -1
- package/dist/primeicons/raw-svg/spinner.svg +0 -1
- package/dist/primeicons/raw-svg/star-fill.svg +0 -1
- package/dist/primeicons/raw-svg/star.svg +0 -1
- package/dist/primeicons/raw-svg/step-backward-alt.svg +0 -4
- package/dist/primeicons/raw-svg/step-backward.svg +0 -1
- package/dist/primeicons/raw-svg/step-forward-alt.svg +0 -4
- package/dist/primeicons/raw-svg/step-forward.svg +0 -1
- package/dist/primeicons/raw-svg/stop-circle.svg +0 -1
- package/dist/primeicons/raw-svg/stop.svg +0 -1
- package/dist/primeicons/raw-svg/stopwatch.svg +0 -4
- package/dist/primeicons/raw-svg/sun.svg +0 -1
- package/dist/primeicons/raw-svg/sync.svg +0 -1
- package/dist/primeicons/raw-svg/table.svg +0 -1
- package/dist/primeicons/raw-svg/tablet.svg +0 -4
- package/dist/primeicons/raw-svg/tag.svg +0 -4
- package/dist/primeicons/raw-svg/tags.svg +0 -4
- package/dist/primeicons/raw-svg/telegram.svg +0 -1
- package/dist/primeicons/raw-svg/th-large.svg +0 -1
- package/dist/primeicons/raw-svg/thumbs-down-fill.svg +0 -4
- package/dist/primeicons/raw-svg/thumbs-down.svg +0 -4
- package/dist/primeicons/raw-svg/thumbs-up-fill.svg +0 -4
- package/dist/primeicons/raw-svg/thumbs-up.svg +0 -4
- package/dist/primeicons/raw-svg/ticket.svg +0 -1
- package/dist/primeicons/raw-svg/times-circle.svg +0 -1
- package/dist/primeicons/raw-svg/times.svg +0 -1
- package/dist/primeicons/raw-svg/trash.svg +0 -1
- package/dist/primeicons/raw-svg/truck.svg +0 -4
- package/dist/primeicons/raw-svg/twitter.svg +0 -1
- package/dist/primeicons/raw-svg/undo.svg +0 -1
- package/dist/primeicons/raw-svg/unlock.svg +0 -1
- package/dist/primeicons/raw-svg/upload.svg +0 -1
- package/dist/primeicons/raw-svg/user-edit.svg +0 -1
- package/dist/primeicons/raw-svg/user-minus.svg +0 -1
- package/dist/primeicons/raw-svg/user-plus.svg +0 -1
- package/dist/primeicons/raw-svg/user.svg +0 -1
- package/dist/primeicons/raw-svg/users.svg +0 -1
- package/dist/primeicons/raw-svg/verified.svg +0 -4
- package/dist/primeicons/raw-svg/video.svg +0 -1
- package/dist/primeicons/raw-svg/vimeo.svg +0 -1
- package/dist/primeicons/raw-svg/volume-down.svg +0 -1
- package/dist/primeicons/raw-svg/volume-off.svg +0 -1
- package/dist/primeicons/raw-svg/volume-up.svg +0 -1
- package/dist/primeicons/raw-svg/wallet.svg +0 -1
- package/dist/primeicons/raw-svg/whatsapp.svg +0 -1
- package/dist/primeicons/raw-svg/wifi.svg +0 -1
- package/dist/primeicons/raw-svg/window-maximize.svg +0 -1
- package/dist/primeicons/raw-svg/window-minimize.svg +0 -1
- package/dist/primeicons/raw-svg/wrench.svg +0 -4
- package/dist/primeicons/raw-svg/youtube.svg +0 -1
- package/dist/primereact/resources/images/line.gif +0 -0
- package/dist/primereact/resources/primereact.css +0 -3
- package/dist/primereact/resources/primereact.min.css +0 -3
- package/dist/primereact/resources/themes/arya-blue/theme.css +0 -6065
- package/dist/primereact/resources/themes/arya-green/theme.css +0 -6065
- package/dist/primereact/resources/themes/arya-orange/theme.css +0 -6065
- package/dist/primereact/resources/themes/arya-purple/theme.css +0 -6065
- package/dist/primereact/resources/themes/bootstrap4-dark-blue/theme.css +0 -6066
- package/dist/primereact/resources/themes/bootstrap4-dark-purple/theme.css +0 -6066
- package/dist/primereact/resources/themes/bootstrap4-light-blue/theme.css +0 -6066
- package/dist/primereact/resources/themes/bootstrap4-light-purple/theme.css +0 -6066
- package/dist/primereact/resources/themes/fluent-light/theme.css +0 -6183
- package/dist/primereact/resources/themes/lara-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-amber/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-blue/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-cyan/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-green/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-green/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-green/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-indigo/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-pink/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-purple/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-dark-teal/theme.css +0 -6098
- package/dist/primereact/resources/themes/lara-light-amber/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-amber/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-amber/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-blue/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-cyan/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-green/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-green/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-green/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-indigo/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-pink/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-pink/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-pink/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-purple/theme.css +0 -6092
- package/dist/primereact/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
- package/dist/primereact/resources/themes/lara-light-teal/theme.css +0 -6092
- package/dist/primereact/resources/themes/luna-amber/theme.css +0 -6008
- package/dist/primereact/resources/themes/luna-blue/theme.css +0 -6008
- package/dist/primereact/resources/themes/luna-green/theme.css +0 -6008
- package/dist/primereact/resources/themes/luna-pink/theme.css +0 -6008
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-deeppurple/theme.css +0 -7454
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/md-dark-indigo/theme.css +0 -7454
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-deeppurple/theme.css +0 -7454
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/md-light-indigo/theme.css +0 -7454
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-deeppurple/theme.css +0 -7454
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-dark-indigo/theme.css +0 -7454
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-deeppurple/theme.css +0 -7454
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-500.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/fonts/roboto-v20-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/mdc-light-indigo/theme.css +0 -7454
- package/dist/primereact/resources/themes/mira/fonts/Inter-Bold.woff +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-Bold.woff2 +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-Medium.woff +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-Medium.woff2 +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-Regular.woff +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-Regular.woff2 +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-SemiBold.woff +0 -0
- package/dist/primereact/resources/themes/mira/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/primereact/resources/themes/mira/theme.css +0 -6245
- package/dist/primereact/resources/themes/nano/theme.css +0 -6051
- package/dist/primereact/resources/themes/nova/theme.css +0 -6022
- package/dist/primereact/resources/themes/nova-accent/theme.css +0 -6035
- package/dist/primereact/resources/themes/nova-alt/theme.css +0 -6034
- package/dist/primereact/resources/themes/rhea/theme.css +0 -6013
- package/dist/primereact/resources/themes/saga-blue/theme.css +0 -6062
- package/dist/primereact/resources/themes/saga-green/theme.css +0 -6062
- package/dist/primereact/resources/themes/saga-orange/theme.css +0 -6062
- package/dist/primereact/resources/themes/saga-purple/theme.css +0 -6062
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/soho-dark/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-dark/theme.css +0 -6038
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff +0 -0
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-300.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/soho-light/fonts/lato-v17-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/soho-light/theme.css +0 -6090
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Bold.woff +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Bold.woff2 +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Light.woff +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Light.woff2 +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Medium.woff +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Medium.woff2 +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Regular.woff +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-Regular.woff2 +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff +0 -0
- package/dist/primereact/resources/themes/tailwind-light/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/primereact/resources/themes/tailwind-light/theme.css +0 -6145
- package/dist/primereact/resources/themes/vela-blue/theme.css +0 -6065
- package/dist/primereact/resources/themes/vela-green/theme.css +0 -6065
- package/dist/primereact/resources/themes/vela-orange/theme.css +0 -6065
- package/dist/primereact/resources/themes/vela-purple/theme.css +0 -6065
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/viva-dark/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-dark/theme.css +0 -6180
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-300.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-600.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-700.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff +0 -0
- package/dist/primereact/resources/themes/viva-light/fonts/poppins-v15-latin-ext_latin-regular.woff2 +0 -0
- package/dist/primereact/resources/themes/viva-light/theme.css +0 -6180
- package/next.config.js +0 -6
- package/types/Editor.d.ts +0 -9
- package/types/client-components/LinkEditor.d.ts +0 -6
- package/types/client-components/MultiComponentEditor.d.ts +0 -12
- package/types/client-components/index.d.ts +0 -3
- package/types/components/Error.d.ts +0 -2
- package/types/components/Image.d.ts +0 -13
- package/types/components/Link.d.ts +0 -8
- package/types/components/LinkPreview.d.ts +0 -6
- package/types/components/LockedFieldIndicator.d.ts +0 -6
- package/types/components/Picture.d.ts +0 -20
- package/types/components/PictureEditor.d.ts +0 -3
- package/types/components/PictureEditorWrapper.d.ts +0 -3
- package/types/components/Placeholder.d.ts +0 -17
- package/types/components/RichText.d.ts +0 -10
- package/types/components/RichTextEditor.d.ts +0 -9
- package/types/components/RichTextEditorWrapper.d.ts +0 -2
- package/types/components/Slot.d.ts +0 -7
- package/types/components/Text.d.ts +0 -11
- package/types/components/TextEditor.d.ts +0 -9
- package/types/components/TextEditorWrapper.d.ts +0 -4
- package/types/components/Translate.d.ts +0 -6
- package/types/components/TranslateEditor.d.ts +0 -3
- package/types/components/TranslateEditorWrapper.d.ts +0 -3
- package/types/components/index.d.ts +0 -7
- package/types/components/picture-shared.d.ts +0 -16
- package/types/editor/ComponentInfo.d.ts +0 -4
- package/types/editor/ConfirmationDialog.d.ts +0 -19
- package/types/editor/ContentTree.d.ts +0 -18
- package/types/editor/ContextMenu.d.ts +0 -14
- package/types/editor/DialogButtons.d.ts +0 -4
- package/types/editor/DictionaryEditor.d.ts +0 -1
- package/types/editor/EditFrame.d.ts +0 -7
- package/types/editor/EditFrameWrapper.d.ts +0 -6
- package/types/editor/EditorClient.d.ts +0 -23
- package/types/editor/EditorClientHost.d.ts +0 -8
- package/types/editor/EditorWarning.d.ts +0 -6
- package/types/editor/EditorWarnings.d.ts +0 -9
- package/types/editor/FieldEditorPopup.d.ts +0 -10
- package/types/editor/FieldList.d.ts +0 -8
- package/types/editor/FieldListField.d.ts +0 -10
- package/types/editor/FieldListFieldWithFallbacks.d.ts +0 -8
- package/types/editor/FloatingToolbar.d.ts +0 -7
- package/types/editor/ItemInfo.d.ts +0 -4
- package/types/editor/LinkEditorDialog.d.ts +0 -15
- package/types/editor/MainLayout.d.ts +0 -6
- package/types/editor/MediaSelector.d.ts +0 -6
- package/types/editor/Outline.d.ts +0 -11
- package/types/editor/PageViewer.d.ts +0 -1
- package/types/editor/PictureEditorDialog.d.ts +0 -8
- package/types/editor/PlaceholderDropZone.d.ts +0 -7
- package/types/editor/PlaceholderDropZoneHost.d.ts +0 -7
- package/types/editor/PreviewClient.d.ts +0 -5
- package/types/editor/PreviewClientHost.d.ts +0 -4
- package/types/editor/PreviewPanel.d.ts +0 -1
- package/types/editor/PublishDialog.d.ts +0 -7
- package/types/editor/Terminal.d.ts +0 -10
- package/types/editor/ai/AiPopup.d.ts +0 -9
- package/types/editor/ai/AiResponseMessage.d.ts +0 -7
- package/types/editor/ai/AiTerminal.d.ts +0 -4
- package/types/editor/ai/AiToolCall.d.ts +0 -9
- package/types/editor/ai/EditorAiTerminal.d.ts +0 -4
- package/types/editor/commands/commands.d.ts +0 -21
- package/types/editor/commands/componentCommands.d.ts +0 -5
- package/types/editor/commands/createVersionCommand.d.ts +0 -2
- package/types/editor/commands/undo.d.ts +0 -15
- package/types/editor/component-designer/ComponentDesigner.d.ts +0 -1
- package/types/editor/component-designer/ComponentDesignerAiTerminal.d.ts +0 -1
- package/types/editor/component-designer/ComponentDesignerMenu.d.ts +0 -1
- package/types/editor/component-designer/ComponentPreview.d.ts +0 -1
- package/types/editor/component-designer/ComponentRenderingEditor.d.ts +0 -2
- package/types/editor/component-designer/ComponentSelectionTree.d.ts +0 -1
- package/types/editor/component-designer/componentDesignerContext.d.ts +0 -14
- package/types/editor/componentTreeHelper.d.ts +0 -3
- package/types/editor/config/config.d.ts +0 -2
- package/types/editor/config/types.d.ts +0 -66
- package/types/editor/editContext.d.ts +0 -133
- package/types/editor/editor-warnings/ItemLocked.d.ts +0 -2
- package/types/editor/editor-warnings/ValidationErrors.d.ts +0 -2
- package/types/editor/fieldTypes/CheckboxEditor.d.ts +0 -5
- package/types/editor/fieldTypes/DropLinkEditor.d.ts +0 -5
- package/types/editor/fieldTypes/InternalLinkFieldEditor.d.ts +0 -5
- package/types/editor/fieldTypes/LinkFieldEditor.d.ts +0 -5
- package/types/editor/fieldTypes/MultiLineText.d.ts +0 -5
- package/types/editor/fieldTypes/PictureFieldEditor.d.ts +0 -5
- package/types/editor/fieldTypes/RawEditor.d.ts +0 -5
- package/types/editor/fieldTypes/RichTextEditor.d.ts +0 -5
- package/types/editor/fieldTypes/RichTextEditorComponent.d.ts +0 -5
- package/types/editor/fieldTypes/SingleLineText.d.ts +0 -5
- package/types/editor/fieldTypes/TreeListEditor.d.ts +0 -5
- package/types/editor/itemCommands.d.ts +0 -3
- package/types/editor/menubar/BrowseHistory.d.ts +0 -4
- package/types/editor/menubar/ItemLanguageVersion.d.ts +0 -1
- package/types/editor/menubar/LanguageSelector.d.ts +0 -5
- package/types/editor/menubar/Menu.d.ts +0 -1
- package/types/editor/menubar/PageViewerControls.d.ts +0 -1
- package/types/editor/menubar/VersionSelector.d.ts +0 -5
- package/types/editor/previewContext.d.ts +0 -4
- package/types/editor/services/aiService.d.ts +0 -8
- package/types/editor/services/componentDesignerService.d.ts +0 -2
- package/types/editor/services/contentService.d.ts +0 -19
- package/types/editor/services/editService.d.ts +0 -23
- package/types/editor/services/serviceHelper.d.ts +0 -7
- package/types/editor/sidebar/ComponentPalette.d.ts +0 -1
- package/types/editor/sidebar/ComponentTree.d.ts +0 -1
- package/types/editor/sidebar/Debug.d.ts +0 -1
- package/types/editor/sidebar/EditHistory.d.ts +0 -1
- package/types/editor/sidebar/EditorForm.d.ts +0 -1
- package/types/editor/sidebar/GraphQL.d.ts +0 -1
- package/types/editor/sidebar/Insert.d.ts +0 -1
- package/types/editor/sidebar/MainContentTree.d.ts +0 -3
- package/types/editor/sidebar/Sessions.d.ts +0 -1
- package/types/editor/sidebar/Sidebar.d.ts +0 -4
- package/types/editor/sidebar/SidebarView.d.ts +0 -8
- package/types/editor/sidebar/Workbox.d.ts +0 -1
- package/types/editor/ui/CopyToClipboardButton.d.ts +0 -3
- package/types/editor/ui/Icons.d.ts +0 -16
- package/types/editor/ui/ItemNameDialog.d.ts +0 -11
- package/types/editor/ui/Section.d.ts +0 -5
- package/types/editor/utils/insertOptions.d.ts +0 -3
- package/types/editor/utils.d.ts +0 -8
- package/types/editor/views/ItemEditor.d.ts +0 -1
- package/types/fieldTypes.d.ts +0 -108
- package/types/graphQL.d.ts +0 -12
- package/types/graphQLTypes.d.ts +0 -24
- package/types/index.d.ts +0 -10
- package/types/loadRouteData.d.ts +0 -8
- package/types/mediaProtection.d.ts +0 -3
- package/types/middleware/handleRequest.d.ts +0 -5
- package/types/public.d.ts +0 -12
- package/types/renderContext.d.ts +0 -41
- package/types/renderings.d.ts +0 -7
- package/types/servertypes.d.ts +0 -308
- package/types/translate.d.ts +0 -2
- /package/{types → dist}/middleware/index.d.ts +0 -0
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Column } from "primereact/column";
|
|
3
|
-
import { DataTable } from "primereact/datatable";
|
|
4
|
-
import { useEditContext } from "../editContext";
|
|
5
|
-
import { Tooltip } from "primereact/tooltip";
|
|
6
|
-
import { Button } from "primereact/button";
|
|
7
|
-
import { useRef, useState } from "react";
|
|
8
|
-
import { OverlayPanel } from "primereact/overlaypanel";
|
|
9
|
-
import { classNames } from "primereact/utils";
|
|
10
|
-
export function Workbox() {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
const [validationOverlayItem, setValidationOverlayItem] = useState();
|
|
13
|
-
const editContext = useEditContext();
|
|
14
|
-
const validationResult = editContext === null || editContext === void 0 ? void 0 : editContext.pageValidationResult;
|
|
15
|
-
if (!editContext)
|
|
16
|
-
return null;
|
|
17
|
-
const validationOverlay = useRef(null);
|
|
18
|
-
const nameBodyTemplate = (wbItem) => {
|
|
19
|
-
const id = wbItem.item.id + wbItem.item.language + wbItem.item.version;
|
|
20
|
-
return (_jsx("div", { className: "a-flex a-gap-2 a-items-center", children: _jsxs("span", { className: `a-name-tooltip-${id} a-break-all`, style: { position: "relative" }, children: [wbItem.item.name, " ", _jsxs("span", { className: "a-text-gray-300", children: ["(", wbItem.item.language, ", ", wbItem.item.version, ")"] }), _jsx(Tooltip, { target: `.a-name-tooltip-${id}`, content: wbItem.path })] }) }));
|
|
21
|
-
};
|
|
22
|
-
const stateBodyTemplate = (item) => {
|
|
23
|
-
if (item.isPublishable) {
|
|
24
|
-
const targets = Object.keys(item.publishStatus);
|
|
25
|
-
return targets.map((x) => (_jsxs("div", { children: [targets.length > 1 && (_jsxs(_Fragment, { children: [_jsx("b", { children: x }), ":"] })), item.publishStatus[x]] }, x)));
|
|
26
|
-
}
|
|
27
|
-
else
|
|
28
|
-
return item.workflowState;
|
|
29
|
-
};
|
|
30
|
-
const actionsBodyTemplate = (item) => {
|
|
31
|
-
var _a;
|
|
32
|
-
return (_jsx("div", { className: "a-flex a-gap-1", children: !item.isFinalState &&
|
|
33
|
-
((_a = item.commands) === null || _a === void 0 ? void 0 : _a.map((action) => {
|
|
34
|
-
return (_jsx(Button, { label: action.name, className: "a-text-xs a-p-1", onClick: () => editContext.executeWorkflowCommand(item.item, action.id), size: "small" }, action.id));
|
|
35
|
-
})) }));
|
|
36
|
-
};
|
|
37
|
-
const validationTemplate = (item) => {
|
|
38
|
-
const validator = validationResult === null || validationResult === void 0 ? void 0 : validationResult.find((x) => x.item.id === item.item.id &&
|
|
39
|
-
x.item.language === item.item.language &&
|
|
40
|
-
x.item.version === item.item.version);
|
|
41
|
-
if (!validator || !validator.results.length)
|
|
42
|
-
return null;
|
|
43
|
-
return (_jsx("div", { className: classNames("a-cursor-pointer", getValidationErrorLevelClass(validator.results.reduce((prev, curr) => Math.max(prev, curr.result), 0))), onClick: (ev) => {
|
|
44
|
-
var _a;
|
|
45
|
-
setValidationOverlayItem(item);
|
|
46
|
-
(_a = validationOverlay.current) === null || _a === void 0 ? void 0 : _a.toggle(ev);
|
|
47
|
-
}, children: validator.results.length }));
|
|
48
|
-
};
|
|
49
|
-
let items = (_b = (_a = editContext.page) === null || _a === void 0 ? void 0 : _a._editor) === null || _b === void 0 ? void 0 : _b.workbox.items;
|
|
50
|
-
if (!items)
|
|
51
|
-
return null;
|
|
52
|
-
items = items.sort((a, b) => {
|
|
53
|
-
if (a.isPublished === b.isPublished)
|
|
54
|
-
return 0;
|
|
55
|
-
return !a.isPublished || !a.isPublishable ? -1 : 1;
|
|
56
|
-
});
|
|
57
|
-
const overlayResult = validationResult === null || validationResult === void 0 ? void 0 : validationResult.find((x) => x.item.id === (validationOverlayItem === null || validationOverlayItem === void 0 ? void 0 : validationOverlayItem.item.id) &&
|
|
58
|
-
x.item.language === (validationOverlayItem === null || validationOverlayItem === void 0 ? void 0 : validationOverlayItem.item.language) &&
|
|
59
|
-
x.item.version === (validationOverlayItem === null || validationOverlayItem === void 0 ? void 0 : validationOverlayItem.item.version));
|
|
60
|
-
const getValidationErrorLevelClass = (level) => {
|
|
61
|
-
switch (level) {
|
|
62
|
-
case 0:
|
|
63
|
-
return "a-text-green-600";
|
|
64
|
-
case 1:
|
|
65
|
-
return "a-text-blue-600";
|
|
66
|
-
case 2:
|
|
67
|
-
return "a-text-yellow-600";
|
|
68
|
-
case 3:
|
|
69
|
-
return "a-text-orange-600";
|
|
70
|
-
case 4:
|
|
71
|
-
case 5:
|
|
72
|
-
return "a-text-red-600";
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
return (_jsxs(_Fragment, { children: [_jsxs(DataTable, { value: items, className: "a-text-xs", children: [_jsx(Column, { body: nameBodyTemplate, header: "Item" }), _jsx(Column, { body: stateBodyTemplate, header: "State" }), _jsx(Column, { body: actionsBodyTemplate, header: "Actions" }), _jsx(Column, { body: validationTemplate, align: "center", header: _jsx("i", { className: "pi pi-check" }) })] }), _jsx(OverlayPanel, { ref: validationOverlay, children: _jsxs("table", { className: "a-text-xs a-border-spacing-1 a-border-separate", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "a-text-left", children: "Item" }), _jsx("th", { className: "a-text-left", children: "Field" }), _jsx("th", { className: "a-text-left", children: "Validator" }), _jsx("th", { className: "a-text-left", children: "Message" })] }) }), _jsx("tbody", { children: overlayResult &&
|
|
76
|
-
overlayResult.results.map((x) => (_jsxs("tr", { children: [_jsx("td", { children: x.itemName }), _jsx("td", { children: x.fieldName }), _jsx("td", { children: x.validator }), _jsx("td", { className: classNames("a-text-xs a-break-all a-max-w-48", getValidationErrorLevelClass(x.result)), children: x.message })] }, x.fieldId + x.itemId))) })] }) })] }));
|
|
77
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useEditContext } from "../editContext";
|
|
4
|
-
export function CopyToClipboardButton({ text }) {
|
|
5
|
-
const editContext = useEditContext();
|
|
6
|
-
const handleCopyToClipboard = (text) => {
|
|
7
|
-
navigator.clipboard.writeText(text);
|
|
8
|
-
editContext.showToast({
|
|
9
|
-
summary: "Copied to clipboard",
|
|
10
|
-
severity: "success",
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
return (_jsx("span", { className: "a-ml-1 a-cursor-pointer", onClick: () => handleCopyToClipboard(text), children: _jsx("i", { className: "pi pi-copy a-text-xs" }) }));
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export function WizardIcon({ className }) {
|
|
3
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: className, children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z" }) }));
|
|
4
|
-
}
|
|
5
|
-
export function BugIcon({ className }) {
|
|
6
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: className, children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082" }) }));
|
|
7
|
-
}
|
|
8
|
-
export function EditIcon({ className }) {
|
|
9
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.5, stroke: "currentColor", className: className, children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10" }) }));
|
|
10
|
-
}
|
|
11
|
-
export function JsonIcon({ className }) {
|
|
12
|
-
return (_jsx("svg", { fill: "#000000", version: "1.1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 58 58", className: className, children: _jsxs("g", { children: [_jsx("path", { d: "M50.949,12.187l-1.361-1.361l-9.504-9.505c-0.001-0.001-0.001-0.001-0.002-0.001l-0.77-0.771\r\n\t\tC38.957,0.195,38.486,0,37.985,0H8.963C7.776,0,6.5,0.916,6.5,2.926V39v16.537V56c0,0.837,0.841,1.652,1.836,1.909\r\n\t\tc0.051,0.014,0.1,0.033,0.152,0.043C8.644,57.983,8.803,58,8.963,58h40.074c0.16,0,0.319-0.017,0.475-0.048\r\n\t\tc0.052-0.01,0.101-0.029,0.152-0.043C50.659,57.652,51.5,56.837,51.5,56v-0.463V39V13.978C51.5,13.211,51.407,12.644,50.949,12.187\r\n\t\tz M39.5,3.565L47.935,12H39.5V3.565z M8.963,56c-0.071,0-0.135-0.025-0.198-0.049C8.61,55.877,8.5,55.721,8.5,55.537V41h41v14.537\r\n\t\tc0,0.184-0.11,0.34-0.265,0.414C49.172,55.975,49.108,56,49.037,56H8.963z M8.5,39V2.926C8.5,2.709,8.533,2,8.963,2h28.595\r\n\t\tC37.525,2.126,37.5,2.256,37.5,2.391V13.78c-0.532-0.48-1.229-0.78-2-0.78c-0.553,0-1,0.448-1,1s0.447,1,1,1c0.552,0,1,0.449,1,1v4\r\n\t\tc0,1.2,0.542,2.266,1.382,3c-0.84,0.734-1.382,1.8-1.382,3v4c0,0.551-0.448,1-1,1c-0.553,0-1,0.448-1,1s0.447,1,1,1\r\n\t\tc1.654,0,3-1.346,3-3v-4c0-1.103,0.897-2,2-2c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.103,0-2-0.897-2-2v-4\r\n\t\tc0-0.771-0.301-1.468-0.78-2h11.389c0.135,0,0.265-0.025,0.391-0.058c0,0.015,0.001,0.021,0.001,0.036V39H8.5z" }), _jsx("path", { d: "M16.354,51.43c-0.019,0.446-0.171,0.764-0.458,0.95s-0.672,0.28-1.155,0.28c-0.191,0-0.396-0.022-0.615-0.068\r\n\t\ts-0.429-0.098-0.629-0.157s-0.385-0.123-0.554-0.191s-0.299-0.135-0.39-0.198l-0.697,1.107c0.183,0.137,0.405,0.26,0.67,0.369\r\n\t\ts0.54,0.207,0.827,0.294s0.565,0.15,0.834,0.191s0.504,0.062,0.704,0.062c0.401,0,0.791-0.039,1.169-0.116\r\n\t\tc0.378-0.077,0.713-0.214,1.005-0.41s0.524-0.456,0.697-0.779s0.26-0.723,0.26-1.196v-7.848h-1.668V51.43z" }), _jsx("path", { d: "M25.083,49.064c-0.314-0.228-0.654-0.422-1.019-0.581s-0.702-0.323-1.012-0.492s-0.569-0.364-0.779-0.588\r\n\t\ts-0.314-0.518-0.314-0.882c0-0.146,0.036-0.299,0.109-0.458s0.173-0.303,0.301-0.431s0.273-0.234,0.438-0.321\r\n\t\ts0.337-0.139,0.52-0.157c0.328-0.027,0.597-0.032,0.807-0.014s0.378,0.05,0.506,0.096s0.226,0.091,0.294,0.137\r\n\t\ts0.13,0.082,0.185,0.109c0.009-0.009,0.036-0.055,0.082-0.137s0.101-0.185,0.164-0.308s0.132-0.255,0.205-0.396\r\n\t\ts0.137-0.271,0.191-0.39c-0.265-0.173-0.61-0.299-1.039-0.376s-0.853-0.116-1.271-0.116c-0.41,0-0.8,0.063-1.169,0.191\r\n\t\ts-0.692,0.313-0.971,0.554s-0.499,0.535-0.663,0.882S20.4,46.13,20.4,46.576c0,0.492,0.104,0.902,0.314,1.23\r\n\t\ts0.474,0.613,0.793,0.854s0.661,0.451,1.025,0.629s0.704,0.355,1.019,0.533s0.576,0.376,0.786,0.595s0.314,0.483,0.314,0.793\r\n\t\tc0,0.511-0.148,0.896-0.444,1.155s-0.723,0.39-1.278,0.39c-0.183,0-0.378-0.019-0.588-0.055s-0.419-0.084-0.629-0.144\r\n\t\ts-0.412-0.123-0.608-0.191s-0.357-0.139-0.485-0.212l-0.287,1.176c0.155,0.137,0.34,0.253,0.554,0.349s0.439,0.171,0.677,0.226\r\n\t\tc0.237,0.055,0.472,0.094,0.704,0.116s0.458,0.034,0.677,0.034c0.511,0,0.966-0.077,1.367-0.232s0.738-0.362,1.012-0.622\r\n\t\ts0.485-0.561,0.636-0.902s0.226-0.695,0.226-1.06c0-0.538-0.104-0.978-0.314-1.319S25.397,49.292,25.083,49.064z" }), _jsx("path", { d: "M34.872,45.072c-0.378-0.429-0.82-0.754-1.326-0.978s-1.06-0.335-1.661-0.335s-1.155,0.111-1.661,0.335\r\n\t\ts-0.948,0.549-1.326,0.978s-0.675,0.964-0.889,1.606s-0.321,1.388-0.321,2.235s0.107,1.595,0.321,2.242s0.511,1.185,0.889,1.613\r\n\t\ts0.82,0.752,1.326,0.971s1.06,0.328,1.661,0.328s1.155-0.109,1.661-0.328s0.948-0.542,1.326-0.971s0.675-0.966,0.889-1.613\r\n\t\ts0.321-1.395,0.321-2.242s-0.107-1.593-0.321-2.235S35.25,45.501,34.872,45.072z M34.195,50.698\r\n\t\tc-0.137,0.487-0.326,0.882-0.567,1.183s-0.515,0.518-0.82,0.649s-0.627,0.198-0.964,0.198c-0.328,0-0.641-0.07-0.937-0.212\r\n\t\ts-0.561-0.364-0.793-0.67s-0.415-0.699-0.547-1.183s-0.203-1.066-0.212-1.75c0.009-0.702,0.082-1.294,0.219-1.777\r\n\t\tc0.137-0.483,0.326-0.877,0.567-1.183s0.515-0.521,0.82-0.649s0.627-0.191,0.964-0.191c0.328,0,0.641,0.068,0.937,0.205\r\n\t\ts0.561,0.36,0.793,0.67s0.415,0.704,0.547,1.183s0.203,1.06,0.212,1.743C34.405,49.616,34.332,50.211,34.195,50.698z" }), _jsx("polygon", { points: "44.012,50.869 40.061,43.924 38.393,43.924 38.393,54 40.061,54 40.061,47.055 44.012,54 45.68,54 45.68,43.924 \r\n\t\t44.012,43.924 \t" }), _jsx("path", { d: "M20.5,20v-4c0-0.551,0.448-1,1-1c0.553,0,1-0.448,1-1s-0.447-1-1-1c-1.654,0-3,1.346-3,3v4c0,1.103-0.897,2-2,2\r\n\t\tc-0.553,0-1,0.448-1,1s0.447,1,1,1c1.103,0,2,0.897,2,2v4c0,1.654,1.346,3,3,3c0.553,0,1-0.448,1-1s-0.447-1-1-1\r\n\t\tc-0.552,0-1-0.449-1-1v-4c0-1.2-0.542-2.266-1.382-3C19.958,22.266,20.5,21.2,20.5,20z" }), _jsx("circle", { cx: "28.5", cy: "19.5", r: "1.5" }), _jsx("path", { d: "M28.5,25c-0.553,0-1,0.448-1,1v3c0,0.552,0.447,1,1,1s1-0.448,1-1v-3C29.5,25.448,29.053,25,28.5,25z" })] }) }));
|
|
13
|
-
}
|
|
14
|
-
export function GraphQLIcon({ className }) {
|
|
15
|
-
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", version: "1.1", id: "GraphQL_Logo", x: "0px", y: "0px", viewBox: "0 0 400 400", enableBackground: "new 0 0 400 400", className: className, children: _jsxs("g", { children: [_jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "122", y: "-0.4", transform: "matrix(-0.866 -0.5 0.5 -0.866 163.3196 363.3136)", fill: "#E535AB", width: "16.6", height: "320.3" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "39.8", y: "272.2", fill: "#E535AB", width: "320.3", height: "16.6" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "37.9", y: "312.2", transform: "matrix(-0.866 -0.5 0.5 -0.866 83.0693 663.3409)", fill: "#E535AB", width: "185", height: "16.6" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "177.1", y: "71.1", transform: "matrix(-0.866 -0.5 0.5 -0.866 463.3409 283.0693)", fill: "#E535AB", width: "185", height: "16.6" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "122.1", y: "-13", transform: "matrix(-0.5 -0.866 0.866 -0.5 126.7903 232.1221)", fill: "#E535AB", width: "16.6", height: "185" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "109.6", y: "151.6", transform: "matrix(-0.5 -0.866 0.866 -0.5 266.0828 473.3766)", fill: "#E535AB", width: "320.3", height: "16.6" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "52.5", y: "107.5", fill: "#E535AB", width: "16.6", height: "185" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "330.9", y: "107.5", fill: "#E535AB", width: "16.6", height: "185" }) }) }), _jsx("g", { children: _jsx("g", { children: _jsx("rect", { x: "262.4", y: "240.1", transform: "matrix(-0.5 -0.866 0.866 -0.5 126.7953 714.2875)", fill: "#E535AB", width: "14.5", height: "160.9" }) }) }), _jsx("path", { fill: "#E535AB", d: "M369.5,297.9c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C373.5,259.9,379.2,281.2,369.5,297.9" }), _jsx("path", { fill: "#E535AB", d: "M90.9,137c-9.6,16.7-31,22.4-47.7,12.8c-16.7-9.6-22.4-31-12.8-47.7c9.6-16.7,31-22.4,47.7-12.8 C94.8,99,100.5,120.3,90.9,137" }), _jsx("path", { fill: "#E535AB", d: "M30.5,297.9c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C61.4,320.3,40.1,314.6,30.5,297.9" }), _jsx("path", { fill: "#E535AB", d: "M309.1,137c-9.6-16.7-3.9-38,12.8-47.7c16.7-9.6,38-3.9,47.7,12.8c9.6,16.7,3.9,38-12.8,47.7 C340.1,159.4,318.7,153.7,309.1,137" }), _jsx("path", { fill: "#E535AB", d: "M200,395.8c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,380.1,219.3,395.8,200,395.8" }), _jsx("path", { fill: "#E535AB", d: "M200,74c-19.3,0-34.9-15.6-34.9-34.9c0-19.3,15.6-34.9,34.9-34.9c19.3,0,34.9,15.6,34.9,34.9 C234.9,58.4,219.3,74,200,74" })] }) }));
|
|
16
|
-
}
|
|
17
|
-
export function ArrowDownIcon() {
|
|
18
|
-
return (_jsx("svg", { width: "10", height: "5", viewBox: "0 0 10 5", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M5 5L9.33013 0.5H0.669873L5 5Z", fill: "#111111" }) }));
|
|
19
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Dialog } from "primereact/dialog";
|
|
3
|
-
import { InputText } from "primereact/inputtext";
|
|
4
|
-
import { forwardRef, useEffect, useImperativeHandle, useState } from "react";
|
|
5
|
-
import DialogButtons from "../DialogButtons";
|
|
6
|
-
import { Button } from "primereact/button";
|
|
7
|
-
const ItemNameDialog = forwardRef((_props, ref) => {
|
|
8
|
-
var _a;
|
|
9
|
-
const [visible, setVisible] = useState(false);
|
|
10
|
-
const [props, setProps] = useState();
|
|
11
|
-
const [name, setName] = useState("");
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
setName((props === null || props === void 0 ? void 0 : props.name) || "");
|
|
14
|
-
}, [props]);
|
|
15
|
-
useImperativeHandle(ref, () => ({
|
|
16
|
-
show: (props) => {
|
|
17
|
-
setVisible(true);
|
|
18
|
-
setProps(props);
|
|
19
|
-
},
|
|
20
|
-
}));
|
|
21
|
-
const isValidName = name.trim().length > 0;
|
|
22
|
-
const handleOk = () => {
|
|
23
|
-
setVisible(false);
|
|
24
|
-
props === null || props === void 0 ? void 0 : props.accept(name);
|
|
25
|
-
};
|
|
26
|
-
return (_jsxs(Dialog, { visible: visible, onHide: () => {
|
|
27
|
-
setVisible(false);
|
|
28
|
-
}, header: (_a = props === null || props === void 0 ? void 0 : props.title) !== null && _a !== void 0 ? _a : "Choose item name", children: [_jsx("div", { className: "a-pt-3", children: _jsx(InputText, { autoFocus: true, value: name, onChange: (e) => setName(e.target.value), onKeyDown: (ev) => {
|
|
29
|
-
if (ev.key === "Enter" && isValidName)
|
|
30
|
-
handleOk();
|
|
31
|
-
} }) }), _jsxs(DialogButtons, { children: [_jsx(Button, { onClick: handleOk, label: "Ok", disabled: !isValidName }), _jsx(Button, { onClick: () => setVisible(false), label: "Cancel" })] })] }));
|
|
32
|
-
});
|
|
33
|
-
export default ItemNameDialog;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { classNames } from "primereact/utils";
|
|
3
|
-
import { useLocalStorage } from "../utils";
|
|
4
|
-
export function Section({ title, children, }) {
|
|
5
|
-
const [open, setOpen] = useLocalStorage("alpaca-headless-editor-show-section-" + title, true);
|
|
6
|
-
true;
|
|
7
|
-
return (_jsxs("div", { children: [_jsxs("div", { className: "a-p-1.5 a-border-l-8 a-text-white a-text-sm a-border-blue-400 a-bg-gray-400 a-cursor-pointer a-flex a-justify-between a-items-center", onClick: () => setOpen(!open), children: [title, _jsx("i", { className: classNames(open ? "pi-chevron-up" : "pi-chevron-down", "pi a-cursor-pointer a-text-sm") })] }), open && _jsx("div", { className: "a-pt-4 a-pb-8 a-px-2", children: children })] }));
|
|
8
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getComponentById } from "../componentTreeHelper";
|
|
2
|
-
export function getInsertOptionsForCurrentSelection(editContext) {
|
|
3
|
-
const insertingPlaceholderKeys = [editContext.selectedForInsertion]
|
|
4
|
-
.map((x) => getComponentById(x, editContext.page))
|
|
5
|
-
.filter((x) => x)
|
|
6
|
-
.reduce((a, x) => a.concat(x.placeholders.map((y) => y.key)), []);
|
|
7
|
-
const selectedPlaceholderKeys = [
|
|
8
|
-
//...selection.filter((x) => x.indexOf("_") > 0),
|
|
9
|
-
...insertingPlaceholderKeys,
|
|
10
|
-
];
|
|
11
|
-
const page = editContext.page;
|
|
12
|
-
function collectInsertOptions(page, placeholderKeys) {
|
|
13
|
-
const insertOptionsMap = new Map();
|
|
14
|
-
function traverse(placeholders) {
|
|
15
|
-
var _a, _b;
|
|
16
|
-
for (const placeholder of placeholders) {
|
|
17
|
-
if (((_a = placeholder._editor) === null || _a === void 0 ? void 0 : _a.insertOptions) &&
|
|
18
|
-
(placeholderKeys.length === 0 ||
|
|
19
|
-
placeholderKeys.includes(placeholder.key))) {
|
|
20
|
-
for (const option of (_b = placeholder._editor) === null || _b === void 0 ? void 0 : _b.insertOptions) {
|
|
21
|
-
insertOptionsMap.set(option.id, option);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
for (const component of placeholder.components) {
|
|
25
|
-
traverse(component.placeholders);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
traverse(page.placeholders);
|
|
30
|
-
// Convert the map back into an array of objects
|
|
31
|
-
const insertOptionsArray = Array.from(insertOptionsMap.values());
|
|
32
|
-
insertOptionsArray.sort((a, b) => a.name.localeCompare(b.name));
|
|
33
|
-
return insertOptionsArray;
|
|
34
|
-
}
|
|
35
|
-
const currentInsertOptions = page
|
|
36
|
-
? collectInsertOptions(page, selectedPlaceholderKeys)
|
|
37
|
-
: [];
|
|
38
|
-
return currentInsertOptions;
|
|
39
|
-
}
|
package/dist/esm/editor/utils.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { useEffect, useRef } from "react";
|
|
3
|
-
// Hook
|
|
4
|
-
export function useEventListenerExt(eventName, handler, element, capture = false) {
|
|
5
|
-
// Create a ref that stores handler
|
|
6
|
-
const savedHandler = useRef();
|
|
7
|
-
// Update ref.current value if handler changes.
|
|
8
|
-
// This allows our effect below to always get latest handler ...
|
|
9
|
-
// ... without us needing to pass it in effect deps array ...
|
|
10
|
-
// ... and potentially cause effect to re-run every render.
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
savedHandler.current = handler;
|
|
13
|
-
}, [handler]);
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
// Make sure element supports addEventListener
|
|
16
|
-
// On
|
|
17
|
-
const isSupported = element && element.addEventListener;
|
|
18
|
-
if (!isSupported)
|
|
19
|
-
return;
|
|
20
|
-
// Create event listener that calls handler function stored in ref
|
|
21
|
-
const eventListener = (event) => savedHandler.current(event);
|
|
22
|
-
// Add event listener
|
|
23
|
-
element.addEventListener(eventName, eventListener, { capture: capture });
|
|
24
|
-
// Remove event listener on cleanup
|
|
25
|
-
return () => {
|
|
26
|
-
element.removeEventListener(eventName, eventListener);
|
|
27
|
-
};
|
|
28
|
-
}, [eventName, element] // Re-run if eventName or element changes
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
export const useLocalStorage = (storageKey, fallbackState) => {
|
|
32
|
-
var _a;
|
|
33
|
-
const [value, setValue] = useState(JSON.parse((_a = localStorage.getItem(storageKey)) !== null && _a !== void 0 ? _a : JSON.stringify(fallbackState)));
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
localStorage.setItem(storageKey, JSON.stringify(value));
|
|
36
|
-
}, [value, storageKey]);
|
|
37
|
-
return [value, setValue];
|
|
38
|
-
};
|
|
39
|
-
export const getSelectedText = () => {
|
|
40
|
-
// Check if window and window.getSelection are available
|
|
41
|
-
if (typeof window !== "undefined" && window.getSelection) {
|
|
42
|
-
const selection = window.getSelection();
|
|
43
|
-
if (selection && selection.rangeCount > 0) {
|
|
44
|
-
return selection.toString();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
return "";
|
|
48
|
-
};
|
|
49
|
-
export function isFieldActionExecuting(field, editContext) {
|
|
50
|
-
var _a;
|
|
51
|
-
const fieldItem = (_a = field._editor) === null || _a === void 0 ? void 0 : _a.descriptor.item;
|
|
52
|
-
if (!fieldItem) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
var action = editContext.activeFieldActions.find((x) => {
|
|
56
|
-
var _a, _b, _c, _d, _e, _f;
|
|
57
|
-
return x.field.id == field.id &&
|
|
58
|
-
((_b = (_a = x.field._editor) === null || _a === void 0 ? void 0 : _a.descriptor.item) === null || _b === void 0 ? void 0 : _b.id) == fieldItem.id &&
|
|
59
|
-
((_d = (_c = x.field._editor) === null || _c === void 0 ? void 0 : _c.descriptor.item) === null || _d === void 0 ? void 0 : _d.language) == fieldItem.language &&
|
|
60
|
-
((_f = (_e = x.field._editor) === null || _e === void 0 ? void 0 : _e.descriptor.item) === null || _f === void 0 ? void 0 : _f.version) == fieldItem.version;
|
|
61
|
-
});
|
|
62
|
-
return (action === null || action === void 0 ? void 0 : action.state) == "running";
|
|
63
|
-
}
|
|
64
|
-
export function getItemDescriptor(item) {
|
|
65
|
-
return {
|
|
66
|
-
id: item.id,
|
|
67
|
-
language: item.language,
|
|
68
|
-
version: item.version,
|
|
69
|
-
name: item.name,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { EditorWarnings } from "../EditorWarnings";
|
|
3
|
-
import { FieldList } from "../FieldList";
|
|
4
|
-
import { ItemInfo } from "../ItemInfo";
|
|
5
|
-
import { useEditContext } from "../editContext";
|
|
6
|
-
export function ItemEditor() {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
const editContext = useEditContext();
|
|
9
|
-
if (!editContext)
|
|
10
|
-
return;
|
|
11
|
-
const item = editContext.secondaryItem || editContext.page;
|
|
12
|
-
if (!item)
|
|
13
|
-
return;
|
|
14
|
-
const pageValidators = ((_b = (_a = editContext.pageValidationResult) === null || _a === void 0 ? void 0 : _a.find((x) => x.item.id === (item === null || item === void 0 ? void 0 : item.id) &&
|
|
15
|
-
x.item.language === (item === null || item === void 0 ? void 0 : item.language) &&
|
|
16
|
-
x.item.version === (item === null || item === void 0 ? void 0 : item.version))) === null || _b === void 0 ? void 0 : _b.results) || [];
|
|
17
|
-
return (_jsxs("div", { className: "a-h-full a-overflow-y-auto", children: [_jsx(EditorWarnings, { item: item }), _jsx(ItemInfo, { item: item }), _jsx(FieldList, { fields: item.fields, validators: pageValidators.filter((x) => x.itemId === item.id) })] }));
|
|
18
|
-
}
|
package/dist/esm/fieldTypes.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/graphQL.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { cookies } from "next/headers";
|
|
11
|
-
import { getApiKey } from "./loadRouteData";
|
|
12
|
-
export function executeGraphQLQuery({ query, host, path, language, mode, itemId, version, tags, revalidate, siteName, }, sessionId) {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
let url = process.env.LAYOUT_SERVICE_URL + "/alpaca/headless/graphql";
|
|
15
|
-
if (sessionId)
|
|
16
|
-
url += "?sessionId=" + sessionId;
|
|
17
|
-
console.log(`GraphQL query:`, query);
|
|
18
|
-
const request = {
|
|
19
|
-
Query: query,
|
|
20
|
-
Host: host,
|
|
21
|
-
Path: path,
|
|
22
|
-
ItemId: itemId,
|
|
23
|
-
Language: language,
|
|
24
|
-
Version: version,
|
|
25
|
-
Mode: mode,
|
|
26
|
-
SiteName: siteName,
|
|
27
|
-
};
|
|
28
|
-
const response = yield fetch(url, {
|
|
29
|
-
method: "POST",
|
|
30
|
-
credentials: "include",
|
|
31
|
-
headers: {
|
|
32
|
-
"Content-Type": "application/json",
|
|
33
|
-
Cookie: cookies().toString(),
|
|
34
|
-
"x-api-key": getApiKey(),
|
|
35
|
-
},
|
|
36
|
-
body: JSON.stringify(request),
|
|
37
|
-
next: {
|
|
38
|
-
tags: tags !== null && tags !== void 0 ? tags : ["graphql"],
|
|
39
|
-
revalidate: revalidate,
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
if (!response.ok) {
|
|
43
|
-
console.log("Could not execute graphQL query: Response code: " + response.status);
|
|
44
|
-
console.log(yield response.text());
|
|
45
|
-
return {};
|
|
46
|
-
}
|
|
47
|
-
const data = yield response.json();
|
|
48
|
-
return data;
|
|
49
|
-
});
|
|
50
|
-
}
|
package/dist/esm/graphQLTypes.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/esm/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./servertypes";
|
|
2
|
-
export * from "./loadRouteData";
|
|
3
|
-
export * from "./components";
|
|
4
|
-
export * from "./renderContext";
|
|
5
|
-
export * from "./Editor";
|
|
6
|
-
export * from "./middleware";
|
|
7
|
-
export * as GraphQLTypes from "./graphQLTypes";
|
|
8
|
-
export * from "./graphQL";
|
|
9
|
-
export { translate } from "./translate";
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { cookies, headers } from "next/headers";
|
|
11
|
-
const fetchRouteData = (path, host, mode, itemId, language, session, version) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
|
-
const request = {
|
|
13
|
-
Path: path,
|
|
14
|
-
Host: host,
|
|
15
|
-
Mode: mode,
|
|
16
|
-
ItemId: itemId,
|
|
17
|
-
Language: language,
|
|
18
|
-
SessionId: session,
|
|
19
|
-
Version: version,
|
|
20
|
-
};
|
|
21
|
-
let url = process.env.LAYOUT_SERVICE_URL + "/alpaca/headless/layout";
|
|
22
|
-
if (session)
|
|
23
|
-
url += "?session=" + session;
|
|
24
|
-
console.log(`Fetching page layout from ${url}. Host:${request.Host} Path: ${request.Path}`);
|
|
25
|
-
const requestHeaders = {
|
|
26
|
-
"Content-Type": "application/json",
|
|
27
|
-
Cookie: cookies().toString(),
|
|
28
|
-
"x-api-key": getApiKey(),
|
|
29
|
-
};
|
|
30
|
-
const headersList = headers();
|
|
31
|
-
if (headersList.get("Authorization")) {
|
|
32
|
-
requestHeaders["Authorization"] = headersList.get("Authorization");
|
|
33
|
-
}
|
|
34
|
-
const response = yield fetch(url, {
|
|
35
|
-
method: "POST",
|
|
36
|
-
body: JSON.stringify(request),
|
|
37
|
-
credentials: "include",
|
|
38
|
-
headers: requestHeaders,
|
|
39
|
-
redirect: "manual",
|
|
40
|
-
next: {
|
|
41
|
-
tags: ["pages"],
|
|
42
|
-
revalidate: mode === "preview" || mode == "edit" ? 0 : 30,
|
|
43
|
-
},
|
|
44
|
-
});
|
|
45
|
-
console.log("STATUS: " + response.status + " mode: " + mode);
|
|
46
|
-
if (response.status === 401) {
|
|
47
|
-
var auth = response.headers.get("WWW-Authenticate");
|
|
48
|
-
return { type: "unauthorized", auth: auth };
|
|
49
|
-
}
|
|
50
|
-
if (response.status === 404) {
|
|
51
|
-
return {
|
|
52
|
-
type: "notfound",
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (response.status === 301 || response.status === 302) {
|
|
56
|
-
return {
|
|
57
|
-
type: "redirect",
|
|
58
|
-
location: response.headers.get("Location"),
|
|
59
|
-
redirectType: response.status === 301 ? "permanent" : "temporary",
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
if (!response.ok) {
|
|
63
|
-
const message = yield response.text();
|
|
64
|
-
return {
|
|
65
|
-
type: "error",
|
|
66
|
-
errorCode: response.status,
|
|
67
|
-
message: message,
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
const data = yield response.json();
|
|
71
|
-
return Object.assign(Object.assign({}, data.page), { type: "page" });
|
|
72
|
-
});
|
|
73
|
-
export function loadRouteData({ path, searchParams, host, }) {
|
|
74
|
-
var _a;
|
|
75
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
const result = yield fetchRouteData(Array.isArray(path) ? (_a = path === null || path === void 0 ? void 0 : path.join("/")) !== null && _a !== void 0 ? _a : "/" : path, host, searchParams["mode"] || "normal", searchParams["itemid"], searchParams["language"], searchParams["session"], searchParams["version"]);
|
|
77
|
-
return result;
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
export function loadDictionary(siteName, language, mode, session) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
-
let url = process.env.LAYOUT_SERVICE_URL +
|
|
83
|
-
"/alpaca/headless/dictionary" +
|
|
84
|
-
(mode === "edit" ? "/editable" : "") +
|
|
85
|
-
"?siteName=" +
|
|
86
|
-
siteName +
|
|
87
|
-
"&language=" +
|
|
88
|
-
language;
|
|
89
|
-
if (session)
|
|
90
|
-
url += "&sessionId=" + session;
|
|
91
|
-
console.log(`Fetching dictionary from ${url}.`);
|
|
92
|
-
const response = yield fetch(url, {
|
|
93
|
-
method: "GET",
|
|
94
|
-
credentials: "include",
|
|
95
|
-
headers: {
|
|
96
|
-
"Content-Type": "application/json",
|
|
97
|
-
Cookie: cookies().toString(),
|
|
98
|
-
"x-api-key": getApiKey(),
|
|
99
|
-
},
|
|
100
|
-
next: {
|
|
101
|
-
tags: ["dictionary"],
|
|
102
|
-
revalidate: mode === "preview" || mode === "edit" ? 15 : 600,
|
|
103
|
-
},
|
|
104
|
-
});
|
|
105
|
-
if (!response.ok) {
|
|
106
|
-
console.log("Could not load dictionary: Response code: " + response.status);
|
|
107
|
-
console.log(yield response.text());
|
|
108
|
-
return {};
|
|
109
|
-
}
|
|
110
|
-
const data = yield response.json();
|
|
111
|
-
return data;
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
export function getApiKey() {
|
|
115
|
-
const apiKey = process.env.ALPACA_HEADLESS_API_KEY || process.env.API_KEY;
|
|
116
|
-
if (!apiKey)
|
|
117
|
-
console.log("ERROR: Could not find API key environment variable: ALPACA_HEADLESS_API_KEY");
|
|
118
|
-
return apiKey;
|
|
119
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import crypto from "crypto";
|
|
2
|
-
import "url";
|
|
3
|
-
const protectedParams = [
|
|
4
|
-
"w",
|
|
5
|
-
"h",
|
|
6
|
-
"mw",
|
|
7
|
-
"mh",
|
|
8
|
-
"sc",
|
|
9
|
-
"as",
|
|
10
|
-
"bc",
|
|
11
|
-
"db",
|
|
12
|
-
"iar",
|
|
13
|
-
"la",
|
|
14
|
-
"thn",
|
|
15
|
-
"vs",
|
|
16
|
-
"sc_content",
|
|
17
|
-
"sc_lang",
|
|
18
|
-
"sc_site",
|
|
19
|
-
"gray",
|
|
20
|
-
"rev",
|
|
21
|
-
"devicepixelratio",
|
|
22
|
-
"encodequality",
|
|
23
|
-
"rx",
|
|
24
|
-
"ry",
|
|
25
|
-
"rw",
|
|
26
|
-
"rh",
|
|
27
|
-
"crop",
|
|
28
|
-
];
|
|
29
|
-
export function hashImageUrl(url) {
|
|
30
|
-
if (!process.env.MEDIA_REQUESTPROTECTION_SHAREDSECRET)
|
|
31
|
-
return url;
|
|
32
|
-
if (!url)
|
|
33
|
-
return url;
|
|
34
|
-
const baseURL = 'http://temp-base-url.com'; // This will serve as a placeholder.
|
|
35
|
-
const uri = new URL(url.toLowerCase(), baseURL);
|
|
36
|
-
uri.searchParams.delete("hash");
|
|
37
|
-
const searchParams = protectedParams
|
|
38
|
-
.map((x) => ({ name: x, val: uri.searchParams.get(x) }))
|
|
39
|
-
.filter((x) => x.val)
|
|
40
|
-
.map((x) => x.name + "=" + x.val)
|
|
41
|
-
.join("&");
|
|
42
|
-
const stringToProtect = uri.pathname.substring(1) + "?" + searchParams;
|
|
43
|
-
const hash = crypto
|
|
44
|
-
.createHash("md5")
|
|
45
|
-
.update(stringToProtect + process.env.MEDIA_REQUESTPROTECTION_SHAREDSECRET, "utf16le")
|
|
46
|
-
.digest("hex");
|
|
47
|
-
uri.searchParams.set("hash", hash);
|
|
48
|
-
return url.startsWith('http') ? uri.toString() : uri.pathname + uri.search;
|
|
49
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { loadRouteData } from "../loadRouteData";
|
|
11
|
-
export function handleRequest({ request, mapHost, }) {
|
|
12
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
const urlSearchParams = new URLSearchParams(request.nextUrl.search);
|
|
14
|
-
const nextSearchParams = {};
|
|
15
|
-
for (const [key, value] of urlSearchParams.entries()) {
|
|
16
|
-
nextSearchParams[key] = value;
|
|
17
|
-
}
|
|
18
|
-
const result = yield loadRouteData({
|
|
19
|
-
path: request.nextUrl.pathname,
|
|
20
|
-
searchParams: nextSearchParams,
|
|
21
|
-
host: mapHost(request.headers.get("host") || ""),
|
|
22
|
-
});
|
|
23
|
-
if (result.type === "redirect") {
|
|
24
|
-
return new Response(null, {
|
|
25
|
-
status: result.redirectType === "permanent" ? 301 : 302,
|
|
26
|
-
headers: {
|
|
27
|
-
Location: result.location,
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
if (result.type === "unauthorized") {
|
|
32
|
-
if (result.auth)
|
|
33
|
-
return new Response(null, {
|
|
34
|
-
status: 401,
|
|
35
|
-
headers: {
|
|
36
|
-
"WWW-Authenticate": result.auth.replace(", Bearer", ""),
|
|
37
|
-
},
|
|
38
|
-
});
|
|
39
|
-
else
|
|
40
|
-
return new Response(null, {
|
|
41
|
-
status: 401,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./handleRequest";
|