@box/metadata-editor 0.92.3 → 0.92.5
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/chunks/taxonomy-ancestor-status-pill.js +34 -35
- package/esm/lib/components/add-metadata-template-dropdown/add-metadata-template-dropdown.js +5 -5
- package/esm/lib/components/add-metadata-template-dropdown/messages.js +1 -1
- package/esm/lib/components/combobox-with-api-pagination/combobox-with-api-pagination.js +39 -40
- package/esm/lib/components/combobox-with-api-pagination/messages.js +1 -1
- package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-empty-state.js +1 -1
- package/esm/lib/components/filter-dropdown-menu/filter-dropdown-menu-search.js +6 -6
- package/esm/lib/components/filter-dropdown-menu/messages.js +1 -1
- package/esm/lib/components/filter-instances-dropdown/filter-instances-dropdown.js +7 -7
- package/esm/lib/components/filter-instances-dropdown/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/ai-suggestion-field.js +15 -16
- package/esm/lib/components/metadata-editor-fields/components/ai-suggestion-field/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/metadata-date-field/metadata-date-field.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/metadata-enum-field/metadata-enum-field.js +27 -28
- package/esm/lib/components/metadata-editor-fields/components/metadata-float-field/use-float-validation.js +6 -6
- package/esm/lib/components/metadata-editor-fields/components/metadata-multi-select-field/metadata-multi-select-field.js +5 -5
- package/esm/lib/components/metadata-editor-fields/components/metadata-string-field/metadata-string-field.js +9 -9
- package/esm/lib/components/metadata-editor-fields/components/metadata-taxonomy-field/metadata-taxonomy-field.js +5 -5
- package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/messages.js +1 -1
- package/esm/lib/components/metadata-editor-fields/components/update-mode-field-wrapper/update-mode-field-wrapper.js +1 -1
- package/esm/lib/components/metadata-editor-fields/metadata-editor-field-wrapper.js +70 -567
- package/esm/lib/components/metadata-editor-fields/metadata-editor-fields.js +18 -19
- package/esm/lib/components/metadata-empty-state/messages.js +1 -1
- package/esm/lib/components/metadata-empty-state/metadata-empty-state.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/custom-instance.js +10 -10
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js +14 -15
- package/esm/lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-footer/metadata-instance-form-footer.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/messages.js +2 -2
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/messages.js +1 -1
- package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-inline-notice/metadata-instance-form-inline-notice.js +14 -14
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/metadata-instance-entry.js +5 -5
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/messages.js +3 -3
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-entry/taxonomy-entry/taxonomy-ancestor-status-pill.js +3 -4
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/messages.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-footer/metadata-instance-footer.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/messages.js +1 -1
- package/esm/lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js +1 -1
- package/esm/lib/components/unsaved-changes-modal/messages.js +1 -1
- package/esm/lib/components/unsaved-changes-modal/unsaved-changes-modal.js +18 -19
- package/esm/lib/messages.js +1 -1
- package/package.json +3 -3
- package/chunks/index.js +0 -292
- package/chunks/message.js +0 -18
package/chunks/index.js
DELETED
@@ -1,292 +0,0 @@
|
|
1
|
-
import * as S from "react";
|
2
|
-
var R = function() {
|
3
|
-
return R = Object.assign || function(c) {
|
4
|
-
for (var n, o = 1, s = arguments.length; o < s; o++) {
|
5
|
-
n = arguments[o];
|
6
|
-
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (c[i] = n[i]);
|
7
|
-
}
|
8
|
-
return c;
|
9
|
-
}, R.apply(this, arguments);
|
10
|
-
};
|
11
|
-
function V(e, c) {
|
12
|
-
var n = {};
|
13
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && c.indexOf(o) < 0 && (n[o] = e[o]);
|
14
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
15
|
-
for (var s = 0, o = Object.getOwnPropertySymbols(e); s < o.length; s++)
|
16
|
-
c.indexOf(o[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[s]) && (n[o[s]] = e[o[s]]);
|
17
|
-
return n;
|
18
|
-
}
|
19
|
-
var w = { exports: {} }, a = {};
|
20
|
-
/** @license React v16.13.1
|
21
|
-
* react-is.production.min.js
|
22
|
-
*
|
23
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
24
|
-
*
|
25
|
-
* This source code is licensed under the MIT license found in the
|
26
|
-
* LICENSE file in the root directory of this source tree.
|
27
|
-
*/
|
28
|
-
var Y;
|
29
|
-
function ye() {
|
30
|
-
if (Y) return a;
|
31
|
-
Y = 1;
|
32
|
-
var e = typeof Symbol == "function" && Symbol.for, c = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, m = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, _ = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
33
|
-
function d(r) {
|
34
|
-
if (typeof r == "object" && r !== null) {
|
35
|
-
var C = r.$$typeof;
|
36
|
-
switch (C) {
|
37
|
-
case c:
|
38
|
-
switch (r = r.type, r) {
|
39
|
-
case y:
|
40
|
-
case v:
|
41
|
-
case o:
|
42
|
-
case i:
|
43
|
-
case s:
|
44
|
-
case E:
|
45
|
-
return r;
|
46
|
-
default:
|
47
|
-
switch (r = r && r.$$typeof, r) {
|
48
|
-
case m:
|
49
|
-
case p:
|
50
|
-
case T:
|
51
|
-
case _:
|
52
|
-
case u:
|
53
|
-
return r;
|
54
|
-
default:
|
55
|
-
return C;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
case n:
|
59
|
-
return C;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
function l(r) {
|
64
|
-
return d(r) === v;
|
65
|
-
}
|
66
|
-
return a.AsyncMode = y, a.ConcurrentMode = v, a.ContextConsumer = m, a.ContextProvider = u, a.Element = c, a.ForwardRef = p, a.Fragment = o, a.Lazy = T, a.Memo = _, a.Portal = n, a.Profiler = i, a.StrictMode = s, a.Suspense = E, a.isAsyncMode = function(r) {
|
67
|
-
return l(r) || d(r) === y;
|
68
|
-
}, a.isConcurrentMode = l, a.isContextConsumer = function(r) {
|
69
|
-
return d(r) === m;
|
70
|
-
}, a.isContextProvider = function(r) {
|
71
|
-
return d(r) === u;
|
72
|
-
}, a.isElement = function(r) {
|
73
|
-
return typeof r == "object" && r !== null && r.$$typeof === c;
|
74
|
-
}, a.isForwardRef = function(r) {
|
75
|
-
return d(r) === p;
|
76
|
-
}, a.isFragment = function(r) {
|
77
|
-
return d(r) === o;
|
78
|
-
}, a.isLazy = function(r) {
|
79
|
-
return d(r) === T;
|
80
|
-
}, a.isMemo = function(r) {
|
81
|
-
return d(r) === _;
|
82
|
-
}, a.isPortal = function(r) {
|
83
|
-
return d(r) === n;
|
84
|
-
}, a.isProfiler = function(r) {
|
85
|
-
return d(r) === i;
|
86
|
-
}, a.isStrictMode = function(r) {
|
87
|
-
return d(r) === s;
|
88
|
-
}, a.isSuspense = function(r) {
|
89
|
-
return d(r) === E;
|
90
|
-
}, a.isValidElementType = function(r) {
|
91
|
-
return typeof r == "string" || typeof r == "function" || r === o || r === v || r === i || r === s || r === E || r === x || typeof r == "object" && r !== null && (r.$$typeof === T || r.$$typeof === _ || r.$$typeof === u || r.$$typeof === m || r.$$typeof === p || r.$$typeof === O || r.$$typeof === A || r.$$typeof === M || r.$$typeof === $);
|
92
|
-
}, a.typeOf = d, a;
|
93
|
-
}
|
94
|
-
var f = {};
|
95
|
-
/** @license React v16.13.1
|
96
|
-
* react-is.development.js
|
97
|
-
*
|
98
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
99
|
-
*
|
100
|
-
* This source code is licensed under the MIT license found in the
|
101
|
-
* LICENSE file in the root directory of this source tree.
|
102
|
-
*/
|
103
|
-
var z;
|
104
|
-
function ve() {
|
105
|
-
return z || (z = 1, process.env.NODE_ENV !== "production" && function() {
|
106
|
-
var e = typeof Symbol == "function" && Symbol.for, c = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, s = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, u = e ? Symbol.for("react.provider") : 60109, m = e ? Symbol.for("react.context") : 60110, y = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, p = e ? Symbol.for("react.forward_ref") : 60112, E = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, _ = e ? Symbol.for("react.memo") : 60115, T = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, O = e ? Symbol.for("react.fundamental") : 60117, A = e ? Symbol.for("react.responder") : 60118, M = e ? Symbol.for("react.scope") : 60119;
|
107
|
-
function d(t) {
|
108
|
-
return typeof t == "string" || typeof t == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
109
|
-
t === o || t === v || t === i || t === s || t === E || t === x || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === _ || t.$$typeof === u || t.$$typeof === m || t.$$typeof === p || t.$$typeof === O || t.$$typeof === A || t.$$typeof === M || t.$$typeof === $);
|
110
|
-
}
|
111
|
-
function l(t) {
|
112
|
-
if (typeof t == "object" && t !== null) {
|
113
|
-
var F = t.$$typeof;
|
114
|
-
switch (F) {
|
115
|
-
case c:
|
116
|
-
var b = t.type;
|
117
|
-
switch (b) {
|
118
|
-
case y:
|
119
|
-
case v:
|
120
|
-
case o:
|
121
|
-
case i:
|
122
|
-
case s:
|
123
|
-
case E:
|
124
|
-
return b;
|
125
|
-
default:
|
126
|
-
var L = b && b.$$typeof;
|
127
|
-
switch (L) {
|
128
|
-
case m:
|
129
|
-
case p:
|
130
|
-
case T:
|
131
|
-
case _:
|
132
|
-
case u:
|
133
|
-
return L;
|
134
|
-
default:
|
135
|
-
return F;
|
136
|
-
}
|
137
|
-
}
|
138
|
-
case n:
|
139
|
-
return F;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
var r = y, C = v, j = m, K = u, X = c, G = p, H = o, Z = T, J = _, Q = n, B = i, ee = s, re = E, g = !1;
|
144
|
-
function te(t) {
|
145
|
-
return g || (g = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), D(t) || l(t) === y;
|
146
|
-
}
|
147
|
-
function D(t) {
|
148
|
-
return l(t) === v;
|
149
|
-
}
|
150
|
-
function oe(t) {
|
151
|
-
return l(t) === m;
|
152
|
-
}
|
153
|
-
function ne(t) {
|
154
|
-
return l(t) === u;
|
155
|
-
}
|
156
|
-
function ae(t) {
|
157
|
-
return typeof t == "object" && t !== null && t.$$typeof === c;
|
158
|
-
}
|
159
|
-
function fe(t) {
|
160
|
-
return l(t) === p;
|
161
|
-
}
|
162
|
-
function ce(t) {
|
163
|
-
return l(t) === o;
|
164
|
-
}
|
165
|
-
function se(t) {
|
166
|
-
return l(t) === T;
|
167
|
-
}
|
168
|
-
function ie(t) {
|
169
|
-
return l(t) === _;
|
170
|
-
}
|
171
|
-
function ue(t) {
|
172
|
-
return l(t) === n;
|
173
|
-
}
|
174
|
-
function le(t) {
|
175
|
-
return l(t) === i;
|
176
|
-
}
|
177
|
-
function me(t) {
|
178
|
-
return l(t) === s;
|
179
|
-
}
|
180
|
-
function de(t) {
|
181
|
-
return l(t) === E;
|
182
|
-
}
|
183
|
-
f.AsyncMode = r, f.ConcurrentMode = C, f.ContextConsumer = j, f.ContextProvider = K, f.Element = X, f.ForwardRef = G, f.Fragment = H, f.Lazy = Z, f.Memo = J, f.Portal = Q, f.Profiler = B, f.StrictMode = ee, f.Suspense = re, f.isAsyncMode = te, f.isConcurrentMode = D, f.isContextConsumer = oe, f.isContextProvider = ne, f.isElement = ae, f.isForwardRef = fe, f.isFragment = ce, f.isLazy = se, f.isMemo = ie, f.isPortal = ue, f.isProfiler = le, f.isStrictMode = me, f.isSuspense = de, f.isValidElementType = d, f.typeOf = l;
|
184
|
-
}()), f;
|
185
|
-
}
|
186
|
-
process.env.NODE_ENV === "production" ? w.exports = ye() : w.exports = ve();
|
187
|
-
var pe = w.exports, q = pe, Ee = {
|
188
|
-
$$typeof: !0,
|
189
|
-
render: !0,
|
190
|
-
defaultProps: !0,
|
191
|
-
displayName: !0,
|
192
|
-
propTypes: !0
|
193
|
-
}, _e = {
|
194
|
-
$$typeof: !0,
|
195
|
-
compare: !0,
|
196
|
-
defaultProps: !0,
|
197
|
-
displayName: !0,
|
198
|
-
propTypes: !0,
|
199
|
-
type: !0
|
200
|
-
}, U = {};
|
201
|
-
U[q.ForwardRef] = Ee;
|
202
|
-
U[q.Memo] = _e;
|
203
|
-
function Te(e, c, n) {
|
204
|
-
if (n === void 0 && (n = Error), !e)
|
205
|
-
throw new n(c);
|
206
|
-
}
|
207
|
-
var Se = function(e) {
|
208
|
-
process.env.NODE_ENV !== "production" && console.error(e);
|
209
|
-
}, Ce = function(e) {
|
210
|
-
process.env.NODE_ENV !== "production" && console.warn(e);
|
211
|
-
}, Pe = {
|
212
|
-
formats: {},
|
213
|
-
messages: {},
|
214
|
-
timeZone: void 0,
|
215
|
-
defaultLocale: "en",
|
216
|
-
defaultFormats: {},
|
217
|
-
fallbackOnEmptyString: !0,
|
218
|
-
onError: Se,
|
219
|
-
onWarn: Ce
|
220
|
-
};
|
221
|
-
function be(e) {
|
222
|
-
Te(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
223
|
-
}
|
224
|
-
R(R({}, Pe), { textComponent: S.Fragment });
|
225
|
-
function xe(e, c) {
|
226
|
-
if (e === c)
|
227
|
-
return !0;
|
228
|
-
if (!e || !c)
|
229
|
-
return !1;
|
230
|
-
var n = Object.keys(e), o = Object.keys(c), s = n.length;
|
231
|
-
if (o.length !== s)
|
232
|
-
return !1;
|
233
|
-
for (var i = 0; i < s; i++) {
|
234
|
-
var u = n[i];
|
235
|
-
if (e[u] !== c[u] || !Object.prototype.hasOwnProperty.call(c, u))
|
236
|
-
return !1;
|
237
|
-
}
|
238
|
-
return !0;
|
239
|
-
}
|
240
|
-
var I = typeof window < "u" ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = S.createContext(null)) : S.createContext(null);
|
241
|
-
I.Consumer;
|
242
|
-
I.Provider;
|
243
|
-
var Re = I;
|
244
|
-
function W() {
|
245
|
-
var e = S.useContext(Re);
|
246
|
-
return be(e), e;
|
247
|
-
}
|
248
|
-
var h;
|
249
|
-
(function(e) {
|
250
|
-
e.formatDate = "FormattedDate", e.formatTime = "FormattedTime", e.formatNumber = "FormattedNumber", e.formatList = "FormattedList", e.formatDisplayName = "FormattedDisplayName";
|
251
|
-
})(h || (h = {}));
|
252
|
-
var N;
|
253
|
-
(function(e) {
|
254
|
-
e.formatDate = "FormattedDateParts", e.formatTime = "FormattedTimeParts", e.formatNumber = "FormattedNumberParts", e.formatList = "FormattedListParts";
|
255
|
-
})(N || (N = {}));
|
256
|
-
function k(e) {
|
257
|
-
var c = function(n) {
|
258
|
-
var o = W(), s = n.value, i = n.children, u = V(n, ["value", "children"]), m = typeof s == "string" ? new Date(s || 0) : s, y = e === "formatDate" ? o.formatDateToParts(m, u) : o.formatTimeToParts(m, u);
|
259
|
-
return i(y);
|
260
|
-
};
|
261
|
-
return c.displayName = N[e], c;
|
262
|
-
}
|
263
|
-
function P(e) {
|
264
|
-
var c = function(n) {
|
265
|
-
var o = W(), s = n.value, i = n.children, u = V(
|
266
|
-
n,
|
267
|
-
["value", "children"]
|
268
|
-
), m = o[e](s, u);
|
269
|
-
if (typeof i == "function")
|
270
|
-
return i(m);
|
271
|
-
var y = o.textComponent || S.Fragment;
|
272
|
-
return S.createElement(y, null, m);
|
273
|
-
};
|
274
|
-
return c.displayName = h[e], c;
|
275
|
-
}
|
276
|
-
function $e(e) {
|
277
|
-
return e;
|
278
|
-
}
|
279
|
-
var Oe = P("formatDate");
|
280
|
-
P("formatTime");
|
281
|
-
P("formatNumber");
|
282
|
-
P("formatList");
|
283
|
-
P("formatDisplayName");
|
284
|
-
k("formatDate");
|
285
|
-
k("formatTime");
|
286
|
-
export {
|
287
|
-
Oe as F,
|
288
|
-
V as _,
|
289
|
-
$e as d,
|
290
|
-
xe as s,
|
291
|
-
W as u
|
292
|
-
};
|
package/chunks/message.js
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
import { _ as m, s as g, u as F } from "./index.js";
|
2
|
-
import * as a from "react";
|
3
|
-
function _(e, t) {
|
4
|
-
var n = e.values, s = m(e, ["values"]), i = t.values, o = m(t, ["values"]);
|
5
|
-
return g(i, n) && g(s, o);
|
6
|
-
}
|
7
|
-
function v(e) {
|
8
|
-
var t = F(), n = t.formatMessage, s = t.textComponent, i = s === void 0 ? a.Fragment : s, o = e.id, f = e.description, c = e.defaultMessage, M = e.values, l = e.children, d = e.tagName, u = d === void 0 ? i : d, h = e.ignoreTag, y = { id: o, description: f, defaultMessage: c }, r = n(y, M, {
|
9
|
-
ignoreTag: h
|
10
|
-
});
|
11
|
-
return typeof l == "function" ? l(Array.isArray(r) ? r : [r]) : u ? a.createElement(u, null, a.Children.toArray(r)) : a.createElement(a.Fragment, null, r);
|
12
|
-
}
|
13
|
-
v.displayName = "FormattedMessage";
|
14
|
-
var x = a.memo(v, _);
|
15
|
-
x.displayName = "MemoizedFormattedMessage";
|
16
|
-
export {
|
17
|
-
x as M
|
18
|
-
};
|