@panneau/fields 4.0.1 → 4.0.3
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/es/index.js +9 -7
- package/package.json +25 -25
package/es/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import { FieldsProvider as FieldsProvider$1, ComponentsProvider, FIELDS_NAMESPACE } from '@panneau/core/contexts';
|
|
5
4
|
import fieldAutocomplete, { definition } from '@panneau/field-autocomplete';
|
|
6
5
|
import fieldCheckboxes, { definition as definition$1 } from '@panneau/field-checkboxes';
|
|
@@ -25,6 +24,7 @@ import fieldUpload, { AudioField, DocumentField, FontField, ImageField, ImagesFi
|
|
|
25
24
|
import fieldUrl, { definition as definition$l } from '@panneau/field-url';
|
|
26
25
|
import fieldResourceItem, { definition as definition$f } from '@panneau/field-resource-item';
|
|
27
26
|
import isArray from 'lodash-es/isArray';
|
|
27
|
+
import { jsx } from 'react/jsx-runtime';
|
|
28
28
|
|
|
29
29
|
var components = /*#__PURE__*/Object.freeze({
|
|
30
30
|
__proto__: null,
|
|
@@ -76,12 +76,14 @@ function FieldsProvider(_ref) {
|
|
|
76
76
|
_ref$components = _ref.components,
|
|
77
77
|
injectedComponents = _ref$components === void 0 ? DEFAULT_COMPONENTS : _ref$components,
|
|
78
78
|
children = _ref.children;
|
|
79
|
-
return /*#__PURE__*/
|
|
80
|
-
fields: [].concat(_toConsumableArray(definitions), _toConsumableArray(injectedDefinitions))
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
return /*#__PURE__*/jsx(FieldsProvider$1, {
|
|
80
|
+
fields: [].concat(_toConsumableArray(definitions), _toConsumableArray(injectedDefinitions)),
|
|
81
|
+
children: /*#__PURE__*/jsx(ComponentsProvider, {
|
|
82
|
+
namespace: FIELDS_NAMESPACE,
|
|
83
|
+
components: _objectSpread(_objectSpread({}, components), injectedComponents),
|
|
84
|
+
children: children
|
|
85
|
+
})
|
|
86
|
+
});
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
export { FieldsProvider as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/fields",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -66,34 +66,34 @@
|
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@babel/runtime": "^7.12.5",
|
|
69
|
-
"@panneau/core": "^4.0.
|
|
70
|
-
"@panneau/field-autocomplete": "^4.0.
|
|
71
|
-
"@panneau/field-checkboxes": "^4.0.
|
|
72
|
-
"@panneau/field-color": "^4.0.
|
|
73
|
-
"@panneau/field-date": "^4.0.
|
|
74
|
-
"@panneau/field-display": "^4.0.
|
|
75
|
-
"@panneau/field-embed": "^4.0.
|
|
76
|
-
"@panneau/field-fields": "^4.0.
|
|
77
|
-
"@panneau/field-html": "^4.0.
|
|
78
|
-
"@panneau/field-import": "^4.0.
|
|
79
|
-
"@panneau/field-input-group": "^4.0.
|
|
80
|
-
"@panneau/field-item": "^4.0.
|
|
81
|
-
"@panneau/field-items": "^4.0.
|
|
82
|
-
"@panneau/field-localized": "^4.0.
|
|
83
|
-
"@panneau/field-number": "^4.0.
|
|
84
|
-
"@panneau/field-radios": "^4.0.
|
|
85
|
-
"@panneau/field-resource-item": "^4.0.
|
|
86
|
-
"@panneau/field-select": "^4.0.
|
|
87
|
-
"@panneau/field-text": "^4.0.
|
|
88
|
-
"@panneau/field-toggle": "^4.0.
|
|
89
|
-
"@panneau/field-toggles": "^4.0.
|
|
90
|
-
"@panneau/field-upload": "^4.0.
|
|
91
|
-
"@panneau/field-url": "^4.0.
|
|
69
|
+
"@panneau/core": "^4.0.2",
|
|
70
|
+
"@panneau/field-autocomplete": "^4.0.2",
|
|
71
|
+
"@panneau/field-checkboxes": "^4.0.2",
|
|
72
|
+
"@panneau/field-color": "^4.0.2",
|
|
73
|
+
"@panneau/field-date": "^4.0.2",
|
|
74
|
+
"@panneau/field-display": "^4.0.2",
|
|
75
|
+
"@panneau/field-embed": "^4.0.2",
|
|
76
|
+
"@panneau/field-fields": "^4.0.2",
|
|
77
|
+
"@panneau/field-html": "^4.0.2",
|
|
78
|
+
"@panneau/field-import": "^4.0.2",
|
|
79
|
+
"@panneau/field-input-group": "^4.0.2",
|
|
80
|
+
"@panneau/field-item": "^4.0.2",
|
|
81
|
+
"@panneau/field-items": "^4.0.2",
|
|
82
|
+
"@panneau/field-localized": "^4.0.2",
|
|
83
|
+
"@panneau/field-number": "^4.0.2",
|
|
84
|
+
"@panneau/field-radios": "^4.0.2",
|
|
85
|
+
"@panneau/field-resource-item": "^4.0.3",
|
|
86
|
+
"@panneau/field-select": "^4.0.2",
|
|
87
|
+
"@panneau/field-text": "^4.0.2",
|
|
88
|
+
"@panneau/field-toggle": "^4.0.2",
|
|
89
|
+
"@panneau/field-toggles": "^4.0.2",
|
|
90
|
+
"@panneau/field-upload": "^4.0.3",
|
|
91
|
+
"@panneau/field-url": "^4.0.2",
|
|
92
92
|
"lodash-es": "^4.17.21",
|
|
93
93
|
"prop-types": "^15.7.2"
|
|
94
94
|
},
|
|
95
95
|
"publishConfig": {
|
|
96
96
|
"access": "public"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "26b5ab7536b0e8c3197d40d302fc2681e7c7122e"
|
|
99
99
|
}
|