@webiny/app-headless-cms 5.34.8 → 5.35.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HeadlessCMS.js +8 -21
- package/HeadlessCMS.js.map +1 -1
- package/admin/components/ContentEntryForm/ContentEntryForm.js +11 -51
- package/admin/components/ContentEntryForm/ContentEntryForm.js.map +1 -1
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.js +0 -16
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.js.map +1 -1
- package/admin/components/ContentEntryForm/Fields.js +4 -11
- package/admin/components/ContentEntryForm/Fields.js.map +1 -1
- package/admin/components/ContentEntryForm/Label.js +0 -8
- package/admin/components/ContentEntryForm/Label.js.map +1 -1
- package/admin/components/ContentEntryForm/RenderFieldElement.js +2 -17
- package/admin/components/ContentEntryForm/RenderFieldElement.js.map +1 -1
- package/admin/components/ContentEntryForm/functions/getValue.js +2 -8
- package/admin/components/ContentEntryForm/functions/getValue.js.map +1 -1
- package/admin/components/ContentEntryForm/functions/setValue.js +3 -9
- package/admin/components/ContentEntryForm/functions/setValue.js.map +1 -1
- package/admin/components/ContentEntryForm/useBind.js +9 -29
- package/admin/components/ContentEntryForm/useBind.js.map +1 -1
- package/admin/components/ContentEntryForm/useContentEntryForm.js +209 -330
- package/admin/components/ContentEntryForm/useContentEntryForm.js.map +1 -1
- package/admin/components/ContentEntryForm/useRenderPlugins.d.ts +1 -2
- package/admin/components/ContentEntryForm/useRenderPlugins.js +0 -3
- package/admin/components/ContentEntryForm/useRenderPlugins.js.map +1 -1
- package/admin/components/ContentModelEditor/ContentModelEditorProvider.js +103 -166
- package/admin/components/ContentModelEditor/ContentModelEditorProvider.js.map +1 -1
- package/admin/components/ContentModelEditor/Editor.d.ts +4 -1
- package/admin/components/ContentModelEditor/Editor.js +7 -40
- package/admin/components/ContentModelEditor/Editor.js.map +1 -1
- package/admin/components/ContentModelEditor/FieldsSidebar.js +5 -17
- package/admin/components/ContentModelEditor/FieldsSidebar.js.map +1 -1
- package/admin/components/ContentModelEditor/Header.js +0 -8
- package/admin/components/ContentModelEditor/Header.js.map +1 -1
- package/admin/components/ContentModelEditor/PreviewTab.js +1 -16
- package/admin/components/ContentModelEditor/PreviewTab.js.map +1 -1
- package/admin/components/ContentModelEditor/index.js +0 -4
- package/admin/components/ContentModelEditor/index.js.map +1 -1
- package/admin/components/ContentModelEditor/useModelEditor.js +0 -6
- package/admin/components/ContentModelEditor/useModelEditor.js.map +1 -1
- package/admin/components/DelayedOnChange.js +6 -31
- package/admin/components/DelayedOnChange.js.map +1 -1
- package/admin/components/Dialog.d.ts +5 -1
- package/admin/components/Dialog.js +1 -5
- package/admin/components/Dialog.js.map +1 -1
- package/admin/components/DragPreview.js +21 -39
- package/admin/components/DragPreview.js.map +1 -1
- package/admin/components/Draggable.js +28 -40
- package/admin/components/Draggable.js.map +1 -1
- package/admin/components/DropZone/Center.js +6 -19
- package/admin/components/DropZone/Center.js.map +1 -1
- package/admin/components/DropZone/Horizontal.js +5 -16
- package/admin/components/DropZone/Horizontal.js.map +1 -1
- package/admin/components/DropZone/Vertical.js +5 -15
- package/admin/components/DropZone/Vertical.js.map +1 -1
- package/admin/components/DropZone/index.js +0 -4
- package/admin/components/DropZone/index.js.map +1 -1
- package/admin/components/Droppable.js +27 -40
- package/admin/components/Droppable.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js +3 -30
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.js +8 -36
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js +15 -40
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/ValidationsSection.js +3 -11
- package/admin/components/FieldEditor/EditFieldDialog/ValidationsSection.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsList.js +10 -48
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsList.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js +2 -8
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js +3 -10
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog/getValidators.js +4 -28
- package/admin/components/FieldEditor/EditFieldDialog/getValidators.js.map +1 -1
- package/admin/components/FieldEditor/EditFieldDialog.js +16 -54
- package/admin/components/FieldEditor/EditFieldDialog.js.map +1 -1
- package/admin/components/FieldEditor/Field.js +251 -105
- package/admin/components/FieldEditor/Field.js.map +1 -1
- package/admin/components/FieldEditor/FieldEditor.js +15 -53
- package/admin/components/FieldEditor/FieldEditor.js.map +1 -1
- package/admin/components/FieldEditor/FieldEditorContext.js +42 -102
- package/admin/components/FieldEditor/FieldEditorContext.js.map +1 -1
- package/admin/components/FieldEditor/Styled.d.ts +9 -3
- package/admin/components/FieldEditor/Styled.js +1 -5
- package/admin/components/FieldEditor/Styled.js.map +1 -1
- package/admin/components/FieldEditor/index.js +0 -2
- package/admin/components/FieldEditor/index.js.map +1 -1
- package/admin/components/FieldEditor/useModelFieldEditor.js +0 -5
- package/admin/components/FieldEditor/useModelFieldEditor.js.map +1 -1
- package/admin/components/FieldEditor/utils/deleteField.js +4 -13
- package/admin/components/FieldEditor/utils/deleteField.js.map +1 -1
- package/admin/components/FieldEditor/utils/getFieldPosition.js +1 -6
- package/admin/components/FieldEditor/utils/getFieldPosition.js.map +1 -1
- package/admin/components/FieldEditor/utils/index.js +0 -5
- package/admin/components/FieldEditor/utils/index.js.map +1 -1
- package/admin/components/FieldEditor/utils/moveField.js +7 -17
- package/admin/components/FieldEditor/utils/moveField.js.map +1 -1
- package/admin/components/FieldEditor/utils/moveRow.js +2 -7
- package/admin/components/FieldEditor/utils/moveRow.js.map +1 -1
- package/admin/components/IconPicker.js +18 -43
- package/admin/components/IconPicker.js.map +1 -1
- package/admin/components/ModelFieldProvider/ModelFieldContext.d.ts +1 -1
- package/admin/components/ModelFieldProvider/ModelFieldContext.js +1 -7
- package/admin/components/ModelFieldProvider/ModelFieldContext.js.map +1 -1
- package/admin/components/ModelFieldProvider/index.js +0 -4
- package/admin/components/ModelFieldProvider/index.js.map +1 -1
- package/admin/components/ModelFieldProvider/useModelField.d.ts +1 -1
- package/admin/components/ModelFieldProvider/useModelField.js +1 -10
- package/admin/components/ModelFieldProvider/useModelField.js.map +1 -1
- package/admin/components/ModelProvider/ModelContext.js +1 -7
- package/admin/components/ModelProvider/ModelContext.js.map +1 -1
- package/admin/components/ModelProvider/index.js +0 -4
- package/admin/components/ModelProvider/index.js.map +1 -1
- package/admin/components/ModelProvider/useModel.js +0 -5
- package/admin/components/ModelProvider/useModel.js.map +1 -1
- package/admin/constants/statusLabels.js +0 -6
- package/admin/constants/statusLabels.js.map +1 -1
- package/admin/contexts/Cms/NetworkError.js +0 -5
- package/admin/contexts/Cms/NetworkError.js.map +1 -1
- package/admin/contexts/Cms/index.js +29 -70
- package/admin/contexts/Cms/index.js.map +1 -1
- package/admin/elements/ContentGroupMenuElement.js +0 -11
- package/admin/elements/ContentGroupMenuElement.js.map +1 -1
- package/admin/elements/ContentModelMenuElement.js +0 -11
- package/admin/elements/ContentModelMenuElement.js.map +1 -1
- package/admin/elements/NothingToShowElement.js +0 -24
- package/admin/elements/NothingToShowElement.js.map +1 -1
- package/admin/graphql/contentEntries.js +24 -65
- package/admin/graphql/contentEntries.js.map +1 -1
- package/admin/graphql/contentModels.js +2 -8
- package/admin/graphql/contentModels.js.map +1 -1
- package/admin/graphql/createFieldsList.js +7 -10
- package/admin/graphql/createFieldsList.js.map +1 -1
- package/admin/hooks/index.d.ts +2 -0
- package/admin/hooks/index.js +25 -14
- package/admin/hooks/index.js.map +1 -1
- package/admin/hooks/useApolloClient.js +1 -6
- package/admin/hooks/useApolloClient.js.map +1 -1
- package/admin/hooks/useCms.js +0 -6
- package/admin/hooks/useCms.js.map +1 -1
- package/admin/hooks/useContentModels.d.ts +14 -0
- package/admin/hooks/useContentModels.js +40 -0
- package/admin/hooks/useContentModels.js.map +1 -0
- package/admin/hooks/useLazyQuery.js +1 -9
- package/admin/hooks/useLazyQuery.js.map +1 -1
- package/admin/hooks/useMutation.js +1 -9
- package/admin/hooks/useMutation.js.map +1 -1
- package/admin/hooks/usePermission.d.ts +2 -2
- package/admin/hooks/usePermission.js +9 -51
- package/admin/hooks/usePermission.js.map +1 -1
- package/admin/hooks/useQuery.js +1 -9
- package/admin/hooks/useQuery.js.map +1 -1
- package/admin/hooks/useQueryLocale.js +1 -9
- package/admin/hooks/useQueryLocale.js.map +1 -1
- package/admin/menus/CmsMenuLoader.js +5 -19
- package/admin/menus/CmsMenuLoader.js.map +1 -1
- package/admin/menus/ContentGroupsMenuItems.js +4 -25
- package/admin/menus/ContentGroupsMenuItems.js.map +1 -1
- package/admin/menus/GlobalSearchPlugins.js +5 -15
- package/admin/menus/GlobalSearchPlugins.js.map +1 -1
- package/admin/menus/NothingToShowElement.js +1 -8
- package/admin/menus/NothingToShowElement.js.map +1 -1
- package/admin/plugins/apiInformation/index.js +3 -14
- package/admin/plugins/apiInformation/index.js.map +1 -1
- package/admin/plugins/arrayUtils.js +2 -10
- package/admin/plugins/arrayUtils.js.map +1 -1
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.js +0 -14
- package/admin/plugins/definitions/CmsEditorFieldValidatorFileTypePlugin.js.map +1 -1
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.js +0 -14
- package/admin/plugins/definitions/CmsFieldValidatorFileTypePlugin.js.map +1 -1
- package/admin/plugins/editor/defaultBar/BackButton.js +1 -11
- package/admin/plugins/editor/defaultBar/BackButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/CreateContentButton.js +2 -19
- package/admin/plugins/editor/defaultBar/CreateContentButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Divider.d.ts +5 -2
- package/admin/plugins/editor/defaultBar/Divider.js +0 -3
- package/admin/plugins/editor/defaultBar/Divider.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.js +9 -36
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.js +3 -13
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.d.ts +8 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.js +0 -7
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.js.map +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/index.js +0 -2
- package/admin/plugins/editor/defaultBar/FormSettings/index.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/Name.js +11 -30
- package/admin/plugins/editor/defaultBar/Name/Name.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/NameStyled.d.ts +13 -4
- package/admin/plugins/editor/defaultBar/Name/NameStyled.js +0 -4
- package/admin/plugins/editor/defaultBar/Name/NameStyled.js.map +1 -1
- package/admin/plugins/editor/defaultBar/Name/index.js +0 -1
- package/admin/plugins/editor/defaultBar/Name/index.js.map +1 -1
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.js +24 -50
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.js.map +1 -1
- package/admin/plugins/editor/defaultBar/index.js +0 -9
- package/admin/plugins/editor/defaultBar/index.js.map +1 -1
- package/admin/plugins/editor/formSettings/components/GeneralSettings.d.ts +2 -2
- package/admin/plugins/editor/formSettings/components/GeneralSettings.js +22 -9
- package/admin/plugins/editor/formSettings/components/GeneralSettings.js.map +1 -1
- package/admin/plugins/editor/formSettings/components/GroupSelect.js +3 -14
- package/admin/plugins/editor/formSettings/components/GroupSelect.js.map +1 -1
- package/admin/plugins/editor/formSettings/index.js +0 -6
- package/admin/plugins/editor/formSettings/index.js.map +1 -1
- package/admin/plugins/entry/DefaultOnEntryDelete.js +93 -140
- package/admin/plugins/entry/DefaultOnEntryDelete.js.map +1 -1
- package/admin/plugins/entry/DefaultOnEntryPublish.js +70 -112
- package/admin/plugins/entry/DefaultOnEntryPublish.js.map +1 -1
- package/admin/plugins/fieldRenderers/Accordion.js +8 -21
- package/admin/plugins/fieldRenderers/Accordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/DynamicSection.js +11 -28
- package/admin/plugins/fieldRenderers/DynamicSection.js.map +1 -1
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js +1 -10
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js.map +1 -1
- package/admin/plugins/fieldRenderers/boolean/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/boolean/index.js +0 -3
- package/admin/plugins/fieldRenderers/boolean/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/checkboxes.js +6 -17
- package/admin/plugins/fieldRenderers/checkboxes.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateOnly.js +20 -41
- package/admin/plugins/fieldRenderers/dateTime/DateOnly.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js +51 -97
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js +46 -85
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Input.js +1 -10
- package/admin/plugins/fieldRenderers/dateTime/Input.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Select.js +0 -5
- package/admin/plugins/fieldRenderers/dateTime/Select.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/Time.js +19 -39
- package/admin/plugins/fieldRenderers/dateTime/Time.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js +1 -14
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.js +1 -21
- package/admin/plugins/fieldRenderers/dateTime/dateTimeFields.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/dateTime/index.js +0 -4
- package/admin/plugins/fieldRenderers/dateTime/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/dateTime/utils.js +2 -31
- package/admin/plugins/fieldRenderers/dateTime/utils.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.d.ts +3 -3
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.js +15 -37
- package/admin/plugins/fieldRenderers/dynamicZone/AddTemplate.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.d.ts +4 -4
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.js +11 -36
- package/admin/plugins/fieldRenderers/dynamicZone/MultiValueDynamicZone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.d.ts +4 -4
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.js +3 -17
- package/admin/plugins/fieldRenderers/dynamicZone/SingleValueDynamicZone.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateCard.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateCard.js +1 -10
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateCard.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.js +2 -15
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateGallery.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.js +0 -5
- package/admin/plugins/fieldRenderers/dynamicZone/TemplateIcon.js.map +1 -1
- package/admin/plugins/fieldRenderers/dynamicZone/dynamicZoneRenderer.js +4 -14
- package/admin/plugins/fieldRenderers/dynamicZone/dynamicZoneRenderer.js.map +1 -1
- package/admin/plugins/fieldRenderers/file/File.js +6 -21
- package/admin/plugins/fieldRenderers/file/File.js.map +1 -1
- package/admin/plugins/fieldRenderers/file/fileField.js +3 -15
- package/admin/plugins/fieldRenderers/file/fileField.js.map +1 -1
- package/admin/plugins/fieldRenderers/file/fileFields.js +6 -25
- package/admin/plugins/fieldRenderers/file/fileFields.js.map +1 -1
- package/admin/plugins/fieldRenderers/file/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/file/index.js +0 -4
- package/admin/plugins/fieldRenderers/file/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/file/utils.js +1 -12
- package/admin/plugins/fieldRenderers/file/utils.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/longText/index.js +0 -4
- package/admin/plugins/fieldRenderers/longText/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/longText.js +1 -10
- package/admin/plugins/fieldRenderers/longText/longText.js.map +1 -1
- package/admin/plugins/fieldRenderers/longText/longTexts.js +1 -12
- package/admin/plugins/fieldRenderers/longText/longTexts.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/number/index.js +0 -4
- package/admin/plugins/fieldRenderers/number/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/numberInput.js +1 -10
- package/admin/plugins/fieldRenderers/number/numberInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/number/numberInputs.js +1 -12
- package/admin/plugins/fieldRenderers/number/numberInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/StyledComponents.d.ts +9 -3
- package/admin/plugins/fieldRenderers/object/StyledComponents.js +0 -4
- package/admin/plugins/fieldRenderers/object/StyledComponents.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/object/index.js +0 -6
- package/admin/plugins/fieldRenderers/object/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/multipleObjects.js +12 -37
- package/admin/plugins/fieldRenderers/object/multipleObjects.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/multipleObjectsAccordion.js +12 -36
- package/admin/plugins/fieldRenderers/object/multipleObjectsAccordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/singleObjectAccordion.js +2 -11
- package/admin/plugins/fieldRenderers/object/singleObjectAccordion.js.map +1 -1
- package/admin/plugins/fieldRenderers/object/singleObjectInline.js +2 -14
- package/admin/plugins/fieldRenderers/object/singleObjectInline.js.map +1 -1
- package/admin/plugins/fieldRenderers/radioButtons.js +6 -17
- package/admin/plugins/fieldRenderers/radioButtons.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.js +277 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedMultipleReferenceField.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.js +181 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/AdvancedSingleReferenceField.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.d.ts +9 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.js +62 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entries.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.d.ts +27 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.js +153 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Entry.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.d.ts +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.js +37 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Loader.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/NewReferencedEntryDialog.d.ts +9 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/NewReferencedEntryDialog.js +142 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/NewReferencedEntryDialog.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.d.ts +9 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.js +118 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Options.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.d.ts +11 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.js +183 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/ReferencesDialog.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.d.ts +7 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.js +60 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/Search.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/assets/add-circle.svg +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/assets/down-arrow.svg +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/assets/link.svg +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/assets/search.svg +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/Dialog.d.ts +19 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/Dialog.js +35 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/Dialog.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/DialogHeader.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/DialogHeader.js +90 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/DialogHeader.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/dialog/assets/close.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.js +64 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Box.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.js +26 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/CreatedBy.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.d.ts +6 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.js +31 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Description.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.d.ts +9 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.js +65 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Image.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.d.ts +6 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.js +25 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModelName.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.js +30 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/ModifiedBy.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.d.ts +7 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.js +24 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveDown.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.d.ts +7 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.js +24 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/MoveUp.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.js +44 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Remove.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.d.ts +9 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.js +82 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Select.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.d.ts +7 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.js +32 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Status.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.d.ts +6 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.js +24 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/Title.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.d.ts +7 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.js +22 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/View.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/move-down.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/move-up.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/remove.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/selected.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/status-draft.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/status-published.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/status-unpublished.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/assets/view.svg +3 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.d.ts +18 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.js +84 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/entry/elements/ButtonLink.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.js +55 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelList.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.d.ts +8 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.js +98 -0
- package/admin/plugins/fieldRenderers/ref/advanced/components/options/OptionsModelListItem.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferenceRenderer.d.ts +2 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferenceRenderer.js +46 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferenceRenderer.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.d.ts +2 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.js +45 -0
- package/admin/plugins/fieldRenderers/ref/advanced/detailedReferencesRenderer.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/graphql.d.ts +44 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/graphql.js +17 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/graphql.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useEntries.d.ts +15 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useEntries.js +187 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useEntries.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useReferences.d.ts +12 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useReferences.js +214 -0
- package/admin/plugins/fieldRenderers/ref/advanced/hooks/useReferences.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/index.d.ts +1 -0
- package/admin/plugins/fieldRenderers/ref/advanced/index.js +12 -0
- package/admin/plugins/fieldRenderers/ref/advanced/index.js.map +1 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js +15 -46
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js +19 -46
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/EntryStatus.js +4 -17
- package/admin/plugins/fieldRenderers/ref/components/EntryStatus.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/MissingEntryHelpText.js +0 -15
- package/admin/plugins/fieldRenderers/ref/components/MissingEntryHelpText.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/NewRefEntryFormDialog.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/NewRefEntryFormDialog.js +15 -61
- package/admin/plugins/fieldRenderers/ref/components/NewRefEntryFormDialog.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/createEntryUrl.js +1 -5
- package/admin/plugins/fieldRenderers/ref/components/createEntryUrl.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/graphql.js +2 -7
- package/admin/plugins/fieldRenderers/ref/components/graphql.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/helpers.js +0 -12
- package/admin/plugins/fieldRenderers/ref/components/helpers.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/renderItem.js +0 -14
- package/admin/plugins/fieldRenderers/ref/components/renderItem.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/types.d.ts +11 -1
- package/admin/plugins/fieldRenderers/ref/components/types.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/useReference.js +51 -99
- package/admin/plugins/fieldRenderers/ref/components/useReference.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js +53 -83
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntry.js +4 -20
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntry.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntryDialog.js +5 -17
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntryDialog.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/ref/index.js +3 -5
- package/admin/plugins/fieldRenderers/ref/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/refInput.js +0 -9
- package/admin/plugins/fieldRenderers/ref/refInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/ref/refInputs.js +0 -10
- package/admin/plugins/fieldRenderers/ref/refInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/richText/index.js +0 -4
- package/admin/plugins/fieldRenderers/richText/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/richTextInput.js +1 -13
- package/admin/plugins/fieldRenderers/richText/richTextInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js +1 -18
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js.map +1 -1
- package/admin/plugins/fieldRenderers/select.js +2 -15
- package/admin/plugins/fieldRenderers/select.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/index.d.ts +1 -1
- package/admin/plugins/fieldRenderers/text/index.js +0 -4
- package/admin/plugins/fieldRenderers/text/index.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/textInput.js +1 -10
- package/admin/plugins/fieldRenderers/text/textInput.js.map +1 -1
- package/admin/plugins/fieldRenderers/text/textInputs.js +1 -12
- package/admin/plugins/fieldRenderers/text/textInputs.js.map +1 -1
- package/admin/plugins/fieldValidators/date/availableValidators.js +0 -4
- package/admin/plugins/fieldValidators/date/availableValidators.js.map +1 -1
- package/admin/plugins/fieldValidators/date/createDateInputField.js +0 -10
- package/admin/plugins/fieldValidators/date/createDateInputField.js.map +1 -1
- package/admin/plugins/fieldValidators/dateGte.js +21 -48
- package/admin/plugins/fieldValidators/dateGte.js.map +1 -1
- package/admin/plugins/fieldValidators/dateLte.js +21 -48
- package/admin/plugins/fieldValidators/dateLte.js.map +1 -1
- package/admin/plugins/fieldValidators/dynamicZone.js +81 -133
- package/admin/plugins/fieldValidators/dynamicZone.js.map +1 -1
- package/admin/plugins/fieldValidators/gte.js +14 -31
- package/admin/plugins/fieldValidators/gte.js.map +1 -1
- package/admin/plugins/fieldValidators/in.js +14 -31
- package/admin/plugins/fieldValidators/in.js.map +1 -1
- package/admin/plugins/fieldValidators/lte.js +14 -31
- package/admin/plugins/fieldValidators/lte.js.map +1 -1
- package/admin/plugins/fieldValidators/maxLength.js +14 -31
- package/admin/plugins/fieldValidators/maxLength.js.map +1 -1
- package/admin/plugins/fieldValidators/minLength.js +14 -31
- package/admin/plugins/fieldValidators/minLength.js.map +1 -1
- package/admin/plugins/fieldValidators/pattern.js +31 -63
- package/admin/plugins/fieldValidators/pattern.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/email.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/lowerCaseSpace.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/upperCaseSpace.js.map +1 -1
- package/admin/plugins/fieldValidators/patternPlugins/url.js.map +1 -1
- package/admin/plugins/fieldValidators/required.js +0 -2
- package/admin/plugins/fieldValidators/required.js.map +1 -1
- package/admin/plugins/fieldValidators/unique.js +6 -16
- package/admin/plugins/fieldValidators/unique.js.map +1 -1
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.js +9 -31
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.js.map +1 -1
- package/admin/plugins/fields/boolean.js +0 -11
- package/admin/plugins/fields/boolean.js.map +1 -1
- package/admin/plugins/fields/dateTime.js +2 -19
- package/admin/plugins/fields/dateTime.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/AddTemplate.d.ts +3 -3
- package/admin/plugins/fields/dynamicZone/AddTemplate.js +16 -39
- package/admin/plugins/fields/dynamicZone/AddTemplate.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/DynamicZone.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/DynamicZone.js +2 -22
- package/admin/plugins/fields/dynamicZone/DynamicZone.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.js +12 -35
- package/admin/plugins/fields/dynamicZone/DynamicZoneTemplate.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/TemplateDialog.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone/TemplateDialog.js +5 -38
- package/admin/plugins/fields/dynamicZone/TemplateDialog.js.map +1 -1
- package/admin/plugins/fields/dynamicZone/commonValidators.js.map +1 -1
- package/admin/plugins/fields/dynamicZone.d.ts +2 -2
- package/admin/plugins/fields/dynamicZone.js +4 -18
- package/admin/plugins/fields/dynamicZone.js.map +1 -1
- package/admin/plugins/fields/file.js +0 -11
- package/admin/plugins/fields/file.js.map +1 -1
- package/admin/plugins/fields/longText.js +0 -11
- package/admin/plugins/fields/longText.js.map +1 -1
- package/admin/plugins/fields/number.js +0 -12
- package/admin/plugins/fields/number.js.map +1 -1
- package/admin/plugins/fields/object/ObjectFields.js +3 -13
- package/admin/plugins/fields/object/ObjectFields.js.map +1 -1
- package/admin/plugins/fields/object.js +4 -11
- package/admin/plugins/fields/object.js.map +1 -1
- package/admin/plugins/fields/ref/graphql.d.ts +8 -0
- package/admin/plugins/fields/ref/graphql.js +12 -0
- package/admin/plugins/fields/ref/graphql.js.map +1 -0
- package/admin/plugins/fields/ref/renderInfo.d.ts +9 -0
- package/admin/plugins/fields/ref/renderInfo.js +116 -0
- package/admin/plugins/fields/ref/renderInfo.js.map +1 -0
- package/admin/plugins/fields/ref.js +27 -59
- package/admin/plugins/fields/ref.js.map +1 -1
- package/admin/plugins/fields/richText.js +0 -11
- package/admin/plugins/fields/richText.js.map +1 -1
- package/admin/plugins/fields/text.js +0 -12
- package/admin/plugins/fields/text.js.map +1 -1
- package/admin/plugins/getObjectId.js +0 -4
- package/admin/plugins/getObjectId.js.map +1 -1
- package/admin/plugins/icons.js +2 -12
- package/admin/plugins/icons.js.map +1 -1
- package/admin/plugins/index.d.ts +3 -3
- package/admin/plugins/index.js +0 -12
- package/admin/plugins/index.js.map +1 -1
- package/admin/plugins/install.js +22 -87
- package/admin/plugins/install.js.map +1 -1
- package/admin/plugins/permissionRenderer/CmsPermissions.js +18 -72
- package/admin/plugins/permissionRenderer/CmsPermissions.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.js +6 -24
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.js +4 -19
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelList.js +5 -18
- package/admin/plugins/permissionRenderer/components/ContentModelList.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js +9 -29
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js +2 -8
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/PermissionSelector.js +11 -27
- package/admin/plugins/permissionRenderer/components/PermissionSelector.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/StyledComponents.d.ts +5 -2
- package/admin/plugins/permissionRenderer/components/StyledComponents.js +0 -3
- package/admin/plugins/permissionRenderer/components/StyledComponents.js.map +1 -1
- package/admin/plugins/permissionRenderer/components/useCmsData.d.ts +1 -0
- package/admin/plugins/permissionRenderer/components/useCmsData.js +60 -65
- package/admin/plugins/permissionRenderer/components/useCmsData.js.map +1 -1
- package/admin/plugins/permissionRenderer/index.js +0 -6
- package/admin/plugins/permissionRenderer/index.js.map +1 -1
- package/admin/plugins/routes.js +3 -20
- package/admin/plugins/routes.js.map +1 -1
- package/admin/plugins/transformers/dateTransformer.js +5 -36
- package/admin/plugins/transformers/dateTransformer.js.map +1 -1
- package/admin/plugins/transformers/dynamicZoneTransformer.js +3 -12
- package/admin/plugins/transformers/dynamicZoneTransformer.js.map +1 -1
- package/admin/plugins/transformers/index.js +0 -5
- package/admin/plugins/transformers/index.js.map +1 -1
- package/admin/plugins/transformers/numberTransformer.js +0 -3
- package/admin/plugins/transformers/numberTransformer.js.map +1 -1
- package/admin/plugins/welcomeScreenWidget.js +0 -6
- package/admin/plugins/welcomeScreenWidget.js.map +1 -1
- package/admin/views/contentEntries/ContentEntries.js +8 -88
- package/admin/views/contentEntries/ContentEntries.js.map +1 -1
- package/admin/views/contentEntries/ContentEntriesContainer.d.ts +4 -0
- package/admin/views/contentEntries/ContentEntriesContainer.js +65 -0
- package/admin/views/contentEntries/ContentEntriesContainer.js.map +1 -0
- package/admin/views/contentEntries/ContentEntriesContext.d.ts +1 -1
- package/admin/views/contentEntries/ContentEntriesContext.js +14 -39
- package/admin/views/contentEntries/ContentEntriesContext.js.map +1 -1
- package/admin/views/contentEntries/ContentEntriesList.js +19 -54
- package/admin/views/contentEntries/ContentEntriesList.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.d.ts +1 -1
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js +33 -79
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/PublishEntryRevisionListItem.js +0 -12
- package/admin/views/contentEntries/ContentEntry/PublishEntryRevisionListItem.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.js +21 -61
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/RevisionsList.js +3 -19
- package/admin/views/contentEntries/ContentEntry/RevisionsList.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/cache.js +10 -64
- package/admin/views/contentEntries/ContentEntry/cache.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/Header.js +0 -9
- package/admin/views/contentEntries/ContentEntry/header/Header.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/contentFormOptionsMenu/ContentFormOptionsMenu.js +48 -94
- package/admin/views/contentEntries/ContentEntry/header/contentFormOptionsMenu/ContentFormOptionsMenu.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/index.js +0 -8
- package/admin/views/contentEntries/ContentEntry/header/index.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/revisionSelector/RevisionSelector.js +5 -22
- package/admin/views/contentEntries/ContentEntry/header/revisionSelector/RevisionSelector.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/saveAndPublishContent/SaveAndPublishContent.js +30 -62
- package/admin/views/contentEntries/ContentEntry/header/saveAndPublishContent/SaveAndPublishContent.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/header/saveContent/SaveContent.js +3 -17
- package/admin/views/contentEntries/ContentEntry/header/saveContent/SaveContent.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/prepareFormData.js +2 -35
- package/admin/views/contentEntries/ContentEntry/prepareFormData.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry/useRevision.js +81 -146
- package/admin/views/contentEntries/ContentEntry/useRevision.js.map +1 -1
- package/admin/views/contentEntries/ContentEntry.js +9 -32
- package/admin/views/contentEntries/ContentEntry.js.map +1 -1
- package/admin/views/contentEntries/experiment/ContentEntriesModule.js +1 -13
- package/admin/views/contentEntries/experiment/ContentEntriesModule.js.map +1 -1
- package/admin/views/contentEntries/experiment/ContentEntriesRenderer.js +0 -8
- package/admin/views/contentEntries/experiment/ContentEntriesRenderer.js.map +1 -1
- package/admin/views/contentEntries/experiment/ContentEntriesViewConfig.d.ts +2 -0
- package/admin/views/contentEntries/experiment/ContentEntriesViewConfig.js +50 -74
- package/admin/views/contentEntries/experiment/ContentEntriesViewConfig.js.map +1 -1
- package/admin/views/contentEntries/hooks/index.d.ts +3 -0
- package/admin/views/contentEntries/hooks/index.js +38 -0
- package/admin/views/contentEntries/hooks/index.js.map +1 -0
- package/admin/views/contentEntries/hooks/useContentEntries.js +0 -5
- package/admin/views/contentEntries/hooks/useContentEntries.js.map +1 -1
- package/admin/views/contentEntries/hooks/useContentEntriesList.d.ts +1 -1
- package/admin/views/contentEntries/hooks/useContentEntriesList.js +31 -54
- package/admin/views/contentEntries/hooks/useContentEntriesList.js.map +1 -1
- package/admin/views/contentEntries/hooks/useContentEntry.js +0 -5
- package/admin/views/contentEntries/hooks/useContentEntry.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroups.js +2 -15
- package/admin/views/contentModelGroups/ContentModelGroups.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js +66 -120
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js.map +1 -1
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js +72 -129
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js.map +1 -1
- package/admin/views/contentModelGroups/graphql.js +1 -9
- package/admin/views/contentModelGroups/graphql.js.map +1 -1
- package/admin/views/contentModels/CloneContentModelDialog.d.ts +5 -6
- package/admin/views/contentModels/CloneContentModelDialog.js +120 -164
- package/admin/views/contentModels/CloneContentModelDialog.js.map +1 -1
- package/admin/views/contentModels/ContentModelEditor.js +3 -17
- package/admin/views/contentModels/ContentModelEditor.js.map +1 -1
- package/admin/views/contentModels/ContentModels.js +10 -30
- package/admin/views/contentModels/ContentModels.js.map +1 -1
- package/admin/views/contentModels/ContentModelsDataList.js +105 -139
- package/admin/views/contentModels/ContentModelsDataList.js.map +1 -1
- package/admin/views/contentModels/NewContentModelDialog.js +118 -221
- package/admin/views/contentModels/NewContentModelDialog.js.map +1 -1
- package/admin/views/contentModels/cache.js +5 -28
- package/admin/views/contentModels/cache.js.map +1 -1
- package/admin/views/contentModels/helpers/apiNameValidator.d.ts +8 -0
- package/admin/views/contentModels/helpers/apiNameValidator.js +116 -0
- package/admin/views/contentModels/helpers/apiNameValidator.js.map +1 -0
- package/admin/views/contentModels/helpers/nameValidator.d.ts +6 -0
- package/admin/views/contentModels/helpers/nameValidator.js +63 -0
- package/admin/views/contentModels/helpers/nameValidator.js.map +1 -0
- package/admin/views/utils.js +3 -9
- package/admin/views/utils.js.map +1 -1
- package/admin/viewsGraphql.js +7 -11
- package/admin/viewsGraphql.js.map +1 -1
- package/allPlugins.d.ts +3 -3
- package/allPlugins.js +0 -44
- package/allPlugins.js.map +1 -1
- package/index.js +0 -5
- package/index.js.map +1 -1
- package/package.json +27 -28
- package/types/index.d.ts +40 -18
- package/types/index.js +0 -6
- package/types/index.js.map +1 -1
- package/types/model.d.ts +10 -5
- package/types/model.js.map +1 -1
- package/types/shared.d.ts +1 -1
- package/types/shared.js.map +1 -1
- package/utils/CmsModelFieldValidatorConfigAdapter.js +0 -12
- package/utils/CmsModelFieldValidatorConfigAdapter.js.map +1 -1
- package/utils/createTypeName.js +0 -5
- package/utils/createTypeName.js.map +1 -1
- package/utils/createValidators.js +40 -61
- package/utils/createValidators.js.map +1 -1
- package/utils/getFetchPolicy.js +0 -2
- package/utils/getFetchPolicy.js.map +1 -1
- package/utils/getModelTitleFieldId.js +0 -3
- package/utils/getModelTitleFieldId.js.map +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -9,11 +8,8 @@ var _exportNames = {
|
|
|
9
8
|
Dialog: true
|
|
10
9
|
};
|
|
11
10
|
exports.Dialog = void 0;
|
|
12
|
-
|
|
13
11
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
14
|
-
|
|
15
12
|
var _Dialog = require("@webiny/ui/Dialog");
|
|
16
|
-
|
|
17
13
|
Object.keys(_Dialog).forEach(function (key) {
|
|
18
14
|
if (key === "default" || key === "__esModule") return;
|
|
19
15
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -28,5 +24,5 @@ Object.keys(_Dialog).forEach(function (key) {
|
|
|
28
24
|
var Dialog = /*#__PURE__*/(0, _styled.default)(_Dialog.Dialog, {
|
|
29
25
|
label: "Dialog",
|
|
30
26
|
target: "e1q5k1p00"
|
|
31
|
-
})(".mdc-dialog__surface{width:600px;min-width:600px;overflow:initial;}.mdc-dialog__content{overflow:
|
|
27
|
+
})(".mdc-dialog__surface{width:600px;min-width:600px;overflow:initial;}.mdc-dialog__content{overflow:auto;.mdc-list:first-of-type{padding:0;}}");
|
|
32
28
|
exports.Dialog = Dialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Dialog","styled","BaseDialog"],"sources":["Dialog.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Dialog as BaseDialog } from \"@webiny/ui/Dialog\";\nexport * from \"@webiny/ui/Dialog\";\n\nexport const Dialog = styled(BaseDialog)`\n .mdc-dialog__surface {\n width: 600px;\n min-width: 600px;\n overflow: initial;\n }\n\n .mdc-dialog__content {\n overflow:
|
|
1
|
+
{"version":3,"names":["Dialog","styled","BaseDialog"],"sources":["Dialog.tsx"],"sourcesContent":["import styled from \"@emotion/styled\";\nimport { Dialog as BaseDialog } from \"@webiny/ui/Dialog\";\nexport * from \"@webiny/ui/Dialog\";\n\nexport const Dialog = styled(BaseDialog)`\n .mdc-dialog__surface {\n width: 600px;\n min-width: 600px;\n overflow: initial;\n }\n\n .mdc-dialog__content {\n overflow: auto;\n .mdc-list:first-of-type {\n padding: 0;\n }\n }\n`;\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AAEO,IAAMA,MAAM,oBAAGC,eAAM,EAACC,cAAU;EAAA;EAAA;AAAA,gJAatC;AAAC"}
|
|
@@ -1,74 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
-
|
|
7
5
|
Object.defineProperty(exports, "__esModule", {
|
|
8
6
|
value: true
|
|
9
7
|
});
|
|
10
8
|
exports.default = void 0;
|
|
11
|
-
|
|
12
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
|
-
|
|
16
11
|
var _reactDnd = require("react-dnd");
|
|
17
|
-
|
|
18
12
|
var subscribedToOffsetChange = false;
|
|
19
13
|
var dragPreviewRef = null;
|
|
20
|
-
|
|
21
14
|
var onOffsetChange = function onOffsetChange(monitor) {
|
|
22
15
|
return function () {
|
|
23
16
|
if (!dragPreviewRef) {
|
|
24
17
|
return;
|
|
25
18
|
}
|
|
26
|
-
|
|
27
19
|
var offset = monitor.getClientOffset();
|
|
28
|
-
|
|
29
20
|
if (!offset) {
|
|
30
21
|
return;
|
|
31
22
|
}
|
|
32
|
-
|
|
33
23
|
var transform = "translate(".concat(offset.x - 15, "px, ").concat(offset.y - 15, "px)");
|
|
34
|
-
dragPreviewRef.style["transform"] = transform;
|
|
35
|
-
|
|
24
|
+
dragPreviewRef.style["transform"] = transform;
|
|
25
|
+
// TODO @ts-refactor figure out better type
|
|
36
26
|
dragPreviewRef.style["-webkit-transform"] = transform;
|
|
37
27
|
};
|
|
38
28
|
};
|
|
39
|
-
|
|
40
29
|
var DragPreview = function DragPreview() {
|
|
41
30
|
var _useState = (0, _react.useState)(0),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
31
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
32
|
+
dragHelperOpacity = _useState2[0],
|
|
33
|
+
setDragHelperOpacity = _useState2[1];
|
|
46
34
|
var _useDragLayer = (0, _reactDnd.useDragLayer)(function (initialMonitor) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
isDragging = _useDragLayer.isDragging;
|
|
62
|
-
|
|
35
|
+
/**
|
|
36
|
+
* We must cast because TS is complaining. We know that casting as DragSourceMonitorImpl is ok.
|
|
37
|
+
*/
|
|
38
|
+
var monitor = initialMonitor;
|
|
39
|
+
if (!subscribedToOffsetChange) {
|
|
40
|
+
monitor.subscribeToOffsetChange(onOffsetChange(monitor));
|
|
41
|
+
subscribedToOffsetChange = true;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
isDragging: monitor.isDragging()
|
|
45
|
+
};
|
|
46
|
+
}),
|
|
47
|
+
isDragging = _useDragLayer.isDragging;
|
|
63
48
|
(0, _react.useEffect)(function () {
|
|
64
49
|
return function () {
|
|
65
50
|
subscribedToOffsetChange = false;
|
|
66
51
|
dragPreviewRef = null;
|
|
67
52
|
};
|
|
68
|
-
}, []);
|
|
53
|
+
}, []);
|
|
54
|
+
|
|
55
|
+
// We track the value of "isDragging" and apply opacity=1 (after 100ms), when it switches to true.
|
|
69
56
|
// Without this, the drag cursor would be shown in the top-left corner for a short amount of time, and then it
|
|
70
57
|
// would be repositioned correctly. Definitely looks like a glitch. This also adds a nice little fade-in effect.
|
|
71
|
-
|
|
72
58
|
(0, _react.useEffect)(function () {
|
|
73
59
|
if (isDragging) {
|
|
74
60
|
setTimeout(function () {
|
|
@@ -78,15 +64,12 @@ var DragPreview = function DragPreview() {
|
|
|
78
64
|
setDragHelperOpacity(0);
|
|
79
65
|
}
|
|
80
66
|
}, [isDragging]);
|
|
81
|
-
|
|
82
67
|
if (!isDragging) {
|
|
83
68
|
return null;
|
|
84
69
|
}
|
|
85
|
-
|
|
86
70
|
if (!isDragging) {
|
|
87
71
|
return null;
|
|
88
72
|
}
|
|
89
|
-
|
|
90
73
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
91
74
|
style: {
|
|
92
75
|
position: "fixed",
|
|
@@ -115,6 +98,5 @@ var DragPreview = function DragPreview() {
|
|
|
115
98
|
}
|
|
116
99
|
})));
|
|
117
100
|
};
|
|
118
|
-
|
|
119
101
|
var _default = DragPreview;
|
|
120
102
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["subscribedToOffsetChange","dragPreviewRef","onOffsetChange","monitor","offset","getClientOffset","transform","x","y","style","DragPreview","useState","dragHelperOpacity","setDragHelperOpacity","useDragLayer","initialMonitor","subscribeToOffsetChange","isDragging","useEffect","setTimeout","position","pointerEvents","zIndex","left","top","width","height","el","transition","display","opacity","backgroundColor","borderRadius"],"sources":["DragPreview.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { useDragLayer } from \"react-dnd\";\nimport { DragSourceMonitor } from \"react-dnd/lib/interfaces/monitors\";\nimport { DragSourceMonitorImpl } from \"react-dnd/lib/common/DragSourceMonitorImpl\";\n\nlet subscribedToOffsetChange = false;\n\nlet dragPreviewRef: HTMLDivElement | null = null;\n\nconst onOffsetChange = (monitor: DragSourceMonitor) => () => {\n if (!dragPreviewRef) {\n return;\n }\n\n const offset = monitor.getClientOffset();\n if (!offset) {\n return;\n }\n\n const transform = `translate(${offset.x - 15}px, ${offset.y - 15}px)`;\n dragPreviewRef.style[\"transform\"] = transform;\n // TODO @ts-refactor figure out better type\n dragPreviewRef.style[\"-webkit-transform\" as any] = transform;\n};\n\nconst DragPreview: React.FC = () => {\n const [dragHelperOpacity, setDragHelperOpacity] = useState(0);\n const { isDragging } = useDragLayer(initialMonitor => {\n /**\n * We must cast because TS is complaining. We know that casting as DragSourceMonitorImpl is ok.\n */\n const monitor = initialMonitor as unknown as DragSourceMonitorImpl;\n if (!subscribedToOffsetChange) {\n monitor.subscribeToOffsetChange(onOffsetChange(monitor));\n subscribedToOffsetChange = true;\n }\n\n return {\n isDragging: monitor.isDragging()\n };\n });\n\n useEffect(() => {\n return () => {\n subscribedToOffsetChange = false;\n dragPreviewRef = null;\n };\n }, []);\n\n // We track the value of \"isDragging\" and apply opacity=1 (after 100ms), when it switches to true.\n // Without this, the drag cursor would be shown in the top-left corner for a short amount of time, and then it\n // would be repositioned correctly. Definitely looks like a glitch. This also adds a nice little fade-in effect.\n useEffect(() => {\n if (isDragging) {\n setTimeout(() => {\n setDragHelperOpacity(isDragging ? 1 : 0);\n }, 100);\n } else {\n setDragHelperOpacity(0);\n }\n }, [isDragging]);\n\n if (!isDragging) {\n return null;\n }\n\n if (!isDragging) {\n return null;\n }\n\n return (\n <div\n style={{\n position: \"fixed\",\n pointerEvents: \"none\",\n zIndex: 1001,\n left: 0,\n top: 0,\n width: \"100%\",\n height: \"100%\"\n }}\n >\n <div\n ref={el => (dragPreviewRef = el)}\n style={{\n transition: \"opacity .25s ease-in-out\",\n display: \"block\",\n opacity: dragHelperOpacity\n }}\n >\n <div\n style={{\n width: 30,\n height: 30,\n backgroundColor: \"var(--mdc-theme-primary)\",\n borderRadius: \"50%\"\n }}\n />\n </div>\n </div>\n );\n};\nexport default DragPreview;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["subscribedToOffsetChange","dragPreviewRef","onOffsetChange","monitor","offset","getClientOffset","transform","x","y","style","DragPreview","useState","dragHelperOpacity","setDragHelperOpacity","useDragLayer","initialMonitor","subscribeToOffsetChange","isDragging","useEffect","setTimeout","position","pointerEvents","zIndex","left","top","width","height","el","transition","display","opacity","backgroundColor","borderRadius"],"sources":["DragPreview.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\nimport { useDragLayer } from \"react-dnd\";\nimport { DragSourceMonitor } from \"react-dnd/lib/interfaces/monitors\";\nimport { DragSourceMonitorImpl } from \"react-dnd/lib/common/DragSourceMonitorImpl\";\n\nlet subscribedToOffsetChange = false;\n\nlet dragPreviewRef: HTMLDivElement | null = null;\n\nconst onOffsetChange = (monitor: DragSourceMonitor) => () => {\n if (!dragPreviewRef) {\n return;\n }\n\n const offset = monitor.getClientOffset();\n if (!offset) {\n return;\n }\n\n const transform = `translate(${offset.x - 15}px, ${offset.y - 15}px)`;\n dragPreviewRef.style[\"transform\"] = transform;\n // TODO @ts-refactor figure out better type\n dragPreviewRef.style[\"-webkit-transform\" as any] = transform;\n};\n\nconst DragPreview: React.FC = () => {\n const [dragHelperOpacity, setDragHelperOpacity] = useState(0);\n const { isDragging } = useDragLayer(initialMonitor => {\n /**\n * We must cast because TS is complaining. We know that casting as DragSourceMonitorImpl is ok.\n */\n const monitor = initialMonitor as unknown as DragSourceMonitorImpl;\n if (!subscribedToOffsetChange) {\n monitor.subscribeToOffsetChange(onOffsetChange(monitor));\n subscribedToOffsetChange = true;\n }\n\n return {\n isDragging: monitor.isDragging()\n };\n });\n\n useEffect(() => {\n return () => {\n subscribedToOffsetChange = false;\n dragPreviewRef = null;\n };\n }, []);\n\n // We track the value of \"isDragging\" and apply opacity=1 (after 100ms), when it switches to true.\n // Without this, the drag cursor would be shown in the top-left corner for a short amount of time, and then it\n // would be repositioned correctly. Definitely looks like a glitch. This also adds a nice little fade-in effect.\n useEffect(() => {\n if (isDragging) {\n setTimeout(() => {\n setDragHelperOpacity(isDragging ? 1 : 0);\n }, 100);\n } else {\n setDragHelperOpacity(0);\n }\n }, [isDragging]);\n\n if (!isDragging) {\n return null;\n }\n\n if (!isDragging) {\n return null;\n }\n\n return (\n <div\n style={{\n position: \"fixed\",\n pointerEvents: \"none\",\n zIndex: 1001,\n left: 0,\n top: 0,\n width: \"100%\",\n height: \"100%\"\n }}\n >\n <div\n ref={el => (dragPreviewRef = el)}\n style={{\n transition: \"opacity .25s ease-in-out\",\n display: \"block\",\n opacity: dragHelperOpacity\n }}\n >\n <div\n style={{\n width: 30,\n height: 30,\n backgroundColor: \"var(--mdc-theme-primary)\",\n borderRadius: \"50%\"\n }}\n />\n </div>\n </div>\n );\n};\nexport default DragPreview;\n"],"mappings":";;;;;;;;;AAAA;AACA;AAIA,IAAIA,wBAAwB,GAAG,KAAK;AAEpC,IAAIC,cAAqC,GAAG,IAAI;AAEhD,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAIC,OAA0B;EAAA,OAAK,YAAM;IACzD,IAAI,CAACF,cAAc,EAAE;MACjB;IACJ;IAEA,IAAMG,MAAM,GAAGD,OAAO,CAACE,eAAe,EAAE;IACxC,IAAI,CAACD,MAAM,EAAE;MACT;IACJ;IAEA,IAAME,SAAS,uBAAgBF,MAAM,CAACG,CAAC,GAAG,EAAE,iBAAOH,MAAM,CAACI,CAAC,GAAG,EAAE,QAAK;IACrEP,cAAc,CAACQ,KAAK,CAAC,WAAW,CAAC,GAAGH,SAAS;IAC7C;IACAL,cAAc,CAACQ,KAAK,CAAC,mBAAmB,CAAQ,GAAGH,SAAS;EAChE,CAAC;AAAA;AAED,IAAMI,WAAqB,GAAG,SAAxBA,WAAqB,GAAS;EAChC,gBAAkD,IAAAC,eAAQ,EAAC,CAAC,CAAC;IAAA;IAAtDC,iBAAiB;IAAEC,oBAAoB;EAC9C,oBAAuB,IAAAC,sBAAY,EAAC,UAAAC,cAAc,EAAI;MAClD;AACR;AACA;MACQ,IAAMZ,OAAO,GAAGY,cAAkD;MAClE,IAAI,CAACf,wBAAwB,EAAE;QAC3BG,OAAO,CAACa,uBAAuB,CAACd,cAAc,CAACC,OAAO,CAAC,CAAC;QACxDH,wBAAwB,GAAG,IAAI;MACnC;MAEA,OAAO;QACHiB,UAAU,EAAEd,OAAO,CAACc,UAAU;MAClC,CAAC;IACL,CAAC,CAAC;IAbMA,UAAU,iBAAVA,UAAU;EAelB,IAAAC,gBAAS,EAAC,YAAM;IACZ,OAAO,YAAM;MACTlB,wBAAwB,GAAG,KAAK;MAChCC,cAAc,GAAG,IAAI;IACzB,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;;EAEN;EACA;EACA;EACA,IAAAiB,gBAAS,EAAC,YAAM;IACZ,IAAID,UAAU,EAAE;MACZE,UAAU,CAAC,YAAM;QACbN,oBAAoB,CAACI,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;MAC5C,CAAC,EAAE,GAAG,CAAC;IACX,CAAC,MAAM;MACHJ,oBAAoB,CAAC,CAAC,CAAC;IAC3B;EACJ,CAAC,EAAE,CAACI,UAAU,CAAC,CAAC;EAEhB,IAAI,CAACA,UAAU,EAAE;IACb,OAAO,IAAI;EACf;EAEA,IAAI,CAACA,UAAU,EAAE;IACb,OAAO,IAAI;EACf;EAEA,oBACI;IACI,KAAK,EAAE;MACHG,QAAQ,EAAE,OAAO;MACjBC,aAAa,EAAE,MAAM;MACrBC,MAAM,EAAE,IAAI;MACZC,IAAI,EAAE,CAAC;MACPC,GAAG,EAAE,CAAC;MACNC,KAAK,EAAE,MAAM;MACbC,MAAM,EAAE;IACZ;EAAE,gBAEF;IACI,GAAG,EAAE,aAAAC,EAAE;MAAA,OAAK1B,cAAc,GAAG0B,EAAE;IAAA,CAAE;IACjC,KAAK,EAAE;MACHC,UAAU,EAAE,0BAA0B;MACtCC,OAAO,EAAE,OAAO;MAChBC,OAAO,EAAElB;IACb;EAAE,gBAEF;IACI,KAAK,EAAE;MACHa,KAAK,EAAE,EAAE;MACTC,MAAM,EAAE,EAAE;MACVK,eAAe,EAAE,0BAA0B;MAC3CC,YAAY,EAAE;IAClB;EAAE,EACJ,CACA,CACJ;AAEd,CAAC;AAAC,eACatB,WAAW;AAAA"}
|
|
@@ -1,56 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
10
|
var _reactDnd = require("react-dnd");
|
|
15
|
-
|
|
16
11
|
var emptyImage = "data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
|
|
17
|
-
|
|
18
12
|
var Draggable = function Draggable(props) {
|
|
19
13
|
var children = props.children,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
14
|
+
beginDrag = props.beginDrag,
|
|
15
|
+
endDrag = props.endDrag,
|
|
16
|
+
target = props.target;
|
|
24
17
|
var _useDrag = (0, _reactDnd.useDrag)({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
item: {
|
|
19
|
+
type: "element",
|
|
20
|
+
target: target
|
|
21
|
+
},
|
|
22
|
+
collect: function collect(monitor) {
|
|
23
|
+
return {
|
|
24
|
+
isDragging: monitor.isDragging()
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
begin: function begin(monitor) {
|
|
28
|
+
if (typeof beginDrag === "function") {
|
|
29
|
+
return beginDrag(props, monitor);
|
|
30
|
+
}
|
|
31
|
+
return beginDrag;
|
|
32
|
+
},
|
|
33
|
+
end: function end(item, monitor) {
|
|
34
|
+
if (typeof endDrag === "function") {
|
|
35
|
+
return endDrag(item, monitor);
|
|
36
|
+
}
|
|
37
|
+
return endDrag;
|
|
37
38
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return endDrag(item, monitor);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return endDrag;
|
|
47
|
-
}
|
|
48
|
-
}),
|
|
49
|
-
_useDrag2 = (0, _slicedToArray2.default)(_useDrag, 3),
|
|
50
|
-
isDragging = _useDrag2[0].isDragging,
|
|
51
|
-
drag = _useDrag2[1],
|
|
52
|
-
preview = _useDrag2[2];
|
|
53
|
-
|
|
39
|
+
}),
|
|
40
|
+
_useDrag2 = (0, _slicedToArray2.default)(_useDrag, 3),
|
|
41
|
+
isDragging = _useDrag2[0].isDragging,
|
|
42
|
+
drag = _useDrag2[1],
|
|
43
|
+
preview = _useDrag2[2];
|
|
54
44
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactDnd.DragPreviewImage, {
|
|
55
45
|
connect: preview,
|
|
56
46
|
src: emptyImage
|
|
@@ -59,8 +49,6 @@ var Draggable = function Draggable(props) {
|
|
|
59
49
|
drag: drag
|
|
60
50
|
}));
|
|
61
51
|
};
|
|
62
|
-
|
|
63
52
|
var MemoizedDraggable = /*#__PURE__*/_react.default.memo(Draggable);
|
|
64
|
-
|
|
65
53
|
var _default = MemoizedDraggable;
|
|
66
54
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["emptyImage","Draggable","props","children","beginDrag","endDrag","target","useDrag","item","type","collect","monitor","isDragging","begin","end","drag","preview","MemoizedDraggable","React","memo"],"sources":["Draggable.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\nimport { useDrag, DragPreviewImage, ConnectDragSource } from \"react-dnd\";\n\nconst emptyImage = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\ninterface DraggableChildrenFunctionParams {\n isDragging: boolean;\n drag: ConnectDragSource;\n}\nexport interface DraggableChildrenFunction {\n (params: DraggableChildrenFunctionParams): ReactElement;\n}\n\nexport interface DraggableProps {\n children: DraggableChildrenFunction;\n beginDrag?: any;\n endDrag?: any;\n target?: string[];\n}\n\nconst Draggable: React.FC<DraggableProps> = props => {\n const { children, beginDrag, endDrag, target } = props;\n\n const [{ isDragging }, drag, preview] = useDrag({\n item: { type: \"element\", target },\n collect: monitor => ({\n isDragging: monitor.isDragging()\n }),\n begin(monitor) {\n if (typeof beginDrag === \"function\") {\n return beginDrag(props, monitor);\n }\n return beginDrag;\n },\n end(item, monitor) {\n if (typeof endDrag === \"function\") {\n return endDrag(item, monitor);\n }\n return endDrag;\n }\n });\n\n return (\n <>\n <DragPreviewImage connect={preview} src={emptyImage} />\n {children({ isDragging, drag })}\n </>\n );\n};\n\nconst MemoizedDraggable: React.FC<DraggableProps> = React.memo(Draggable);\nexport default MemoizedDraggable;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["emptyImage","Draggable","props","children","beginDrag","endDrag","target","useDrag","item","type","collect","monitor","isDragging","begin","end","drag","preview","MemoizedDraggable","React","memo"],"sources":["Draggable.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\nimport { useDrag, DragPreviewImage, ConnectDragSource } from \"react-dnd\";\n\nconst emptyImage = \"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\";\n\ninterface DraggableChildrenFunctionParams {\n isDragging: boolean;\n drag: ConnectDragSource;\n}\nexport interface DraggableChildrenFunction {\n (params: DraggableChildrenFunctionParams): ReactElement;\n}\n\nexport interface DraggableProps {\n children: DraggableChildrenFunction;\n beginDrag?: any;\n endDrag?: any;\n target?: string[];\n}\n\nconst Draggable: React.FC<DraggableProps> = props => {\n const { children, beginDrag, endDrag, target } = props;\n\n const [{ isDragging }, drag, preview] = useDrag({\n item: { type: \"element\", target },\n collect: monitor => ({\n isDragging: monitor.isDragging()\n }),\n begin(monitor) {\n if (typeof beginDrag === \"function\") {\n return beginDrag(props, monitor);\n }\n return beginDrag;\n },\n end(item, monitor) {\n if (typeof endDrag === \"function\") {\n return endDrag(item, monitor);\n }\n return endDrag;\n }\n });\n\n return (\n <>\n <DragPreviewImage connect={preview} src={emptyImage} />\n {children({ isDragging, drag })}\n </>\n );\n};\n\nconst MemoizedDraggable: React.FC<DraggableProps> = React.memo(Draggable);\nexport default MemoizedDraggable;\n"],"mappings":";;;;;;;;AAAA;AACA;AAEA,IAAMA,UAAU,GAAG,4EAA4E;AAiB/F,IAAMC,SAAmC,GAAG,SAAtCA,SAAmC,CAAGC,KAAK,EAAI;EACjD,IAAQC,QAAQ,GAAiCD,KAAK,CAA9CC,QAAQ;IAAEC,SAAS,GAAsBF,KAAK,CAApCE,SAAS;IAAEC,OAAO,GAAaH,KAAK,CAAzBG,OAAO;IAAEC,MAAM,GAAKJ,KAAK,CAAhBI,MAAM;EAE5C,eAAwC,IAAAC,iBAAO,EAAC;MAC5CC,IAAI,EAAE;QAAEC,IAAI,EAAE,SAAS;QAAEH,MAAM,EAANA;MAAO,CAAC;MACjCI,OAAO,EAAE,iBAAAC,OAAO;QAAA,OAAK;UACjBC,UAAU,EAAED,OAAO,CAACC,UAAU;QAClC,CAAC;MAAA,CAAC;MACFC,KAAK,iBAACF,OAAO,EAAE;QACX,IAAI,OAAOP,SAAS,KAAK,UAAU,EAAE;UACjC,OAAOA,SAAS,CAACF,KAAK,EAAES,OAAO,CAAC;QACpC;QACA,OAAOP,SAAS;MACpB,CAAC;MACDU,GAAG,eAACN,IAAI,EAAEG,OAAO,EAAE;QACf,IAAI,OAAON,OAAO,KAAK,UAAU,EAAE;UAC/B,OAAOA,OAAO,CAACG,IAAI,EAAEG,OAAO,CAAC;QACjC;QACA,OAAON,OAAO;MAClB;IACJ,CAAC,CAAC;IAAA;IAjBOO,UAAU,gBAAVA,UAAU;IAAIG,IAAI;IAAEC,OAAO;EAmBpC,oBACI,yEACI,6BAAC,0BAAgB;IAAC,OAAO,EAAEA,OAAQ;IAAC,GAAG,EAAEhB;EAAW,EAAG,EACtDG,QAAQ,CAAC;IAAES,UAAU,EAAVA,UAAU;IAAEG,IAAI,EAAJA;EAAK,CAAC,CAAC,CAChC;AAEX,CAAC;AAED,IAAME,iBAA2C,gBAAGC,cAAK,CAACC,IAAI,CAAClB,SAAS,CAAC;AAAC,eAC3DgB,iBAAiB;AAAA"}
|
|
@@ -1,58 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
10
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
15
|
-
|
|
16
11
|
var _Droppable = require("./../Droppable");
|
|
17
|
-
|
|
18
12
|
var getColor = function getColor(_ref) {
|
|
19
13
|
var isOver = _ref.isOver,
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
isDroppable = _ref.isDroppable;
|
|
22
15
|
if (isOver) {
|
|
23
16
|
return "var(--mdc-theme-primary)";
|
|
24
17
|
}
|
|
25
|
-
|
|
26
18
|
if (!isDroppable) {
|
|
27
19
|
return "var(--mdc-theme-background)";
|
|
28
20
|
}
|
|
29
|
-
|
|
30
21
|
return "var(--mdc-theme-secondary)";
|
|
31
22
|
};
|
|
32
|
-
|
|
33
23
|
var Container = /*#__PURE__*/(0, _styled.default)("div", {
|
|
34
24
|
label: "Container",
|
|
35
25
|
target: "e14zhyp10"
|
|
36
26
|
})("background-color:transparent;box-sizing:border-box;height:100%;min-height:100px;position:relative;user-select:none;width:100%;border:2px dashed ", getColor, ";opacity:1;> div{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;color:", getColor, ";}");
|
|
37
|
-
|
|
38
27
|
var getInert = function getInert(isDroppable) {
|
|
39
28
|
return isDroppable ? {} : {
|
|
40
29
|
inert: ""
|
|
41
30
|
};
|
|
42
31
|
};
|
|
43
|
-
|
|
44
32
|
var Center = function Center(_ref2) {
|
|
45
33
|
var onDrop = _ref2.onDrop,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
children = _ref2.children,
|
|
35
|
+
style = _ref2.style,
|
|
36
|
+
isDroppable = _ref2.isDroppable;
|
|
49
37
|
return /*#__PURE__*/_react.default.createElement(_Droppable.Droppable, {
|
|
50
38
|
onDrop: onDrop,
|
|
51
39
|
isDroppable: isDroppable
|
|
52
40
|
}, function (_ref3) {
|
|
53
41
|
var isOver = _ref3.isOver,
|
|
54
|
-
|
|
55
|
-
|
|
42
|
+
drop = _ref3.drop,
|
|
43
|
+
isDroppable = _ref3.isDroppable;
|
|
56
44
|
return /*#__PURE__*/_react.default.createElement("div", Object.assign({
|
|
57
45
|
ref: drop,
|
|
58
46
|
style: (0, _objectSpread2.default)({
|
|
@@ -66,6 +54,5 @@ var Center = function Center(_ref2) {
|
|
|
66
54
|
}, /*#__PURE__*/_react.default.createElement("div", null, children)));
|
|
67
55
|
});
|
|
68
56
|
};
|
|
69
|
-
|
|
70
57
|
var _default = Center;
|
|
71
58
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getColor","isOver","isDroppable","Container","styled","getInert","inert","Center","onDrop","children","style","drop","width","height"],"sources":["Center.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, DroppableProps, OnDropCallable } from \"./../Droppable\";\n\ninterface DroppableFlags {\n isOver: boolean;\n isDroppable: boolean;\n}\n\nconst getColor = ({ isOver, isDroppable }: DroppableFlags) => {\n if (isOver) {\n return \"var(--mdc-theme-primary)\";\n }\n\n if (!isDroppable) {\n return \"var(--mdc-theme-background)\";\n }\n\n return \"var(--mdc-theme-secondary)\";\n};\n\nconst Container = styled.div`\n background-color: transparent;\n box-sizing: border-box;\n height: 100%;\n min-height: 100px;\n position: relative;\n user-select: none;\n width: 100%;\n border: 2px dashed ${getColor};\n opacity: 1;\n > div {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: 0;\n color: ${getColor};\n }\n`;\n\ninterface CenterProps {\n type?: string;\n onDrop: OnDropCallable;\n children: React.ReactNode;\n active?: boolean;\n highlight?: boolean;\n style?: CSSProperties;\n isDroppable?: DroppableProps[\"isDroppable\"];\n}\n\nconst getInert = (isDroppable: boolean) => {\n return isDroppable ? {} : { inert: \"\" };\n};\n\nconst Center: React.FC<CenterProps> = ({ onDrop, children, style, isDroppable }) => {\n return (\n <Droppable onDrop={onDrop} isDroppable={isDroppable}>\n {({ isOver, drop, isDroppable }) => (\n <div\n ref={drop}\n style={{ width: \"100%\", height: \"100%\", ...style }}\n data-testid={\"cms-editor-first-field-area\"}\n {...getInert(isDroppable)}\n >\n <Container isOver={isOver} isDroppable={isDroppable}>\n <div>{children}</div>\n </Container>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Center;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["getColor","isOver","isDroppable","Container","styled","getInert","inert","Center","onDrop","children","style","drop","width","height"],"sources":["Center.tsx"],"sourcesContent":["import React, { CSSProperties } from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, DroppableProps, OnDropCallable } from \"./../Droppable\";\n\ninterface DroppableFlags {\n isOver: boolean;\n isDroppable: boolean;\n}\n\nconst getColor = ({ isOver, isDroppable }: DroppableFlags) => {\n if (isOver) {\n return \"var(--mdc-theme-primary)\";\n }\n\n if (!isDroppable) {\n return \"var(--mdc-theme-background)\";\n }\n\n return \"var(--mdc-theme-secondary)\";\n};\n\nconst Container = styled.div`\n background-color: transparent;\n box-sizing: border-box;\n height: 100%;\n min-height: 100px;\n position: relative;\n user-select: none;\n width: 100%;\n border: 2px dashed ${getColor};\n opacity: 1;\n > div {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n margin: 0;\n color: ${getColor};\n }\n`;\n\ninterface CenterProps {\n type?: string;\n onDrop: OnDropCallable;\n children: React.ReactNode;\n active?: boolean;\n highlight?: boolean;\n style?: CSSProperties;\n isDroppable?: DroppableProps[\"isDroppable\"];\n}\n\nconst getInert = (isDroppable: boolean) => {\n return isDroppable ? {} : { inert: \"\" };\n};\n\nconst Center: React.FC<CenterProps> = ({ onDrop, children, style, isDroppable }) => {\n return (\n <Droppable onDrop={onDrop} isDroppable={isDroppable}>\n {({ isOver, drop, isDroppable }) => (\n <div\n ref={drop}\n style={{ width: \"100%\", height: \"100%\", ...style }}\n data-testid={\"cms-editor-first-field-area\"}\n {...getInert(isDroppable)}\n >\n <Container isOver={isOver} isDroppable={isDroppable}>\n <div>{children}</div>\n </Container>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Center;\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;AAOA,IAAMA,QAAQ,GAAG,SAAXA,QAAQ,OAAgD;EAAA,IAA1CC,MAAM,QAANA,MAAM;IAAEC,WAAW,QAAXA,WAAW;EACnC,IAAID,MAAM,EAAE;IACR,OAAO,0BAA0B;EACrC;EAEA,IAAI,CAACC,WAAW,EAAE;IACd,OAAO,6BAA6B;EACxC;EAEA,OAAO,4BAA4B;AACvC,CAAC;AAED,IAAMC,SAAS,oBAAGC,eAAM;EAAA;EAAA;AAAA,uJAQCJ,QAAQ,wGAQhBA,QAAQ,OAExB;AAYD,IAAMK,QAAQ,GAAG,SAAXA,QAAQ,CAAIH,WAAoB,EAAK;EACvC,OAAOA,WAAW,GAAG,CAAC,CAAC,GAAG;IAAEI,KAAK,EAAE;EAAG,CAAC;AAC3C,CAAC;AAED,IAAMC,MAA6B,GAAG,SAAhCA,MAA6B,QAAiD;EAAA,IAA3CC,MAAM,SAANA,MAAM;IAAEC,QAAQ,SAARA,QAAQ;IAAEC,KAAK,SAALA,KAAK;IAAER,WAAW,SAAXA,WAAW;EACzE,oBACI,6BAAC,oBAAS;IAAC,MAAM,EAAEM,MAAO;IAAC,WAAW,EAAEN;EAAY,GAC/C;IAAA,IAAGD,MAAM,SAANA,MAAM;MAAEU,IAAI,SAAJA,IAAI;MAAET,WAAW,SAAXA,WAAW;IAAA,oBACzB;MACI,GAAG,EAAES,IAAK;MACV,KAAK;QAAIC,KAAK,EAAE,MAAM;QAAEC,MAAM,EAAE;MAAM,GAAKH,KAAK,CAAG;MACnD,eAAa;IAA8B,GACvCL,QAAQ,CAACH,WAAW,CAAC,gBAEzB,6BAAC,SAAS;MAAC,MAAM,EAAED,MAAO;MAAC,WAAW,EAAEC;IAAY,gBAChD,0CAAMO,QAAQ,CAAO,CACb,CACV;EAAA,CACT,CACO;AAEpB,CAAC;AAAC,eAEaF,MAAM;AAAA"}
|
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
|
-
|
|
12
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
10
|
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
11
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
17
|
-
|
|
18
12
|
var _Droppable = require("../Droppable");
|
|
19
|
-
|
|
20
13
|
var _excluded = ["last", "onDrop", "isVisible"];
|
|
21
14
|
var InnerDiv = /*#__PURE__*/(0, _styled.default)("div", {
|
|
22
15
|
target: "e1uuull90",
|
|
@@ -52,7 +45,6 @@ var OuterDiv = /*#__PURE__*/(0, _styled.default)("div", {
|
|
|
52
45
|
justifyContent: "center"
|
|
53
46
|
}, function (props) {
|
|
54
47
|
var _ref;
|
|
55
|
-
|
|
56
48
|
return _ref = {}, (0, _defineProperty2.default)(_ref, props.last ? "bottom" : "top", -15), (0, _defineProperty2.default)(_ref, InnerDiv, (0, _defineProperty2.default)({
|
|
57
49
|
borderColor: props.isOver ? "var(--mdc-theme-primary)" : "var(--mdc-theme-secondary)",
|
|
58
50
|
display: props.isDragging ? "block" : "none"
|
|
@@ -61,21 +53,19 @@ var OuterDiv = /*#__PURE__*/(0, _styled.default)("div", {
|
|
|
61
53
|
backgroundColor: props.isOver ? "var(--mdc-theme-primary)" : "var(--mdc-theme-secondary)"
|
|
62
54
|
})), _ref;
|
|
63
55
|
});
|
|
64
|
-
|
|
65
56
|
var Horizontal = function Horizontal(_ref2) {
|
|
66
57
|
var last = _ref2.last,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
onDrop = _ref2.onDrop,
|
|
59
|
+
isVisible = _ref2.isVisible,
|
|
60
|
+
rest = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
70
61
|
return /*#__PURE__*/_react.default.createElement(_Droppable.Droppable, {
|
|
71
62
|
onDrop: onDrop,
|
|
72
63
|
isVisible: isVisible
|
|
73
64
|
}, function (_ref3) {
|
|
74
65
|
var _ref4;
|
|
75
|
-
|
|
76
66
|
var isOver = _ref3.isOver,
|
|
77
|
-
|
|
78
|
-
|
|
67
|
+
isDragging = _ref3.isDragging,
|
|
68
|
+
drop = _ref3.drop;
|
|
79
69
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
80
70
|
ref: drop,
|
|
81
71
|
"data-testid": rest["data-testid"],
|
|
@@ -92,6 +82,5 @@ var Horizontal = function Horizontal(_ref2) {
|
|
|
92
82
|
}, /*#__PURE__*/_react.default.createElement(InnerDiv, null, /*#__PURE__*/_react.default.createElement(BackgroundColorDiv, null))));
|
|
93
83
|
});
|
|
94
84
|
};
|
|
95
|
-
|
|
96
85
|
var _default = Horizontal;
|
|
97
86
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InnerDiv","styled","height","width","zIndex","borderRadius","boxSizing","display","border","borderSpacing","BackgroundColorDiv","OuterDiv","margin","padding","backgroundColor","position","justifyContent","props","last","borderColor","isOver","isDragging","opacity","Horizontal","onDrop","isVisible","rest","drop"],"sources":["Horizontal.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, IsVisibleCallable } from \"../Droppable\";\nimport { DragSource } from \"~/admin/components/FieldEditor/FieldEditorContext\";\n\nconst InnerDiv = styled(\"div\")({\n height: 15,\n width: \"100%\",\n zIndex: 3,\n borderRadius: 0,\n boxSizing: \"border-box\",\n display: \"none\",\n border: \"1px dashed black\",\n borderSpacing: 5\n});\n\nconst BackgroundColorDiv = styled(\"div\")({\n width: \"100%\",\n height: \"100%\"\n});\n\ninterface OuterDivProps {\n isOver: boolean;\n isDragging: boolean;\n last: boolean;\n}\n\nconst OuterDiv = styled(\"div\")(\n {\n margin: 0,\n padding: 0,\n width: \"calc(100% + 2px)\",\n zIndex: 10,\n backgroundColor: \"transparent\",\n position: \"absolute\",\n display: \"flex\",\n justifyContent: \"center\"\n },\n (props: OuterDivProps) => ({\n [props.last ? \"bottom\" : \"top\"]: -15,\n // @ts-ignore\n [InnerDiv]: {\n borderColor: props.isOver ? \"var(--mdc-theme-primary)\" : \"var(--mdc-theme-secondary)\",\n display: props.isDragging ? \"block\" : \"none\",\n // @ts-ignore\n [BackgroundColorDiv]: {\n opacity: 0.5,\n backgroundColor: props.isOver\n ? \"var(--mdc-theme-primary)\"\n : \"var(--mdc-theme-secondary)\"\n }\n }\n })\n);\n\ninterface HorizontalProps {\n onDrop(item: DragSource): void;\n last?: boolean;\n isVisible?: IsVisibleCallable;\n [\"data-testid\"]?: string;\n}\n\nconst Horizontal: React.FC<HorizontalProps> = ({ last, onDrop, isVisible, ...rest }) => {\n return (\n <Droppable onDrop={onDrop} isVisible={isVisible}>\n {({ isOver, isDragging, drop }) => (\n <div\n ref={drop}\n data-testid={rest[\"data-testid\"]}\n style={{\n /* For dropzone debugging: border: \"1px solid blue\",*/\n height: \"15px\",\n width: \"100%\",\n position: \"absolute\",\n [last ? \"bottom\" : \"top\"]: 0,\n left: 0,\n zIndex: isDragging ? 1000 : -1\n }}\n >\n <OuterDiv isOver={isOver} isDragging={isDragging} last={last ? true : false}>\n <InnerDiv>\n <BackgroundColorDiv />\n </InnerDiv>\n </OuterDiv>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Horizontal;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["InnerDiv","styled","height","width","zIndex","borderRadius","boxSizing","display","border","borderSpacing","BackgroundColorDiv","OuterDiv","margin","padding","backgroundColor","position","justifyContent","props","last","borderColor","isOver","isDragging","opacity","Horizontal","onDrop","isVisible","rest","drop"],"sources":["Horizontal.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, IsVisibleCallable } from \"../Droppable\";\nimport { DragSource } from \"~/admin/components/FieldEditor/FieldEditorContext\";\n\nconst InnerDiv = styled(\"div\")({\n height: 15,\n width: \"100%\",\n zIndex: 3,\n borderRadius: 0,\n boxSizing: \"border-box\",\n display: \"none\",\n border: \"1px dashed black\",\n borderSpacing: 5\n});\n\nconst BackgroundColorDiv = styled(\"div\")({\n width: \"100%\",\n height: \"100%\"\n});\n\ninterface OuterDivProps {\n isOver: boolean;\n isDragging: boolean;\n last: boolean;\n}\n\nconst OuterDiv = styled(\"div\")(\n {\n margin: 0,\n padding: 0,\n width: \"calc(100% + 2px)\",\n zIndex: 10,\n backgroundColor: \"transparent\",\n position: \"absolute\",\n display: \"flex\",\n justifyContent: \"center\"\n },\n (props: OuterDivProps) => ({\n [props.last ? \"bottom\" : \"top\"]: -15,\n // @ts-ignore\n [InnerDiv]: {\n borderColor: props.isOver ? \"var(--mdc-theme-primary)\" : \"var(--mdc-theme-secondary)\",\n display: props.isDragging ? \"block\" : \"none\",\n // @ts-ignore\n [BackgroundColorDiv]: {\n opacity: 0.5,\n backgroundColor: props.isOver\n ? \"var(--mdc-theme-primary)\"\n : \"var(--mdc-theme-secondary)\"\n }\n }\n })\n);\n\ninterface HorizontalProps {\n onDrop(item: DragSource): void;\n last?: boolean;\n isVisible?: IsVisibleCallable;\n [\"data-testid\"]?: string;\n}\n\nconst Horizontal: React.FC<HorizontalProps> = ({ last, onDrop, isVisible, ...rest }) => {\n return (\n <Droppable onDrop={onDrop} isVisible={isVisible}>\n {({ isOver, isDragging, drop }) => (\n <div\n ref={drop}\n data-testid={rest[\"data-testid\"]}\n style={{\n /* For dropzone debugging: border: \"1px solid blue\",*/\n height: \"15px\",\n width: \"100%\",\n position: \"absolute\",\n [last ? \"bottom\" : \"top\"]: 0,\n left: 0,\n zIndex: isDragging ? 1000 : -1\n }}\n >\n <OuterDiv isOver={isOver} isDragging={isDragging} last={last ? true : false}>\n <InnerDiv>\n <BackgroundColorDiv />\n </InnerDiv>\n </OuterDiv>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Horizontal;\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AAA4D;AAG5D,IAAMA,QAAQ,oBAAGC,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GAAE;EAC3BC,MAAM,EAAE,EAAE;EACVC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE,CAAC;EACfC,SAAS,EAAE,YAAY;EACvBC,OAAO,EAAE,MAAM;EACfC,MAAM,EAAE,kBAAkB;EAC1BC,aAAa,EAAE;AACnB,CAAC,CAAC;AAEF,IAAMC,kBAAkB,oBAAGT,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GAAE;EACrCE,KAAK,EAAE,MAAM;EACbD,MAAM,EAAE;AACZ,CAAC,CAAC;AAQF,IAAMS,QAAQ,oBAAGV,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GACzB;EACIW,MAAM,EAAE,CAAC;EACTC,OAAO,EAAE,CAAC;EACVV,KAAK,EAAE,kBAAkB;EACzBC,MAAM,EAAE,EAAE;EACVU,eAAe,EAAE,aAAa;EAC9BC,QAAQ,EAAE,UAAU;EACpBR,OAAO,EAAE,MAAM;EACfS,cAAc,EAAE;AACpB,CAAC,EACD,UAACC,KAAoB;EAAA;EAAA,sDAChBA,KAAK,CAACC,IAAI,GAAG,QAAQ,GAAG,KAAK,EAAG,CAAC,EAAE,uCAEnClB,QAAQ;IACLmB,WAAW,EAAEF,KAAK,CAACG,MAAM,GAAG,0BAA0B,GAAG,4BAA4B;IACrFb,OAAO,EAAEU,KAAK,CAACI,UAAU,GAAG,OAAO,GAAG;EAAM,GAE3CX,kBAAkB,EAAG;IAClBY,OAAO,EAAE,GAAG;IACZR,eAAe,EAAEG,KAAK,CAACG,MAAM,GACvB,0BAA0B,GAC1B;EACV,CAAC;AAAA,CAEP,CACL;AASD,IAAMG,UAAqC,GAAG,SAAxCA,UAAqC,QAA6C;EAAA,IAAvCL,IAAI,SAAJA,IAAI;IAAEM,MAAM,SAANA,MAAM;IAAEC,SAAS,SAATA,SAAS;IAAKC,IAAI;EAC7E,oBACI,6BAAC,oBAAS;IAAC,MAAM,EAAEF,MAAO;IAAC,SAAS,EAAEC;EAAU,GAC3C;IAAA;IAAA,IAAGL,MAAM,SAANA,MAAM;MAAEC,UAAU,SAAVA,UAAU;MAAEM,IAAI,SAAJA,IAAI;IAAA,oBACxB;MACI,GAAG,EAAEA,IAAK;MACV,eAAaD,IAAI,CAAC,aAAa,CAAE;MACjC,KAAK;QACD;QACAxB,MAAM,EAAE,MAAM;QACdC,KAAK,EAAE,MAAM;QACbY,QAAQ,EAAE;MAAU,wCACnBG,IAAI,GAAG,QAAQ,GAAG,KAAK,EAAG,CAAC,gDACtB,CAAC,kDACCG,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC;IAChC,gBAEF,6BAAC,QAAQ;MAAC,MAAM,EAAED,MAAO;MAAC,UAAU,EAAEC,UAAW;MAAC,IAAI,EAAEH,IAAI,GAAG,IAAI,GAAG;IAAM,gBACxE,6BAAC,QAAQ,qBACL,6BAAC,kBAAkB,OAAG,CACf,CACJ,CACT;EAAA,CACT,CACO;AAEpB,CAAC;AAAC,eAEaK,UAAU;AAAA"}
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.default = void 0;
|
|
9
|
-
|
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
10
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
15
|
-
|
|
16
11
|
var _Droppable = require("../Droppable");
|
|
17
|
-
|
|
18
12
|
var InnerDivVertical = /*#__PURE__*/(0, _styled.default)("div", {
|
|
19
13
|
target: "e1yx4w3z0",
|
|
20
14
|
label: "InnerDivVertical"
|
|
@@ -48,7 +42,6 @@ var OuterDivVertical = /*#__PURE__*/(0, _styled.default)("div", {
|
|
|
48
42
|
backgroundColor: "transparent"
|
|
49
43
|
}, function (props) {
|
|
50
44
|
var _InnerDivVertical, _ref;
|
|
51
|
-
|
|
52
45
|
return _ref = {}, (0, _defineProperty2.default)(_ref, props.last ? "right" : "left", -9), (0, _defineProperty2.default)(_ref, "textAlign", props.last ? "right" : "left"), (0, _defineProperty2.default)(_ref, InnerDivVertical, (_InnerDivVertical = {
|
|
53
46
|
borderColor: props.isOver ? "var(--mdc-theme-primary)" : "var(--mdc-theme-secondary)"
|
|
54
47
|
}, (0, _defineProperty2.default)(_InnerDivVertical, props.last ? "right" : "left", -2), (0, _defineProperty2.default)(_InnerDivVertical, "display", props.isDragging ? "block" : "none"), (0, _defineProperty2.default)(_InnerDivVertical, BackgroundColorDiv, {
|
|
@@ -56,21 +49,19 @@ var OuterDivVertical = /*#__PURE__*/(0, _styled.default)("div", {
|
|
|
56
49
|
backgroundColor: props.isOver ? "var(--mdc-theme-primary)" : "var(--mdc-theme-secondary)"
|
|
57
50
|
}), _InnerDivVertical)), _ref;
|
|
58
51
|
});
|
|
59
|
-
|
|
60
52
|
var Vertical = function Vertical(_ref2) {
|
|
61
53
|
var depth = _ref2.depth,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
last = _ref2.last,
|
|
55
|
+
onDrop = _ref2.onDrop,
|
|
56
|
+
isVisible = _ref2.isVisible;
|
|
65
57
|
return /*#__PURE__*/_react.default.createElement(_Droppable.Droppable, {
|
|
66
58
|
onDrop: onDrop,
|
|
67
59
|
isVisible: isVisible
|
|
68
60
|
}, function (_ref3) {
|
|
69
61
|
var _ref4;
|
|
70
|
-
|
|
71
62
|
var isOver = _ref3.isOver,
|
|
72
|
-
|
|
73
|
-
|
|
63
|
+
isDragging = _ref3.isDragging,
|
|
64
|
+
drop = _ref3.drop;
|
|
74
65
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
75
66
|
ref: drop,
|
|
76
67
|
style: (_ref4 = {
|
|
@@ -88,6 +79,5 @@ var Vertical = function Vertical(_ref2) {
|
|
|
88
79
|
}, /*#__PURE__*/_react.default.createElement(InnerDivVertical, null, /*#__PURE__*/_react.default.createElement(BackgroundColorDiv, null))));
|
|
89
80
|
});
|
|
90
81
|
};
|
|
91
|
-
|
|
92
82
|
var _default = Vertical;
|
|
93
83
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["InnerDivVertical","styled","position","width","height","zIndex","borderRadius","display","boxSizing","border","borderSpacing","BackgroundColorDiv","OuterDivVertical","top","backgroundColor","props","last","borderColor","isOver","isDragging","opacity","Vertical","depth","onDrop","isVisible","drop","maxWidth"],"sources":["Vertical.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, IsVisibleCallable } from \"../Droppable\";\nimport { DragSource } from \"~/admin/components/FieldEditor/FieldEditorContext\";\n\nconst InnerDivVertical = styled(\"div\")({\n position: \"absolute\",\n width: 10,\n height: \"100%\",\n zIndex: 3,\n borderRadius: 0,\n display: \"none\",\n boxSizing: \"border-box\",\n border: \"1px dashed black\",\n borderSpacing: 5\n});\n\nconst BackgroundColorDiv = styled(\"div\")({\n width: \"100%\",\n height: \"100%\"\n});\n\ninterface OuterDivVerticalProps {\n isOver: boolean;\n last?: boolean;\n isVisible?: IsVisibleCallable;\n isDragging?: boolean;\n}\n\nconst OuterDivVertical = styled(\"div\")(\n {\n position: \"absolute\",\n width: \"30%\",\n top: 0,\n height: \"100%\",\n zIndex: 10,\n backgroundColor: \"transparent\"\n },\n (props: OuterDivVerticalProps) => ({\n [props.last ? \"right\" : \"left\"]: -9,\n textAlign: props.last ? \"right\" : \"left\",\n // @ts-ignore\n [InnerDivVertical]: {\n borderColor: props.isOver ? \"var(--mdc-theme-primary)\" : \"var(--mdc-theme-secondary)\",\n [props.last ? \"right\" : \"left\"]: -2,\n display: props.isDragging ? \"block\" : \"none\",\n // @ts-ignore\n [BackgroundColorDiv]: {\n opacity: 0.5,\n backgroundColor: props.isOver\n ? \"var(--mdc-theme-primary)\"\n : \"var(--mdc-theme-secondary)\"\n }\n }\n })\n);\n\ninterface VerticalProps {\n depth?: number;\n onDrop(item: DragSource): void;\n last?: boolean;\n isVisible?: any;\n}\n\nconst Vertical: React.FC<VerticalProps> = ({ depth, last, onDrop, isVisible }) => {\n return (\n <Droppable onDrop={onDrop} isVisible={isVisible}>\n {({ isOver, isDragging, drop }) => (\n <div\n ref={drop}\n style={{\n /* For dropzone debugging: border: \"1px solid blue\",*/\n width: \"30%\",\n maxWidth: \"100px\",\n height: \"100%\",\n position: \"absolute\",\n top: 0,\n [last ? \"right\" : \"left\"]: 0,\n zIndex: isDragging ? 1000 + (depth || 0) : -1\n }}\n >\n <OuterDivVertical isOver={isOver} isDragging={isDragging} last={last}>\n <InnerDivVertical>\n <BackgroundColorDiv />\n </InnerDivVertical>\n </OuterDivVertical>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Vertical;\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["InnerDivVertical","styled","position","width","height","zIndex","borderRadius","display","boxSizing","border","borderSpacing","BackgroundColorDiv","OuterDivVertical","top","backgroundColor","props","last","borderColor","isOver","isDragging","opacity","Vertical","depth","onDrop","isVisible","drop","maxWidth"],"sources":["Vertical.tsx"],"sourcesContent":["import React from \"react\";\nimport styled from \"@emotion/styled\";\nimport { Droppable, IsVisibleCallable } from \"../Droppable\";\nimport { DragSource } from \"~/admin/components/FieldEditor/FieldEditorContext\";\n\nconst InnerDivVertical = styled(\"div\")({\n position: \"absolute\",\n width: 10,\n height: \"100%\",\n zIndex: 3,\n borderRadius: 0,\n display: \"none\",\n boxSizing: \"border-box\",\n border: \"1px dashed black\",\n borderSpacing: 5\n});\n\nconst BackgroundColorDiv = styled(\"div\")({\n width: \"100%\",\n height: \"100%\"\n});\n\ninterface OuterDivVerticalProps {\n isOver: boolean;\n last?: boolean;\n isVisible?: IsVisibleCallable;\n isDragging?: boolean;\n}\n\nconst OuterDivVertical = styled(\"div\")(\n {\n position: \"absolute\",\n width: \"30%\",\n top: 0,\n height: \"100%\",\n zIndex: 10,\n backgroundColor: \"transparent\"\n },\n (props: OuterDivVerticalProps) => ({\n [props.last ? \"right\" : \"left\"]: -9,\n textAlign: props.last ? \"right\" : \"left\",\n // @ts-ignore\n [InnerDivVertical]: {\n borderColor: props.isOver ? \"var(--mdc-theme-primary)\" : \"var(--mdc-theme-secondary)\",\n [props.last ? \"right\" : \"left\"]: -2,\n display: props.isDragging ? \"block\" : \"none\",\n // @ts-ignore\n [BackgroundColorDiv]: {\n opacity: 0.5,\n backgroundColor: props.isOver\n ? \"var(--mdc-theme-primary)\"\n : \"var(--mdc-theme-secondary)\"\n }\n }\n })\n);\n\ninterface VerticalProps {\n depth?: number;\n onDrop(item: DragSource): void;\n last?: boolean;\n isVisible?: any;\n}\n\nconst Vertical: React.FC<VerticalProps> = ({ depth, last, onDrop, isVisible }) => {\n return (\n <Droppable onDrop={onDrop} isVisible={isVisible}>\n {({ isOver, isDragging, drop }) => (\n <div\n ref={drop}\n style={{\n /* For dropzone debugging: border: \"1px solid blue\",*/\n width: \"30%\",\n maxWidth: \"100px\",\n height: \"100%\",\n position: \"absolute\",\n top: 0,\n [last ? \"right\" : \"left\"]: 0,\n zIndex: isDragging ? 1000 + (depth || 0) : -1\n }}\n >\n <OuterDivVertical isOver={isOver} isDragging={isDragging} last={last}>\n <InnerDivVertical>\n <BackgroundColorDiv />\n </InnerDivVertical>\n </OuterDivVertical>\n </div>\n )}\n </Droppable>\n );\n};\n\nexport default Vertical;\n"],"mappings":";;;;;;;;AAAA;AACA;AACA;AAGA,IAAMA,gBAAgB,oBAAGC,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GAAE;EACnCC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,EAAE;EACTC,MAAM,EAAE,MAAM;EACdC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE,CAAC;EACfC,OAAO,EAAE,MAAM;EACfC,SAAS,EAAE,YAAY;EACvBC,MAAM,EAAE,kBAAkB;EAC1BC,aAAa,EAAE;AACnB,CAAC,CAAC;AAEF,IAAMC,kBAAkB,oBAAGV,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GAAE;EACrCE,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE;AACZ,CAAC,CAAC;AASF,IAAMQ,gBAAgB,oBAAGX,eAAM,EAAC,KAAK;EAAA;EAAA;AAAA,GACjC;EACIC,QAAQ,EAAE,UAAU;EACpBC,KAAK,EAAE,KAAK;EACZU,GAAG,EAAE,CAAC;EACNT,MAAM,EAAE,MAAM;EACdC,MAAM,EAAE,EAAE;EACVS,eAAe,EAAE;AACrB,CAAC,EACD,UAACC,KAA4B;EAAA;EAAA,sDACxBA,KAAK,CAACC,IAAI,GAAG,OAAO,GAAG,MAAM,EAAG,CAAC,CAAC,oDACxBD,KAAK,CAACC,IAAI,GAAG,OAAO,GAAG,MAAM,uCAEvChB,gBAAgB;IACbiB,WAAW,EAAEF,KAAK,CAACG,MAAM,GAAG,0BAA0B,GAAG;EAA4B,oDACpFH,KAAK,CAACC,IAAI,GAAG,OAAO,GAAG,MAAM,EAAG,CAAC,CAAC,+DAC1BD,KAAK,CAACI,UAAU,GAAG,OAAO,GAAG,MAAM,oDAE3CR,kBAAkB,EAAG;IAClBS,OAAO,EAAE,GAAG;IACZN,eAAe,EAAEC,KAAK,CAACG,MAAM,GACvB,0BAA0B,GAC1B;EACV,CAAC;AAAA,CAEP,CACL;AASD,IAAMG,QAAiC,GAAG,SAApCA,QAAiC,QAA2C;EAAA,IAArCC,KAAK,SAALA,KAAK;IAAEN,IAAI,SAAJA,IAAI;IAAEO,MAAM,SAANA,MAAM;IAAEC,SAAS,SAATA,SAAS;EACvE,oBACI,6BAAC,oBAAS;IAAC,MAAM,EAAED,MAAO;IAAC,SAAS,EAAEC;EAAU,GAC3C;IAAA;IAAA,IAAGN,MAAM,SAANA,MAAM;MAAEC,UAAU,SAAVA,UAAU;MAAEM,IAAI,SAAJA,IAAI;IAAA,oBACxB;MACI,GAAG,EAAEA,IAAK;MACV,KAAK;QACD;QACAtB,KAAK,EAAE,KAAK;QACZuB,QAAQ,EAAE,OAAO;QACjBtB,MAAM,EAAE,MAAM;QACdF,QAAQ,EAAE,UAAU;QACpBW,GAAG,EAAE;MAAC,wCACLG,IAAI,GAAG,OAAO,GAAG,MAAM,EAAG,CAAC,kDACpBG,UAAU,GAAG,IAAI,IAAIG,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAC/C,gBAEF,6BAAC,gBAAgB;MAAC,MAAM,EAAEJ,MAAO;MAAC,UAAU,EAAEC,UAAW;MAAC,IAAI,EAAEH;IAAK,gBACjE,6BAAC,gBAAgB,qBACb,6BAAC,kBAAkB,OAAG,CACP,CACJ,CACjB;EAAA,CACT,CACO;AAEpB,CAAC;AAAC,eAEaK,QAAQ;AAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
@@ -23,9 +22,6 @@ Object.defineProperty(exports, "Vertical", {
|
|
|
23
22
|
return _Vertical.default;
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
var _Center = _interopRequireDefault(require("./Center"));
|
|
28
|
-
|
|
29
26
|
var _Horizontal = _interopRequireDefault(require("./Horizontal"));
|
|
30
|
-
|
|
31
27
|
var _Vertical = _interopRequireDefault(require("./Vertical"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import Center from \"./Center\";\nimport Horizontal from \"./Horizontal\";\nimport Vertical from \"./Vertical\";\n\nexport { Center, Horizontal, Vertical };\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["import Center from \"./Center\";\nimport Horizontal from \"./Horizontal\";\nimport Vertical from \"./Vertical\";\n\nexport { Center, Horizontal, Vertical };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AACA"}
|