@plone/volto 14.0.2 → 14.2.1
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/CHANGELOG.md +46 -0
- package/README.md +24 -3
- package/locales/ca/LC_MESSAGES/volto.po +12 -2
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +12 -2
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +12 -2
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +12 -2
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +12 -2
- package/locales/eu.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +12 -2
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +12 -2
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +12 -2
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +12 -2
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +12 -2
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +12 -2
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +12 -2
- package/locales/ro.json +1 -1
- package/locales/volto.pot +12 -2
- package/package.json +3 -2
- package/src/actions/vocabularies/vocabularies.js +15 -3
- package/src/components/index.js +1 -0
- package/src/components/manage/Add/Add.jsx +1 -0
- package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Listing/getAsyncData.js +1 -1
- package/src/components/manage/Blocks/Text/Edit.jsx +19 -0
- package/src/components/manage/Edit/Edit.jsx +1 -0
- package/src/components/manage/Form/Form.jsx +32 -6
- package/src/components/manage/Form/UndoToolbar.jsx +78 -0
- package/src/components/manage/Multilingual/TranslationObject.jsx +1 -0
- package/src/components/manage/Widgets/AlignWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/ArrayWidget.jsx +88 -88
- package/src/components/manage/Widgets/ArrayWidget.stories.jsx +37 -64
- package/src/components/manage/Widgets/CheckboxWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/DatetimeWidget.jsx +65 -74
- package/src/components/manage/Widgets/DatetimeWidget.stories.jsx +7 -23
- package/src/components/manage/Widgets/DatetimeWidget.test.jsx +17 -15
- package/src/components/manage/Widgets/EmailWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/FileWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/NumberWidget.stories.jsx +5 -23
- package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -32
- package/src/components/manage/Widgets/ObjectListWidget.stories.js +44 -44
- package/src/components/manage/Widgets/ObjectWidget.stories.jsx +13 -28
- package/src/components/manage/Widgets/PasswordWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/QueryWidget.jsx +2 -2
- package/src/components/manage/Widgets/QueryWidget.stories.jsx +1637 -22
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +79 -48
- package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +16 -0
- package/src/components/manage/Widgets/SelectAutocompleteWidget.stories.jsx +161 -0
- package/src/components/manage/Widgets/SelectUtils.js +90 -30
- package/src/components/manage/Widgets/SelectUtils.test.jsx +76 -1
- package/src/components/manage/Widgets/SelectWidget.jsx +26 -37
- package/src/components/manage/Widgets/SelectWidget.stories.jsx +96 -28
- package/src/components/manage/Widgets/TextWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TextareaWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TokenWidget.jsx +19 -17
- package/src/components/manage/Widgets/TokenWidget.stories.jsx +141 -0
- package/src/components/manage/Widgets/UrlWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/VocabularyTermsWidget.stories.js +27 -64
- package/src/components/manage/Widgets/WysiwygWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/story.jsx +38 -0
- package/src/components/theme/ContactForm/ContactForm.jsx +1 -0
- package/src/components/theme/ContactForm/ContactForm.stories.jsx +126 -0
- package/src/components/theme/CorsError/CorsError.jsx +2 -2
- package/src/components/theme/Navigation/NavItem.jsx +3 -1
- package/src/config/Blocks.jsx +8 -1
- package/src/config/Loadables.jsx +2 -0
- package/src/config/index.js +3 -0
- package/src/helpers/UndoManager/useUndoManager.js +102 -0
- package/src/helpers/index.js +1 -0
- package/src/reducers/vocabularies/vocabularies.js +13 -2
- package/src/store.js +1 -1
- package/src/storybook.jsx +55 -0
- package/theme/themes/pastanaga/extras/time-picker-overrides.less +1 -1
- package/include/python3.8/Python-ast.h +0 -715
- package/include/python3.8/Python.h +0 -160
- package/include/python3.8/abstract.h +0 -844
- package/include/python3.8/asdl.h +0 -46
- package/include/python3.8/ast.h +0 -37
- package/include/python3.8/bitset.h +0 -23
- package/include/python3.8/bltinmodule.h +0 -14
- package/include/python3.8/boolobject.h +0 -34
- package/include/python3.8/bytearrayobject.h +0 -62
- package/include/python3.8/bytes_methods.h +0 -69
- package/include/python3.8/bytesobject.h +0 -224
- package/include/python3.8/cellobject.h +0 -29
- package/include/python3.8/ceval.h +0 -231
- package/include/python3.8/classobject.h +0 -59
- package/include/python3.8/code.h +0 -180
- package/include/python3.8/codecs.h +0 -240
- package/include/python3.8/compile.h +0 -106
- package/include/python3.8/complexobject.h +0 -69
- package/include/python3.8/context.h +0 -84
- package/include/python3.8/cpython/abstract.h +0 -319
- package/include/python3.8/cpython/dictobject.h +0 -94
- package/include/python3.8/cpython/fileobject.h +0 -24
- package/include/python3.8/cpython/initconfig.h +0 -434
- package/include/python3.8/cpython/interpreteridobject.h +0 -19
- package/include/python3.8/cpython/object.h +0 -470
- package/include/python3.8/cpython/objimpl.h +0 -113
- package/include/python3.8/cpython/pyerrors.h +0 -188
- package/include/python3.8/cpython/pylifecycle.h +0 -78
- package/include/python3.8/cpython/pymem.h +0 -108
- package/include/python3.8/cpython/pystate.h +0 -252
- package/include/python3.8/cpython/sysmodule.h +0 -21
- package/include/python3.8/cpython/traceback.h +0 -22
- package/include/python3.8/cpython/tupleobject.h +0 -36
- package/include/python3.8/cpython/unicodeobject.h +0 -1239
- package/include/python3.8/datetime.h +0 -259
- package/include/python3.8/descrobject.h +0 -108
- package/include/python3.8/dictobject.h +0 -94
- package/include/python3.8/dtoa.h +0 -19
- package/include/python3.8/dynamic_annotations.h +0 -499
- package/include/python3.8/enumobject.h +0 -17
- package/include/python3.8/errcode.h +0 -38
- package/include/python3.8/eval.h +0 -37
- package/include/python3.8/fileobject.h +0 -49
- package/include/python3.8/fileutils.h +0 -185
- package/include/python3.8/floatobject.h +0 -130
- package/include/python3.8/frameobject.h +0 -92
- package/include/python3.8/funcobject.h +0 -104
- package/include/python3.8/genobject.h +0 -109
- package/include/python3.8/graminit.h +0 -94
- package/include/python3.8/grammar.h +0 -77
- package/include/python3.8/import.h +0 -149
- package/include/python3.8/internal/pycore_accu.h +0 -39
- package/include/python3.8/internal/pycore_atomic.h +0 -558
- package/include/python3.8/internal/pycore_ceval.h +0 -37
- package/include/python3.8/internal/pycore_code.h +0 -27
- package/include/python3.8/internal/pycore_condvar.h +0 -95
- package/include/python3.8/internal/pycore_context.h +0 -42
- package/include/python3.8/internal/pycore_fileutils.h +0 -54
- package/include/python3.8/internal/pycore_getopt.h +0 -22
- package/include/python3.8/internal/pycore_gil.h +0 -50
- package/include/python3.8/internal/pycore_hamt.h +0 -116
- package/include/python3.8/internal/pycore_initconfig.h +0 -166
- package/include/python3.8/internal/pycore_object.h +0 -81
- package/include/python3.8/internal/pycore_pathconfig.h +0 -75
- package/include/python3.8/internal/pycore_pyerrors.h +0 -62
- package/include/python3.8/internal/pycore_pyhash.h +0 -10
- package/include/python3.8/internal/pycore_pylifecycle.h +0 -118
- package/include/python3.8/internal/pycore_pymem.h +0 -212
- package/include/python3.8/internal/pycore_pystate.h +0 -326
- package/include/python3.8/internal/pycore_traceback.h +0 -96
- package/include/python3.8/internal/pycore_tupleobject.h +0 -19
- package/include/python3.8/internal/pycore_warnings.h +0 -25
- package/include/python3.8/interpreteridobject.h +0 -17
- package/include/python3.8/intrcheck.h +0 -33
- package/include/python3.8/iterobject.h +0 -25
- package/include/python3.8/listobject.h +0 -81
- package/include/python3.8/longintrepr.h +0 -99
- package/include/python3.8/longobject.h +0 -242
- package/include/python3.8/marshal.h +0 -28
- package/include/python3.8/memoryobject.h +0 -72
- package/include/python3.8/methodobject.h +0 -131
- package/include/python3.8/modsupport.h +0 -248
- package/include/python3.8/moduleobject.h +0 -90
- package/include/python3.8/namespaceobject.h +0 -19
- package/include/python3.8/node.h +0 -48
- package/include/python3.8/object.h +0 -753
- package/include/python3.8/objimpl.h +0 -284
- package/include/python3.8/odictobject.h +0 -43
- package/include/python3.8/opcode.h +0 -148
- package/include/python3.8/osdefs.h +0 -51
- package/include/python3.8/osmodule.h +0 -17
- package/include/python3.8/parsetok.h +0 -110
- package/include/python3.8/patchlevel.h +0 -35
- package/include/python3.8/picklebufobject.h +0 -31
- package/include/python3.8/py_curses.h +0 -100
- package/include/python3.8/pyarena.h +0 -64
- package/include/python3.8/pycapsule.h +0 -59
- package/include/python3.8/pyconfig.h +0 -1665
- package/include/python3.8/pyctype.h +0 -39
- package/include/python3.8/pydebug.h +0 -40
- package/include/python3.8/pydtrace.h +0 -59
- package/include/python3.8/pydtrace_probes.h +0 -228
- package/include/python3.8/pyerrors.h +0 -335
- package/include/python3.8/pyexpat.h +0 -55
- package/include/python3.8/pyfpe.h +0 -12
- package/include/python3.8/pyhash.h +0 -145
- package/include/python3.8/pylifecycle.h +0 -75
- package/include/python3.8/pymacconfig.h +0 -102
- package/include/python3.8/pymacro.h +0 -106
- package/include/python3.8/pymath.h +0 -230
- package/include/python3.8/pymem.h +0 -150
- package/include/python3.8/pyport.h +0 -850
- package/include/python3.8/pystate.h +0 -136
- package/include/python3.8/pystrcmp.h +0 -23
- package/include/python3.8/pystrhex.h +0 -22
- package/include/python3.8/pystrtod.h +0 -45
- package/include/python3.8/pythonrun.h +0 -210
- package/include/python3.8/pythread.h +0 -161
- package/include/python3.8/pytime.h +0 -246
- package/include/python3.8/rangeobject.h +0 -27
- package/include/python3.8/setobject.h +0 -108
- package/include/python3.8/sliceobject.h +0 -65
- package/include/python3.8/structmember.h +0 -74
- package/include/python3.8/structseq.h +0 -49
- package/include/python3.8/symtable.h +0 -123
- package/include/python3.8/sysmodule.h +0 -41
- package/include/python3.8/token.h +0 -92
- package/include/python3.8/traceback.h +0 -28
- package/include/python3.8/tracemalloc.h +0 -38
- package/include/python3.8/tupleobject.h +0 -48
- package/include/python3.8/typeslots.h +0 -85
- package/include/python3.8/ucnhash.h +0 -36
- package/include/python3.8/unicodeobject.h +0 -1044
- package/include/python3.8/warnings.h +0 -67
- package/include/python3.8/weakrefobject.h +0 -86
- package/src/components/theme/ContactForm/ContactForm.stories.mdx +0 -39
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
#ifndef Py_WARNINGS_H
|
|
2
|
-
#define Py_WARNINGS_H
|
|
3
|
-
#ifdef __cplusplus
|
|
4
|
-
extern "C" {
|
|
5
|
-
#endif
|
|
6
|
-
|
|
7
|
-
#ifndef Py_LIMITED_API
|
|
8
|
-
PyAPI_FUNC(PyObject*) _PyWarnings_Init(void);
|
|
9
|
-
#endif
|
|
10
|
-
|
|
11
|
-
PyAPI_FUNC(int) PyErr_WarnEx(
|
|
12
|
-
PyObject *category,
|
|
13
|
-
const char *message, /* UTF-8 encoded string */
|
|
14
|
-
Py_ssize_t stack_level);
|
|
15
|
-
PyAPI_FUNC(int) PyErr_WarnFormat(
|
|
16
|
-
PyObject *category,
|
|
17
|
-
Py_ssize_t stack_level,
|
|
18
|
-
const char *format, /* ASCII-encoded string */
|
|
19
|
-
...);
|
|
20
|
-
|
|
21
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
|
|
22
|
-
/* Emit a ResourceWarning warning */
|
|
23
|
-
PyAPI_FUNC(int) PyErr_ResourceWarning(
|
|
24
|
-
PyObject *source,
|
|
25
|
-
Py_ssize_t stack_level,
|
|
26
|
-
const char *format, /* ASCII-encoded string */
|
|
27
|
-
...);
|
|
28
|
-
#endif
|
|
29
|
-
#ifndef Py_LIMITED_API
|
|
30
|
-
PyAPI_FUNC(int) PyErr_WarnExplicitObject(
|
|
31
|
-
PyObject *category,
|
|
32
|
-
PyObject *message,
|
|
33
|
-
PyObject *filename,
|
|
34
|
-
int lineno,
|
|
35
|
-
PyObject *module,
|
|
36
|
-
PyObject *registry);
|
|
37
|
-
#endif
|
|
38
|
-
PyAPI_FUNC(int) PyErr_WarnExplicit(
|
|
39
|
-
PyObject *category,
|
|
40
|
-
const char *message, /* UTF-8 encoded string */
|
|
41
|
-
const char *filename, /* decoded from the filesystem encoding */
|
|
42
|
-
int lineno,
|
|
43
|
-
const char *module, /* UTF-8 encoded string */
|
|
44
|
-
PyObject *registry);
|
|
45
|
-
|
|
46
|
-
#ifndef Py_LIMITED_API
|
|
47
|
-
PyAPI_FUNC(int)
|
|
48
|
-
PyErr_WarnExplicitFormat(PyObject *category,
|
|
49
|
-
const char *filename, int lineno,
|
|
50
|
-
const char *module, PyObject *registry,
|
|
51
|
-
const char *format, ...);
|
|
52
|
-
#endif
|
|
53
|
-
|
|
54
|
-
/* DEPRECATED: Use PyErr_WarnEx() instead. */
|
|
55
|
-
#ifndef Py_LIMITED_API
|
|
56
|
-
#define PyErr_Warn(category, msg) PyErr_WarnEx(category, msg, 1)
|
|
57
|
-
#endif
|
|
58
|
-
|
|
59
|
-
#ifndef Py_LIMITED_API
|
|
60
|
-
void _PyErr_WarnUnawaitedCoroutine(PyObject *coro);
|
|
61
|
-
#endif
|
|
62
|
-
|
|
63
|
-
#ifdef __cplusplus
|
|
64
|
-
}
|
|
65
|
-
#endif
|
|
66
|
-
#endif /* !Py_WARNINGS_H */
|
|
67
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* Weak references objects for Python. */
|
|
2
|
-
|
|
3
|
-
#ifndef Py_WEAKREFOBJECT_H
|
|
4
|
-
#define Py_WEAKREFOBJECT_H
|
|
5
|
-
#ifdef __cplusplus
|
|
6
|
-
extern "C" {
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
typedef struct _PyWeakReference PyWeakReference;
|
|
11
|
-
|
|
12
|
-
/* PyWeakReference is the base struct for the Python ReferenceType, ProxyType,
|
|
13
|
-
* and CallableProxyType.
|
|
14
|
-
*/
|
|
15
|
-
#ifndef Py_LIMITED_API
|
|
16
|
-
struct _PyWeakReference {
|
|
17
|
-
PyObject_HEAD
|
|
18
|
-
|
|
19
|
-
/* The object to which this is a weak reference, or Py_None if none.
|
|
20
|
-
* Note that this is a stealth reference: wr_object's refcount is
|
|
21
|
-
* not incremented to reflect this pointer.
|
|
22
|
-
*/
|
|
23
|
-
PyObject *wr_object;
|
|
24
|
-
|
|
25
|
-
/* A callable to invoke when wr_object dies, or NULL if none. */
|
|
26
|
-
PyObject *wr_callback;
|
|
27
|
-
|
|
28
|
-
/* A cache for wr_object's hash code. As usual for hashes, this is -1
|
|
29
|
-
* if the hash code isn't known yet.
|
|
30
|
-
*/
|
|
31
|
-
Py_hash_t hash;
|
|
32
|
-
|
|
33
|
-
/* If wr_object is weakly referenced, wr_object has a doubly-linked NULL-
|
|
34
|
-
* terminated list of weak references to it. These are the list pointers.
|
|
35
|
-
* If wr_object goes away, wr_object is set to Py_None, and these pointers
|
|
36
|
-
* have no meaning then.
|
|
37
|
-
*/
|
|
38
|
-
PyWeakReference *wr_prev;
|
|
39
|
-
PyWeakReference *wr_next;
|
|
40
|
-
};
|
|
41
|
-
#endif
|
|
42
|
-
|
|
43
|
-
PyAPI_DATA(PyTypeObject) _PyWeakref_RefType;
|
|
44
|
-
PyAPI_DATA(PyTypeObject) _PyWeakref_ProxyType;
|
|
45
|
-
PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType;
|
|
46
|
-
|
|
47
|
-
#define PyWeakref_CheckRef(op) PyObject_TypeCheck(op, &_PyWeakref_RefType)
|
|
48
|
-
#define PyWeakref_CheckRefExact(op) \
|
|
49
|
-
(Py_TYPE(op) == &_PyWeakref_RefType)
|
|
50
|
-
#define PyWeakref_CheckProxy(op) \
|
|
51
|
-
((Py_TYPE(op) == &_PyWeakref_ProxyType) || \
|
|
52
|
-
(Py_TYPE(op) == &_PyWeakref_CallableProxyType))
|
|
53
|
-
|
|
54
|
-
#define PyWeakref_Check(op) \
|
|
55
|
-
(PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op))
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob,
|
|
59
|
-
PyObject *callback);
|
|
60
|
-
PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob,
|
|
61
|
-
PyObject *callback);
|
|
62
|
-
PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref);
|
|
63
|
-
|
|
64
|
-
#ifndef Py_LIMITED_API
|
|
65
|
-
PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head);
|
|
66
|
-
|
|
67
|
-
PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);
|
|
68
|
-
#endif
|
|
69
|
-
|
|
70
|
-
/* Explanation for the Py_REFCNT() check: when a weakref's target is part
|
|
71
|
-
of a long chain of deallocations which triggers the trashcan mechanism,
|
|
72
|
-
clearing the weakrefs can be delayed long after the target's refcount
|
|
73
|
-
has dropped to zero. In the meantime, code accessing the weakref will
|
|
74
|
-
be able to "see" the target object even though it is supposed to be
|
|
75
|
-
unreachable. See issue #16602. */
|
|
76
|
-
|
|
77
|
-
#define PyWeakref_GET_OBJECT(ref) \
|
|
78
|
-
(Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \
|
|
79
|
-
? ((PyWeakReference *)(ref))->wr_object \
|
|
80
|
-
: Py_None)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
#ifdef __cplusplus
|
|
84
|
-
}
|
|
85
|
-
#endif
|
|
86
|
-
#endif /* !Py_WEAKREFOBJECT_H */
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Meta, Story, Canvas, ArgsTable } from '@storybook/addon-docs/blocks';
|
|
2
|
-
import { ContactFormComponent } from './ContactForm';
|
|
3
|
-
import Wrapper from '@plone/volto/storybook';
|
|
4
|
-
import { defineMessages, injectIntl } from 'react-intl';
|
|
5
|
-
|
|
6
|
-
<Meta
|
|
7
|
-
title="Contact form"
|
|
8
|
-
argTypes={{
|
|
9
|
-
error: { control: 'text' },
|
|
10
|
-
}}
|
|
11
|
-
/>
|
|
12
|
-
|
|
13
|
-
# Contact form
|
|
14
|
-
|
|
15
|
-
```jsx static
|
|
16
|
-
<ContactForm error={{message : 'Something'}} loading={false} loaded={false} />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
export const ContactForm = (props) => {
|
|
20
|
-
const IntlContactFormComponent = injectIntl(ContactFormComponent);
|
|
21
|
-
return (
|
|
22
|
-
<Wrapper>
|
|
23
|
-
<div id="toolbar" style={{display: "none"}} />
|
|
24
|
-
<IntlContactFormComponent
|
|
25
|
-
{...props}
|
|
26
|
-
pathname="/contact"
|
|
27
|
-
error={props.error ? {message: props.error} : null}
|
|
28
|
-
/>
|
|
29
|
-
</Wrapper>
|
|
30
|
-
)
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
<Story name="Contact form">
|
|
34
|
-
{ContactForm.bind({})}
|
|
35
|
-
</Story>
|
|
36
|
-
|
|
37
|
-
## Props
|
|
38
|
-
|
|
39
|
-
<ArgsTable of={ContactForm} />
|