@panneau/fields 4.0.38 → 4.0.40-alpha.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/dist/index.js +57 -20
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { FieldsProvider as FieldsProvider$1, ComponentsProvider, FIELDS_NAMESPACE } from '@panneau/core/contexts';
|
|
1
|
+
import { c } from 'react/compiler-runtime';
|
|
2
|
+
import { ComponentsProvider, FIELDS_NAMESPACE, FieldsProvider as FieldsProvider$1 } from '@panneau/core/contexts';
|
|
4
3
|
import fieldAutocomplete, { definition } from '@panneau/field-autocomplete';
|
|
5
4
|
import fieldCheckboxes, { definition as definition$1 } from '@panneau/field-checkboxes';
|
|
6
5
|
import fieldColor, { definition as definition$2 } from '@panneau/field-color';
|
|
@@ -64,26 +63,64 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
64
63
|
Video: VideoField
|
|
65
64
|
});
|
|
66
65
|
|
|
67
|
-
var definitions = [definition, definition$1, definition$2, definition$3, definition$4, definition$5, definition$6, definition$7, definition$8, definition$9, definition$a, definition$b, definition$c, definition$d, definition$e, definition$f, definition$g, definition$h, definition$i, definition$j, definition$k, definition$l].reduce(
|
|
68
|
-
return [].concat(_toConsumableArray(allFields), _toConsumableArray(isArray(definition) ? definition : [definition]));
|
|
69
|
-
}, []);
|
|
66
|
+
var definitions = [definition, definition$1, definition$2, definition$3, definition$4, definition$5, definition$6, definition$7, definition$8, definition$9, definition$a, definition$b, definition$c, definition$d, definition$e, definition$f, definition$g, definition$h, definition$i, definition$j, definition$k, definition$l].reduce((allFields, definition) => [...allFields, ...(isArray(definition) ? definition : [definition])], []);
|
|
70
67
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
function FieldsProvider(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
children
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
const DEFAULT_DEFINITIONS = [];
|
|
69
|
+
const DEFAULT_COMPONENTS = {};
|
|
70
|
+
function FieldsProvider(t0) {
|
|
71
|
+
const $ = c(10);
|
|
72
|
+
const {
|
|
73
|
+
definitions: t1,
|
|
74
|
+
components: t2,
|
|
75
|
+
children
|
|
76
|
+
} = t0;
|
|
77
|
+
const injectedDefinitions = t1 === undefined ? DEFAULT_DEFINITIONS : t1;
|
|
78
|
+
const injectedComponents = t2 === undefined ? DEFAULT_COMPONENTS : t2;
|
|
79
|
+
let t3;
|
|
80
|
+
if ($[0] !== injectedDefinitions) {
|
|
81
|
+
t3 = [...definitions, ...injectedDefinitions];
|
|
82
|
+
$[0] = injectedDefinitions;
|
|
83
|
+
$[1] = t3;
|
|
84
|
+
} else {
|
|
85
|
+
t3 = $[1];
|
|
86
|
+
}
|
|
87
|
+
let t4;
|
|
88
|
+
if ($[2] !== injectedComponents) {
|
|
89
|
+
t4 = {
|
|
90
|
+
...components,
|
|
91
|
+
...injectedComponents
|
|
92
|
+
};
|
|
93
|
+
$[2] = injectedComponents;
|
|
94
|
+
$[3] = t4;
|
|
95
|
+
} else {
|
|
96
|
+
t4 = $[3];
|
|
97
|
+
}
|
|
98
|
+
let t5;
|
|
99
|
+
if ($[4] !== children || $[5] !== t4) {
|
|
100
|
+
t5 = /*#__PURE__*/jsx(ComponentsProvider, {
|
|
82
101
|
namespace: FIELDS_NAMESPACE,
|
|
83
|
-
components:
|
|
102
|
+
components: t4,
|
|
84
103
|
children: children
|
|
85
|
-
})
|
|
86
|
-
|
|
104
|
+
});
|
|
105
|
+
$[4] = children;
|
|
106
|
+
$[5] = t4;
|
|
107
|
+
$[6] = t5;
|
|
108
|
+
} else {
|
|
109
|
+
t5 = $[6];
|
|
110
|
+
}
|
|
111
|
+
let t6;
|
|
112
|
+
if ($[7] !== t3 || $[8] !== t5) {
|
|
113
|
+
t6 = /*#__PURE__*/jsx(FieldsProvider$1, {
|
|
114
|
+
fields: t3,
|
|
115
|
+
children: t5
|
|
116
|
+
});
|
|
117
|
+
$[7] = t3;
|
|
118
|
+
$[8] = t5;
|
|
119
|
+
$[9] = t6;
|
|
120
|
+
} else {
|
|
121
|
+
t6 = $[9];
|
|
122
|
+
}
|
|
123
|
+
return t6;
|
|
87
124
|
}
|
|
88
125
|
|
|
89
126
|
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.40-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -65,33 +65,33 @@
|
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@babel/runtime": "^7.28.6",
|
|
68
|
-
"@panneau/core": "^4.0.
|
|
69
|
-
"@panneau/field-autocomplete": "^4.0.
|
|
70
|
-
"@panneau/field-checkboxes": "^4.0.
|
|
71
|
-
"@panneau/field-color": "^4.0.
|
|
72
|
-
"@panneau/field-date": "^4.0.
|
|
73
|
-
"@panneau/field-display": "^4.0.
|
|
74
|
-
"@panneau/field-embed": "^4.0.
|
|
75
|
-
"@panneau/field-fields": "^4.0.
|
|
76
|
-
"@panneau/field-html": "^4.0.
|
|
77
|
-
"@panneau/field-import": "^4.0.
|
|
78
|
-
"@panneau/field-input-group": "^4.0.
|
|
79
|
-
"@panneau/field-item": "^4.0.
|
|
80
|
-
"@panneau/field-items": "^4.0.
|
|
81
|
-
"@panneau/field-localized": "^4.0.
|
|
82
|
-
"@panneau/field-number": "^4.0.
|
|
83
|
-
"@panneau/field-radios": "^4.0.
|
|
84
|
-
"@panneau/field-resource-item": "^4.0.
|
|
85
|
-
"@panneau/field-select": "^4.0.
|
|
86
|
-
"@panneau/field-text": "^4.0.
|
|
87
|
-
"@panneau/field-toggle": "^4.0.
|
|
88
|
-
"@panneau/field-toggles": "^4.0.
|
|
89
|
-
"@panneau/field-upload": "^4.0.
|
|
90
|
-
"@panneau/field-url": "^4.0.
|
|
68
|
+
"@panneau/core": "^4.0.40-alpha.1",
|
|
69
|
+
"@panneau/field-autocomplete": "^4.0.40-alpha.1",
|
|
70
|
+
"@panneau/field-checkboxes": "^4.0.40-alpha.1",
|
|
71
|
+
"@panneau/field-color": "^4.0.40-alpha.1",
|
|
72
|
+
"@panneau/field-date": "^4.0.40-alpha.1",
|
|
73
|
+
"@panneau/field-display": "^4.0.40-alpha.1",
|
|
74
|
+
"@panneau/field-embed": "^4.0.40-alpha.1",
|
|
75
|
+
"@panneau/field-fields": "^4.0.40-alpha.1",
|
|
76
|
+
"@panneau/field-html": "^4.0.40-alpha.1",
|
|
77
|
+
"@panneau/field-import": "^4.0.40-alpha.1",
|
|
78
|
+
"@panneau/field-input-group": "^4.0.40-alpha.1",
|
|
79
|
+
"@panneau/field-item": "^4.0.40-alpha.1",
|
|
80
|
+
"@panneau/field-items": "^4.0.40-alpha.1",
|
|
81
|
+
"@panneau/field-localized": "^4.0.40-alpha.1",
|
|
82
|
+
"@panneau/field-number": "^4.0.40-alpha.1",
|
|
83
|
+
"@panneau/field-radios": "^4.0.40-alpha.1",
|
|
84
|
+
"@panneau/field-resource-item": "^4.0.40-alpha.1",
|
|
85
|
+
"@panneau/field-select": "^4.0.40-alpha.1",
|
|
86
|
+
"@panneau/field-text": "^4.0.40-alpha.1",
|
|
87
|
+
"@panneau/field-toggle": "^4.0.40-alpha.1",
|
|
88
|
+
"@panneau/field-toggles": "^4.0.40-alpha.1",
|
|
89
|
+
"@panneau/field-upload": "^4.0.40-alpha.1",
|
|
90
|
+
"@panneau/field-url": "^4.0.40-alpha.1",
|
|
91
91
|
"lodash": "^4.17.21"
|
|
92
92
|
},
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "66520f92373b3aa371222b354d60ed3cf3d20c96"
|
|
97
97
|
}
|