@webiny/app-headless-cms 5.23.1 → 5.24.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/admin/components/ContentEntryForm/ContentEntryForm.d.ts +2 -2
- package/admin/components/ContentEntryForm/ContentEntryFormPreview.d.ts +2 -2
- package/admin/components/ContentEntryForm/Fields.d.ts +3 -3
- package/admin/components/ContentEntryForm/Label.d.ts +2 -4
- package/admin/components/ContentEntryForm/RenderFieldElement.d.ts +4 -2
- package/admin/components/ContentEntryForm/functions/createValidators.d.ts +2 -1
- package/admin/components/ContentEntryForm/functions/getValue.d.ts +7 -4
- package/admin/components/ContentEntryForm/functions/getValue.js +5 -4
- package/admin/components/ContentEntryForm/functions/setValue.d.ts +8 -5
- package/admin/components/ContentEntryForm/functions/setValue.js +6 -5
- package/admin/components/ContentEntryForm/useBind.d.ts +8 -4
- package/admin/components/ContentEntryForm/useBind.js +17 -10
- package/admin/components/ContentEntryForm/useContentEntryForm.js +9 -5
- package/admin/components/ContentModelEditor/Context.d.ts +18 -9
- package/admin/components/ContentModelEditor/Context.js +40 -33
- package/admin/components/ContentModelEditor/Editor.d.ts +2 -2
- package/admin/components/ContentModelEditor/FieldsSidebar.d.ts +6 -4
- package/admin/components/ContentModelEditor/FieldsSidebar.js +11 -11
- package/admin/components/ContentModelEditor/Header.d.ts +3 -2
- package/admin/components/ContentModelEditor/Header.js +5 -2
- package/admin/components/DragPreview.d.ts +3 -2
- package/admin/components/DragPreview.js +6 -4
- package/admin/components/Draggable.d.ts +9 -7
- package/admin/components/Draggable.js +4 -3
- package/admin/components/DropZone/Center.d.ts +6 -6
- package/admin/components/DropZone/Center.js +7 -4
- package/admin/components/DropZone/Horizontal.d.ts +7 -5
- package/admin/components/DropZone/Horizontal.js +1 -1
- package/admin/components/DropZone/Vertical.d.ts +4 -4
- package/admin/components/DropZone/Vertical.js +1 -1
- package/admin/components/Droppable.d.ts +22 -13
- package/admin/components/Droppable.js +3 -3
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.d.ts +8 -2
- package/admin/components/FieldEditor/EditFieldDialog/AppearanceTab.js +7 -6
- package/admin/components/FieldEditor/EditFieldDialog/GeneralTab.d.ts +4 -4
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.d.ts +2 -2
- package/admin/components/FieldEditor/EditFieldDialog/PredefinedValues.js +3 -1
- package/admin/components/FieldEditor/EditFieldDialog/ValidatorsTab.js +26 -25
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.d.ts +5 -4
- package/admin/components/FieldEditor/EditFieldDialog/functions/getValue.js +4 -4
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.d.ts +6 -5
- package/admin/components/FieldEditor/EditFieldDialog/functions/setValue.js +6 -5
- package/admin/components/FieldEditor/EditFieldDialog.d.ts +6 -6
- package/admin/components/FieldEditor/EditFieldDialog.js +10 -10
- package/admin/components/FieldEditor/Field.d.ts +4 -4
- package/admin/components/FieldEditor/FieldEditor.d.ts +2 -2
- package/admin/components/FieldEditor/FieldEditor.js +9 -6
- package/admin/components/FieldEditor/FieldEditorContext.d.ts +65 -20
- package/admin/components/FieldEditor/FieldEditorContext.js +27 -27
- package/admin/components/FieldEditor/Styled.d.ts +2 -2
- package/admin/components/FieldEditor/utils/deleteField.d.ts +5 -7
- package/admin/components/FieldEditor/utils/deleteField.js +6 -6
- package/admin/components/FieldEditor/utils/getFieldPosition.d.ts +6 -5
- package/admin/components/FieldEditor/utils/getFieldPosition.js +3 -3
- package/admin/components/FieldEditor/utils/moveField.d.ts +4 -3
- package/admin/components/FieldEditor/utils/moveField.js +14 -10
- package/admin/components/FieldEditor/utils/moveRow.d.ts +5 -6
- package/admin/constants/statusLabels.d.ts +2 -8
- package/admin/constants/statusLabels.js +3 -2
- package/admin/contexts/Cms/index.d.ts +3 -3
- package/admin/contexts/Cms/index.js +2 -2
- package/admin/elements/ContentGroupMenuElement.js +1 -0
- package/admin/elements/ContentModelMenuElement.js +1 -0
- package/admin/elements/NothingToShowElement.d.ts +1 -1
- package/admin/graphql/contentEntries.d.ts +172 -11
- package/admin/graphql/contentEntries.js +55 -0
- package/admin/graphql/contentModels.d.ts +28 -0
- package/admin/graphql/contentModels.js +13 -2
- package/admin/hooks/useApolloClient.d.ts +2 -1
- package/admin/hooks/useLazyQuery.d.ts +3 -1
- package/admin/hooks/useMutation.d.ts +3 -1
- package/admin/hooks/useMutation.js +1 -1
- package/admin/hooks/usePermission.d.ts +21 -20
- package/admin/hooks/usePermission.js +5 -2
- package/admin/hooks/useQuery.d.ts +4 -1
- package/admin/hooks/useQueryLocale.d.ts +3 -1
- package/admin/menus/CmsMenuLoader.d.ts +1 -1
- package/admin/menus/CmsMenuLoader.js +5 -2
- package/admin/menus/ContentGroupsMenuItems.d.ts +2 -1
- package/admin/menus/ContentGroupsMenuItems.js +4 -6
- package/admin/menus/GlobalSearchPlugins.d.ts +2 -1
- package/admin/menus/GlobalSearchPlugins.js +1 -1
- package/admin/menus/NothingToShowElement.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/BackButton.d.ts +1 -1
- package/admin/plugins/editor/defaultBar/CreateContentButton.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/Divider.d.ts +1 -1
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettings.d.ts +4 -4
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsButton.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/FormSettings/FormSettingsStyled.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/Name/Name.d.ts +2 -2
- package/admin/plugins/editor/defaultBar/Name/Name.js +9 -4
- package/admin/plugins/editor/defaultBar/Name/NameStyled.d.ts +3 -3
- package/admin/plugins/editor/defaultBar/SaveContentModelButton.d.ts +2 -2
- package/admin/plugins/fieldRenderers/Accordion.d.ts +4 -5
- package/admin/plugins/fieldRenderers/Accordion.js +2 -1
- package/admin/plugins/fieldRenderers/DynamicSection.d.ts +5 -4
- package/admin/plugins/fieldRenderers/boolean/booleanSwitch.js +1 -0
- package/admin/plugins/fieldRenderers/checkboxes.js +1 -0
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.d.ts +2 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithTimezone.js +3 -3
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.d.ts +2 -1
- package/admin/plugins/fieldRenderers/dateTime/DateTimeWithoutTimezone.js +2 -2
- package/admin/plugins/fieldRenderers/dateTime/Input.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/Select.d.ts +3 -3
- package/admin/plugins/fieldRenderers/dateTime/Time.d.ts +2 -2
- package/admin/plugins/fieldRenderers/dateTime/dateTimeField.js +1 -0
- package/admin/plugins/fieldRenderers/dateTime/utils.d.ts +5 -3
- package/admin/plugins/fieldRenderers/file/File.d.ts +2 -2
- package/admin/plugins/fieldRenderers/file/File.js +1 -1
- package/admin/plugins/fieldRenderers/file/fileField.js +1 -0
- package/admin/plugins/fieldRenderers/file/fileFields.js +8 -2
- package/admin/plugins/fieldRenderers/file/utils.d.ts +8 -3
- package/admin/plugins/fieldRenderers/longText/longText.js +1 -0
- package/admin/plugins/fieldRenderers/number/numberInput.js +1 -0
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.d.ts +6 -4
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesAutocomplete.js +5 -3
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.d.ts +6 -4
- package/admin/plugins/fieldRenderers/ref/components/ContentEntriesMultiAutoComplete.js +15 -9
- package/admin/plugins/fieldRenderers/ref/components/NewRefEntryFormDialog.d.ts +2 -1
- package/admin/plugins/fieldRenderers/ref/components/NewRefEntryFormDialog.js +3 -2
- package/admin/plugins/fieldRenderers/ref/components/createEntryUrl.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/getOptions.d.ts +15 -1
- package/admin/plugins/fieldRenderers/ref/components/graphql.d.ts +60 -0
- package/admin/plugins/fieldRenderers/ref/components/graphql.js +16 -1
- package/admin/plugins/fieldRenderers/ref/components/renderItem.d.ts +2 -2
- package/admin/plugins/fieldRenderers/ref/components/useReference.d.ts +4 -4
- package/admin/plugins/fieldRenderers/ref/components/useReferences.d.ts +16 -8
- package/admin/plugins/fieldRenderers/ref/components/useReferences.js +1 -0
- package/admin/plugins/fieldRenderers/ref/hooks/useNewRefEntryDialog.d.ts +2 -4
- package/admin/plugins/fieldRenderers/ref/refInput.js +1 -0
- package/admin/plugins/fieldRenderers/ref/refInputs.js +1 -0
- package/admin/plugins/fieldRenderers/richText/richTextInput.js +1 -0
- package/admin/plugins/fieldRenderers/richText/richTextInputs.js +1 -0
- package/admin/plugins/fieldRenderers/text/textInput.js +1 -0
- package/admin/plugins/fieldValidators/date/createDateInputField.d.ts +2 -1
- package/admin/plugins/fieldValidators/gte.d.ts +2 -2
- package/admin/plugins/fieldValidators/gte.js +3 -2
- package/admin/plugins/fieldValidators/in.d.ts +2 -2
- package/admin/plugins/fieldValidators/in.js +3 -2
- package/admin/plugins/fieldValidators/lte.d.ts +2 -2
- package/admin/plugins/fieldValidators/lte.js +3 -2
- package/admin/plugins/fieldValidators/maxLength.d.ts +2 -2
- package/admin/plugins/fieldValidators/maxLength.js +3 -2
- package/admin/plugins/fieldValidators/minLength.d.ts +2 -2
- package/admin/plugins/fieldValidators/minLength.js +3 -2
- package/admin/plugins/fieldValidators/pattern.d.ts +2 -2
- package/admin/plugins/fieldValidators/pattern.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/email.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/email.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCase.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCaseSpace.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/lowerCaseSpace.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCase.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCaseSpace.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/upperCaseSpace.js +3 -2
- package/admin/plugins/fieldValidators/patternPlugins/url.d.ts +2 -2
- package/admin/plugins/fieldValidators/patternPlugins/url.js +3 -2
- package/admin/plugins/fieldValidators/required.d.ts +2 -2
- package/admin/plugins/fieldValidators/required.js +3 -2
- package/admin/plugins/fields/PredefinedValuesDynamicFieldset.d.ts +3 -2
- package/admin/plugins/fields/object/ObjectFields.d.ts +7 -4
- package/admin/plugins/fields/ref.js +2 -1
- package/admin/plugins/icons.js +1 -1
- package/admin/plugins/index.d.ts +1 -1
- package/admin/plugins/install.d.ts +22 -0
- package/admin/plugins/install.js +36 -30
- package/admin/plugins/permissionRenderer/CmsPermissions.d.ts +11 -5
- package/admin/plugins/permissionRenderer/CmsPermissions.js +5 -1
- package/admin/plugins/permissionRenderer/components/ContentEntryPermission.d.ts +12 -8
- package/admin/plugins/permissionRenderer/components/ContentModelGroupPermission.d.ts +11 -8
- package/admin/plugins/permissionRenderer/components/ContentModelList.d.ts +8 -6
- package/admin/plugins/permissionRenderer/components/ContentModelList.js +3 -3
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.d.ts +14 -10
- package/admin/plugins/permissionRenderer/components/ContentModelPermission.js +3 -2
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.d.ts +10 -5
- package/admin/plugins/permissionRenderer/components/PermissionRendererWrapper.js +4 -0
- package/admin/plugins/permissionRenderer/components/PermissionSelector.d.ts +11 -26
- package/admin/plugins/permissionRenderer/components/StyledComponents.d.ts +1 -1
- package/admin/plugins/permissionRenderer/components/types.d.ts +16 -0
- package/admin/plugins/permissionRenderer/components/types.js +1 -0
- package/admin/plugins/permissionRenderer/components/useCmsData.d.ts +17 -1
- package/admin/plugins/permissionRenderer/components/useCmsData.js +39 -25
- package/admin/plugins/permissionRenderer/index.d.ts +2 -2
- package/admin/plugins/permissionRenderer/index.js +3 -2
- package/admin/plugins/upgrades/5.19.0/createRepublishMutation.d.ts +2 -1
- package/admin/plugins/upgrades/5.19.0/fetchModelEntries.js +1 -0
- package/admin/plugins/upgrades/v5.0.0.js +1 -0
- package/admin/plugins/upgrades/v5.19.0.js +1 -0
- package/admin/plugins/upgrades/v5.5.0.js +1 -0
- package/admin/plugins/upgrades/v5.8.0.js +1 -0
- package/admin/plugins/validators/gte.d.ts +2 -2
- package/admin/plugins/validators/gte.js +3 -2
- package/admin/plugins/validators/in.d.ts +2 -2
- package/admin/plugins/validators/in.js +3 -2
- package/admin/plugins/validators/lte.d.ts +2 -2
- package/admin/plugins/validators/lte.js +3 -2
- package/admin/plugins/validators/maxLength.d.ts +2 -2
- package/admin/plugins/validators/maxLength.js +3 -2
- package/admin/plugins/validators/minLength.d.ts +2 -2
- package/admin/plugins/validators/minLength.js +3 -2
- package/admin/plugins/validators/pattern.d.ts +3 -9
- package/admin/plugins/validators/pattern.js +3 -2
- package/admin/plugins/validators/patternPlugins/email.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/email.js +3 -2
- package/admin/plugins/validators/patternPlugins/lowerCase.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/lowerCase.js +3 -2
- package/admin/plugins/validators/patternPlugins/lowerCaseSpace.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/lowerCaseSpace.js +3 -2
- package/admin/plugins/validators/patternPlugins/upperCase.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/upperCase.js +3 -2
- package/admin/plugins/validators/patternPlugins/upperCaseSpace.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/upperCaseSpace.js +3 -2
- package/admin/plugins/validators/patternPlugins/url.d.ts +3 -10
- package/admin/plugins/validators/patternPlugins/url.js +3 -2
- package/admin/plugins/validators/required.d.ts +2 -2
- package/admin/plugins/validators/required.js +3 -2
- package/admin/views/contentEntries/ContentEntries.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntries.js +2 -2
- package/admin/views/contentEntries/ContentEntriesContext.d.ts +9 -5
- package/admin/views/contentEntries/ContentEntriesContext.js +1 -1
- package/admin/views/contentEntries/ContentEntriesList.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntriesList.js +11 -1
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.d.ts +1 -4
- package/admin/views/contentEntries/ContentEntry/ContentEntryContext.js +8 -6
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.d.ts +4 -4
- package/admin/views/contentEntries/ContentEntry/RevisionListItem.js +11 -2
- package/admin/views/contentEntries/ContentEntry/RevisionsList.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/cache.d.ts +9 -7
- package/admin/views/contentEntries/ContentEntry/cache.js +22 -16
- package/admin/views/contentEntries/ContentEntry/header/Header.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/header/contentFormOptionsMenu/ContentFormOptionsMenu.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/header/requestReview/RequestReview.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/header/revisionSelector/RevisionSelector.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/header/saveAndPublishContent/SaveAndPublishContent.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/header/saveContent/SaveContent.d.ts +2 -2
- package/admin/views/contentEntries/ContentEntry/useRevision.d.ts +31 -9
- package/admin/views/contentEntries/ContentEntry/useRevision.js +135 -113
- package/admin/views/contentEntries/ContentEntry.d.ts +1 -2
- package/admin/views/contentEntries/ContentEntry.js +2 -5
- package/admin/views/contentEntries/hooks/useContentEntriesList.d.ts +2 -5
- package/admin/views/contentModelGroups/ContentModelGroups.d.ts +2 -2
- package/admin/views/contentModelGroups/ContentModelGroups.js +2 -2
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.d.ts +4 -4
- package/admin/views/contentModelGroups/ContentModelGroupsDataList.js +13 -21
- package/admin/views/contentModelGroups/ContentModelGroupsForm.d.ts +4 -4
- package/admin/views/contentModelGroups/ContentModelGroupsForm.js +49 -32
- package/admin/views/contentModelGroups/DelayedOnChange.d.ts +29 -12
- package/admin/views/contentModelGroups/DelayedOnChange.js +13 -13
- package/admin/views/contentModelGroups/IconPicker.d.ts +3 -2
- package/admin/views/contentModelGroups/IconPicker.js +1 -1
- package/admin/views/contentModelGroups/graphql.d.ts +68 -0
- package/admin/views/contentModelGroups/graphql.js +26 -5
- package/admin/views/contentModels/CloneContentModelDialog.js +6 -5
- package/admin/views/contentModels/ContentModelEditor.d.ts +3 -2
- package/admin/views/contentModels/ContentModelEditor.js +6 -3
- package/admin/views/contentModels/ContentModels.d.ts +2 -2
- package/admin/views/contentModels/ContentModels.js +5 -5
- package/admin/views/contentModels/ContentModelsDataList.d.ts +4 -4
- package/admin/views/contentModels/ContentModelsDataList.js +17 -21
- package/admin/views/contentModels/NewContentModelDialog.d.ts +2 -2
- package/admin/views/contentModels/NewContentModelDialog.js +151 -76
- package/admin/views/contentModels/cache.d.ts +5 -4
- package/admin/views/contentModels/cache.js +9 -9
- package/admin/views/contentModels/types.d.ts +4 -0
- package/admin/views/contentModels/types.js +1 -0
- package/admin/views/utils.d.ts +3 -2
- package/admin/views/utils.js +5 -18
- package/admin/viewsGraphql.d.ts +62 -0
- package/admin/viewsGraphql.js +30 -5
- package/package.json +20 -17
- package/types.d.ts +88 -23
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const NameInputWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
3
|
-
export declare const NameWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
4
|
-
export declare const FormName: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
2
|
+
export declare const NameInputWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "children" | "onError" | "color" | "translate" | "id" | "hidden" | "className" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">, object>;
|
|
3
|
+
export declare const NameWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "children" | "onError" | "color" | "translate" | "id" | "hidden" | "className" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">, object>;
|
|
4
|
+
export declare const FormName: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "children" | "onError" | "color" | "translate" | "id" | "hidden" | "className" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is">, object>;
|
|
5
5
|
export declare const formNameWrapper: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const SaveContentModelButton:
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const SaveContentModelButton: React.FC;
|
|
3
3
|
export default SaveContentModelButton;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { ReactElement } from "react";
|
|
2
|
-
|
|
2
|
+
interface AccordionProps {
|
|
3
3
|
title: string;
|
|
4
|
-
children: ReactElement;
|
|
5
4
|
action?: ReactElement;
|
|
6
5
|
icon?: ReactElement;
|
|
7
6
|
defaultValue?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare const
|
|
10
|
-
export default
|
|
7
|
+
}
|
|
8
|
+
declare const MemoizedAccordion: React.FC<AccordionProps>;
|
|
9
|
+
export default MemoizedAccordion;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CmsEditorField } from "../../../types";
|
|
3
|
-
|
|
3
|
+
import { GetBindCallable } from "../../components/ContentEntryForm/useBind";
|
|
4
|
+
interface DynamicSectionProps {
|
|
4
5
|
field: CmsEditorField;
|
|
5
|
-
getBind
|
|
6
|
+
getBind: GetBindCallable;
|
|
6
7
|
showLabel?: boolean;
|
|
7
8
|
Label: React.ComponentType<any>;
|
|
8
9
|
children: (params: any) => React.ReactNode;
|
|
9
10
|
emptyValue?: any;
|
|
10
11
|
renderTitle?: (value: any[]) => React.ReactElement;
|
|
11
12
|
gridClassName?: string;
|
|
12
|
-
}
|
|
13
|
-
declare const DynamicSection:
|
|
13
|
+
}
|
|
14
|
+
declare const DynamicSection: React.FC<DynamicSectionProps>;
|
|
14
15
|
export default DynamicSection;
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import get from "lodash/get";
|
|
7
8
|
import { Switch } from "@webiny/ui/Switch";
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import get from "lodash/get";
|
|
7
8
|
import { i18n } from "@webiny/app/i18n";
|
|
@@ -87,7 +87,7 @@ export var DateTimeWithTimezone = function DateTimeWithTimezone(_ref) {
|
|
|
87
87
|
onChange: function onChange(value) {
|
|
88
88
|
if (!value) {
|
|
89
89
|
if (!bind.value) {
|
|
90
|
-
return;
|
|
90
|
+
return null;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
return bind.onChange("");
|
|
@@ -108,7 +108,7 @@ export var DateTimeWithTimezone = function DateTimeWithTimezone(_ref) {
|
|
|
108
108
|
onChange: function onChange(value) {
|
|
109
109
|
if (!value) {
|
|
110
110
|
if (!bind.value) {
|
|
111
|
-
return;
|
|
111
|
+
return null;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
return bind.onChange("");
|
|
@@ -130,7 +130,7 @@ export var DateTimeWithTimezone = function DateTimeWithTimezone(_ref) {
|
|
|
130
130
|
onChange: function onChange(value) {
|
|
131
131
|
if (!value) {
|
|
132
132
|
if (!bind.value) {
|
|
133
|
-
return;
|
|
133
|
+
return null;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
return bind.onChange("");
|
|
@@ -75,7 +75,7 @@ export var DateTimeWithoutTimezone = function DateTimeWithoutTimezone(_ref) {
|
|
|
75
75
|
onChange: function onChange(value) {
|
|
76
76
|
if (!value) {
|
|
77
77
|
if (!bind.value) {
|
|
78
|
-
return;
|
|
78
|
+
return null;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
return bind.onChange("");
|
|
@@ -96,7 +96,7 @@ export var DateTimeWithoutTimezone = function DateTimeWithoutTimezone(_ref) {
|
|
|
96
96
|
onChange: function onChange(value) {
|
|
97
97
|
if (!value) {
|
|
98
98
|
if (!bind.value) {
|
|
99
|
-
return;
|
|
99
|
+
return null;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
return bind.onChange("");
|
|
@@ -5,11 +5,11 @@ export interface TrailingIcon {
|
|
|
5
5
|
icon: React.ReactNode;
|
|
6
6
|
onClick: any;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface InputProps {
|
|
9
9
|
step?: number;
|
|
10
10
|
type?: string;
|
|
11
11
|
bind: BindComponentRenderProp;
|
|
12
12
|
field: CmsEditorField;
|
|
13
13
|
trailingIcon?: TrailingIcon;
|
|
14
14
|
}
|
|
15
|
-
export declare const Input: React.FC<
|
|
15
|
+
export declare const Input: React.FC<InputProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { SelectProps } from "@webiny/ui/Select";
|
|
2
|
+
import { SelectProps as BaseSelectProps } from "@webiny/ui/Select";
|
|
3
3
|
export interface Option {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface SelectProps extends BaseSelectProps {
|
|
8
8
|
options: Option[];
|
|
9
9
|
}
|
|
10
|
-
export declare const Select: React.FC<
|
|
10
|
+
export declare const Select: React.FC<SelectProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
export declare const Time: React.FC<
|
|
2
|
+
import { InputProps } from "./Input";
|
|
3
|
+
export declare const Time: React.FC<InputProps>;
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import get from "lodash/get";
|
|
7
8
|
import { i18n } from "@webiny/app/i18n";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { CmsEditorField } from "../../../../types";
|
|
3
3
|
export declare const UTC_TIMEZONES: {
|
|
4
4
|
value: string;
|
|
@@ -11,6 +11,8 @@ export declare const getDefaultFieldValue: (field: CmsEditorField, bind: {
|
|
|
11
11
|
export declare const getCurrentTimeZone: (date?: Date) => string;
|
|
12
12
|
export declare const getCurrentLocalTime: (date?: Date) => string;
|
|
13
13
|
export declare const getCurrentDate: (date?: Date) => string;
|
|
14
|
-
|
|
14
|
+
interface RemoveFieldButtonProps {
|
|
15
15
|
trailingIcon: any;
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
|
+
export declare const RemoveFieldButton: React.FC<RemoveFieldButtonProps>;
|
|
18
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface FileProps {
|
|
3
3
|
url: string;
|
|
4
4
|
onRemove: Function;
|
|
5
5
|
placeholder: string;
|
|
@@ -11,5 +11,5 @@ export interface Props {
|
|
|
11
11
|
};
|
|
12
12
|
description?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const File: React.FunctionComponent<
|
|
14
|
+
declare const File: React.FunctionComponent<FileProps>;
|
|
15
15
|
export default File;
|
|
@@ -42,7 +42,7 @@ var File = function File(props) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
return fileIcon;
|
|
45
|
-
}, []);
|
|
45
|
+
}, []); // TODO @ts-refactor figure out correct type
|
|
46
46
|
|
|
47
47
|
var defaultRenderImagePreview = function defaultRenderImagePreview(renderImageProps) {
|
|
48
48
|
return /*#__PURE__*/React.createElement(Image, Object.assign({}, renderImageProps, imagePreviewProps));
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import { i18n } from "@webiny/app/i18n";
|
|
7
8
|
import { Cell, Grid } from "@webiny/ui/Grid";
|
|
@@ -3,6 +3,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
5
5
|
|
|
6
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
6
7
|
import React from "react";
|
|
7
8
|
import dotProp from "dot-prop-immutable";
|
|
8
9
|
import { i18n } from "@webiny/app/i18n";
|
|
@@ -26,7 +27,7 @@ var FileUploadWrapper = /*#__PURE__*/styled("div", {
|
|
|
26
27
|
}
|
|
27
28
|
});
|
|
28
29
|
|
|
29
|
-
function FieldRenderer(_ref) {
|
|
30
|
+
var FieldRenderer = function FieldRenderer(_ref) {
|
|
30
31
|
var getBind = _ref.getBind,
|
|
31
32
|
Label = _ref.Label,
|
|
32
33
|
field = _ref.field;
|
|
@@ -88,7 +89,12 @@ function FieldRenderer(_ref) {
|
|
|
88
89
|
}))));
|
|
89
90
|
}));
|
|
90
91
|
});
|
|
91
|
-
}
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Not used?
|
|
95
|
+
*/
|
|
96
|
+
// TODO @ts-refactor
|
|
97
|
+
|
|
92
98
|
|
|
93
99
|
FieldRenderer.defaultProps = {
|
|
94
100
|
validation: {
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const imagePlugins: string[];
|
|
3
3
|
export declare const imageWrapperStyles: string;
|
|
4
|
-
|
|
5
|
-
value:
|
|
4
|
+
interface CreateRenderImagePreviewProps {
|
|
5
|
+
value: string;
|
|
6
6
|
imagePreviewProps: any;
|
|
7
|
-
}
|
|
7
|
+
}
|
|
8
|
+
interface RenderImageProps {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createRenderImagePreview: ({ value, imagePreviewProps }: CreateRenderImagePreviewProps) => (renderImageProps: RenderImageProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import get from "lodash/get";
|
|
7
8
|
import { Input } from "@webiny/ui/Input";
|
|
@@ -2,6 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
+
// TODO @ts-refactor figure out correct bind types and remove any
|
|
5
6
|
import React from "react";
|
|
6
7
|
import get from "lodash/get";
|
|
7
8
|
import { Input } from "@webiny/ui/Input";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CmsEditorField } from "../../../../../types";
|
|
3
|
+
interface ContentEntriesAutocompleteProps {
|
|
3
4
|
bind: any;
|
|
4
|
-
field:
|
|
5
|
-
}
|
|
5
|
+
field: CmsEditorField;
|
|
6
|
+
}
|
|
7
|
+
declare const ContentEntriesAutocomplete: React.FC<ContentEntriesAutocompleteProps>;
|
|
6
8
|
export default ContentEntriesAutocomplete;
|
|
@@ -4,6 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
4
4
|
|
|
5
5
|
import React from "react";
|
|
6
6
|
import debounce from "lodash/debounce";
|
|
7
|
+
import NewRefEntryFormDialog, { NewEntryButton } from "./NewRefEntryFormDialog";
|
|
7
8
|
import { AutoComplete } from "@webiny/ui/AutoComplete";
|
|
8
9
|
import { i18n } from "@webiny/app/i18n";
|
|
9
10
|
import { Link } from "@webiny/react-router";
|
|
@@ -11,12 +12,11 @@ import { useNewRefEntry } from "../hooks/useNewRefEntry";
|
|
|
11
12
|
import { useReference } from "./useReference";
|
|
12
13
|
import { renderItem } from "./renderItem";
|
|
13
14
|
import { createEntryUrl } from "./createEntryUrl";
|
|
14
|
-
import NewRefEntryFormDialog, { NewEntryButton } from "./NewRefEntryFormDialog";
|
|
15
15
|
var t = i18n.ns("app-headless-cms/admin/fields/ref");
|
|
16
16
|
var unpublishedLabel = t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Selected content entry is not published. Make sure to {publishItLink} before publishing the main content entry."])));
|
|
17
17
|
var publishedLabel = t(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["Selected content entry is published. You can view it {here}."])));
|
|
18
18
|
|
|
19
|
-
function ContentEntriesAutocomplete(_ref) {
|
|
19
|
+
var ContentEntriesAutocomplete = function ContentEntriesAutocomplete(_ref) {
|
|
20
20
|
var bind = _ref.bind,
|
|
21
21
|
field = _ref.field;
|
|
22
22
|
|
|
@@ -61,6 +61,8 @@ function ContentEntriesAutocomplete(_ref) {
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
if (renderNewEntryModal) {
|
|
64
|
+
// TODO @ts-refactor
|
|
65
|
+
// TODO @ashutosh check out that second entry in onChange and check which type does on change accept as second entry
|
|
64
66
|
return /*#__PURE__*/React.createElement(NewRefEntryFormDialog, {
|
|
65
67
|
modelId: refModelId,
|
|
66
68
|
onChange: function onChange(entry) {
|
|
@@ -94,6 +96,6 @@ function ContentEntriesAutocomplete(_ref) {
|
|
|
94
96
|
}, 250),
|
|
95
97
|
noResultFound: helpText
|
|
96
98
|
}));
|
|
97
|
-
}
|
|
99
|
+
};
|
|
98
100
|
|
|
99
101
|
export default ContentEntriesAutocomplete;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CmsEditorField } from "../../../../../types";
|
|
3
|
+
interface ContentEntriesMultiAutocompleteProps {
|
|
3
4
|
bind: any;
|
|
4
|
-
field:
|
|
5
|
-
}
|
|
5
|
+
field: CmsEditorField;
|
|
6
|
+
}
|
|
7
|
+
declare const ContentEntriesMultiAutocomplete: React.FC<ContentEntriesMultiAutocompleteProps>;
|
|
6
8
|
export default ContentEntriesMultiAutocomplete;
|
|
@@ -15,7 +15,7 @@ import { useNewRefEntry } from "../hooks/useNewRefEntry";
|
|
|
15
15
|
var t = i18n.ns("app-headless-cms/admin/fields/ref");
|
|
16
16
|
var warn = t(_templateObject || (_templateObject = _taggedTemplateLiteral(["Before publishing the main content entry, make sure you publish the following referenced entries: {entries}"])));
|
|
17
17
|
|
|
18
|
-
function ContentEntriesMultiAutocomplete(_ref) {
|
|
18
|
+
var ContentEntriesMultiAutocomplete = function ContentEntriesMultiAutocomplete(_ref) {
|
|
19
19
|
var bind = _ref.bind,
|
|
20
20
|
field = _ref.field;
|
|
21
21
|
|
|
@@ -36,12 +36,17 @@ function ContentEntriesMultiAutocomplete(_ref) {
|
|
|
36
36
|
refModelId = _useNewRefEntry.refModelId,
|
|
37
37
|
helpText = _useNewRefEntry.helpText;
|
|
38
38
|
|
|
39
|
-
var entryWarning = function entryWarning(
|
|
40
|
-
var id =
|
|
41
|
-
modelId =
|
|
42
|
-
name =
|
|
43
|
-
published =
|
|
44
|
-
|
|
39
|
+
var entryWarning = function entryWarning(entry, index) {
|
|
40
|
+
var id = entry.id,
|
|
41
|
+
modelId = entry.modelId,
|
|
42
|
+
name = entry.name,
|
|
43
|
+
published = entry.published;
|
|
44
|
+
|
|
45
|
+
if (published) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
45
50
|
key: id
|
|
46
51
|
}, index > 0 && ", ", /*#__PURE__*/React.createElement(Link, {
|
|
47
52
|
to: "/cms/content-entries/".concat(modelId, "?id=").concat(encodeURIComponent(id))
|
|
@@ -58,7 +63,8 @@ function ContentEntriesMultiAutocomplete(_ref) {
|
|
|
58
63
|
});
|
|
59
64
|
}
|
|
60
65
|
|
|
61
|
-
var refEntryOnChange = useCallback(
|
|
66
|
+
var refEntryOnChange = useCallback( // TODO @ts-refactor figure out which type is this
|
|
67
|
+
function (value) {
|
|
62
68
|
/**
|
|
63
69
|
* Append new selected entry at the end of existing entries.
|
|
64
70
|
*/
|
|
@@ -97,6 +103,6 @@ function ContentEntriesMultiAutocomplete(_ref) {
|
|
|
97
103
|
description: /*#__PURE__*/React.createElement(React.Fragment, null, field.helpText, warning),
|
|
98
104
|
noResultFound: helpText
|
|
99
105
|
}));
|
|
100
|
-
}
|
|
106
|
+
};
|
|
101
107
|
|
|
102
108
|
export default ContentEntriesMultiAutocomplete;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { CmsEditorContentEntry } from "../../../../../types";
|
|
2
3
|
export declare const NewEntryButton: () => JSX.Element;
|
|
3
4
|
interface NewRefEntryProps {
|
|
4
5
|
modelId: string;
|
|
5
6
|
children: React.ReactElement;
|
|
6
|
-
onChange:
|
|
7
|
+
onChange: (entry: CmsEditorContentEntry) => void;
|
|
7
8
|
}
|
|
8
9
|
declare const NewRefEntryFormDialog: React.FC<NewRefEntryProps>;
|
|
9
10
|
export default NewRefEntryFormDialog;
|
|
@@ -93,7 +93,8 @@ var NewRefEntryFormDialog = function NewRefEntryFormDialog(_ref2) {
|
|
|
93
93
|
var contentModelData = get(data, "getContentModel.data");
|
|
94
94
|
|
|
95
95
|
if (contentModelData) {
|
|
96
|
-
|
|
96
|
+
setContentModel(contentModelData);
|
|
97
|
+
return;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
showSnackbar(t(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["Could not load content for model \"{modelId}\". Redirecting..."])))({
|
|
@@ -118,7 +119,7 @@ var NewRefEntryFormDialog = function NewRefEntryFormDialog(_ref2) {
|
|
|
118
119
|
modelId: contentModel.modelId,
|
|
119
120
|
modelName: contentModel.name
|
|
120
121
|
}));
|
|
121
|
-
/*
|
|
122
|
+
/*
|
|
122
123
|
Close the modal
|
|
123
124
|
*/
|
|
124
125
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface CreateEntryUrlParams {
|
|
2
2
|
id: string;
|
|
3
3
|
modelId: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const createEntryUrl: ({ modelId, id }:
|
|
5
|
+
export declare const createEntryUrl: ({ modelId, id }: CreateEntryUrlParams) => string;
|
|
6
6
|
export declare const createNewEntryUrl: (modelId: string) => string;
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
import { CmsEditorContentEntry, CmsModel } from "../../../../../types";
|
|
2
|
+
interface CmsEntry extends Pick<CmsEditorContentEntry, "id" | "title" | "status"> {
|
|
3
|
+
model: Pick<CmsModel, "modelId" | "name">;
|
|
4
|
+
}
|
|
5
|
+
interface Options {
|
|
6
|
+
(item: CmsEntry): Record<string, string>;
|
|
7
|
+
}
|
|
8
|
+
export declare const getOptions: (entries?: CmsEntry[], extraOptions?: Options) => {
|
|
9
|
+
id: string;
|
|
10
|
+
modelId: string;
|
|
11
|
+
modelName: string;
|
|
12
|
+
name: any;
|
|
13
|
+
published: boolean;
|
|
14
|
+
}[];
|
|
15
|
+
export {};
|