diff --git a/.github/workflows/acceptance.yml b/.github/workflows/acceptance.yml index 01d88d3e6e..42dbfac4db 100644 --- a/.github/workflows/acceptance.yml +++ b/.github/workflows/acceptance.yml @@ -968,9 +968,6 @@ jobs: - run: pnpm i - - name: Build packages - run: pnpm build:registry - - name: Install Cypress if not in cache if: steps.cache-cypress-binary.outputs.cache-hit != 'true' working-directory: packages/volto diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index d92a52ffbc..47fa637159 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -89,7 +89,7 @@ jobs: BASE_BRANCH: ${{ github.base_ref }} - name: Providers changelog check - if: steps.filter.outputs.types == 'true' + if: steps.filter.outputs.providers == 'true' run: | git fetch --no-tags origin main towncrier check --compare-with origin/main --dir packages/providers diff --git a/.github/workflows/deployment_tests.yml b/.github/workflows/deployment_tests.yml index 7301e21c1e..45dc23d073 100644 --- a/.github/workflows/deployment_tests.yml +++ b/.github/workflows/deployment_tests.yml @@ -45,9 +45,6 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build packages - run: pnpm build:all - - name: Start backend run: make start-backend-docker-detached @@ -112,9 +109,6 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build packages - run: pnpm build:all - - name: Start backend run: make start-backend-docker-detached @@ -179,9 +173,6 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Build packages - run: pnpm build:all - - name: Start backend run: make start-backend-docker-detached diff --git a/Makefile b/Makefile index 179130e6c6..932cce7b5d 100644 --- a/Makefile +++ b/Makefile @@ -100,6 +100,7 @@ clean: setup: # Setup ESlint for VSCode node packages/scripts/vscodesettings.js + pnpm build:all ##### Documentation diff --git a/docs/source/release-notes/index.md b/docs/source/release-notes/index.md index 4080f24d48..e2fbc08927 100644 --- a/docs/source/release-notes/index.md +++ b/docs/source/release-notes/index.md @@ -17,6 +17,24 @@ myst: +## 18.0.0-alpha.28 (2024-04-23) + +### Bugfix + +- Fix broken user portrait in personal tools menu. @davisagli [#2927](https://github.com/plone/volto/issues/2927) +- Fix pt_BR translation of invalid email message. @wesleybl [#5953](https://github.com/plone/volto/issues/5953) +- Fixed rendering if ConditionalLink has no children @pnicolli [#5963](https://github.com/plone/volto/issues/5963) +- Fix flaky test 'As editor I can add links' by using getSlateEditorAndType. @ksuess [#5965](https://github.com/plone/volto/issues/5965) + +### Internal + +- Reduced JavaScript bundle size of the production build. Code split several internal modules: Controlpanels, Form, Widgets among other small ones. @pnicolli @deodorhunter [#5295](https://github.com/plone/volto/issues/5295) +- Improvements to the monorepo setup with utilities, especially ESLint. Build cached option to speedup operations. @sneridagh [#5969](https://github.com/plone/volto/issues/5969) + +### Documentation + +- Put nvm installation section into a separate include file. @animus888 [#5968](https://github.com/plone/volto/issues/5968) + ## 18.0.0-alpha.27 (2024-04-05) ### Bugfix diff --git a/package.json b/package.json index 19b538ee04..27e9b675d6 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,16 @@ "scripts": { "preinstall": "npx only-allow pnpm", "postinstall": "make setup", - "watch": "pnpm --filter @plone/registry watch", + "watch": "pnpm --filter @plone/registry --filter @plone/client --filter @plone/components --filter @plone/providers watch", "build:deps": "pnpm --parallel --filter @plone/registry build", "build:all": "pnpm --parallel --filter @plone/registry --filter @plone/client --filter @plone/components --filter @plone/providers build", - "build:all:cached": "pnpm --parallel --filter @plone/registry --filter @plone/client --filter @plone/components --filter @plone/providers build:cached", + "build:all:force": "pnpm --parallel --filter @plone/registry --filter @plone/client --filter @plone/components --filter @plone/providers build:force", "build:registry": "pnpm --filter @plone/registry run build", "build:components": "pnpm --filter @plone/components run build", "build": "pnpm --filter @plone/volto build", "start": "pnpm build:deps && pnpm --filter @plone/volto start", "start:project": "pnpm --filter plone run start", - "lint": "pnpm build:all:cached && eslint --max-warnings=0 '{apps,packages}/**/*.{js,jsx,ts,tsx}'", + "lint": "pnpm build:all && eslint --max-warnings=0 '{apps,packages}/**/*.{js,jsx,ts,tsx}'", "lint:volto": "pnpm --filter @plone/volto run lint", "test": "pnpm --filter @plone/volto run test:ci", "i18n": "pnpm --filter @plone/volto run i18n", diff --git a/packages/client/news/5980.internal b/packages/client/news/5980.internal new file mode 100644 index 0000000000..879566de35 --- /dev/null +++ b/packages/client/news/5980.internal @@ -0,0 +1 @@ +Saner defaults for building deps, switch default to cached, add `build:force` command @sneridagh diff --git a/packages/client/package.json b/packages/client/package.json index ae8d735e84..5659675080 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -46,8 +46,8 @@ "react-query" ], "scripts": { - "build": "parcel build --no-cache", - "build:cached": "parcel build", + "build": "parcel build", + "build:force": "parcel build --no-cache", "test": "node testRunner.js", "vitest": "vitest", "check-ts": "tsc --project tsconfig.json", diff --git a/packages/components/news/5980.internal b/packages/components/news/5980.internal new file mode 100644 index 0000000000..879566de35 --- /dev/null +++ b/packages/components/news/5980.internal @@ -0,0 +1 @@ +Saner defaults for building deps, switch default to cached, add `build:force` command @sneridagh diff --git a/packages/components/package.json b/packages/components/package.json index afdb81cbed..c4863bbc0a 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -45,8 +45,8 @@ "quanta" ], "scripts": { - "build": "parcel build --no-cache && pnpm build:css", - "build:cached": "parcel build && pnpm build:css", + "build": "parcel build && pnpm build:css", + "build:force": "parcel build --no-cache && pnpm build:css", "build:css": "pnpm build:basic && pnpm build:quanta", "build:basic": "lightningcss --browserslist --bundle --sourcemap src/styles/basic/main.css -o basic.css && mv basic.css* dist/.", "build:quanta": "lightningcss --browserslist --bundle --sourcemap src/styles/quanta/main.css -o quanta.css && mv quanta.css* dist/.", diff --git a/packages/providers/news/5980.internal b/packages/providers/news/5980.internal new file mode 100644 index 0000000000..879566de35 --- /dev/null +++ b/packages/providers/news/5980.internal @@ -0,0 +1 @@ +Saner defaults for building deps, switch default to cached, add `build:force` command @sneridagh diff --git a/packages/providers/package.json b/packages/providers/package.json index 46fa44fce2..29e200136c 100644 --- a/packages/providers/package.json +++ b/packages/providers/package.json @@ -42,8 +42,8 @@ }, "scripts": { "watch": "parcel watch", - "build": "parcel build --no-cache", - "build:cached": "parcel build", + "build": "parcel build", + "build:force": "parcel build --no-cache", "test": "vitest", "dry-release": "release-it --dry-run", "release": "release-it", diff --git a/packages/registry/CHANGELOG.md b/packages/registry/CHANGELOG.md index eea5d5dd55..cc2a995466 100644 --- a/packages/registry/CHANGELOG.md +++ b/packages/registry/CHANGELOG.md @@ -8,6 +8,16 @@ +## 1.5.6 (2024-04-23) + +### Bugfix + +- Remove `parcel-optimizer-react-client` plugin @sneridagh [#5887](https://github.com/plone/volto/issues/5887) + +### Internal + +- Improvements to the monorepo setup with utilities, especially ESLint. Build cached option to speedup operations. @sneridagh [#5969](https://github.com/plone/volto/issues/5969) + ## 1.5.5 (2024-04-03) ### Bugfix diff --git a/packages/registry/news/5887.bugfix b/packages/registry/news/5887.bugfix deleted file mode 100644 index f1cd003cec..0000000000 --- a/packages/registry/news/5887.bugfix +++ /dev/null @@ -1 +0,0 @@ -Remove `parcel-optimizer-react-client` plugin @sneridagh diff --git a/packages/registry/news/5969.internal b/packages/registry/news/5969.internal deleted file mode 100644 index 3167eb76cd..0000000000 --- a/packages/registry/news/5969.internal +++ /dev/null @@ -1 +0,0 @@ -Improvements to the monorepo setup with utilities, especially ESLint. Build cached option to speedup operations. @sneridagh diff --git a/packages/registry/news/5980.internal b/packages/registry/news/5980.internal new file mode 100644 index 0000000000..879566de35 --- /dev/null +++ b/packages/registry/news/5980.internal @@ -0,0 +1 @@ +Saner defaults for building deps, switch default to cached, add `build:force` command @sneridagh diff --git a/packages/registry/package.json b/packages/registry/package.json index 4bc7e0560b..7650f6cb14 100644 --- a/packages/registry/package.json +++ b/packages/registry/package.json @@ -9,7 +9,7 @@ ], "funding": "https://github.com/sponsors/plone", "license": "MIT", - "version": "1.5.5", + "version": "1.5.6", "repository": { "type": "git", "url": "https://github.com/plone/volto.git" @@ -50,8 +50,8 @@ }, "scripts": { "watch": "parcel watch", - "build": "parcel build --no-cache", - "build:cached": "parcel build", + "build": "parcel build", + "build:force": "parcel build --no-cache", "test": "vitest", "dry-release": "release-it --dry-run", "release": "release-it", diff --git a/packages/types/news/5979.bugfix b/packages/types/news/5979.bugfix new file mode 100644 index 0000000000..73467b360f --- /dev/null +++ b/packages/types/news/5979.bugfix @@ -0,0 +1 @@ +Better BlocksData definitions @sneridagh diff --git a/packages/types/news/5980.internal b/packages/types/news/5980.internal new file mode 100644 index 0000000000..879566de35 --- /dev/null +++ b/packages/types/news/5980.internal @@ -0,0 +1 @@ +Saner defaults for building deps, switch default to cached, add `build:force` command @sneridagh diff --git a/packages/types/src/config/Blocks.d.ts b/packages/types/src/config/Blocks.d.ts index b509a274e8..aa7ec6749d 100644 --- a/packages/types/src/config/Blocks.d.ts +++ b/packages/types/src/config/Blocks.d.ts @@ -193,10 +193,15 @@ export type JSONSchema = { required: string[]; }; +export interface BlocksDataBlocks { + '@type': string; + styles?: any; +} + +type BlocksDataBlocksType = BlocksDataBlocks & Record; + export type BlocksData = { - blocks: { - [key: string]: object; - }; + blocks: Record; blocks_layout: { items: string[]; }; diff --git a/packages/volto-slate/CHANGELOG.md b/packages/volto-slate/CHANGELOG.md index 53df616f60..fb2885ca27 100644 --- a/packages/volto-slate/CHANGELOG.md +++ b/packages/volto-slate/CHANGELOG.md @@ -8,6 +8,16 @@ +## 18.0.0-alpha.12 (2024-04-23) + +### Bugfix + +- In the Slate text block, the markup shortcuts for bold, italic and strikethrough work again. @kHAPPY2004 [#5605](https://github.com/plone/volto/issues/5605) + +### Internal + +- Update imports to work with the new code split components in Volto. @pnicolli [#5295](https://github.com/plone/volto/issues/5295) + ## 18.0.0-alpha.11 (2024-04-03) ### Bugfix diff --git a/packages/volto-slate/news/5295.internal b/packages/volto-slate/news/5295.internal deleted file mode 100644 index 146a3378a2..0000000000 --- a/packages/volto-slate/news/5295.internal +++ /dev/null @@ -1 +0,0 @@ -Update imports to work with the new code split components in Volto. @pnicolli diff --git a/packages/volto-slate/news/5605.bugfix b/packages/volto-slate/news/5605.bugfix deleted file mode 100644 index ec1444a490..0000000000 --- a/packages/volto-slate/news/5605.bugfix +++ /dev/null @@ -1 +0,0 @@ -In the Slate text block, the markup shortcuts for bold, italic and strikethrough work again. @kHAPPY2004 \ No newline at end of file diff --git a/packages/volto-slate/package.json b/packages/volto-slate/package.json index 0819e0db06..8937fe8037 100644 --- a/packages/volto-slate/package.json +++ b/packages/volto-slate/package.json @@ -1,6 +1,6 @@ { "name": "@plone/volto-slate", - "version": "18.0.0-alpha.11", + "version": "18.0.0-alpha.12", "description": "Slate.js integration with Volto", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/packages/volto/CHANGELOG.md b/packages/volto/CHANGELOG.md index 4080f24d48..e2fbc08927 100644 --- a/packages/volto/CHANGELOG.md +++ b/packages/volto/CHANGELOG.md @@ -17,6 +17,24 @@ myst: +## 18.0.0-alpha.28 (2024-04-23) + +### Bugfix + +- Fix broken user portrait in personal tools menu. @davisagli [#2927](https://github.com/plone/volto/issues/2927) +- Fix pt_BR translation of invalid email message. @wesleybl [#5953](https://github.com/plone/volto/issues/5953) +- Fixed rendering if ConditionalLink has no children @pnicolli [#5963](https://github.com/plone/volto/issues/5963) +- Fix flaky test 'As editor I can add links' by using getSlateEditorAndType. @ksuess [#5965](https://github.com/plone/volto/issues/5965) + +### Internal + +- Reduced JavaScript bundle size of the production build. Code split several internal modules: Controlpanels, Form, Widgets among other small ones. @pnicolli @deodorhunter [#5295](https://github.com/plone/volto/issues/5295) +- Improvements to the monorepo setup with utilities, especially ESLint. Build cached option to speedup operations. @sneridagh [#5969](https://github.com/plone/volto/issues/5969) + +### Documentation + +- Put nvm installation section into a separate include file. @animus888 [#5968](https://github.com/plone/volto/issues/5968) + ## 18.0.0-alpha.27 (2024-04-05) ### Bugfix diff --git a/packages/volto/news/2927.bugfix b/packages/volto/news/2927.bugfix deleted file mode 100644 index aa681455be..0000000000 --- a/packages/volto/news/2927.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix broken user portrait in personal tools menu. @davisagli diff --git a/packages/volto/news/5295.internal b/packages/volto/news/5295.internal deleted file mode 100644 index c6a8273fb7..0000000000 --- a/packages/volto/news/5295.internal +++ /dev/null @@ -1 +0,0 @@ -Reduced JavaScript bundle size of the production build. Code split several internal modules: Controlpanels, Form, Widgets among other small ones. @pnicolli @deodorhunter diff --git a/packages/volto/news/5953.bugfix b/packages/volto/news/5953.bugfix deleted file mode 100644 index 8360908b85..0000000000 --- a/packages/volto/news/5953.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix pt_BR translation of invalid email message. @wesleybl diff --git a/packages/volto/news/5963.bugfix b/packages/volto/news/5963.bugfix deleted file mode 100644 index 181256ec7b..0000000000 --- a/packages/volto/news/5963.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fixed rendering if ConditionalLink has no children @pnicolli \ No newline at end of file diff --git a/packages/volto/news/5965.bugfix b/packages/volto/news/5965.bugfix deleted file mode 100644 index 1f9cba9bf5..0000000000 --- a/packages/volto/news/5965.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix flaky test 'As editor I can add links' by using getSlateEditorAndType. @ksuess \ No newline at end of file diff --git a/packages/volto/news/5968.documentation b/packages/volto/news/5968.documentation deleted file mode 100644 index 2e944a8dbd..0000000000 --- a/packages/volto/news/5968.documentation +++ /dev/null @@ -1 +0,0 @@ -Put nvm installation section into a separate include file. @animus888 diff --git a/packages/volto/news/5969.internal b/packages/volto/news/5969.internal deleted file mode 100644 index 3167eb76cd..0000000000 --- a/packages/volto/news/5969.internal +++ /dev/null @@ -1 +0,0 @@ -Improvements to the monorepo setup with utilities, especially ESLint. Build cached option to speedup operations. @sneridagh diff --git a/packages/volto/news/5981.bugfix b/packages/volto/news/5981.bugfix new file mode 100644 index 0000000000..be0d226981 --- /dev/null +++ b/packages/volto/news/5981.bugfix @@ -0,0 +1 @@ +Fix no router link in logo @sneridagh diff --git a/packages/volto/package.json b/packages/volto/package.json index 0e8fe0f73a..481364dad0 100644 --- a/packages/volto/package.json +++ b/packages/volto/package.json @@ -9,7 +9,7 @@ } ], "license": "MIT", - "version": "18.0.0-alpha.27", + "version": "18.0.0-alpha.28", "repository": { "type": "git", "url": "git@github.com:plone/volto.git" diff --git a/packages/volto/src/components/theme/Logo/Logo.jsx b/packages/volto/src/components/theme/Logo/Logo.jsx index b793c7168c..d8eebd6e70 100644 --- a/packages/volto/src/components/theme/Logo/Logo.jsx +++ b/packages/volto/src/components/theme/Logo/Logo.jsx @@ -7,7 +7,7 @@ import { useEffect } from 'react'; import { Image } from 'semantic-ui-react'; import LogoImage from '@plone/volto/components/theme/Logo/Logo.svg'; import { useSelector, useDispatch } from 'react-redux'; -import { useLocation } from 'react-router-dom'; +import { Link, useLocation } from 'react-router-dom'; import { getNavroot } from '@plone/volto/actions'; import { flattenToAppURL, @@ -48,7 +48,7 @@ const Logo = () => { const navRootPath = flattenToAppURL(navroot?.navroot?.['@id']) || '/'; return ( - + { intl.formatMessage(messages.logoOf) + ' ' + site['plone.site_title'] } /> - + ); }; diff --git a/packages/volto/src/components/theme/Logo/__snapshots__/Logo.Multilingual.test.jsx.snap b/packages/volto/src/components/theme/Logo/__snapshots__/Logo.Multilingual.test.jsx.snap index fe9b651b55..9c79a71c0f 100644 --- a/packages/volto/src/components/theme/Logo/__snapshots__/Logo.Multilingual.test.jsx.snap +++ b/packages/volto/src/components/theme/Logo/__snapshots__/Logo.Multilingual.test.jsx.snap @@ -4,6 +4,7 @@ exports[`Multilingual Logo renders a logo component in a multilingual site langu Logo of Plone Site Logo of Plone Site Logo of Plone Site Logo of Plone Site Logo of Plone Site Logo of Plone Site Logo of Plone Site Logo of Plone Site; export { default as ListingView } from "@plone/volto/components/theme/View/ListingView"; export { default as SummaryView } from "@plone/volto/components/theme/View/SummaryView"; export { default as TabularView } from "@plone/volto/components/theme/View/TabularView"; export { default as AlbumView } from "@plone/volto/components/theme/View/AlbumView"; export { default as Actions } from "@plone/volto/components/manage/Actions/Actions"; export { default as Add } from "@plone/volto/components/manage/Add/Add"; -export { default as AddonsControlpanel } from "@plone/volto/components/manage/Controlpanels/AddonsControlpanel"; -export { default as UndoControlpanel } from "@plone/volto/components/manage/Controlpanels/UndoControlpanel"; -export { default as Contents } from "@plone/volto/components/manage/Contents/Contents"; export { default as Circle } from "@plone/volto/components/manage/Contents/circle"; -export { default as DatabaseInformation } from "@plone/volto/components/manage/Controlpanels/DatabaseInformation"; -export { default as Controlpanel } from "@plone/volto/components/manage/Controlpanels/Controlpanel"; -export { default as Controlpanels } from "@plone/volto/components/manage/Controlpanels/Controlpanels"; -export { default as AliasesControlpanel } from "@plone/volto/components/manage/Controlpanels/Aliases"; -export { default as ContentTypes } from "@plone/volto/components/manage/Controlpanels/ContentTypes"; -export { default as ContentType } from "@plone/volto/components/manage/Controlpanels/ContentType"; -export { default as ContentTypeLayout } from "@plone/volto/components/manage/Controlpanels/ContentTypeLayout"; -export { default as ContentTypeSchema } from "@plone/volto/components/manage/Controlpanels/ContentTypeSchema"; -export { default as ContentTypesActions } from "@plone/volto/components/manage/Controlpanels/ContentTypesActions"; -export { default as UsersControlpanel } from "@plone/volto/components/manage/Controlpanels/Users/UsersControlpanel"; -export { default as UserGroupMembershipControlPanel } from "@plone/volto/components/manage/Controlpanels/Users/UserGroupMembershipControlPanel"; -export { default as Relations } from "@plone/volto/components/manage/Controlpanels/Relations/Relations"; -export { default as GroupsControlpanel } from "@plone/volto/components/manage/Controlpanels/Groups/GroupsControlpanel"; -export { default as RulesControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/Rules"; -export { default as AddRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/AddRule"; -export { default as EditRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/EditRule"; -export { default as ConfigureRuleControlpanel } from "@plone/volto/components/manage/Controlpanels/Rules/ConfigureRule"; -export { default as UpgradeControlPanel } from "@plone/volto/components/manage/Controlpanels/UpgradeControlPanel"; -export { default as ModerateComments } from "@plone/volto/components/manage/Controlpanels/ModerateComments"; -export { default as VersionOverview } from "@plone/volto/components/manage/Controlpanels/VersionOverview"; export { default as Delete } from "@plone/volto/components/manage/Delete/Delete"; -export { default as Diff } from "@plone/volto/components/manage/Diff/Diff"; +export const Diff: import("@loadable/component").LoadableClassComponent; +export const DiffField: import("@loadable/component").LoadableClassComponent; export { default as Display } from "@plone/volto/components/manage/Display/Display"; export { default as Edit } from "@plone/volto/components/manage/Edit/Edit"; -export { default as ModalForm } from "@plone/volto/components/manage/Form/ModalForm"; export { default as History } from "@plone/volto/components/manage/History/History"; export { default as Sharing } from "@plone/volto/components/manage/Sharing/Sharing"; -export { default as Rules } from "@plone/volto/components/manage/Rules/Rules"; +export const Rules: import("@loadable/component").LoadableClassComponent; export { default as Aliases } from "@plone/volto/components/manage/Aliases/Aliases"; export { default as LinksToItem } from "@plone/volto/components/manage/LinksToItem/LinksToItem"; export { default as Workflow } from "@plone/volto/components/manage/Workflow/Workflow"; @@ -100,43 +77,11 @@ export { default as More } from "@plone/volto/components/manage/Toolbar/More"; export { default as Types } from "@plone/volto/components/manage/Toolbar/Types"; export { default as Toast } from "@plone/volto/components/manage/Toast/Toast"; export { default as ManageTranslations } from "@plone/volto/components/manage/Multilingual/ManageTranslations"; -export { default as Form } from "@plone/volto/components/manage/Form/Form"; -export { default as BlocksToolbar } from "@plone/volto/components/manage/Form/BlocksToolbar"; -export { default as UndoToolbar } from "@plone/volto/components/manage/Form/UndoToolbar"; -export { default as Field } from "@plone/volto/components/manage/Form/Field"; export { default as SearchTags } from "@plone/volto/components/theme/Search/SearchTags"; -export { default as CommentEditModal } from "@plone/volto/components/theme/Comments/CommentEditModal"; -export { default as ContentsBreadcrumbs } from "@plone/volto/components/manage/Contents/ContentsBreadcrumbs"; -export { default as ContentsIndexHeader } from "@plone/volto/components/manage/Contents/ContentsIndexHeader"; -export { default as ContentsItem } from "@plone/volto/components/manage/Contents/ContentsItem"; -export { default as ContentsUploadModal } from "@plone/volto/components/manage/Contents/ContentsUploadModal"; -export { default as ContentsPropertiesModal } from "@plone/volto/components/manage/Contents/ContentsPropertiesModal"; -export { default as ContentsRenameModal } from "@plone/volto/components/manage/Contents/ContentsRenameModal"; -export { default as ContentsWorkflowModal } from "@plone/volto/components/manage/Contents/ContentsWorkflowModal"; -export { default as ContentsTagsModal } from "@plone/volto/components/manage/Contents/ContentsTagsModal"; -export { default as RenderUsers } from "@plone/volto/components/manage/Controlpanels/Users/RenderUsers"; -export { default as RenderGroups } from "@plone/volto/components/manage/Controlpanels/Groups/RenderGroups"; -export { default as DiffField } from "@plone/volto/components/manage/Diff/DiffField"; +export { CommentEditModal } from "@plone/volto/components/theme/Comments"; export { default as DragDropList } from "@plone/volto/components/manage/DragDropList/DragDropList"; -export { default as InlineForm } from "@plone/volto/components/manage/Form/InlineForm"; -export { default as BlocksForm } from "@plone/volto/components/manage/Blocks/Block/BlocksForm"; -export { default as BlockDataForm } from "@plone/volto/components/manage/Form/BlockDataForm"; -export { default as FormFieldWrapper } from "@plone/volto/components/manage/Widgets/FormFieldWrapper"; -export { default as ArrayWidget } from "@plone/volto/components/manage/Widgets/ArrayWidget"; -export { default as CheckboxWidget } from "@plone/volto/components/manage/Widgets/CheckboxWidget"; -export const DatetimeWidget: any; -export const RecurrenceWidget: any; -export { default as FileWidget } from "@plone/volto/components/manage/Widgets/FileWidget"; -export { default as IdWidget } from "@plone/volto/components/manage/Widgets/IdWidget"; -export { default as PasswordWidget } from "@plone/volto/components/manage/Widgets/PasswordWidget"; -export { default as ReferenceWidget } from "@plone/volto/components/manage/Widgets/ReferenceWidget"; -export { default as SchemaWidget } from "@plone/volto/components/manage/Widgets/SchemaWidget"; -export { default as SchemaWidgetFieldset } from "@plone/volto/components/manage/Widgets/SchemaWidgetFieldset"; -export { default as SelectWidget } from "@plone/volto/components/manage/Widgets/SelectWidget"; -export { default as TextareaWidget } from "@plone/volto/components/manage/Widgets/TextareaWidget"; -export { default as TextWidget } from "@plone/volto/components/manage/Widgets/TextWidget"; -export { default as ObjectWidget } from "@plone/volto/components/manage/Widgets/ObjectWidget"; -export { default as ObjectListWidget } from "@plone/volto/components/manage/Widgets/ObjectListWidget"; +export const SchemaWidgetFieldset: import("@loadable/component").LoadableClassComponent; +export const ObjectBrowserWidgetMode: import("@loadable/component").LoadableComponent>, "ref"> & import("react").RefAttributes>>>; export { default as EditDefaultBlock } from "@plone/volto/components/manage/Blocks/Block/DefaultEdit"; export { default as EditDescriptionBlock } from "@plone/volto/components/manage/Blocks/Description/Edit"; export { default as EditTitleBlock } from "@plone/volto/components/manage/Blocks/Title/Edit"; @@ -174,4 +119,7 @@ export { default as FormattedRelativeDate } from "@plone/volto/components/theme/ export { default as Popup } from "@plone/volto/components/theme/Popup/Popup"; export { default as Component } from "@plone/volto/components/theme/Component/Component"; export { default as App } from "@plone/volto/components/theme/App/App"; -export { default as ObjectBrowserWidget, default as ObjectBrowserWidgetMode } from "@plone/volto/components/manage/Widgets/ObjectBrowserWidget"; +export { Controlpanels, Controlpanel, RulesControlpanel, AddRuleControlpanel, EditRuleControlpanel, ConfigureRuleControlpanel, UsersControlpanel, RenderUsers, UserGroupMembershipControlPanel, GroupsControlpanel, RenderGroups, RelationsControlpanel, AliasesControlpanel, UndoControlpanel, AddonsControlpanel, ContentType, ContentTypeLayout, ContentTypeSchema, ContentTypes, VersionOverview, UpgradeControlPanel, ModerateComments, DatabaseInformation } from "@plone/volto/components/manage/Controlpanels"; +export { Field, InlineForm, ModalForm, UndoToolbar, BlocksToolbar, BlockDataForm, BlocksForm, Form } from "@plone/volto/components/manage/Form"; +export { Contents, ContentsBreadcrumbs, ContentsIndexHeader, ContentsItem, ContentsUploadModal, ContentsPropertiesModal, ContentsRenameModal, ContentsWorkflowModal, ContentsTagsModal } from "@plone/volto/components/manage/Contents"; +export { AlignWidget, ButtonsWidget, ArrayWidget, CheckboxWidget, FileWidget, IdWidget, PasswordWidget, QueryWidget, QuerySortOnWidget, QuerystringWidget, SchemaWidget, SelectWidget, TextareaWidget, TextWidget, TokenWidget, WysiwygWidget, UrlWidget, InternalUrlWidget, EmailWidget, NumberWidget, ImageSizeWidget, RegistryImageWidget, ReferenceWidget, ObjectBrowserWidget, ObjectWidget, ObjectListWidget, VocabularyTermsWidget, SelectMetadataWidget, SelectAutoComplete, ColorPickerWidget, DatetimeWidget, RecurrenceWidget, FormFieldWrapper } from "@plone/volto/components/manage/Widgets"; diff --git a/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts b/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts index 007d6061c3..24d035eb05 100644 --- a/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts +++ b/packages/volto/types/components/manage/Blocks/Search/widgets/SelectMetadataField.d.ts @@ -1,5 +1,10 @@ declare const _default: { (props: any): import("react/jsx-runtime").JSX.Element; + /** + * Property types. + * @property {Object} propTypes Property types. + * @static + */ displayName: string; }; export default _default; diff --git a/packages/volto/types/components/manage/ConditionalLink/ConditionalLink.d.ts b/packages/volto/types/components/manage/ConditionalLink/ConditionalLink.d.ts index aae53dd41e..5f343ad597 100644 --- a/packages/volto/types/components/manage/ConditionalLink/ConditionalLink.d.ts +++ b/packages/volto/types/components/manage/ConditionalLink/ConditionalLink.d.ts @@ -4,7 +4,7 @@ declare function ConditionalLink({ condition, to, item, ...props }: { condition: any; to: any; item: any; -}): any; +}): import("react/jsx-runtime").JSX.Element; declare namespace ConditionalLink { namespace propTypes { let condition: any; diff --git a/packages/volto/types/components/manage/Contents/__mocks__/index.d.ts b/packages/volto/types/components/manage/Contents/__mocks__/index.d.ts new file mode 100644 index 0000000000..4a4f62aee7 --- /dev/null +++ b/packages/volto/types/components/manage/Contents/__mocks__/index.d.ts @@ -0,0 +1,3 @@ +/// +export declare const Contents: jest.Mock; +export declare const ContentsRenameModal: jest.Mock; diff --git a/packages/volto/types/components/manage/Contents/index.d.ts b/packages/volto/types/components/manage/Contents/index.d.ts new file mode 100644 index 0000000000..aeec19b41e --- /dev/null +++ b/packages/volto/types/components/manage/Contents/index.d.ts @@ -0,0 +1,9 @@ +export declare const Contents: import("@loadable/component").LoadableClassComponent; +export declare const ContentsRenameModal: import("@loadable/component").LoadableComponent; +export declare const ContentsBreadcrumbs: import("@loadable/component").LoadableComponent; +export declare const ContentsIndexHeader: import("@loadable/component").LoadableClassComponent; +export declare const ContentsItem: import("@loadable/component").LoadableClassComponent; +export declare const ContentsUploadModal: import("@loadable/component").LoadableClassComponent; +export declare const ContentsPropertiesModal: import("@loadable/component").LoadableComponent; +export declare const ContentsWorkflowModal: import("@loadable/component").LoadableComponent; +export declare const ContentsTagsModal: import("@loadable/component").LoadableComponent; diff --git a/packages/volto/types/components/manage/Controlpanels/Controlpanels.d.ts b/packages/volto/types/components/manage/Controlpanels/Controlpanels.d.ts index 5298df7f0f..38bd80adcd 100644 --- a/packages/volto/types/components/manage/Controlpanels/Controlpanels.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Controlpanels.d.ts @@ -1,2 +1,6 @@ -declare const _default: any; -export default _default; +/** + * Controlpanels container class. + */ +export default function Controlpanels({ location }: { + location: any; +}): import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts index c2c6615fa8..29b99978bc 100644 --- a/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts +++ b/packages/volto/types/components/manage/Controlpanels/Relations/RelationsListing.d.ts @@ -1,5 +1,5 @@ -export default ListingTemplate; -declare function ListingTemplate({ relationtype, query_source, query_target, potential_sources_path, potential_targets_path, }: { +export default RelationsListing; +declare function RelationsListing({ relationtype, query_source, query_target, potential_sources_path, potential_targets_path, }: { relationtype: any; query_source: any; query_target: any; diff --git a/packages/volto/types/components/manage/Controlpanels/index.d.ts b/packages/volto/types/components/manage/Controlpanels/index.d.ts new file mode 100644 index 0000000000..630f51095d --- /dev/null +++ b/packages/volto/types/components/manage/Controlpanels/index.d.ts @@ -0,0 +1,32 @@ +/// +export declare const Controlpanels: any; +export declare const Controlpanel: import("@loadable/component").LoadableComponent>, "ref"> & import("react").RefAttributes>>>; +export declare const RulesControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const AddRuleControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const EditRuleControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const ConfigureRuleControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const UsersControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const RenderUsers: import("@loadable/component").LoadableClassComponent; +export declare const UserGroupMembershipControlPanel: import("@loadable/component").LoadableComponent; +export declare const GroupsControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const RenderGroups: import("@loadable/component").LoadableComponent>; +export declare const RelationsControlpanel: import("@loadable/component").LoadableComponent; +export declare const AliasesControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const UndoControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const AddonsControlpanel: import("@loadable/component").LoadableClassComponent; +export declare const ContentType: import("@loadable/component").LoadableClassComponent; +export declare const ContentTypeLayout: import("@loadable/component").LoadableClassComponent; +export declare const ContentTypeSchema: import("@loadable/component").LoadableClassComponent; +export declare const ContentTypes: import("@loadable/component").LoadableClassComponent; +export declare const VersionOverview: import("@loadable/component").LoadableComponent<{ + cmf_version: any; + debug_mode: any; + pil_version: any; + plone_version: any; + plone_restapi_version: any; + python_version: any; + zope_version: any; +}>; +export declare const UpgradeControlPanel: import("@loadable/component").LoadableClassComponent; +export declare const ModerateComments: import("@loadable/component").LoadableClassComponent; +export declare const DatabaseInformation: import("@loadable/component").LoadableClassComponent; diff --git a/packages/volto/types/components/manage/Form/__mocks__/index.d.ts b/packages/volto/types/components/manage/Form/__mocks__/index.d.ts new file mode 100644 index 0000000000..086c8c23b7 --- /dev/null +++ b/packages/volto/types/components/manage/Form/__mocks__/index.d.ts @@ -0,0 +1,9 @@ +/// +export declare const Field: jest.Mock; +export declare const InlineForm: jest.Mock; +export declare const ModalForm: jest.Mock; +export declare const UndoToolbar: jest.Mock; +export declare const BlocksToolbar: jest.Mock; +export declare const BlockDataForm: jest.Mock; +export declare const BlocksForm: jest.Mock; +export declare const Form: jest.Mock; diff --git a/packages/volto/types/components/manage/Form/index.d.ts b/packages/volto/types/components/manage/Form/index.d.ts new file mode 100644 index 0000000000..80e8e76488 --- /dev/null +++ b/packages/volto/types/components/manage/Form/index.d.ts @@ -0,0 +1,14 @@ +/// +export declare const Field: import("@loadable/component").LoadableComponent>; +export declare const InlineForm: import("@loadable/component").LoadableComponent, "ref"> & import("react").RefAttributes>; +export declare const ModalForm: import("@loadable/component").LoadableComponent>; +export declare const UndoToolbar: import("@loadable/component").LoadableComponent<{ + state: any; + onUndoRedo: any; + maxUndoLevels: any; + enableHotKeys: any; +}>; +export declare const BlocksToolbar: import("@loadable/component").LoadableClassComponent; +export declare const BlockDataForm: import("@loadable/component").LoadableComponent; +export declare const BlocksForm: import("@loadable/component").LoadableComponent; +export declare const Form: import("@loadable/component").LoadableClassComponent; diff --git a/packages/volto/types/components/manage/Rules/index.d.ts b/packages/volto/types/components/manage/Rules/index.d.ts new file mode 100644 index 0000000000..e1b65d129c --- /dev/null +++ b/packages/volto/types/components/manage/Rules/index.d.ts @@ -0,0 +1 @@ +export declare const Rules: import("@loadable/component").LoadableClassComponent; diff --git a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts index 229c65611e..5298df7f0f 100644 --- a/packages/volto/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts +++ b/packages/volto/types/components/manage/Widgets/RecurrenceWidget/SelectInput.d.ts @@ -1,34 +1,2 @@ -export default SelectInput; -/** - * SelectInput component class. - * @function SelectInput - * @returns {string} Markup of the component. - */ -declare function SelectInput({ name, disabled, options, value, onChange }: { - name: any; - disabled: any; - options: any; - value: any; - onChange: any; -}): string; -declare namespace SelectInput { - namespace propTypes { - let name: any; - let options: any; - let disabled: any; - let value: any; - let onChange: any; - } - namespace defaultProps { - let name_1: string; - export { name_1 as name }; - let options_1: any[]; - export { options_1 as options }; - let disabled_1: boolean; - export { disabled_1 as disabled }; - let value_1: any; - export { value_1 as value }; - let onChange_1: any; - export { onChange_1 as onChange }; - } -} +declare const _default: any; +export default _default; diff --git a/packages/volto/types/components/manage/Widgets/__mocks__/index.d.ts b/packages/volto/types/components/manage/Widgets/__mocks__/index.d.ts new file mode 100644 index 0000000000..86a10de8b4 --- /dev/null +++ b/packages/volto/types/components/manage/Widgets/__mocks__/index.d.ts @@ -0,0 +1,34 @@ +/// +export declare const AlignWidget: jest.Mock; +export declare const ButtonsWidget: jest.Mock; +export declare const ArrayWidget: jest.Mock; +export declare const CheckboxWidget: jest.Mock; +export declare const FileWidget: jest.Mock; +export declare const IdWidget: jest.Mock; +export declare const PasswordWidget: jest.Mock; +export declare const QueryWidget: jest.Mock; +export declare const QuerySortOnWidget: jest.Mock; +export declare const QuerystringWidget: jest.Mock; +export declare const SchemaWidget: jest.Mock; +export declare const SelectWidget: jest.Mock; +export declare const TextareaWidget: jest.Mock; +export declare const TextWidget: jest.Mock; +export declare const TokenWidget: jest.Mock; +export declare const WysiwygWidget: jest.Mock; +export declare const UrlWidget: jest.Mock; +export declare const InternalUrlWidget: jest.Mock; +export declare const EmailWidget: jest.Mock; +export declare const NumberWidget: jest.Mock; +export declare const ImageSizeWidget: jest.Mock; +export declare const RegistryImageWidget: jest.Mock; +export declare const ReferenceWidget: jest.Mock; +export declare const ObjectBrowserWidget: jest.Mock; +export declare const ObjectWidget: jest.Mock; +export declare const ObjectListWidget: jest.Mock; +export declare const VocabularyTermsWidget: jest.Mock; +export declare const SelectMetadataWidget: jest.Mock; +export declare const SelectAutoComplete: jest.Mock; +export declare const ColorPickerWidget: jest.Mock; +export declare const DatetimeWidget: jest.Mock; +export declare const RecurrenceWidget: jest.Mock; +export declare const FormFieldWrapper: jest.Mock; diff --git a/packages/volto/types/components/manage/Widgets/index.d.ts b/packages/volto/types/components/manage/Widgets/index.d.ts new file mode 100644 index 0000000000..c92f981f68 --- /dev/null +++ b/packages/volto/types/components/manage/Widgets/index.d.ts @@ -0,0 +1,120 @@ +/// +export declare const AlignWidget: import("@loadable/component").LoadableComponent; +export declare const ButtonsWidget: import("@loadable/component").LoadableComponent; +export declare const ArrayWidget: import("@loadable/component").LoadableClassComponent; +export declare const CheckboxWidget: import("@loadable/component").LoadableComponent>; +export declare const FileWidget: import("@loadable/component").LoadableComponent>; +export declare const IdWidget: import("@loadable/component").LoadableClassComponent; +export declare const PasswordWidget: import("@loadable/component").LoadableComponent>; +export declare const QueryWidget: import("@loadable/component").LoadableClassComponent; +export declare const QuerySortOnWidget: import("@loadable/component").LoadableClassComponent; +export declare const QuerystringWidget: import("@loadable/component").LoadableComponent; +export declare const SchemaWidget: import("@loadable/component").LoadableClassComponent; +export declare const SelectWidget: import("@loadable/component").LoadableClassComponent; +export declare const TextareaWidget: import("@loadable/component").LoadableComponent>; +export declare const TextWidget: import("@loadable/component").LoadableComponent>; +export declare const TokenWidget: import("@loadable/component").LoadableClassComponent; +export declare const WysiwygWidget: import("@loadable/component").LoadableClassComponent; +export declare const UrlWidget: import("@loadable/component").LoadableClassComponent<{ + new (): { + state: { + isObjectBrowserOpen: boolean; + }; + openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: { + mode: string; + dataName: string; + onSelectItem: string; + overlay: string; + }) => void; + closeObjectBrowser: () => void; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; + setState(state: any, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly; + refs: { + [key: string]: import("react").ReactInstance; + }; + componentDidMount?(): void; + shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; + }; + defaultProps: { + onChangeBlock: () => void; + data: {}; + block: string; + }; + contextType?: import("react").Context; +}>; +export declare const InternalUrlWidget: import("@loadable/component").LoadableClassComponent<{ + new (): { + state: { + isObjectBrowserOpen: boolean; + }; + openObjectBrowser: ({ mode, onSelectItem, dataName, overlay, propDataName, searchableTypes, selectableTypes, maximumSelectionSize, currentPath, }?: { + mode: string; + dataName: string; + onSelectItem: string; + overlay: string; + }) => void; + closeObjectBrowser: () => void; + render(): import("react/jsx-runtime").JSX.Element; + context: unknown; + setState(state: any, callback?: () => void): void; + forceUpdate(callback?: () => void): void; + readonly props: Readonly; + refs: { + [key: string]: import("react").ReactInstance; + }; + componentDidMount?(): void; + shouldComponentUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): boolean; + componentWillUnmount?(): void; + componentDidCatch?(error: Error, errorInfo: import("react").ErrorInfo): void; + getSnapshotBeforeUpdate?(prevProps: Readonly, prevState: Readonly): any; + componentDidUpdate?(prevProps: Readonly, prevState: Readonly, snapshot?: any): void; + componentWillMount?(): void; + UNSAFE_componentWillMount?(): void; + componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; + UNSAFE_componentWillReceiveProps?(nextProps: Readonly, nextContext: any): void; + componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; + UNSAFE_componentWillUpdate?(nextProps: Readonly, nextState: Readonly, nextContext: any): void; + }; + defaultProps: { + onChangeBlock: () => void; + data: {}; + block: string; + }; + contextType?: import("react").Context; +}>; +export declare const EmailWidget: import("@loadable/component").LoadableComponent; +export declare const NumberWidget: import("@loadable/component").LoadableComponent>; +export declare const ImageSizeWidget: import("@loadable/component").LoadableComponent>; +export declare const RegistryImageWidget: import("@loadable/component").LoadableComponent>; +export declare const ReferenceWidget: import("@loadable/component").LoadableClassComponent; +export declare const ObjectBrowserWidget: import("@loadable/component").LoadableComponent>, "ref"> & import("react").RefAttributes>>>; +export declare const ObjectWidget: import("@loadable/component").LoadableComponent<{ + [x: string]: any; + block: any; + schema: any; + value: any; + onChange: any; + errors?: {}; + id: any; +}>; +export declare const ObjectListWidget: import("@loadable/component").LoadableComponent; +export declare const VocabularyTermsWidget: import("@loadable/component").LoadableComponent; +export declare const SelectMetadataWidget: import("@loadable/component").LoadableComponent; +export declare const SelectAutoComplete: import("@loadable/component").LoadableClassComponent; +export declare const ColorPickerWidget: import("@loadable/component").LoadableComponent; +export declare const DatetimeWidget: import("@loadable/component").LoadableClassComponent; +export declare const RecurrenceWidget: import("@loadable/component").LoadableClassComponent; +export declare const FormFieldWrapper: import("@loadable/component").LoadableComponent>; diff --git a/packages/volto/types/components/theme/Comments/__mocks__/index.d.ts b/packages/volto/types/components/theme/Comments/__mocks__/index.d.ts new file mode 100644 index 0000000000..2e6bcee0cb --- /dev/null +++ b/packages/volto/types/components/theme/Comments/__mocks__/index.d.ts @@ -0,0 +1 @@ +export declare const CommentEditModal: () => import("react/jsx-runtime").JSX.Element; diff --git a/packages/volto/types/components/theme/Comments/index.d.ts b/packages/volto/types/components/theme/Comments/index.d.ts new file mode 100644 index 0000000000..4ca30cfba8 --- /dev/null +++ b/packages/volto/types/components/theme/Comments/index.d.ts @@ -0,0 +1 @@ +export declare const CommentEditModal: import("@loadable/component").LoadableComponent; diff --git a/packages/volto/types/config/ControlPanels.d.ts b/packages/volto/types/config/ControlPanels.d.ts index 630bb9ceb0..d6b4f4b325 100644 --- a/packages/volto/types/config/ControlPanels.d.ts +++ b/packages/volto/types/config/ControlPanels.d.ts @@ -21,5 +21,5 @@ export const controlPanelsIcons: { aliases: string; relations: string; }; -export function filterControlPanels(controlpanels: any): any; +export function filterControlPanels(controlpanels?: any[]): any[]; export function filterControlPanelsSchema(controlpanel: any): any; diff --git a/packages/volto/types/config/Loadables.d.ts b/packages/volto/types/config/Loadables.d.ts index c1e4a9974e..b08018c450 100644 --- a/packages/volto/types/config/Loadables.d.ts +++ b/packages/volto/types/config/Loadables.d.ts @@ -1,20 +1,162 @@ export namespace loadables { - let prettierStandalone: any; - let prettierParserHtml: any; + let prettierStandalone: import("@loadable/component").LoadableLibrary<{ + default: typeof import("prettier/standalone"); + formatWithCursor(source: string, options: import("prettier").CursorOptions): Promise; + format(source: string, options?: import("prettier").Options): Promise; + check(source: string, options?: import("prettier").Options): Promise; + getSupportInfo(): Promise; + }>; + let prettierParserHtml: import("@loadable/component").LoadableLibrary<{ + default: typeof import("prettier/plugins/html"); + parsers: { + angular: import("prettier").Parser; + html: import("prettier").Parser; + lwc: import("prettier").Parser; + vue: import("prettier").Parser; + }; + }>; let prismCore: any; - let toastify: any; + let toastify: import("@loadable/component").LoadableLibrary<{ + default: typeof import("react-toastify"); + cssTransition(props: import("react-toastify").cssTransitionProps): import("react").ComponentType<{}>; + ToastType: import("react-toastify").Type; + ToastPosition: import("react-toastify").Position; + ToastContainer: typeof import("react-toastify").ToastContainer; + toast: import("react-toastify").Toast; + Slide: import("react").ComponentType<{}>; + Bounce: import("react").ComponentType<{}>; + Flip: import("react").ComponentType<{}>; + Zoom: import("react").ComponentType<{}>; + }>; let reactSelect: any; let reactVirtualized: any; - let reactSortableHOC: any; - let reactSelectAsyncPaginate: any; + let reactSortableHOC: import("@loadable/component").LoadableLibrary<{ + default: typeof import("react-sortable-hoc"); + SortableContainer

(wrappedComponent: any, config?: import("react-sortable-hoc").Config): import("react").ComponentClass

; + SortableElement(wrappedComponent: any, config?: import("react-sortable-hoc").Config): import("react").ComponentClass; + SortableHandle(wrappedComponent: any, config?: import("react-sortable-hoc").Config): import("react").ComponentClass; + arrayMove(collection: T[], previousIndex: number, newIndex: number): T[]; + }>; + let reactSelectAsyncPaginate: import("@loadable/component").LoadableLibrary<{ + default: typeof import("react-select-async-paginate"); + wrapMenuList: (MenuList: import("react").ComponentType<{ + innerRef: import("react").Ref; + }>) => import("react").FC; + reduceGroupedOptions: import("react-select-async-paginate").ReduceOptions; + withAsyncPaginate: typeof import("react-select-async-paginate").withAsyncPaginate; + useAsyncPaginateBase: (params: import("react-select-async-paginate").UseAsyncPaginateBaseParams, deps?: readonly any[]) => import("react-select-async-paginate").UseAsyncPaginateBaseResult; + useAsyncPaginate: (params: import("react-select-async-paginate").UseAsyncPaginateParams, deps?: readonly any[]) => import("react-select-async-paginate").UseAsyncPaginateResult; + useComponents: (components: any) => any; + AsyncPaginate: import("react").FC; + }>; let reactSelectAsync: any; let reactSelectCreateable: any; let reactSelectAsyncCreateable: any; let diffLib: any; - let moment: any; + let moment: import("@loadable/component").LoadableLibrary<{ + default: typeof import("moment"); + utc(inp?: import("moment").MomentInput, strict?: boolean): import("moment").Moment; + utc(inp?: import("moment").MomentInput, format?: import("moment").MomentFormatSpecification, strict?: boolean): import("moment").Moment; + utc(inp?: import("moment").MomentInput, format?: import("moment").MomentFormatSpecification, language?: string, strict?: boolean): import("moment").Moment; + unix(timestamp: number): import("moment").Moment; + invalid(flags?: import("moment").MomentParsingFlagsOpt): import("moment").Moment; + isMoment(m: any): m is import("moment").Moment; + isDate(m: any): m is Date; + isDuration(d: any): d is import("moment").Duration; + lang(language?: string): string; + lang(language?: string, definition?: import("moment").Locale): string; + locale(language?: string): string; + locale(language?: string[]): string; + locale(language?: string, definition?: import("moment").LocaleSpecification): string; + localeData(key?: string | string[]): import("moment").Locale; + duration(inp?: import("moment").DurationInputArg1, unit?: import("moment").unitOfTime.DurationConstructor): import("moment").Duration; + parseZone(inp?: import("moment").MomentInput, format?: import("moment").MomentFormatSpecification, strict?: boolean): import("moment").Moment; + parseZone(inp?: import("moment").MomentInput, format?: import("moment").MomentFormatSpecification, language?: string, strict?: boolean): import("moment").Moment; + months(): string[]; + months(index: number): string; + months(format: string): string[]; + months(format: string, index: number): string; + monthsShort(): string[]; + monthsShort(index: number): string; + monthsShort(format: string): string[]; + monthsShort(format: string, index: number): string; + weekdays(): string[]; + weekdays(index: number): string; + weekdays(format: string): string[]; + weekdays(format: string, index: number): string; + weekdays(localeSorted: boolean): string[]; + weekdays(localeSorted: boolean, index: number): string; + weekdays(localeSorted: boolean, format: string): string[]; + weekdays(localeSorted: boolean, format: string, index: number): string; + weekdaysShort(): string[]; + weekdaysShort(index: number): string; + weekdaysShort(format: string): string[]; + weekdaysShort(format: string, index: number): string; + weekdaysShort(localeSorted: boolean): string[]; + weekdaysShort(localeSorted: boolean, index: number): string; + weekdaysShort(localeSorted: boolean, format: string): string[]; + weekdaysShort(localeSorted: boolean, format: string, index: number): string; + weekdaysMin(): string[]; + weekdaysMin(index: number): string; + weekdaysMin(format: string): string[]; + weekdaysMin(format: string, index: number): string; + weekdaysMin(localeSorted: boolean): string[]; + weekdaysMin(localeSorted: boolean, index: number): string; + weekdaysMin(localeSorted: boolean, format: string): string[]; + weekdaysMin(localeSorted: boolean, format: string, index: number): string; + min(moments: import("moment").Moment[]): import("moment").Moment; + min(...moments: import("moment").Moment[]): import("moment").Moment; + max(moments: import("moment").Moment[]): import("moment").Moment; + max(...moments: import("moment").Moment[]): import("moment").Moment; + now(): number; + defineLocale(language: string, localeSpec: import("moment").LocaleSpecification): import("moment").Locale; + updateLocale(language: string, localeSpec: import("moment").LocaleSpecification): import("moment").Locale; + locales(): string[]; + normalizeUnits(unit: import("moment").unitOfTime.All): string; + relativeTimeThreshold(threshold: string): number | boolean; + relativeTimeThreshold(threshold: string, limit: number): boolean; + relativeTimeRounding(fn: (num: number) => number): boolean; + relativeTimeRounding(): (num: number) => number; + calendarFormat(m: import("moment").Moment, now: import("moment").Moment): string; + parseTwoDigitYear(input: string): number; + version: string; + fn: import("moment").Moment; + ISO_8601: import("moment").MomentBuiltinFormat; + RFC_2822: import("moment").MomentBuiltinFormat; + defaultFormat: string; + defaultFormatUtc: string; + suppressDeprecationWarnings: boolean; + deprecationHandler: (name: string, msg: string) => void; + HTML5_FMT: { + DATETIME_LOCAL: string; + DATETIME_LOCAL_SECONDS: string; + DATETIME_LOCAL_MS: string; + DATE: string; + TIME: string; + TIME_SECONDS: string; + TIME_MS: string; + WEEK: string; + MONTH: string; + }; + }>; let reactDates: any; - let reactDnd: any; - let reactDndHtml5Backend: any; + let reactDnd: import("@loadable/component").LoadableLibrary<{ + default: typeof import("react-dnd"); + DragDropContext: typeof import("react-dnd").DragDropContext; + DragDropContextProvider: React.SFC>; + DragLayer: typeof import("react-dnd").DragLayer; + DragSource: typeof import("react-dnd").DragSource; + DropTarget: typeof import("react-dnd").DropTarget; + XYCoord: any; + }>; + let reactDndHtml5Backend: import("@loadable/component").LoadableLibrary; let reactBeautifulDnd: any; - let rrule: any; + let rrule: import("@loadable/component").LoadableLibrary<{ + default: typeof import("rrule"); + RRule: typeof import("rrule").RRule; + RRuleSet: typeof import("rrule").RRuleSet; + rrulestr: typeof import("rrule").rrulestr; + Frequency: typeof import("rrule").Frequency; + Weekday: typeof import("rrule").Weekday; + }>; } diff --git a/packages/volto/types/config/Views.d.ts b/packages/volto/types/config/Views.d.ts index dba867048e..be087e3bac 100644 --- a/packages/volto/types/config/Views.d.ts +++ b/packages/volto/types/config/Views.d.ts @@ -31,7 +31,7 @@ export const contentTypesViews: { content: any; }; }; - Event: any; + Event: import("@loadable/component").LoadableComponent; }; export const defaultView: import("react").FC> & { WrappedComponent: import("react").ComponentType; diff --git a/packages/volto/types/config/Widgets.d.ts b/packages/volto/types/config/Widgets.d.ts index 1d6c22fa61..201cd755f7 100644 --- a/packages/volto/types/config/Widgets.d.ts +++ b/packages/volto/types/config/Widgets.d.ts @@ -1,5 +1,3 @@ -export const DatetimeWidget: any; -export const RecurrenceWidget: any; export namespace widgetMapping { export namespace id { export { SchemaWidget as schema }; @@ -37,15 +35,11 @@ export namespace widgetMapping { export { SelectWidget as select }; } export let vocabulary: { - 'plone.app.vocabularies.Catalog': import("react").ForwardRefExoticComponent>, "ref"> & import("react").RefAttributes>>> & { - WrappedComponent: import("react").ComponentType>; - }; + 'plone.app.vocabularies.Catalog': import("@loadable/component").LoadableComponent>, "ref"> & import("react").RefAttributes>>>; }; export let factory: { - 'Relation List': import("react").ForwardRefExoticComponent>, "ref"> & import("react").RefAttributes>>> & { - WrappedComponent: import("react").ComponentType>; - }; - 'Relation Choice': any; + 'Relation List': import("@loadable/component").LoadableComponent>, "ref"> & import("react").RefAttributes>>>; + 'Relation Choice': import("@loadable/component").LoadableClassComponent; }; export { SelectWidget as choices }; export namespace type { @@ -102,36 +96,36 @@ export namespace widgetMapping { export { type_1 as type }; } } -export const defaultWidget: import("react").FC> & { - WrappedComponent: import("react").ComponentType; -}; -import SchemaWidget from '@plone/volto/components/manage/Widgets/SchemaWidget'; -import TokenWidget from '@plone/volto/components/manage/Widgets/TokenWidget'; -import QuerystringWidget from '@plone/volto/components/manage/Widgets/QuerystringWidget'; -import UrlWidget from '@plone/volto/components/manage/Widgets/UrlWidget'; -import IdWidget from '@plone/volto/components/manage/Widgets/IdWidget'; -import RegistryImageWidget from '@plone/volto/components/manage/Widgets/RegistryImageWidget'; -import TextareaWidget from '@plone/volto/components/manage/Widgets/TextareaWidget'; -import PasswordWidget from '@plone/volto/components/manage/Widgets/PasswordWidget'; -import FileWidget from '@plone/volto/components/manage/Widgets/FileWidget'; -import AlignWidget from '@plone/volto/components/manage/Widgets/AlignWidget'; -import ButtonsWidget from '@plone/volto/components/manage/Widgets/ButtonsWidget'; -import InternalUrlWidget from '@plone/volto/components/manage/Widgets/InternalUrlWidget'; -import EmailWidget from '@plone/volto/components/manage/Widgets/EmailWidget'; -import ArrayWidget from '@plone/volto/components/manage/Widgets/ArrayWidget'; -import QueryWidget from '@plone/volto/components/manage/Widgets/QueryWidget'; -import QuerySortOnWidget from '@plone/volto/components/manage/Widgets/QuerySortOnWidget'; -import ObjectBrowserWidget from '@plone/volto/components/manage/Widgets/ObjectBrowserWidget'; -import ObjectWidget from '@plone/volto/components/manage/Widgets/ObjectWidget'; -import ObjectListWidget from '@plone/volto/components/manage/Widgets/ObjectListWidget'; -import VocabularyTermsWidget from '@plone/volto/components/manage/Widgets/VocabularyTermsWidget'; -import ImageSizeWidget from '@plone/volto/components/manage/Widgets/ImageSizeWidget'; -import SelectMetadataWidget from '@plone/volto/components/manage/Blocks/Search/widgets/SelectMetadataField'; -import SelectAutoComplete from '@plone/volto/components/manage/Widgets/SelectAutoComplete'; -import ColorPickerWidget from '@plone/volto/components/manage/Widgets/ColorPickerWidget'; -import SelectWidget from '@plone/volto/components/manage/Widgets/SelectWidget'; -import CheckboxWidget from '@plone/volto/components/manage/Widgets/CheckboxWidget'; -import NumberWidget from '@plone/volto/components/manage/Widgets/NumberWidget'; +export const defaultWidget: import("@loadable/component").LoadableComponent>; +import { SchemaWidget } from '@plone/volto/components/manage/Widgets'; +import { TokenWidget } from '@plone/volto/components/manage/Widgets'; +import { QuerystringWidget } from '@plone/volto/components/manage/Widgets'; +import { RecurrenceWidget } from '@plone/volto/components/manage/Widgets'; +import { UrlWidget } from '@plone/volto/components/manage/Widgets'; +import { IdWidget } from '@plone/volto/components/manage/Widgets'; +import { RegistryImageWidget } from '@plone/volto/components/manage/Widgets'; +import { TextareaWidget } from '@plone/volto/components/manage/Widgets'; +import { DatetimeWidget } from '@plone/volto/components/manage/Widgets'; +import { PasswordWidget } from '@plone/volto/components/manage/Widgets'; +import { FileWidget } from '@plone/volto/components/manage/Widgets'; +import { AlignWidget } from '@plone/volto/components/manage/Widgets'; +import { ButtonsWidget } from '@plone/volto/components/manage/Widgets'; +import { InternalUrlWidget } from '@plone/volto/components/manage/Widgets'; +import { EmailWidget } from '@plone/volto/components/manage/Widgets'; +import { ArrayWidget } from '@plone/volto/components/manage/Widgets'; +import { QueryWidget } from '@plone/volto/components/manage/Widgets'; +import { QuerySortOnWidget } from '@plone/volto/components/manage/Widgets'; +import { ObjectBrowserWidget } from '@plone/volto/components/manage/Widgets'; +import { ObjectWidget } from '@plone/volto/components/manage/Widgets'; +import { ObjectListWidget } from '@plone/volto/components/manage/Widgets'; +import { VocabularyTermsWidget } from '@plone/volto/components/manage/Widgets'; +import { ImageSizeWidget } from '@plone/volto/components/manage/Widgets'; +import { SelectMetadataWidget } from '@plone/volto/components/manage/Widgets'; +import { SelectAutoComplete } from '@plone/volto/components/manage/Widgets'; +import { ColorPickerWidget } from '@plone/volto/components/manage/Widgets'; +import { SelectWidget } from '@plone/volto/components/manage/Widgets'; +import { CheckboxWidget } from '@plone/volto/components/manage/Widgets'; +import { NumberWidget } from '@plone/volto/components/manage/Widgets'; import { getWidgetView } from '@plone/volto/helpers/Widget/widget'; import TextViewWidget from '@plone/volto/components/theme/Widgets/TextWidget'; import FileViewWidget from '@plone/volto/components/theme/Widgets/FileWidget';