@plone/volto-slate 18.0.0-alpha.10
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.js +6 -0
- package/.release-it.json +29 -0
- package/.stylelintrc +14 -0
- package/CHANGELOG.md +71 -0
- package/LICENSE.md +21 -0
- package/README.md +13 -0
- package/locales/de/LC_MESSAGES/volto.po +148 -0
- package/locales/en/LC_MESSAGES/volto.po +148 -0
- package/locales/volto.pot +182 -0
- package/package.json +44 -0
- package/src/actions/content.js +30 -0
- package/src/actions/index.js +3 -0
- package/src/actions/plugins.js +9 -0
- package/src/actions/selection.js +22 -0
- package/src/blocks/Table/Cell.jsx +87 -0
- package/src/blocks/Table/Cell.test.js +54 -0
- package/src/blocks/Table/TableBlockEdit.jsx +688 -0
- package/src/blocks/Table/TableBlockEdit.test.js +40 -0
- package/src/blocks/Table/TableBlockView.jsx +150 -0
- package/src/blocks/Table/TableBlockView.test.js +49 -0
- package/src/blocks/Table/__snapshots__/Cell.test.js.snap +3 -0
- package/src/blocks/Table/__snapshots__/TableBlockEdit.test.js.snap +22 -0
- package/src/blocks/Table/__snapshots__/TableBlockView.test.js.snap +27 -0
- package/src/blocks/Table/deconstruct.js +113 -0
- package/src/blocks/Table/extensions/normalizeTable.js +5 -0
- package/src/blocks/Table/index.js +59 -0
- package/src/blocks/Table/schema.js +122 -0
- package/src/blocks/Text/DefaultTextBlockEditor.jsx +308 -0
- package/src/blocks/Text/DetachedTextBlockEditor.jsx +77 -0
- package/src/blocks/Text/MarkdownIntroduction.jsx +59 -0
- package/src/blocks/Text/PluginSidebar.jsx +17 -0
- package/src/blocks/Text/ShortcutListing.jsx +28 -0
- package/src/blocks/Text/SlashMenu.jsx +203 -0
- package/src/blocks/Text/TextBlockEdit.jsx +38 -0
- package/src/blocks/Text/TextBlockEdit.test.js +107 -0
- package/src/blocks/Text/TextBlockSchema.js +54 -0
- package/src/blocks/Text/TextBlockView.jsx +31 -0
- package/src/blocks/Text/__snapshots__/TextBlockEdit.test.js.snap +62 -0
- package/src/blocks/Text/css/editor.css +18 -0
- package/src/blocks/Text/extensions/Readme.md +49 -0
- package/src/blocks/Text/extensions/breakList.js +100 -0
- package/src/blocks/Text/extensions/index.js +6 -0
- package/src/blocks/Text/extensions/insertBreak.js +57 -0
- package/src/blocks/Text/extensions/isSelected.js +7 -0
- package/src/blocks/Text/extensions/normalizeExternalData.js +7 -0
- package/src/blocks/Text/extensions/withDeserializers.js +87 -0
- package/src/blocks/Text/extensions/withLists.js +5 -0
- package/src/blocks/Text/index.js +155 -0
- package/src/blocks/Text/keyboard/backspaceInList.js +58 -0
- package/src/blocks/Text/keyboard/breakBlocks.js +3 -0
- package/src/blocks/Text/keyboard/cancelEsc.js +7 -0
- package/src/blocks/Text/keyboard/indentListItems.js +240 -0
- package/src/blocks/Text/keyboard/index.js +52 -0
- package/src/blocks/Text/keyboard/joinBlocks.js +180 -0
- package/src/blocks/Text/keyboard/moveListItems.js +124 -0
- package/src/blocks/Text/keyboard/slashMenu.js +19 -0
- package/src/blocks/Text/keyboard/softBreak.js +7 -0
- package/src/blocks/Text/keyboard/traverseBlocks.js +81 -0
- package/src/blocks/Text/keyboard/unwrapEmptyString.js +26 -0
- package/src/blocks/Text/schema.js +39 -0
- package/src/constants.js +123 -0
- package/src/editor/EditorContext.jsx +5 -0
- package/src/editor/EditorReference.jsx +22 -0
- package/src/editor/SlateEditor.jsx +382 -0
- package/src/editor/config.jsx +343 -0
- package/src/editor/decorate.js +68 -0
- package/src/editor/deserialize.js +185 -0
- package/src/editor/extensions/index.js +6 -0
- package/src/editor/extensions/insertBreak.js +15 -0
- package/src/editor/extensions/insertData.js +161 -0
- package/src/editor/extensions/isInline.js +14 -0
- package/src/editor/extensions/normalizeExternalData.js +8 -0
- package/src/editor/extensions/normalizeNode.js +48 -0
- package/src/editor/extensions/withDeserializers.js +15 -0
- package/src/editor/extensions/withTestingFeatures.jsx +84 -0
- package/src/editor/index.js +14 -0
- package/src/editor/less/editor.less +175 -0
- package/src/editor/less/globals.less +18 -0
- package/src/editor/less/slate.less +30 -0
- package/src/editor/plugins/AdvancedLink/deserialize.js +90 -0
- package/src/editor/plugins/AdvancedLink/extensions.js +32 -0
- package/src/editor/plugins/AdvancedLink/index.js +50 -0
- package/src/editor/plugins/AdvancedLink/render.jsx +37 -0
- package/src/editor/plugins/AdvancedLink/schema.js +114 -0
- package/src/editor/plugins/AdvancedLink/styles.less +8 -0
- package/src/editor/plugins/Blockquote/index.js +30 -0
- package/src/editor/plugins/Callout/index.js +34 -0
- package/src/editor/plugins/Image/deconstruct.js +30 -0
- package/src/editor/plugins/Image/extensions.js +51 -0
- package/src/editor/plugins/Image/index.js +11 -0
- package/src/editor/plugins/Image/render.jsx +22 -0
- package/src/editor/plugins/Link/extensions.js +58 -0
- package/src/editor/plugins/Link/index.js +159 -0
- package/src/editor/plugins/Link/render.jsx +54 -0
- package/src/editor/plugins/Markdown/constants.js +81 -0
- package/src/editor/plugins/Markdown/extensions.js +336 -0
- package/src/editor/plugins/Markdown/index.js +28 -0
- package/src/editor/plugins/Markdown/utils.js +198 -0
- package/src/editor/plugins/StyleMenu/StyleMenu.jsx +153 -0
- package/src/editor/plugins/StyleMenu/index.js +19 -0
- package/src/editor/plugins/StyleMenu/style.less +29 -0
- package/src/editor/plugins/StyleMenu/utils.js +168 -0
- package/src/editor/plugins/Table/TableButton.jsx +142 -0
- package/src/editor/plugins/Table/TableCell.jsx +44 -0
- package/src/editor/plugins/Table/TableContainer.jsx +37 -0
- package/src/editor/plugins/Table/TableSizePicker.jsx +83 -0
- package/src/editor/plugins/Table/extensions.js +87 -0
- package/src/editor/plugins/Table/index.js +390 -0
- package/src/editor/plugins/Table/less/public.less +29 -0
- package/src/editor/plugins/Table/less/table.less +28 -0
- package/src/editor/plugins/Table/render.jsx +30 -0
- package/src/editor/plugins/index.js +19 -0
- package/src/editor/render.jsx +224 -0
- package/src/editor/ui/BasicToolbar.jsx +11 -0
- package/src/editor/ui/BlockButton.jsx +31 -0
- package/src/editor/ui/ClearFormattingButton.jsx +21 -0
- package/src/editor/ui/ExpandedToolbar.jsx +18 -0
- package/src/editor/ui/Expando.jsx +5 -0
- package/src/editor/ui/InlineToolbar.jsx +69 -0
- package/src/editor/ui/MarkButton.jsx +23 -0
- package/src/editor/ui/MarkElementButton.jsx +30 -0
- package/src/editor/ui/Menu.jsx +13 -0
- package/src/editor/ui/PositionedToolbar.jsx +31 -0
- package/src/editor/ui/Separator.jsx +7 -0
- package/src/editor/ui/SlateContextToolbar.jsx +13 -0
- package/src/editor/ui/SlateToolbar.jsx +96 -0
- package/src/editor/ui/Toolbar.jsx +102 -0
- package/src/editor/ui/ToolbarButton.jsx +33 -0
- package/src/editor/ui/ToolbarButton.test.js +25 -0
- package/src/editor/ui/__snapshots__/ToolbarButton.test.js.snap +16 -0
- package/src/editor/ui/index.js +15 -0
- package/src/editor/utils.js +248 -0
- package/src/elementEditor/ContextButtons.jsx +57 -0
- package/src/elementEditor/PluginEditor.jsx +124 -0
- package/src/elementEditor/Readme.md +6 -0
- package/src/elementEditor/SchemaProvider.jsx +4 -0
- package/src/elementEditor/SidebarEditor.jsx +46 -0
- package/src/elementEditor/ToolbarButton.jsx +44 -0
- package/src/elementEditor/index.js +5 -0
- package/src/elementEditor/makeInlineElementPlugin.js +100 -0
- package/src/elementEditor/messages.js +14 -0
- package/src/elementEditor/utils.js +227 -0
- package/src/hooks/index.js +3 -0
- package/src/hooks/useEditorContext.js +6 -0
- package/src/hooks/useIsomorphicLayoutEffect.js +7 -0
- package/src/hooks/useSelectionPosition.js +25 -0
- package/src/i18n.js +180 -0
- package/src/icons/hashlink.svg +57 -0
- package/src/index.js +61 -0
- package/src/reducers/content.js +74 -0
- package/src/reducers/index.js +3 -0
- package/src/reducers/plugins.js +17 -0
- package/src/reducers/selection.js +16 -0
- package/src/utils/blocks.js +379 -0
- package/src/utils/blocks.test.js +138 -0
- package/src/utils/editor.js +31 -0
- package/src/utils/image.js +25 -0
- package/src/utils/index.js +11 -0
- package/src/utils/internals.js +46 -0
- package/src/utils/lists.js +92 -0
- package/src/utils/marks.js +104 -0
- package/src/utils/mime-types.js +24 -0
- package/src/utils/nodes.js +4 -0
- package/src/utils/ops.js +20 -0
- package/src/utils/random.js +17 -0
- package/src/utils/selection.js +236 -0
- package/src/utils/slate-string-utils.js +409 -0
- package/src/utils/volto-blocks.js +314 -0
- package/src/widgets/ErrorBoundary.jsx +27 -0
- package/src/widgets/HtmlSlateWidget.jsx +138 -0
- package/src/widgets/ObjectByTypeWidget.jsx +49 -0
- package/src/widgets/RichTextWidget.jsx +72 -0
- package/src/widgets/RichTextWidgetView.jsx +36 -0
- package/src/widgets/style.css +21 -0
package/.eslintrc.js
ADDED
package/.release-it.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": {
|
|
3
|
+
"../scripts/prepublish.js": {}
|
|
4
|
+
},
|
|
5
|
+
"hooks": {
|
|
6
|
+
"after:bump": [
|
|
7
|
+
"pipx run towncrier build --draft --yes --version ${version} > .changelog.draft",
|
|
8
|
+
"pipx run towncrier build --yes --version ${version}"
|
|
9
|
+
],
|
|
10
|
+
"after:release": "rm .changelog.draft"
|
|
11
|
+
},
|
|
12
|
+
"npm": {
|
|
13
|
+
"publish": false
|
|
14
|
+
},
|
|
15
|
+
"git": {
|
|
16
|
+
"commitArgs": ["--no-verify"],
|
|
17
|
+
"changelog": "pipx run towncrier build --draft --yes --version 0.0.0",
|
|
18
|
+
"requireUpstream": false,
|
|
19
|
+
"requireCleanWorkingDir": false,
|
|
20
|
+
"commitMessage": "Release @plone/slate ${version}",
|
|
21
|
+
"tagName": "plone-slate-${version}",
|
|
22
|
+
"tagAnnotation": "Release @plone/slate ${version}"
|
|
23
|
+
},
|
|
24
|
+
"github": {
|
|
25
|
+
"release": true,
|
|
26
|
+
"releaseName": "@plone/slate ${version}",
|
|
27
|
+
"releaseNotes": "cat .changelog.draft"
|
|
28
|
+
}
|
|
29
|
+
}
|
package/.stylelintrc
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": ["stylelint-config-idiomatic-order"],
|
|
3
|
+
"plugins": ["stylelint-prettier"],
|
|
4
|
+
"overrides": [
|
|
5
|
+
{
|
|
6
|
+
"files": ["**/*.less"],
|
|
7
|
+
"customSyntax": "postcss-less"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"rules": {
|
|
11
|
+
"prettier/prettier": true,
|
|
12
|
+
"order/properties-alphabetical-order": null
|
|
13
|
+
}
|
|
14
|
+
}
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# @plone/volto-slate Release Notes
|
|
2
|
+
|
|
3
|
+
<!-- Do *NOT* add new change log entries to this file.
|
|
4
|
+
Instead create a file in the news directory.
|
|
5
|
+
For helpful instructions, see:
|
|
6
|
+
https://6.docs.plone.org/contributing/index.html#change-log-entry
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
<!-- towncrier release notes start -->
|
|
10
|
+
|
|
11
|
+
## 18.0.0-alpha.10 (2024-03-14)
|
|
12
|
+
|
|
13
|
+
### Breaking
|
|
14
|
+
|
|
15
|
+
- Remove legacy `text`, `table` and `hero` blocks based in `draftJS` @sneridagh [#5846](https://github.com/plone/volto/issues/5846)
|
|
16
|
+
|
|
17
|
+
### Bugfix
|
|
18
|
+
|
|
19
|
+
- Fix other occurrences of mutable (referenced) objects when assigning the default inner `blocksConfig` object for the `grid` block, pass by value instead. sneridagh [#5859](https://github.com/plone/volto/issues/5859)
|
|
20
|
+
|
|
21
|
+
### Internal
|
|
22
|
+
|
|
23
|
+
- Fix CSS lint @sneridagh [#5849](https://github.com/plone/volto/issues/5849)
|
|
24
|
+
|
|
25
|
+
## 18.0.0-alpha.9 (2024-03-02)
|
|
26
|
+
|
|
27
|
+
### Internal
|
|
28
|
+
|
|
29
|
+
- Update dependencies @sneridagh [#5815](https://github.com/plone/volto/issues/5815)
|
|
30
|
+
|
|
31
|
+
## 18.0.0-alpha.8 (2024-03-01)
|
|
32
|
+
|
|
33
|
+
### Feature
|
|
34
|
+
|
|
35
|
+
- Upgrade Volto core to use React 18.2.0 @sneridagh [#3221](https://github.com/plone/volto/issues/3221)
|
|
36
|
+
|
|
37
|
+
## 18.0.0-alpha.7 (2024-02-22)
|
|
38
|
+
|
|
39
|
+
### Bugfix
|
|
40
|
+
|
|
41
|
+
- Fix sidebar form update. @robgietema [#5779](https://github.com/plone/volto/issues/5779)
|
|
42
|
+
|
|
43
|
+
## 18.0.0-alpha.6 (2024-01-25)
|
|
44
|
+
|
|
45
|
+
### Bugfix
|
|
46
|
+
|
|
47
|
+
- Fix code button in slate. @pbauer [#5668](https://github.com/plone/volto/issues/5668)
|
|
48
|
+
|
|
49
|
+
## 18.0.0-alpha.5 (2023-12-13)
|
|
50
|
+
|
|
51
|
+
### Feature
|
|
52
|
+
|
|
53
|
+
- Added `navRoot` and `contentType` to `restricted` key in blocks configuration. @sneridagh [#5517](https://github.com/plone/volto/issues/5517)
|
|
54
|
+
|
|
55
|
+
### Internal
|
|
56
|
+
|
|
57
|
+
- Add explicit dependency on the correct React (17.0.2) that Volto is using. Update dependency on `react-intersection-observer` @sneridagh [#5490](https://github.com/plone/volto/issues/5490)
|
|
58
|
+
|
|
59
|
+
### Documentation
|
|
60
|
+
|
|
61
|
+
- Improved grammar, style, and directly link to configuration in `volto-slate` readme. @stevepiercy [#5487](https://github.com/plone/volto/issues/5487)
|
|
62
|
+
|
|
63
|
+
## 18.0.0-alpha.4 (2023-12-02)
|
|
64
|
+
|
|
65
|
+
### Bugfix
|
|
66
|
+
|
|
67
|
+
- Fix the right order of parameters in normalizeExternalData.js @dobri1408 [#5347](https://github.com/plone/volto/issues/5347)
|
|
68
|
+
|
|
69
|
+
### Internal
|
|
70
|
+
|
|
71
|
+
- Prepare @plone/volto-slate for release, add a bit more of docs, and enable ESlint @sneridagh [#5486](https://github.com/plone/volto/issues/5486)
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Plone Foundation
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @plone/volto-slate
|
|
2
|
+
|
|
3
|
+
Implementation of the Volto text block using the [Slate](https://www.slatejs.org/) JavaScript editor framework.
|
|
4
|
+
|
|
5
|
+
This is a Volto core add-on since Volto 16.0.0.
|
|
6
|
+
It is released within Volto in the same code base.
|
|
7
|
+
|
|
8
|
+
For projects using either the Volto 16.x.x or 17.x.x series, it is *not* required to be installed as an add-on.
|
|
9
|
+
|
|
10
|
+
From Volto 18.0.0 onwards (including alphas), it is a released package as a stand-alone add-on in Volto.
|
|
11
|
+
It is declared as part of its `dependencies`.
|
|
12
|
+
|
|
13
|
+
See [`volto-slate`](https://6.docs.plone.org/volto/configuration/volto-slate/) for more information about Volto and how to use it.
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
#: editor/plugins/Link/index
|
|
15
|
+
msgid "Add link"
|
|
16
|
+
msgstr "Link hinzufügen"
|
|
17
|
+
|
|
18
|
+
#: widgets/HtmlSlateWidget
|
|
19
|
+
msgid "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."
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
#: widgets/RichTextWidgetView
|
|
23
|
+
msgid "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."
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#: blocks/Table/TableBlockEdit
|
|
27
|
+
msgid "Bottom"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
#: blocks/Table/TableBlockEdit
|
|
31
|
+
msgid "Center"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: blocks/Table/TableBlockEdit
|
|
35
|
+
#: editor/plugins/Table/index
|
|
36
|
+
msgid "Delete col"
|
|
37
|
+
msgstr "Spalte löschen"
|
|
38
|
+
|
|
39
|
+
#: blocks/Table/TableBlockEdit
|
|
40
|
+
#: editor/plugins/Table/index
|
|
41
|
+
msgid "Delete row"
|
|
42
|
+
msgstr "Zeile löschen"
|
|
43
|
+
|
|
44
|
+
#: editor/plugins/Table/index
|
|
45
|
+
msgid "Delete table"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
#: blocks/Table/TableBlockEdit
|
|
49
|
+
msgid "Divide each row into separate cells"
|
|
50
|
+
msgstr "Jede Zeile in einzelne Zellen teilen"
|
|
51
|
+
|
|
52
|
+
#: elementEditor/messages
|
|
53
|
+
msgid "Edit element"
|
|
54
|
+
msgstr "Element bearbeiten"
|
|
55
|
+
|
|
56
|
+
#: editor/plugins/AdvancedLink/index
|
|
57
|
+
#: editor/plugins/Link/index
|
|
58
|
+
msgid "Edit link"
|
|
59
|
+
msgstr "Link bearbeiten"
|
|
60
|
+
|
|
61
|
+
#: blocks/Table/TableBlockEdit
|
|
62
|
+
msgid "Fixed width table cells"
|
|
63
|
+
msgstr "Zellen mit fester Breite"
|
|
64
|
+
|
|
65
|
+
#: blocks/Table/TableBlockEdit
|
|
66
|
+
msgid "Hide headers"
|
|
67
|
+
msgstr ""
|
|
68
|
+
|
|
69
|
+
#: blocks/Table/TableBlockEdit
|
|
70
|
+
#: editor/plugins/Table/index
|
|
71
|
+
msgid "Insert col after"
|
|
72
|
+
msgstr "Spalte dahinter einfügen"
|
|
73
|
+
|
|
74
|
+
#: blocks/Table/TableBlockEdit
|
|
75
|
+
#: editor/plugins/Table/index
|
|
76
|
+
msgid "Insert col before"
|
|
77
|
+
msgstr "Spalte davor einfügen"
|
|
78
|
+
|
|
79
|
+
#: blocks/Table/TableBlockEdit
|
|
80
|
+
#: editor/plugins/Table/index
|
|
81
|
+
msgid "Insert row after"
|
|
82
|
+
msgstr "Zeile dahinter einfügen"
|
|
83
|
+
|
|
84
|
+
#: blocks/Table/TableBlockEdit
|
|
85
|
+
#: editor/plugins/Table/index
|
|
86
|
+
msgid "Insert row before"
|
|
87
|
+
msgstr "Zeile davor einfügen"
|
|
88
|
+
|
|
89
|
+
#: blocks/Table/TableBlockEdit
|
|
90
|
+
msgid "Left"
|
|
91
|
+
msgstr ""
|
|
92
|
+
|
|
93
|
+
#: blocks/Table/TableBlockEdit
|
|
94
|
+
msgid "Make the table compact"
|
|
95
|
+
msgstr "Tabelle komprimieren"
|
|
96
|
+
|
|
97
|
+
#: blocks/Table/TableBlockEdit
|
|
98
|
+
msgid "Make the table sortable"
|
|
99
|
+
msgstr ""
|
|
100
|
+
|
|
101
|
+
#: blocks/Table/TableBlockEdit
|
|
102
|
+
msgid "Middle"
|
|
103
|
+
msgstr ""
|
|
104
|
+
|
|
105
|
+
#: blocks/Text/SlashMenu
|
|
106
|
+
msgid "No matching blocks"
|
|
107
|
+
msgstr ""
|
|
108
|
+
|
|
109
|
+
#: blocks/Table/TableBlockEdit
|
|
110
|
+
msgid "Reduce complexity"
|
|
111
|
+
msgstr "Komplexität vereinfachen"
|
|
112
|
+
|
|
113
|
+
#: elementEditor/messages
|
|
114
|
+
msgid "Remove element"
|
|
115
|
+
msgstr "Element entfernen"
|
|
116
|
+
|
|
117
|
+
#: editor/plugins/AdvancedLink/index
|
|
118
|
+
msgid "Remove link"
|
|
119
|
+
msgstr "Link entferenen"
|
|
120
|
+
|
|
121
|
+
#: blocks/Table/TableBlockEdit
|
|
122
|
+
msgid "Right"
|
|
123
|
+
msgstr ""
|
|
124
|
+
|
|
125
|
+
#: blocks/Table/TableBlockEdit
|
|
126
|
+
msgid "Stripe alternate rows with color"
|
|
127
|
+
msgstr "Zeilen im Wechsel einfärben"
|
|
128
|
+
|
|
129
|
+
#: blocks/Table/TableBlockEdit
|
|
130
|
+
msgid "Table"
|
|
131
|
+
msgstr "Tabelle"
|
|
132
|
+
|
|
133
|
+
#: blocks/Table/TableBlockEdit
|
|
134
|
+
msgid "Table color inverted"
|
|
135
|
+
msgstr "Tabellenfarbe invertiert"
|
|
136
|
+
|
|
137
|
+
#: blocks/Table/TableBlockEdit
|
|
138
|
+
msgid "Top"
|
|
139
|
+
msgstr ""
|
|
140
|
+
|
|
141
|
+
#: blocks/Text/DefaultTextBlockEditor
|
|
142
|
+
#: blocks/Text/DetachedTextBlockEditor
|
|
143
|
+
msgid "Type text…"
|
|
144
|
+
msgstr "Text eingeben"
|
|
145
|
+
|
|
146
|
+
#: blocks/Table/TableBlockEdit
|
|
147
|
+
msgid "Visible only in view mode"
|
|
148
|
+
msgstr ""
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: \n"
|
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
|
5
|
+
"POT-Creation-Date: \n"
|
|
6
|
+
"PO-Revision-Date: \n"
|
|
7
|
+
"Last-Translator: \n"
|
|
8
|
+
"Language: \n"
|
|
9
|
+
"Language-Team: \n"
|
|
10
|
+
"Content-Type: \n"
|
|
11
|
+
"Content-Transfer-Encoding: \n"
|
|
12
|
+
"Plural-Forms: \n"
|
|
13
|
+
|
|
14
|
+
#: editor/plugins/Link/index
|
|
15
|
+
msgid "Add link"
|
|
16
|
+
msgstr ""
|
|
17
|
+
|
|
18
|
+
#: widgets/HtmlSlateWidget
|
|
19
|
+
msgid "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."
|
|
20
|
+
msgstr ""
|
|
21
|
+
|
|
22
|
+
#: widgets/RichTextWidgetView
|
|
23
|
+
msgid "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."
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#: blocks/Table/TableBlockEdit
|
|
27
|
+
msgid "Bottom"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
#: blocks/Table/TableBlockEdit
|
|
31
|
+
msgid "Center"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: blocks/Table/TableBlockEdit
|
|
35
|
+
#: editor/plugins/Table/index
|
|
36
|
+
msgid "Delete col"
|
|
37
|
+
msgstr ""
|
|
38
|
+
|
|
39
|
+
#: blocks/Table/TableBlockEdit
|
|
40
|
+
#: editor/plugins/Table/index
|
|
41
|
+
msgid "Delete row"
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
#: editor/plugins/Table/index
|
|
45
|
+
msgid "Delete table"
|
|
46
|
+
msgstr ""
|
|
47
|
+
|
|
48
|
+
#: blocks/Table/TableBlockEdit
|
|
49
|
+
msgid "Divide each row into separate cells"
|
|
50
|
+
msgstr ""
|
|
51
|
+
|
|
52
|
+
#: elementEditor/messages
|
|
53
|
+
msgid "Edit element"
|
|
54
|
+
msgstr ""
|
|
55
|
+
|
|
56
|
+
#: editor/plugins/AdvancedLink/index
|
|
57
|
+
#: editor/plugins/Link/index
|
|
58
|
+
msgid "Edit link"
|
|
59
|
+
msgstr ""
|
|
60
|
+
|
|
61
|
+
#: blocks/Table/TableBlockEdit
|
|
62
|
+
msgid "Fixed width table cells"
|
|
63
|
+
msgstr ""
|
|
64
|
+
|
|
65
|
+
#: blocks/Table/TableBlockEdit
|
|
66
|
+
msgid "Hide headers"
|
|
67
|
+
msgstr ""
|
|
68
|
+
|
|
69
|
+
#: blocks/Table/TableBlockEdit
|
|
70
|
+
#: editor/plugins/Table/index
|
|
71
|
+
msgid "Insert col after"
|
|
72
|
+
msgstr ""
|
|
73
|
+
|
|
74
|
+
#: blocks/Table/TableBlockEdit
|
|
75
|
+
#: editor/plugins/Table/index
|
|
76
|
+
msgid "Insert col before"
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
79
|
+
#: blocks/Table/TableBlockEdit
|
|
80
|
+
#: editor/plugins/Table/index
|
|
81
|
+
msgid "Insert row after"
|
|
82
|
+
msgstr ""
|
|
83
|
+
|
|
84
|
+
#: blocks/Table/TableBlockEdit
|
|
85
|
+
#: editor/plugins/Table/index
|
|
86
|
+
msgid "Insert row before"
|
|
87
|
+
msgstr ""
|
|
88
|
+
|
|
89
|
+
#: blocks/Table/TableBlockEdit
|
|
90
|
+
msgid "Left"
|
|
91
|
+
msgstr ""
|
|
92
|
+
|
|
93
|
+
#: blocks/Table/TableBlockEdit
|
|
94
|
+
msgid "Make the table compact"
|
|
95
|
+
msgstr ""
|
|
96
|
+
|
|
97
|
+
#: blocks/Table/TableBlockEdit
|
|
98
|
+
msgid "Make the table sortable"
|
|
99
|
+
msgstr ""
|
|
100
|
+
|
|
101
|
+
#: blocks/Table/TableBlockEdit
|
|
102
|
+
msgid "Middle"
|
|
103
|
+
msgstr ""
|
|
104
|
+
|
|
105
|
+
#: blocks/Text/SlashMenu
|
|
106
|
+
msgid "No matching blocks"
|
|
107
|
+
msgstr ""
|
|
108
|
+
|
|
109
|
+
#: blocks/Table/TableBlockEdit
|
|
110
|
+
msgid "Reduce complexity"
|
|
111
|
+
msgstr ""
|
|
112
|
+
|
|
113
|
+
#: elementEditor/messages
|
|
114
|
+
msgid "Remove element"
|
|
115
|
+
msgstr ""
|
|
116
|
+
|
|
117
|
+
#: editor/plugins/AdvancedLink/index
|
|
118
|
+
msgid "Remove link"
|
|
119
|
+
msgstr ""
|
|
120
|
+
|
|
121
|
+
#: blocks/Table/TableBlockEdit
|
|
122
|
+
msgid "Right"
|
|
123
|
+
msgstr ""
|
|
124
|
+
|
|
125
|
+
#: blocks/Table/TableBlockEdit
|
|
126
|
+
msgid "Stripe alternate rows with color"
|
|
127
|
+
msgstr ""
|
|
128
|
+
|
|
129
|
+
#: blocks/Table/TableBlockEdit
|
|
130
|
+
msgid "Table"
|
|
131
|
+
msgstr ""
|
|
132
|
+
|
|
133
|
+
#: blocks/Table/TableBlockEdit
|
|
134
|
+
msgid "Table color inverted"
|
|
135
|
+
msgstr ""
|
|
136
|
+
|
|
137
|
+
#: blocks/Table/TableBlockEdit
|
|
138
|
+
msgid "Top"
|
|
139
|
+
msgstr ""
|
|
140
|
+
|
|
141
|
+
#: blocks/Text/DefaultTextBlockEditor
|
|
142
|
+
#: blocks/Text/DetachedTextBlockEditor
|
|
143
|
+
msgid "Type text…"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: blocks/Table/TableBlockEdit
|
|
147
|
+
msgid "Visible only in view mode"
|
|
148
|
+
msgstr ""
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
msgid ""
|
|
2
|
+
msgstr ""
|
|
3
|
+
"Project-Id-Version: Plone\n"
|
|
4
|
+
"POT-Creation-Date: 2022-07-20T12:45:09.681Z\n"
|
|
5
|
+
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
|
+
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
|
+
"MIME-Version: 1.0\n"
|
|
8
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
|
9
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
10
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
11
|
+
"Language-Code: en\n"
|
|
12
|
+
"Language-Name: English\n"
|
|
13
|
+
"Preferred-Encodings: utf-8\n"
|
|
14
|
+
"Domain: volto\n"
|
|
15
|
+
|
|
16
|
+
#: editor/plugins/Link/index
|
|
17
|
+
# defaultMessage: Add link
|
|
18
|
+
msgid "Add link"
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#: widgets/HtmlSlateWidget
|
|
22
|
+
# 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.
|
|
23
|
+
msgid "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."
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#: widgets/RichTextWidgetView
|
|
27
|
+
# 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.
|
|
28
|
+
msgid "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."
|
|
29
|
+
msgstr ""
|
|
30
|
+
|
|
31
|
+
#: blocks/Table/TableBlockEdit
|
|
32
|
+
# defaultMessage: Bottom
|
|
33
|
+
msgid "Bottom"
|
|
34
|
+
msgstr ""
|
|
35
|
+
|
|
36
|
+
#: blocks/Table/TableBlockEdit
|
|
37
|
+
# defaultMessage: Center
|
|
38
|
+
msgid "Center"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
#: blocks/Table/TableBlockEdit
|
|
42
|
+
#: editor/plugins/Table/index
|
|
43
|
+
# defaultMessage: Delete col
|
|
44
|
+
msgid "Delete col"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
#: blocks/Table/TableBlockEdit
|
|
48
|
+
#: editor/plugins/Table/index
|
|
49
|
+
# defaultMessage: Delete row
|
|
50
|
+
msgid "Delete row"
|
|
51
|
+
msgstr ""
|
|
52
|
+
|
|
53
|
+
#: editor/plugins/Table/index
|
|
54
|
+
# defaultMessage: Delete table
|
|
55
|
+
msgid "Delete table"
|
|
56
|
+
msgstr ""
|
|
57
|
+
|
|
58
|
+
#: blocks/Table/TableBlockEdit
|
|
59
|
+
# defaultMessage: Divide each row into separate cells
|
|
60
|
+
msgid "Divide each row into separate cells"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: elementEditor/messages
|
|
64
|
+
# defaultMessage: Edit element
|
|
65
|
+
msgid "Edit element"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
#: editor/plugins/AdvancedLink/index
|
|
69
|
+
#: editor/plugins/Link/index
|
|
70
|
+
# defaultMessage: Edit link
|
|
71
|
+
msgid "Edit link"
|
|
72
|
+
msgstr ""
|
|
73
|
+
|
|
74
|
+
#: blocks/Table/TableBlockEdit
|
|
75
|
+
# defaultMessage: Fixed width table cells
|
|
76
|
+
msgid "Fixed width table cells"
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
79
|
+
#: blocks/Table/TableBlockEdit
|
|
80
|
+
# defaultMessage: Hide headers
|
|
81
|
+
msgid "Hide headers"
|
|
82
|
+
msgstr ""
|
|
83
|
+
|
|
84
|
+
#: blocks/Table/TableBlockEdit
|
|
85
|
+
#: editor/plugins/Table/index
|
|
86
|
+
# defaultMessage: Insert col after
|
|
87
|
+
msgid "Insert col after"
|
|
88
|
+
msgstr ""
|
|
89
|
+
|
|
90
|
+
#: blocks/Table/TableBlockEdit
|
|
91
|
+
#: editor/plugins/Table/index
|
|
92
|
+
# defaultMessage: Insert col before
|
|
93
|
+
msgid "Insert col before"
|
|
94
|
+
msgstr ""
|
|
95
|
+
|
|
96
|
+
#: blocks/Table/TableBlockEdit
|
|
97
|
+
#: editor/plugins/Table/index
|
|
98
|
+
# defaultMessage: Insert row after
|
|
99
|
+
msgid "Insert row after"
|
|
100
|
+
msgstr ""
|
|
101
|
+
|
|
102
|
+
#: blocks/Table/TableBlockEdit
|
|
103
|
+
#: editor/plugins/Table/index
|
|
104
|
+
# defaultMessage: Insert row before
|
|
105
|
+
msgid "Insert row before"
|
|
106
|
+
msgstr ""
|
|
107
|
+
|
|
108
|
+
#: blocks/Table/TableBlockEdit
|
|
109
|
+
# defaultMessage: Left
|
|
110
|
+
msgid "Left"
|
|
111
|
+
msgstr ""
|
|
112
|
+
|
|
113
|
+
#: blocks/Table/TableBlockEdit
|
|
114
|
+
# defaultMessage: Make the table compact
|
|
115
|
+
msgid "Make the table compact"
|
|
116
|
+
msgstr ""
|
|
117
|
+
|
|
118
|
+
#: blocks/Table/TableBlockEdit
|
|
119
|
+
# defaultMessage: Make the table sortable
|
|
120
|
+
msgid "Make the table sortable"
|
|
121
|
+
msgstr ""
|
|
122
|
+
|
|
123
|
+
#: blocks/Table/TableBlockEdit
|
|
124
|
+
# defaultMessage: Middle
|
|
125
|
+
msgid "Middle"
|
|
126
|
+
msgstr ""
|
|
127
|
+
|
|
128
|
+
#: blocks/Text/SlashMenu
|
|
129
|
+
# defaultMessage: No matching blocks
|
|
130
|
+
msgid "No matching blocks"
|
|
131
|
+
msgstr ""
|
|
132
|
+
|
|
133
|
+
#: blocks/Table/TableBlockEdit
|
|
134
|
+
# defaultMessage: Reduce complexity
|
|
135
|
+
msgid "Reduce complexity"
|
|
136
|
+
msgstr ""
|
|
137
|
+
|
|
138
|
+
#: elementEditor/messages
|
|
139
|
+
# defaultMessage: Remove element
|
|
140
|
+
msgid "Remove element"
|
|
141
|
+
msgstr ""
|
|
142
|
+
|
|
143
|
+
#: editor/plugins/AdvancedLink/index
|
|
144
|
+
# defaultMessage: Remove link
|
|
145
|
+
msgid "Remove link"
|
|
146
|
+
msgstr ""
|
|
147
|
+
|
|
148
|
+
#: blocks/Table/TableBlockEdit
|
|
149
|
+
# defaultMessage: Right
|
|
150
|
+
msgid "Right"
|
|
151
|
+
msgstr ""
|
|
152
|
+
|
|
153
|
+
#: blocks/Table/TableBlockEdit
|
|
154
|
+
# defaultMessage: Stripe alternate rows with color
|
|
155
|
+
msgid "Stripe alternate rows with color"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: blocks/Table/TableBlockEdit
|
|
159
|
+
# defaultMessage: Table
|
|
160
|
+
msgid "Table"
|
|
161
|
+
msgstr ""
|
|
162
|
+
|
|
163
|
+
#: blocks/Table/TableBlockEdit
|
|
164
|
+
# defaultMessage: Table color inverted
|
|
165
|
+
msgid "Table color inverted"
|
|
166
|
+
msgstr ""
|
|
167
|
+
|
|
168
|
+
#: blocks/Table/TableBlockEdit
|
|
169
|
+
# defaultMessage: Top
|
|
170
|
+
msgid "Top"
|
|
171
|
+
msgstr ""
|
|
172
|
+
|
|
173
|
+
#: blocks/Text/DefaultTextBlockEditor
|
|
174
|
+
#: blocks/Text/DetachedTextBlockEditor
|
|
175
|
+
# defaultMessage: Type text…
|
|
176
|
+
msgid "Type text…"
|
|
177
|
+
msgstr ""
|
|
178
|
+
|
|
179
|
+
#: blocks/Table/TableBlockEdit
|
|
180
|
+
# defaultMessage: Visible only in view mode
|
|
181
|
+
msgid "Visible only in view mode"
|
|
182
|
+
msgstr ""
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@plone/volto-slate",
|
|
3
|
+
"version": "18.0.0-alpha.10",
|
|
4
|
+
"description": "Slate.js integration with Volto",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"author": "European Environment Agency: IDM2 A-Team",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"volto-core-addon",
|
|
10
|
+
"volto-addon",
|
|
11
|
+
"volto-slate",
|
|
12
|
+
"volto-slate-addon",
|
|
13
|
+
"volto",
|
|
14
|
+
"plone",
|
|
15
|
+
"react"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"image-extensions": "1.1.0",
|
|
22
|
+
"is-url": "1.2.4",
|
|
23
|
+
"jsdom": "^16.6.0",
|
|
24
|
+
"react": "18.2.0",
|
|
25
|
+
"react-intersection-observer": "9.1.0",
|
|
26
|
+
"react-dom": "18.2.0",
|
|
27
|
+
"slate": "0.100.0",
|
|
28
|
+
"slate-history": "0.100.0",
|
|
29
|
+
"slate-hyperscript": "0.100.0",
|
|
30
|
+
"slate-react": "0.98.4",
|
|
31
|
+
"weak-key": "^1.0.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@testing-library/react": "9.5.0",
|
|
35
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
36
|
+
"release-it": "^17.0.0"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"dry-release": "release-it --dry-run",
|
|
40
|
+
"release": "release-it",
|
|
41
|
+
"release-major-alpha": "release-it major --preRelease=alpha",
|
|
42
|
+
"release-alpha": "release-it --preRelease=alpha"
|
|
43
|
+
}
|
|
44
|
+
}
|