@box/metadata-template-editor 1.20.4 → 1.20.6
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/esm/index.js +15 -15
- package/dist/esm/lib/components/metadata-field-configurator/context/field-configurator-context.js +3 -3
- package/dist/esm/lib/components/metadata-template-editor-modal/metadata-template-editor-modal.js +3 -3
- package/dist/esm/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.js +1 -1
- package/package.json +7 -7
package/dist/esm/index.js
CHANGED
|
@@ -2,33 +2,33 @@ import { MetadataTemplateEditor as a } from "./lib/metadata-template-editor.js";
|
|
|
2
2
|
import { b as r, A as i, E as l, c as d, F as p, M as s, d as m, T as x, a as F } from "../chunks/types.js";
|
|
3
3
|
import { FieldTypeTiles as n } from "./lib/components/field-type-tiles/field-type-tiles.js";
|
|
4
4
|
import { MetadataFieldList as M, MetadataFieldList as u } from "./lib/components/metadata-field-list/metadata-field-list.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { MetadataFieldConfigurator as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { FieldExtensionsContext as c, useFieldExtensions as y } from "./lib/components/metadata-field-configurator/context/field-extensions-context.js";
|
|
6
|
+
import { FieldSelector as S } from "./lib/components/field-selector/field-selector.js";
|
|
7
|
+
import { FieldTypeDropdown as D } from "./lib/components/field-type-dropdown/field-type-dropdown.js";
|
|
8
|
+
import { MetadataFieldConfigurator as C } from "./lib/components/metadata-field-configurator/metadata-field-configurator.js";
|
|
9
|
+
import { MetadataTemplateEditorModal as g } from "./lib/components/metadata-template-editor-modal/metadata-template-editor-modal.js";
|
|
10
|
+
import { createDefaultFieldValues as w } from "./lib/components/metadata-field-configurator/utils.js";
|
|
11
|
+
import { useTemplateFieldSchema as j } from "./lib/components/metadata-field-configurator/hooks/useTemplateFieldSchema.js";
|
|
12
12
|
export {
|
|
13
13
|
r as AllOps,
|
|
14
14
|
i as ApiMetadataTemplateFieldType,
|
|
15
15
|
l as EnumOperations,
|
|
16
|
-
|
|
16
|
+
c as FieldExtensionsContext,
|
|
17
17
|
d as FieldOperations,
|
|
18
|
-
|
|
18
|
+
S as FieldSelector,
|
|
19
19
|
p as FieldType,
|
|
20
|
-
|
|
20
|
+
D as FieldTypeDropdown,
|
|
21
21
|
n as FieldTypeTiles,
|
|
22
|
-
|
|
22
|
+
C as MetadataFieldConfigurator,
|
|
23
23
|
M as MetadataFieldList,
|
|
24
24
|
u as MetadataFieldListDefault,
|
|
25
25
|
a as MetadataTemplateEditor,
|
|
26
|
-
|
|
26
|
+
g as MetadataTemplateEditorModal,
|
|
27
27
|
s as MetadataTemplateEditorMode,
|
|
28
28
|
m as MultiSelectOperations,
|
|
29
29
|
x as TaxonomySelection,
|
|
30
30
|
F as TemplateOperations,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
w as createDefaultFieldValues,
|
|
32
|
+
y as useFieldExtensions,
|
|
33
|
+
j as useTemplateFieldSchema
|
|
34
34
|
};
|
package/dist/esm/lib/components/metadata-field-configurator/context/field-configurator-context.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import c from "lodash/cloneDeep";
|
|
2
2
|
import i from "lodash/set";
|
|
3
|
-
import { createContext as P,
|
|
3
|
+
import { createContext as P, useState as l, useCallback as n, useMemo as j, useContext as k } from "react";
|
|
4
4
|
import { jsx as y } from "react/jsx-runtime";
|
|
5
5
|
const V = /* @__PURE__ */ P(null);
|
|
6
6
|
function q() {
|
|
7
|
-
const s =
|
|
7
|
+
const s = k(V);
|
|
8
8
|
if (!s)
|
|
9
9
|
throw new Error("useFieldConfigurator must be used within a FieldConfiguratorContext provider");
|
|
10
10
|
return s;
|
|
@@ -40,7 +40,7 @@ const z = ({
|
|
|
40
40
|
const r = c(o);
|
|
41
41
|
return i(r, e.name, !0), r;
|
|
42
42
|
});
|
|
43
|
-
}, []), b =
|
|
43
|
+
}, []), b = j(() => ({
|
|
44
44
|
values: d,
|
|
45
45
|
errors: m,
|
|
46
46
|
touched: f,
|
package/dist/esm/lib/components/metadata-template-editor-modal/metadata-template-editor-modal.js
CHANGED
|
@@ -2,18 +2,18 @@ import { MetadataTemplateEditor as D } from "../../metadata-template-editor.js";
|
|
|
2
2
|
import { M as A } from "../../../../chunks/types.js";
|
|
3
3
|
import "../field-type-tiles/field-type-tiles.js";
|
|
4
4
|
import "../metadata-field-list/metadata-field-list.js";
|
|
5
|
+
import "../metadata-field-configurator/context/field-extensions-context.js";
|
|
5
6
|
import "../field-selector/field-selector.js";
|
|
6
7
|
import "../field-type-dropdown/field-type-dropdown.js";
|
|
7
|
-
import "../metadata-field-configurator/hooks/useTemplateFieldSchema.js";
|
|
8
8
|
import "../metadata-field-configurator/metadata-field-configurator.js";
|
|
9
|
-
import "../metadata-field-configurator/utils.js";
|
|
10
|
-
import "../metadata-field-configurator/context/field-extensions-context.js";
|
|
11
9
|
import { useId as F, useRef as j, useState as c, useCallback as k, useEffect as w } from "react";
|
|
12
10
|
import z from "clsx";
|
|
13
11
|
import { Modal as e } from "@box/blueprint-web";
|
|
14
12
|
import { useIntl as R } from "react-intl";
|
|
15
13
|
import r from "../../messages.js";
|
|
16
14
|
import { jsx as t, jsxs as T } from "react/jsx-runtime";
|
|
15
|
+
import "../metadata-field-configurator/utils.js";
|
|
16
|
+
import "../metadata-field-configurator/hooks/useTemplateFieldSchema.js";
|
|
17
17
|
import '../../../../styles/metadata-template-editor-modal.css';const H = "_modal_q1b7q_1", G = "_centeredBody_q1b7q_7", h = {
|
|
18
18
|
modal: H,
|
|
19
19
|
centeredBody: G
|
package/dist/esm/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as s, A as l, T as i } from "../../../../chunks/types.js";
|
|
2
2
|
import { generateKey as d } from "../key-generation.js";
|
|
3
3
|
import { METADATA_TEMPLATE_FIELD_KEY_MAX_LENGTH as T } from "../constants.js";
|
|
4
4
|
const u = (e) => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/metadata-template-editor",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.6",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@box/blueprint-web": "^14.4.
|
|
7
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
6
|
+
"@box/blueprint-web": "^14.4.2",
|
|
7
|
+
"@box/blueprint-web-assets": "^4.111.25",
|
|
8
8
|
"@dnd-kit/core": "^6.1.0",
|
|
9
9
|
"@dnd-kit/sortable": "^8.0.0",
|
|
10
10
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"yup": "^1.6.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@box/blueprint-web": "^14.4.
|
|
21
|
-
"@box/blueprint-web-assets": "^4.111.
|
|
22
|
-
"@box/eslint-plugin-blueprint": "1.1.
|
|
23
|
-
"@box/storybook-utils": "0.17.
|
|
20
|
+
"@box/blueprint-web": "^14.4.2",
|
|
21
|
+
"@box/blueprint-web-assets": "^4.111.25",
|
|
22
|
+
"@box/eslint-plugin-blueprint": "1.1.10",
|
|
23
|
+
"@box/storybook-utils": "0.17.25",
|
|
24
24
|
"@dnd-kit/core": "^6.1.0",
|
|
25
25
|
"@dnd-kit/sortable": "^8.0.0",
|
|
26
26
|
"@dnd-kit/utilities": "^3.2.2",
|