@plone/volto 18.0.0-alpha.2 → 18.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +3 -3
- package/.prettierignore +8 -0
- package/.prettierrc +12 -0
- package/{packages/registry/.release-it.json → .release-it.json} +11 -6
- package/CHANGELOG.md +44 -4
- package/locales/ca/LC_MESSAGES/volto.po +1 -0
- package/locales/de/LC_MESSAGES/volto.po +1 -0
- package/locales/en/LC_MESSAGES/volto.po +1 -0
- package/locales/es/LC_MESSAGES/volto.po +1 -0
- package/locales/eu/LC_MESSAGES/volto.po +1 -0
- package/locales/fi/LC_MESSAGES/volto.po +1 -0
- package/locales/fr/LC_MESSAGES/volto.po +1 -0
- package/locales/it/LC_MESSAGES/volto.po +1 -0
- package/locales/ja/LC_MESSAGES/volto.po +1 -0
- package/locales/nl/LC_MESSAGES/volto.po +1 -0
- package/locales/pt/LC_MESSAGES/volto.po +1 -0
- package/locales/pt_BR/LC_MESSAGES/volto.po +1 -0
- package/locales/ro/LC_MESSAGES/volto.po +1 -0
- package/locales/volto.pot +2 -1
- package/locales/zh_CN/LC_MESSAGES/volto.po +1 -0
- package/package.json +57 -127
- package/razzle.config.js +4 -7
- package/src/components/manage/Blocks/Video/Body.jsx +52 -22
- package/src/components/manage/Blocks/Video/Body.test.jsx +167 -0
- package/src/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel.jsx +2 -2
- package/src/components/manage/Form/Form.jsx +5 -2
- package/src/components/theme/Breadcrumbs/Breadcrumbs.jsx +19 -2
- package/src/components/theme/ContentMetadataTags/ContentMetadataTags.jsx +46 -39
- package/src/config/index.js +0 -4
- package/src/icons/divide-horizontal.svg +0 -0
- package/src/icons/divide-vertical.svg +0 -0
- package/src/icons/hero.svg +0 -0
- package/src/icons/slider.svg +0 -0
- package/src/icons/summary.svg +0 -0
- package/src/middleware/api.js +1 -1
- package/theme/themes/default/elements/icon.overrides +0 -0
- package/theme/themes/default/globals/reset.overrides +0 -0
- package/theme/themes/default/globals/site.variables +0 -0
- package/theme/themes/default/modules/dropdown.overrides +0 -0
- package/theme/themes/default/modules/dropdown.variables +0 -0
- package/theme/themes/default/modules/modal.variables +0 -0
- package/theme/themes/default/modules/video.overrides +0 -0
- package/theme/themes/default/modules/video.variables +0 -0
- package/theme/themes/pastanaga/assets/fonts/icons.eot +0 -0
- package/theme/themes/pastanaga/assets/fonts/icons.svg +0 -0
- package/theme/themes/pastanaga/assets/fonts/icons.ttf +0 -0
- package/theme/themes/pastanaga/assets/fonts/icons.woff +0 -0
- package/theme/themes/pastanaga/globals/reset.overrides +0 -0
- package/theme/themes/pastanaga/globals/site.variables +0 -0
- package/theme/themes/pastanaga/modules/dropdown.variables +0 -0
- package/theme/themes/pastanaga/modules/modal.variables +0 -0
- package/theme/themes/pastanaga/modules/video.overrides +0 -0
- package/theme/themes/pastanaga/modules/video.variables +0 -0
- package/tsconfig.json +1 -4
- package/types/components/manage/Blocks/Video/Body.d.ts +5 -0
- package/types/config/RichTextEditor/index.d.ts +5 -8
- package/types/helpers/AsyncConnect/index.d.ts +2 -2
- package/types/helpers/Url/Url.d.ts +3 -3
- package/types/icons/load-icons.d.ts +1 -1
- package/webpack-plugins/webpack-less-plugin.js +1 -0
- package/CODE_OF_CONDUCT.md +0 -13
- package/CONTRIBUTING.md +0 -7
- package/README.md +0 -154
- package/RELEASING.md +0 -73
- package/ROADMAP.md +0 -30
- package/SECURITY.md +0 -14
- package/logos/Logo.png +0 -0
- package/logos/VoltoLogoEra2-dark-mode.png +0 -0
- package/logos/VoltoLogoEra2.png +0 -0
- package/logos/volto-colorful.png +0 -0
- package/logos/volto-colorful.svg +0 -35
- package/logos/volto-guide.png +0 -0
- package/logos/volto-h-transparent.svg +0 -6
- package/logos/volto-transparent.png +0 -0
- package/logos/volto-transparent.svg +0 -19
- package/logos/volto-transparent2.svg +0 -5
- package/logos/volto-yellow.svg +0 -29
- package/logos/volto.sketch +0 -0
- package/packages/README.md +0 -7
- package/packages/registry/.towncrier/towncrier_template.jinja +0 -10
- package/packages/registry/CHANGELOG.md +0 -16
- package/packages/registry/README.md +0 -207
- package/packages/registry/addon-registry.js +0 -603
- package/packages/registry/create-addons-loader.js +0 -116
- package/packages/registry/create-theme-addons-loader.js +0 -78
- package/packages/registry/news/.gitkeep +0 -0
- package/packages/registry/package.json +0 -76
- package/packages/registry/src/index.ts +0 -174
- package/packages/registry/src/registry.test.js +0 -111
- package/packages/registry/tsconfig.json +0 -32
- package/packages/scripts/CHANGELOG.md +0 -173
- package/packages/scripts/README.md +0 -128
- package/packages/scripts/addon/consolidate.js +0 -28
- package/packages/scripts/addon/generators.js +0 -213
- package/packages/scripts/addon/getAddonInfo.js +0 -65
- package/packages/scripts/addon/index.js +0 -88
- package/packages/scripts/addon/utils.js +0 -44
- package/packages/scripts/backportpr.js +0 -75
- package/packages/scripts/changelogupdater.cjs +0 -94
- package/packages/scripts/corepackagebump.js +0 -20
- package/packages/scripts/i18n.cjs +0 -310
- package/packages/scripts/package.json +0 -76
- package/packages/scripts/templates/towncrier_template.jinja +0 -10
- package/packages/types/Blocks/View.ts +0 -11
- package/packages/types/actions.ts +0 -15
- package/packages/types/breadcrumbs.ts +0 -10
- package/packages/types/config/Blocks.ts +0 -153
- package/packages/types/config/Content.ts +0 -62
- package/packages/types/config/Settings.ts +0 -86
- package/packages/types/config/Views.ts +0 -15
- package/packages/types/config/Widgets.ts +0 -7
- package/packages/types/config/index.ts +0 -21
- package/packages/types/content/common.ts +0 -60
- package/packages/types/content/get.ts +0 -66
- package/packages/types/index.ts +0 -0
- package/packages/types/navigation.ts +0 -12
- package/packages/types/package.json +0 -64
- package/packages/types/types.ts +0 -61
- package/packages/volto-slate/.i18n.babel.config.js +0 -1
- package/packages/volto-slate/README.md +0 -4
- package/packages/volto-slate/build/messages/src/blocks/Table/TableBlockEdit.json +0 -90
- package/packages/volto-slate/build/messages/src/blocks/Text/DefaultTextBlockEditor.json +0 -6
- package/packages/volto-slate/build/messages/src/blocks/Text/DetachedTextBlockEditor.json +0 -6
- package/packages/volto-slate/build/messages/src/blocks/Text/SlashMenu.json +0 -6
- package/packages/volto-slate/build/messages/src/editor/plugins/AdvancedLink/index.json +0 -10
- package/packages/volto-slate/build/messages/src/editor/plugins/Link/index.json +0 -10
- package/packages/volto-slate/build/messages/src/editor/plugins/Table/index.json +0 -30
- package/packages/volto-slate/build/messages/src/elementEditor/messages.json +0 -10
- package/packages/volto-slate/build/messages/src/widgets/HtmlSlateWidget.json +0 -6
- package/packages/volto-slate/build/messages/src/widgets/RichTextWidgetView.json +0 -6
- package/packages/volto-slate/locales/de/LC_MESSAGES/volto.po +0 -148
- package/packages/volto-slate/locales/en/LC_MESSAGES/volto.po +0 -148
- package/packages/volto-slate/locales/volto.pot +0 -182
- package/packages/volto-slate/package.json +0 -43
- package/packages/volto-slate/src/actions/content.js +0 -30
- package/packages/volto-slate/src/actions/index.js +0 -3
- package/packages/volto-slate/src/actions/plugins.js +0 -9
- package/packages/volto-slate/src/actions/selection.js +0 -22
- package/packages/volto-slate/src/blocks/Table/Cell.jsx +0 -87
- package/packages/volto-slate/src/blocks/Table/Cell.test.js +0 -54
- package/packages/volto-slate/src/blocks/Table/TableBlockEdit.jsx +0 -694
- package/packages/volto-slate/src/blocks/Table/TableBlockEdit.test.js +0 -40
- package/packages/volto-slate/src/blocks/Table/TableBlockView.jsx +0 -150
- package/packages/volto-slate/src/blocks/Table/TableBlockView.test.js +0 -49
- package/packages/volto-slate/src/blocks/Table/deconstruct.js +0 -113
- package/packages/volto-slate/src/blocks/Table/extensions/normalizeTable.js +0 -5
- package/packages/volto-slate/src/blocks/Table/index.js +0 -60
- package/packages/volto-slate/src/blocks/Table/schema.js +0 -122
- package/packages/volto-slate/src/blocks/Text/DefaultTextBlockEditor.jsx +0 -304
- package/packages/volto-slate/src/blocks/Text/DetachedTextBlockEditor.jsx +0 -77
- package/packages/volto-slate/src/blocks/Text/MarkdownIntroduction.jsx +0 -59
- package/packages/volto-slate/src/blocks/Text/PluginSidebar.jsx +0 -18
- package/packages/volto-slate/src/blocks/Text/ShortcutListing.jsx +0 -28
- package/packages/volto-slate/src/blocks/Text/SlashMenu.jsx +0 -203
- package/packages/volto-slate/src/blocks/Text/TextBlockEdit.jsx +0 -38
- package/packages/volto-slate/src/blocks/Text/TextBlockEdit.test.js +0 -107
- package/packages/volto-slate/src/blocks/Text/TextBlockSchema.js +0 -54
- package/packages/volto-slate/src/blocks/Text/TextBlockView.jsx +0 -31
- package/packages/volto-slate/src/blocks/Text/css/editor.css +0 -18
- package/packages/volto-slate/src/blocks/Text/extensions/Readme.md +0 -49
- package/packages/volto-slate/src/blocks/Text/extensions/breakList.js +0 -100
- package/packages/volto-slate/src/blocks/Text/extensions/index.js +0 -6
- package/packages/volto-slate/src/blocks/Text/extensions/insertBreak.js +0 -57
- package/packages/volto-slate/src/blocks/Text/extensions/isSelected.js +0 -7
- package/packages/volto-slate/src/blocks/Text/extensions/normalizeExternalData.js +0 -7
- package/packages/volto-slate/src/blocks/Text/extensions/withDeserializers.js +0 -87
- package/packages/volto-slate/src/blocks/Text/extensions/withLists.js +0 -5
- package/packages/volto-slate/src/blocks/Text/index.js +0 -171
- package/packages/volto-slate/src/blocks/Text/keyboard/backspaceInList.js +0 -58
- package/packages/volto-slate/src/blocks/Text/keyboard/breakBlocks.js +0 -3
- package/packages/volto-slate/src/blocks/Text/keyboard/cancelEsc.js +0 -7
- package/packages/volto-slate/src/blocks/Text/keyboard/indentListItems.js +0 -240
- package/packages/volto-slate/src/blocks/Text/keyboard/index.js +0 -52
- package/packages/volto-slate/src/blocks/Text/keyboard/joinBlocks.js +0 -180
- package/packages/volto-slate/src/blocks/Text/keyboard/moveListItems.js +0 -124
- package/packages/volto-slate/src/blocks/Text/keyboard/slashMenu.js +0 -19
- package/packages/volto-slate/src/blocks/Text/keyboard/softBreak.js +0 -7
- package/packages/volto-slate/src/blocks/Text/keyboard/traverseBlocks.js +0 -81
- package/packages/volto-slate/src/blocks/Text/keyboard/unwrapEmptyString.js +0 -26
- package/packages/volto-slate/src/blocks/Text/schema.js +0 -39
- package/packages/volto-slate/src/constants.js +0 -123
- package/packages/volto-slate/src/editor/EditorContext.jsx +0 -5
- package/packages/volto-slate/src/editor/EditorReference.jsx +0 -22
- package/packages/volto-slate/src/editor/SlateEditor.jsx +0 -375
- package/packages/volto-slate/src/editor/config.jsx +0 -344
- package/packages/volto-slate/src/editor/decorate.js +0 -68
- package/packages/volto-slate/src/editor/deserialize.js +0 -185
- package/packages/volto-slate/src/editor/extensions/index.js +0 -6
- package/packages/volto-slate/src/editor/extensions/insertBreak.js +0 -15
- package/packages/volto-slate/src/editor/extensions/insertData.js +0 -159
- package/packages/volto-slate/src/editor/extensions/isInline.js +0 -14
- package/packages/volto-slate/src/editor/extensions/normalizeExternalData.js +0 -8
- package/packages/volto-slate/src/editor/extensions/normalizeNode.js +0 -48
- package/packages/volto-slate/src/editor/extensions/withDeserializers.js +0 -15
- package/packages/volto-slate/src/editor/extensions/withTestingFeatures.jsx +0 -84
- package/packages/volto-slate/src/editor/index.js +0 -14
- package/packages/volto-slate/src/editor/less/editor.less +0 -173
- package/packages/volto-slate/src/editor/less/globals.less +0 -18
- package/packages/volto-slate/src/editor/less/slate.less +0 -28
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/deserialize.js +0 -90
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/extensions.js +0 -32
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/index.js +0 -50
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/render.jsx +0 -37
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/schema.js +0 -114
- package/packages/volto-slate/src/editor/plugins/AdvancedLink/styles.less +0 -8
- package/packages/volto-slate/src/editor/plugins/Blockquote/index.js +0 -30
- package/packages/volto-slate/src/editor/plugins/Callout/index.js +0 -34
- package/packages/volto-slate/src/editor/plugins/Image/deconstruct.js +0 -30
- package/packages/volto-slate/src/editor/plugins/Image/extensions.js +0 -51
- package/packages/volto-slate/src/editor/plugins/Image/index.js +0 -11
- package/packages/volto-slate/src/editor/plugins/Image/render.jsx +0 -22
- package/packages/volto-slate/src/editor/plugins/Link/extensions.js +0 -58
- package/packages/volto-slate/src/editor/plugins/Link/index.js +0 -164
- package/packages/volto-slate/src/editor/plugins/Link/render.jsx +0 -54
- package/packages/volto-slate/src/editor/plugins/Markdown/constants.js +0 -81
- package/packages/volto-slate/src/editor/plugins/Markdown/extensions.js +0 -334
- package/packages/volto-slate/src/editor/plugins/Markdown/index.js +0 -28
- package/packages/volto-slate/src/editor/plugins/Markdown/utils.js +0 -198
- package/packages/volto-slate/src/editor/plugins/StyleMenu/StyleMenu.jsx +0 -153
- package/packages/volto-slate/src/editor/plugins/StyleMenu/index.js +0 -19
- package/packages/volto-slate/src/editor/plugins/StyleMenu/style.less +0 -29
- package/packages/volto-slate/src/editor/plugins/StyleMenu/utils.js +0 -168
- package/packages/volto-slate/src/editor/plugins/Table/TableButton.jsx +0 -142
- package/packages/volto-slate/src/editor/plugins/Table/TableCell.jsx +0 -44
- package/packages/volto-slate/src/editor/plugins/Table/TableContainer.jsx +0 -37
- package/packages/volto-slate/src/editor/plugins/Table/TableSizePicker.jsx +0 -83
- package/packages/volto-slate/src/editor/plugins/Table/extensions.js +0 -87
- package/packages/volto-slate/src/editor/plugins/Table/index.js +0 -390
- package/packages/volto-slate/src/editor/plugins/Table/less/public.less +0 -29
- package/packages/volto-slate/src/editor/plugins/Table/less/table.less +0 -28
- package/packages/volto-slate/src/editor/plugins/Table/render.jsx +0 -30
- package/packages/volto-slate/src/editor/plugins/index.js +0 -19
- package/packages/volto-slate/src/editor/render.jsx +0 -224
- package/packages/volto-slate/src/editor/ui/BasicToolbar.jsx +0 -11
- package/packages/volto-slate/src/editor/ui/BlockButton.jsx +0 -31
- package/packages/volto-slate/src/editor/ui/ClearFormattingButton.jsx +0 -21
- package/packages/volto-slate/src/editor/ui/ExpandedToolbar.jsx +0 -18
- package/packages/volto-slate/src/editor/ui/Expando.jsx +0 -5
- package/packages/volto-slate/src/editor/ui/InlineToolbar.jsx +0 -73
- package/packages/volto-slate/src/editor/ui/MarkButton.jsx +0 -23
- package/packages/volto-slate/src/editor/ui/MarkElementButton.jsx +0 -30
- package/packages/volto-slate/src/editor/ui/Menu.jsx +0 -13
- package/packages/volto-slate/src/editor/ui/PositionedToolbar.jsx +0 -32
- package/packages/volto-slate/src/editor/ui/Separator.jsx +0 -7
- package/packages/volto-slate/src/editor/ui/SlateContextToolbar.jsx +0 -13
- package/packages/volto-slate/src/editor/ui/SlateToolbar.jsx +0 -96
- package/packages/volto-slate/src/editor/ui/Toolbar.jsx +0 -103
- package/packages/volto-slate/src/editor/ui/ToolbarButton.jsx +0 -33
- package/packages/volto-slate/src/editor/ui/ToolbarButton.test.js +0 -25
- package/packages/volto-slate/src/editor/ui/index.js +0 -15
- package/packages/volto-slate/src/editor/utils.js +0 -248
- package/packages/volto-slate/src/elementEditor/ContextButtons.jsx +0 -56
- package/packages/volto-slate/src/elementEditor/PluginEditor.jsx +0 -124
- package/packages/volto-slate/src/elementEditor/Readme.md +0 -6
- package/packages/volto-slate/src/elementEditor/SchemaProvider.jsx +0 -3
- package/packages/volto-slate/src/elementEditor/SidebarEditor.jsx +0 -46
- package/packages/volto-slate/src/elementEditor/ToolbarButton.jsx +0 -44
- package/packages/volto-slate/src/elementEditor/index.js +0 -5
- package/packages/volto-slate/src/elementEditor/makeInlineElementPlugin.js +0 -100
- package/packages/volto-slate/src/elementEditor/messages.js +0 -14
- package/packages/volto-slate/src/elementEditor/utils.js +0 -226
- package/packages/volto-slate/src/hooks/index.js +0 -3
- package/packages/volto-slate/src/hooks/useEditorContext.js +0 -6
- package/packages/volto-slate/src/hooks/useIsomorphicLayoutEffect.js +0 -7
- package/packages/volto-slate/src/hooks/useSelectionPosition.js +0 -25
- package/packages/volto-slate/src/i18n.js +0 -180
- package/packages/volto-slate/src/icons/hashlink.svg +0 -57
- package/packages/volto-slate/src/index.js +0 -61
- package/packages/volto-slate/src/reducers/content.js +0 -74
- package/packages/volto-slate/src/reducers/index.js +0 -3
- package/packages/volto-slate/src/reducers/plugins.js +0 -17
- package/packages/volto-slate/src/reducers/selection.js +0 -16
- package/packages/volto-slate/src/utils/blocks.js +0 -375
- package/packages/volto-slate/src/utils/blocks.test.js +0 -138
- package/packages/volto-slate/src/utils/editor.js +0 -31
- package/packages/volto-slate/src/utils/image.js +0 -25
- package/packages/volto-slate/src/utils/index.js +0 -11
- package/packages/volto-slate/src/utils/internals.js +0 -46
- package/packages/volto-slate/src/utils/lists.js +0 -92
- package/packages/volto-slate/src/utils/marks.js +0 -104
- package/packages/volto-slate/src/utils/mime-types.js +0 -24
- package/packages/volto-slate/src/utils/nodes.js +0 -4
- package/packages/volto-slate/src/utils/ops.js +0 -20
- package/packages/volto-slate/src/utils/random.js +0 -17
- package/packages/volto-slate/src/utils/selection.js +0 -236
- package/packages/volto-slate/src/utils/slate-string-utils.js +0 -408
- package/packages/volto-slate/src/utils/volto-blocks.js +0 -314
- package/packages/volto-slate/src/widgets/ErrorBoundary.jsx +0 -27
- package/packages/volto-slate/src/widgets/HtmlSlateWidget.jsx +0 -139
- package/packages/volto-slate/src/widgets/ObjectByTypeWidget.jsx +0 -49
- package/packages/volto-slate/src/widgets/RichTextWidget.jsx +0 -72
- package/packages/volto-slate/src/widgets/RichTextWidgetView.jsx +0 -37
- package/packages/volto-slate/src/widgets/style.css +0 -21
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export type Components =
|
|
2
|
-
| 'actions'
|
|
3
|
-
| 'aliases'
|
|
4
|
-
| 'breadcrumbs'
|
|
5
|
-
| 'contextnavigation'
|
|
6
|
-
| 'navigation'
|
|
7
|
-
| 'types'
|
|
8
|
-
| 'workflow';
|
|
9
|
-
|
|
10
|
-
export type ExpanderItem = {
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
'@id': string;
|
|
13
|
-
title: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type Item = {
|
|
17
|
-
'@id': string;
|
|
18
|
-
'@type': string;
|
|
19
|
-
description: string;
|
|
20
|
-
image_field: null;
|
|
21
|
-
image_scales: null;
|
|
22
|
-
review_state: string;
|
|
23
|
-
title: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export type RelatedItem = {
|
|
27
|
-
'@id': string;
|
|
28
|
-
'@type': string;
|
|
29
|
-
UID: string;
|
|
30
|
-
description: string;
|
|
31
|
-
image_field: unknown;
|
|
32
|
-
image_scales: unknown;
|
|
33
|
-
review_state: string;
|
|
34
|
-
title: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type ImageScale = {
|
|
38
|
-
download: string;
|
|
39
|
-
height: number;
|
|
40
|
-
width: number;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export type PreviewImage = {
|
|
44
|
-
'content-type': string;
|
|
45
|
-
download: string;
|
|
46
|
-
filename: string;
|
|
47
|
-
height: number;
|
|
48
|
-
scales: {
|
|
49
|
-
great: ImageScale;
|
|
50
|
-
huge: ImageScale;
|
|
51
|
-
icon: ImageScale;
|
|
52
|
-
large: ImageScale;
|
|
53
|
-
larger: ImageScale;
|
|
54
|
-
mini: ImageScale;
|
|
55
|
-
preview: ImageScale;
|
|
56
|
-
teaser: ImageScale;
|
|
57
|
-
thumb: ImageScale;
|
|
58
|
-
title: ImageScale;
|
|
59
|
-
};
|
|
60
|
-
size: number;
|
|
61
|
-
width: number;
|
|
62
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
type apiExpandersType =
|
|
2
|
-
| {
|
|
3
|
-
[key: string]: string[];
|
|
4
|
-
}
|
|
5
|
-
| { match: string; querystring: { [key: string]: unknown } };
|
|
6
|
-
|
|
7
|
-
export interface SettingsConfig {
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
host: string;
|
|
10
|
-
port: string;
|
|
11
|
-
publicURL: string;
|
|
12
|
-
apiPath: string;
|
|
13
|
-
apiExpanders: apiExpandersType[] | [];
|
|
14
|
-
devProxyToApiPath: string | undefined;
|
|
15
|
-
proxyRewriteTarget: string | undefined;
|
|
16
|
-
actions_raising_api_errors: string[];
|
|
17
|
-
internalApiPath: string | undefined;
|
|
18
|
-
websockets: string | false;
|
|
19
|
-
legacyTraverse: string | false;
|
|
20
|
-
cookieExpires: number;
|
|
21
|
-
nonContentRoutes: string[];
|
|
22
|
-
richtextEditorSettings: unknown;
|
|
23
|
-
richtextViewSettings: unknown;
|
|
24
|
-
imageObjects: string[];
|
|
25
|
-
reservedIds: string[];
|
|
26
|
-
downloadableObjects: string[];
|
|
27
|
-
viewableInBrowserObjects: string[];
|
|
28
|
-
listingPreviewImageField: string;
|
|
29
|
-
openExternalLinkInNewTab: boolean;
|
|
30
|
-
notSupportedBrowsers: string[];
|
|
31
|
-
defaultPageSize: number;
|
|
32
|
-
isMultilingual: boolean;
|
|
33
|
-
supportedLanguages: string[]; // TODO: Improve list of possible values
|
|
34
|
-
defaultLanguage: string;
|
|
35
|
-
navDepth: number;
|
|
36
|
-
expressMiddleware: unknown;
|
|
37
|
-
defaultBlockType: string; // TODO: Improve list of possible values
|
|
38
|
-
verticalFormTabs: boolean;
|
|
39
|
-
useEmailAsLogin: boolean;
|
|
40
|
-
persistentReducers: string[];
|
|
41
|
-
initialReducersBlacklist: string[];
|
|
42
|
-
asyncPropsExtenders: unknown[];
|
|
43
|
-
contentIcons: Record<string, React.ComponentType>;
|
|
44
|
-
loadables: unknown;
|
|
45
|
-
lazyBundles: {
|
|
46
|
-
[key: string]: string[];
|
|
47
|
-
};
|
|
48
|
-
appExtras: {
|
|
49
|
-
match: string;
|
|
50
|
-
component: React.ComponentType;
|
|
51
|
-
props: {
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
};
|
|
54
|
-
}[];
|
|
55
|
-
maxResponseSize: number;
|
|
56
|
-
maxFileUploadSize: number | null;
|
|
57
|
-
serverConfig: unknown;
|
|
58
|
-
storeExtenders: unknown[];
|
|
59
|
-
showTags: boolean;
|
|
60
|
-
controlpanels: unknown[];
|
|
61
|
-
controlPanelsIcons: Record<string, React.ComponentType>;
|
|
62
|
-
filterControlPanels: unknown;
|
|
63
|
-
filterControlPanelsSchema: unknown;
|
|
64
|
-
externalRoutes: {
|
|
65
|
-
match?: string | { path: string; exact: boolean; strict: boolean };
|
|
66
|
-
}[];
|
|
67
|
-
|
|
68
|
-
showSelfRegistration: boolean;
|
|
69
|
-
contentMetadataTagsImageField: string;
|
|
70
|
-
hasWorkingCopySupport: boolean;
|
|
71
|
-
maxUndoLevels: number;
|
|
72
|
-
addonsInfo: unknown;
|
|
73
|
-
workflowMapping: unknown;
|
|
74
|
-
errorHandlers: unknown[];
|
|
75
|
-
styleClassNameConverters: unknown;
|
|
76
|
-
hashLinkSmoothScroll: boolean;
|
|
77
|
-
styleClassNameExtenders: unknown;
|
|
78
|
-
querystringSearchGet: boolean;
|
|
79
|
-
blockSettingsTabFieldsetsInitialStateOpen: boolean;
|
|
80
|
-
excludeLinksAndReferencesMenuItem: boolean;
|
|
81
|
-
containerBlockTypes: string[];
|
|
82
|
-
siteTitleFormat: {
|
|
83
|
-
includeSiteTitle: boolean;
|
|
84
|
-
titleAndSiteTitleSeparator: string;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ViewsConfig {
|
|
2
|
-
layoutViews: {
|
|
3
|
-
[key: string]: React.ComponentType;
|
|
4
|
-
};
|
|
5
|
-
contentTypesViews: {
|
|
6
|
-
[key: string]: React.ComponentType;
|
|
7
|
-
};
|
|
8
|
-
defaultView: React.ComponentType;
|
|
9
|
-
errorViews: {
|
|
10
|
-
[key: string]: React.ComponentType;
|
|
11
|
-
};
|
|
12
|
-
layoutViewsNamesMapping: {
|
|
13
|
-
[key: string]: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type { SettingsConfig } from './Settings';
|
|
2
|
-
export type { BlocksConfig } from './Blocks';
|
|
3
|
-
export type { ViewsConfig } from './Views';
|
|
4
|
-
export type { WidgetsConfig } from './Widgets';
|
|
5
|
-
|
|
6
|
-
export type AddonReducersConfig = Record<string, Function>;
|
|
7
|
-
|
|
8
|
-
export type AddonRoutesConfig = {
|
|
9
|
-
path: string;
|
|
10
|
-
exact: boolean;
|
|
11
|
-
component: React.ComponentType;
|
|
12
|
-
}[];
|
|
13
|
-
|
|
14
|
-
export type SlotsConfig = Record<string, unknown>;
|
|
15
|
-
|
|
16
|
-
export type ComponentsConfig = Record<
|
|
17
|
-
string,
|
|
18
|
-
{ component: React.ComponentType }
|
|
19
|
-
>;
|
|
20
|
-
|
|
21
|
-
export type ExperimentalConfig = Record<string, unknown>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { BreadcrumbsResponse } from '../breadcrumbs';
|
|
2
|
-
import { NavigationResponse } from '../navigation';
|
|
3
|
-
import { ActionsResponse } from '../actions';
|
|
4
|
-
import { GetTypesResponse } from '../types';
|
|
5
|
-
|
|
6
|
-
export interface Expanders {
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
actions: ActionsResponse;
|
|
9
|
-
breadcrumbs: BreadcrumbsResponse;
|
|
10
|
-
navigation: NavigationResponse;
|
|
11
|
-
types: GetTypesResponse;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type Item = {
|
|
15
|
-
'@id': string;
|
|
16
|
-
'@type': string;
|
|
17
|
-
description: string;
|
|
18
|
-
image_field: null;
|
|
19
|
-
image_scales: null;
|
|
20
|
-
review_state: string;
|
|
21
|
-
title: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export type RelatedItem = {
|
|
25
|
-
'@id': string;
|
|
26
|
-
'@type': string;
|
|
27
|
-
UID: string;
|
|
28
|
-
description: string;
|
|
29
|
-
image_field: unknown;
|
|
30
|
-
image_scales: unknown;
|
|
31
|
-
review_state: string;
|
|
32
|
-
title: string;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type ImageScale = {
|
|
36
|
-
download: string;
|
|
37
|
-
height: number;
|
|
38
|
-
width: number;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type PreviewImage = {
|
|
42
|
-
'content-type': string;
|
|
43
|
-
download: string;
|
|
44
|
-
filename: string;
|
|
45
|
-
height: number;
|
|
46
|
-
scales: {
|
|
47
|
-
great: ImageScale;
|
|
48
|
-
huge: ImageScale;
|
|
49
|
-
icon: ImageScale;
|
|
50
|
-
large: ImageScale;
|
|
51
|
-
larger: ImageScale;
|
|
52
|
-
mini: ImageScale;
|
|
53
|
-
preview: ImageScale;
|
|
54
|
-
teaser: ImageScale;
|
|
55
|
-
thumb: ImageScale;
|
|
56
|
-
title: ImageScale;
|
|
57
|
-
};
|
|
58
|
-
size: number;
|
|
59
|
-
width: number;
|
|
60
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Expanders, Item, PreviewImage, RelatedItem } from './common';
|
|
2
|
-
|
|
3
|
-
export interface GetContentResponse {
|
|
4
|
-
'@components': Expanders;
|
|
5
|
-
'@id': string;
|
|
6
|
-
'@type': string;
|
|
7
|
-
UID: string;
|
|
8
|
-
allow_discussion: boolean;
|
|
9
|
-
blocks: {
|
|
10
|
-
[k in string]: {
|
|
11
|
-
'@id': string;
|
|
12
|
-
'@type': string;
|
|
13
|
-
} & Record<string, unknown>;
|
|
14
|
-
};
|
|
15
|
-
blocks_layout: {
|
|
16
|
-
items: string[];
|
|
17
|
-
};
|
|
18
|
-
contributors: string[];
|
|
19
|
-
creators: string[];
|
|
20
|
-
description: string;
|
|
21
|
-
effective: string | null;
|
|
22
|
-
exclude_from_nav: boolean;
|
|
23
|
-
expires: string | null;
|
|
24
|
-
id: string;
|
|
25
|
-
is_folderish: boolean;
|
|
26
|
-
items: Item[];
|
|
27
|
-
items_total: number;
|
|
28
|
-
language: unknown;
|
|
29
|
-
layout: string | null;
|
|
30
|
-
lock: {
|
|
31
|
-
locked: boolean;
|
|
32
|
-
stealable: boolean;
|
|
33
|
-
};
|
|
34
|
-
modified: string;
|
|
35
|
-
next_item: {
|
|
36
|
-
'@id': string;
|
|
37
|
-
'@type': string;
|
|
38
|
-
description: string;
|
|
39
|
-
title: string;
|
|
40
|
-
};
|
|
41
|
-
parent: {
|
|
42
|
-
'@id': string;
|
|
43
|
-
'@type': string;
|
|
44
|
-
description: string;
|
|
45
|
-
title: string;
|
|
46
|
-
};
|
|
47
|
-
preview_caption: string | null;
|
|
48
|
-
preview_image: PreviewImage;
|
|
49
|
-
previous_item: {
|
|
50
|
-
'@id': string;
|
|
51
|
-
'@type': string;
|
|
52
|
-
description: string;
|
|
53
|
-
title: string;
|
|
54
|
-
};
|
|
55
|
-
relatedItems: RelatedItem[];
|
|
56
|
-
review_state: string | null;
|
|
57
|
-
rights: string;
|
|
58
|
-
subjects: [];
|
|
59
|
-
table_of_contents: boolean | null;
|
|
60
|
-
title: string;
|
|
61
|
-
type_tile: string | null;
|
|
62
|
-
version: number | null;
|
|
63
|
-
versioning_enabled: boolean | null;
|
|
64
|
-
working_copy: unknown;
|
|
65
|
-
working_copy_of: unknown;
|
|
66
|
-
}
|
package/packages/types/index.ts
DELETED
|
File without changes
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@plone/types",
|
|
3
|
-
"description": "Plone's Types Package",
|
|
4
|
-
"maintainers": [
|
|
5
|
-
{
|
|
6
|
-
"name": "Plone Foundation",
|
|
7
|
-
"url": "https://plone.org"
|
|
8
|
-
}
|
|
9
|
-
],
|
|
10
|
-
"funding": "https://github.com/sponsors/plone",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"version": "1.0.0",
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://github.com/plone/volto.git"
|
|
16
|
-
},
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/plone/volto/issues"
|
|
19
|
-
},
|
|
20
|
-
"homepage": "https://plone.org",
|
|
21
|
-
"keywords": [
|
|
22
|
-
"volto",
|
|
23
|
-
"plone",
|
|
24
|
-
"plone6",
|
|
25
|
-
"react",
|
|
26
|
-
"types"
|
|
27
|
-
],
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
|
-
"types": "index.ts",
|
|
32
|
-
"targets": {
|
|
33
|
-
"main": {
|
|
34
|
-
"includeNodeModules": false
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"watch": "parcel watch",
|
|
39
|
-
"build": "parcel build",
|
|
40
|
-
"dry-release": "release-it --dry-run",
|
|
41
|
-
"release": "release-it",
|
|
42
|
-
"release-major-alpha": "release-it major --preRelease=alpha",
|
|
43
|
-
"release-alpha": "release-it --preRelease=alpha"
|
|
44
|
-
},
|
|
45
|
-
"peerDependencies": {
|
|
46
|
-
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
47
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
48
|
-
},
|
|
49
|
-
"peerDependenciesMeta": {
|
|
50
|
-
"react-dom": {
|
|
51
|
-
"optional": true
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"dependencies": {},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@parcel/packager-ts": "2.10.2",
|
|
57
|
-
"@parcel/transformer-typescript-types": "2.10.2",
|
|
58
|
-
"@types/react": "^17.0.52",
|
|
59
|
-
"@types/react-dom": "^17",
|
|
60
|
-
"parcel": "2.10.2",
|
|
61
|
-
"release-it": "16.2.1",
|
|
62
|
-
"typescript": "5.2.2"
|
|
63
|
-
}
|
|
64
|
-
}
|
package/packages/types/types.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
export interface Type {
|
|
2
|
-
'@id': string;
|
|
3
|
-
addable: boolean;
|
|
4
|
-
id: string;
|
|
5
|
-
immediately_addable: boolean;
|
|
6
|
-
title: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface GetTypesResponse extends Array<Type> {}
|
|
10
|
-
|
|
11
|
-
export interface Fieldset {
|
|
12
|
-
behavior: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
fields: string[];
|
|
15
|
-
id: string;
|
|
16
|
-
title: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface GetTypeResponse {
|
|
20
|
-
fieldsets: Fieldset[];
|
|
21
|
-
layouts: string[];
|
|
22
|
-
properties: {
|
|
23
|
-
[key: string]: {
|
|
24
|
-
behavior: string;
|
|
25
|
-
default?: any;
|
|
26
|
-
description: string;
|
|
27
|
-
factory: string;
|
|
28
|
-
title: string;
|
|
29
|
-
type: string;
|
|
30
|
-
widget?: string;
|
|
31
|
-
vocabulary?: {
|
|
32
|
-
'@id': string;
|
|
33
|
-
};
|
|
34
|
-
choices?: [string, string][];
|
|
35
|
-
enum?: string[];
|
|
36
|
-
enumNames?: string[];
|
|
37
|
-
additionalItems?: boolean;
|
|
38
|
-
items?: {
|
|
39
|
-
description: string;
|
|
40
|
-
factory: string;
|
|
41
|
-
title: string;
|
|
42
|
-
type: string;
|
|
43
|
-
};
|
|
44
|
-
uniqueItems?: boolean;
|
|
45
|
-
widgetOptions?: {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
required: string[];
|
|
51
|
-
title: string;
|
|
52
|
-
type: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface CreateTypeFieldResponse extends Fieldset {
|
|
56
|
-
factory: string;
|
|
57
|
-
type: string;
|
|
58
|
-
widget: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export interface GetTypeFieldResponse extends Fieldset {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('../../babel');
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "Insert row before",
|
|
4
|
-
"defaultMessage": "Insert row before"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"id": "Insert row after",
|
|
8
|
-
"defaultMessage": "Insert row after"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"id": "Delete row",
|
|
12
|
-
"defaultMessage": "Delete row"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"id": "Insert col before",
|
|
16
|
-
"defaultMessage": "Insert col before"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"id": "Insert col after",
|
|
20
|
-
"defaultMessage": "Insert col after"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"id": "Delete col",
|
|
24
|
-
"defaultMessage": "Delete col"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"id": "Hide headers",
|
|
28
|
-
"defaultMessage": "Hide headers"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": "Make the table sortable",
|
|
32
|
-
"defaultMessage": "Make the table sortable"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"id": "Visible only in view mode",
|
|
36
|
-
"defaultMessage": "Visible only in view mode"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"id": "Fixed width table cells",
|
|
40
|
-
"defaultMessage": "Fixed width table cells"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"id": "Make the table compact",
|
|
44
|
-
"defaultMessage": "Make the table compact"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "Reduce complexity",
|
|
48
|
-
"defaultMessage": "Reduce complexity"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"id": "Divide each row into separate cells",
|
|
52
|
-
"defaultMessage": "Divide each row into separate cells"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"id": "Table color inverted",
|
|
56
|
-
"defaultMessage": "Table color inverted"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"id": "Stripe alternate rows with color",
|
|
60
|
-
"defaultMessage": "Stripe alternate rows with color"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "Left",
|
|
64
|
-
"defaultMessage": "Left"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"id": "Center",
|
|
68
|
-
"defaultMessage": "Center"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"id": "Right",
|
|
72
|
-
"defaultMessage": "Right"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"id": "Bottom",
|
|
76
|
-
"defaultMessage": "Bottom"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"id": "Middle",
|
|
80
|
-
"defaultMessage": "Middle"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"id": "Top",
|
|
84
|
-
"defaultMessage": "Top"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"id": "Table",
|
|
88
|
-
"defaultMessage": "Table"
|
|
89
|
-
}
|
|
90
|
-
]
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "Delete table",
|
|
4
|
-
"defaultMessage": "Delete table"
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"id": "Insert row before",
|
|
8
|
-
"defaultMessage": "Insert row before"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"id": "Insert row after",
|
|
12
|
-
"defaultMessage": "Insert row after"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"id": "Delete row",
|
|
16
|
-
"defaultMessage": "Delete row"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"id": "Insert col before",
|
|
20
|
-
"defaultMessage": "Insert col before"
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"id": "Insert col after",
|
|
24
|
-
"defaultMessage": "Insert col after"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"id": "Delete col",
|
|
28
|
-
"defaultMessage": "Delete col"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "An error has occurred while editing \"{name}\" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator.",
|
|
4
|
-
"defaultMessage": "An error has occurred while editing \"{name}\" field. We have been notified and we are looking into it. Please save your work and retry. If the issue persists please contact the site administrator."
|
|
5
|
-
}
|
|
6
|
-
]
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"id": "An error has occurred while rendering \"{name}\" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator.",
|
|
4
|
-
"defaultMessage": "An error has occurred while rendering \"{name}\" field. We have been notified and we are looking into it. If the issue persists please contact the site administrator."
|
|
5
|
-
}
|
|
6
|
-
]
|