@box/metadata-editor 0.91.2 → 0.92.0

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.
Files changed (39) hide show
  1. package/esm/index.js +18 -17
  2. package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.js +43 -23
  3. package/esm/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.js +12 -0
  4. package/esm/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js +72 -70
  5. package/esm/lib/utils/autofill-context.js +19 -18
  6. package/i18n/bn-IN.js +3 -0
  7. package/i18n/da-DK.js +3 -0
  8. package/i18n/de-DE.js +3 -0
  9. package/i18n/en-AU.js +3 -0
  10. package/i18n/en-CA.js +3 -0
  11. package/i18n/en-GB.js +3 -0
  12. package/i18n/en-US.js +3 -0
  13. package/i18n/en-US.properties +6 -0
  14. package/i18n/en-x-pseudo.js +3 -0
  15. package/i18n/es-419.js +3 -0
  16. package/i18n/es-ES.js +3 -0
  17. package/i18n/fi-FI.js +3 -0
  18. package/i18n/fr-CA.js +3 -0
  19. package/i18n/fr-FR.js +3 -0
  20. package/i18n/hi-IN.js +3 -0
  21. package/i18n/it-IT.js +3 -0
  22. package/i18n/ja-JP.js +3 -0
  23. package/i18n/json/src/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.json +1 -1
  24. package/i18n/ko-KR.js +3 -0
  25. package/i18n/nb-NO.js +3 -0
  26. package/i18n/nl-NL.js +3 -0
  27. package/i18n/pl-PL.js +3 -0
  28. package/i18n/pt-BR.js +3 -0
  29. package/i18n/ru-RU.js +3 -0
  30. package/i18n/sv-SE.js +3 -0
  31. package/i18n/tr-TR.js +3 -0
  32. package/i18n/zh-CN.js +3 -0
  33. package/i18n/zh-TW.js +3 -0
  34. package/package.json +3 -3
  35. package/styles/autofill-overlay.css +1 -1
  36. package/types/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/autofill-overlay.d.ts +3 -1
  37. package/types/lib/components/metadata-instance-editor/subcomponents/autofill-overlay/messages.d.ts +15 -0
  38. package/types/lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/types.d.ts +1 -2
  39. package/types/lib/utils/autofill-context.d.ts +1 -0
package/esm/index.js CHANGED
@@ -6,18 +6,18 @@ import { MULTI_VALUE_DEFAULT_OPTION as x, MULTI_VALUE_DEFAULT_TAXONOMY_OPTION as
6
6
  import { MetadataEmptyState as s } from "./lib/components/metadata-empty-state/metadata-empty-state.js";
7
7
  import { CustomInstanceNewField as I } from "./lib/components/metadata-instance-editor/subcomponents/custom-instance-new-field/custom-instance-new-field.js";
8
8
  import { DeleteConfirmationModal as u } from "./lib/components/metadata-instance-editor/subcomponents/delete-confirmation-modal/delete-confirmation-modal.js";
9
- import { MetadataInstanceFormAutofillButton as T } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
10
- import { MetadataInstanceFormHeader as E } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
11
- import { MetadataInstanceForm as c } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js";
9
+ import { MetadataInstanceFormAutofillButton as _ } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-autofill-button/metadata-instance-form-autofill-button.js";
10
+ import { MetadataInstanceFormHeader as L } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form-header/metadata-instance-form-header.js";
11
+ import { MetadataInstanceForm as F } from "./lib/components/metadata-instance-editor/subcomponents/metadata-instance-form/metadata-instance-form.js";
12
12
  import { J as D } from "../chunks/utils.js";
13
- import { MetadataInstanceList as V } from "./lib/components/metadata-instance-list/metadata-instance-list.js";
14
- import { MetadataInstanceHeader as N } from "./lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js";
13
+ import { MetadataInstanceList as N } from "./lib/components/metadata-instance-list/metadata-instance-list.js";
14
+ import { MetadataInstanceHeader as w } from "./lib/components/metadata-instance-list/subcomponents/metadata-instance-header/metadata-instance-header.js";
15
15
  import { UnsavedChangesModal as h } from "./lib/components/unsaved-changes-modal/unsaved-changes-modal.js";
16
- import { defaultInitialValues as g, defaultMetadataValueMap as v } from "./lib/defaults.js";
17
- import { MetadataEditor as J } from "./lib/metadata-editor.js";
16
+ import { defaultInitialValues as b, defaultMetadataValueMap as g } from "./lib/defaults.js";
17
+ import { MetadataEditor as H } from "./lib/metadata-editor.js";
18
18
  import { U as W } from "../chunks/types.js";
19
19
  import { withApiWrapper as B } from "./lib/utils/api-wrapper.js";
20
- import { AutofillContext as Y, AutofillContextProvider as j, useAutofill as k } from "./lib/utils/autofill-context.js";
20
+ import { AutofillContext as Y, AutofillContextProvider as j, TIMEOUT_10_SECONDS as k, useAutofill as q } from "./lib/utils/autofill-context.js";
21
21
  export {
22
22
  e as AddMetadataTemplateDropdown,
23
23
  Y as AutofillContext,
@@ -31,17 +31,18 @@ export {
31
31
  x as MULTI_VALUE_DEFAULT_OPTION,
32
32
  i as MULTI_VALUE_DEFAULT_TAXONOMY_OPTION,
33
33
  l as MULTI_VALUE_DEFAULT_VALUE,
34
- J as MetadataEditor,
34
+ H as MetadataEditor,
35
35
  s as MetadataEmptyState,
36
- c as MetadataInstanceForm,
37
- T as MetadataInstanceFormAutofillButton,
38
- E as MetadataInstanceFormHeader,
39
- N as MetadataInstanceHeader,
40
- V as MetadataInstanceList,
36
+ F as MetadataInstanceForm,
37
+ _ as MetadataInstanceFormAutofillButton,
38
+ L as MetadataInstanceFormHeader,
39
+ w as MetadataInstanceHeader,
40
+ N as MetadataInstanceList,
41
+ k as TIMEOUT_10_SECONDS,
41
42
  h as UnsavedChangesModal,
42
43
  W as UpdateMode,
43
- g as defaultInitialValues,
44
- v as defaultMetadataValueMap,
45
- k as useAutofill,
44
+ b as defaultInitialValues,
45
+ g as defaultMetadataValueMap,
46
+ q as useAutofill,
46
47
  B as withApiWrapper
47
48
  };
@@ -1,36 +1,56 @@
1
- import { LoadingIndicator as c, Text as o } from "@box/blueprint-web";
2
- import { u as m } from "../../../../../../chunks/index.js";
3
- import a from "./messages.js";
4
- import { jsxs as d, jsx as l } from "react/jsx-runtime";
5
- import '../../../../../../styles/autofill-overlay.css';const f = "_autofillOverlay_m4rm9_1", g = "_loadingIcon_m4rm9_14", u = "_testContainerStyle_m4rm9_21", r = {
6
- autofillOverlay: f,
7
- loadingIcon: g,
8
- testContainerStyle: u
9
- }, I = ({
10
- isFetchingSuggestions: i,
11
- isLongLoading: e
1
+ import { useState as d } from "react";
2
+ import { LoadingIndicator as v, Text as n, TextButton as g } from "@box/blueprint-web";
3
+ import { u as p } from "../../../../../../chunks/index.js";
4
+ import { AlertTriangle as y } from "@box/blueprint-web-assets/icons/Line";
5
+ import { SurfaceStatusSurfaceError as _, Size5 as m } from "@box/blueprint-web-assets/tokens/tokens";
6
+ import e from "./messages.js";
7
+ import { jsxs as O, jsx as i } from "react/jsx-runtime";
8
+ import '../../../../../../styles/autofill-overlay.css';const T = "_autofillOverlay_vvkb0_1", b = "_autofillOverlayTitle_vvkb0_15", S = "_dismissButton_vvkb0_20", h = "_loadingIcon_vvkb0_24", B = "_testContainerStyle_vvkb0_29", s = {
9
+ autofillOverlay: T,
10
+ autofillOverlayTitle: b,
11
+ dismissButton: S,
12
+ loadingIcon: h,
13
+ testContainerStyle: B
14
+ }, A = ({
15
+ errorCode: a,
16
+ isFetchingSuggestions: c,
17
+ isLongLoading: o
12
18
  }) => {
13
- const t = m(), n = e ? t.formatMessage(a.longLoadingTitle) : t.formatMessage(a.defaultLoadingMessage), s = e && t.formatMessage(a.longLoadingDescription);
14
- return i ? /* @__PURE__ */ d("div", {
15
- className: r.autofillOverlay,
16
- children: [/* @__PURE__ */ l(c, {
17
- "aria-label": t.formatMessage(a.loadingAriaLabel),
19
+ const t = p(), [f, u] = d(!1);
20
+ let l = t.formatMessage(e.defaultLoadingMessage);
21
+ a && (l = t.formatMessage(e.errorTitle)), o && (l = t.formatMessage(e.longLoadingTitle));
22
+ const r = o ? t.formatMessage(e.longLoadingDescription) : a && t.formatMessage(e.errorDescription);
23
+ return !c && !a || f ? null : /* @__PURE__ */ O("div", {
24
+ className: s.autofillOverlay,
25
+ children: [a ? /* @__PURE__ */ i(y, {
26
+ color: _,
27
+ height: m,
28
+ role: "presentation",
29
+ width: m
30
+ }) : /* @__PURE__ */ i(v, {
31
+ "aria-label": t.formatMessage(e.loadingAriaLabel),
18
32
  "aria-live": "polite",
19
- className: r.loadingIcon,
33
+ className: s.loadingIcon,
20
34
  size: "large",
21
35
  variant: "default"
22
- }), /* @__PURE__ */ l(o, {
36
+ }), /* @__PURE__ */ i(n, {
23
37
  as: "p",
38
+ className: s.autofillOverlayTitle,
24
39
  variant: "subtitle",
25
- children: n
26
- }), e && /* @__PURE__ */ l(o, {
40
+ children: l
41
+ }), r && /* @__PURE__ */ i(n, {
27
42
  as: "p",
28
43
  color: "textOnLightSecondary",
29
44
  variant: "bodyDefault",
30
- children: s
45
+ children: r
46
+ }), a && /* @__PURE__ */ i(g, {
47
+ className: s.dismissButton,
48
+ onClick: () => u(!0),
49
+ "data-target-id": "TextButton-dismissButton",
50
+ children: t.formatMessage(e.dismissButton)
31
51
  })]
32
- }) : null;
52
+ });
33
53
  };
34
54
  export {
35
- I as AutofillOverlay
55
+ A as AutofillOverlay
36
56
  };
@@ -4,6 +4,18 @@ const e = a({
4
4
  id: "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage",
5
5
  defaultMessage: "Extracting Metadata"
6
6
  },
7
+ dismissButton: {
8
+ id: "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton",
9
+ defaultMessage: "Dismiss"
10
+ },
11
+ errorTitle: {
12
+ id: "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle",
13
+ defaultMessage: "Metadata extraction could not complete"
14
+ },
15
+ errorDescription: {
16
+ id: "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription",
17
+ defaultMessage: "Please try again in a few minutes"
18
+ },
7
19
  loadingAriaLabel: {
8
20
  id: "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel",
9
21
  defaultMessage: "Loading"
@@ -1,111 +1,113 @@
1
- import { Formik as V, Form as _ } from "formik";
2
- import { useState as p, useEffect as h, useRef as $, useMemo as w } from "react";
3
- import { TEMPLATE_CUSTOM_PROPERTIES as J } from "../../../../constants.js";
4
- import { AutofillOverlay as q } from "../autofill-overlay/autofill-overlay.js";
5
- import { useAutofill as z } from "../../../../utils/autofill-context.js";
6
- import { TemplateInstance as G } from "../../../metadata-editor-fields/metadata-editor-fields.js";
7
- import { MetadataEmptyState as H } from "../../../metadata-empty-state/metadata-empty-state.js";
8
- import { UnsavedChangesModal as Q } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
9
- import { CustomInstance as X } from "../custom-instance/custom-instance.js";
10
- import { DeleteConfirmationModal as Y } from "../delete-confirmation-modal/delete-confirmation-modal.js";
11
- import { c as Z } from "../../../../../../chunks/utils.js";
12
- import { s as C, M as I } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
13
- import { jsx as a, jsxs as c } from "react/jsx-runtime";
14
- const go = (M) => {
1
+ import { Formik as _, Form as $ } from "formik";
2
+ import { useState as p, useEffect as C, useRef as w, useMemo as J } from "react";
3
+ import { TEMPLATE_CUSTOM_PROPERTIES as q } from "../../../../constants.js";
4
+ import { AutofillOverlay as z } from "../autofill-overlay/autofill-overlay.js";
5
+ import { useAutofill as G } from "../../../../utils/autofill-context.js";
6
+ import { TemplateInstance as H } from "../../../metadata-editor-fields/metadata-editor-fields.js";
7
+ import { MetadataEmptyState as Q } from "../../../metadata-empty-state/metadata-empty-state.js";
8
+ import { UnsavedChangesModal as X } from "../../../unsaved-changes-modal/unsaved-changes-modal.js";
9
+ import { CustomInstance as Y } from "../custom-instance/custom-instance.js";
10
+ import { DeleteConfirmationModal as Z } from "../delete-confirmation-modal/delete-confirmation-modal.js";
11
+ import { c as I } from "../../../../../../chunks/utils.js";
12
+ import { s as h, M as T } from "../../../../../../chunks/metadata-instance-form-card-wrapper.js";
13
+ import { jsx as r, jsxs as c } from "react/jsx-runtime";
14
+ const po = (M) => {
15
15
  const {
16
16
  areAiSuggestionsAvailable: E,
17
17
  customRef: i,
18
+ errorCode: F,
18
19
  isAiSuggestionsFeatureEnabled: n,
19
- isBetaLanguageEnabled: F,
20
- isDeleteButtonDisabled: S,
21
- isUnsavedChangesModalOpen: y = !1,
22
- MetadataInstanceFormCustomWrapper: D,
20
+ isBetaLanguageEnabled: S,
21
+ isDeleteButtonDisabled: y,
22
+ isUnsavedChangesModalOpen: D = !1,
23
+ MetadataInstanceFormCustomWrapper: b,
23
24
  selectedTemplateInstance: o,
24
- onCancel: b,
25
- onDelete: O,
26
- onDiscardUnsavedChanges: A,
27
- onSubmit: v,
25
+ onCancel: O,
26
+ onDelete: A,
27
+ onDiscardUnsavedChanges: v,
28
+ onSubmit: x,
28
29
  setIsUnsavedChangesModalOpen: s,
29
30
  taxonomyOptionsFetcher: e
30
- } = M, x = D ?? I, [L, m] = p(!1), {
31
- isFetchingSuggestions: r,
31
+ } = M, L = b ?? T, [N, m] = p(!1), {
32
+ isFetchingSuggestions: a,
32
33
  isLongLoading: l,
33
- getAiSuggestions: N,
34
+ getAiSuggestions: P,
34
35
  clearSuggestions: u,
35
- suggestions: P
36
- } = z();
37
- h(() => () => {
36
+ suggestions: R
37
+ } = G();
38
+ C(() => () => {
38
39
  u();
39
40
  }, [u]);
40
- const f = (o == null ? void 0 : o.templateKey) === J, R = async (t) => {
41
- await v(t, Z(t, o));
42
- }, U = (t) => {
43
- t ? s(!0) : b();
44
- }, B = () => {
41
+ const f = (o == null ? void 0 : o.templateKey) === q, U = async (t) => {
42
+ await x(t, I(t, o));
43
+ }, B = (t) => {
44
+ t ? s(!0) : O();
45
+ }, K = () => {
45
46
  m(!0);
46
- }, K = {
47
+ }, W = {
47
48
  metadata: {
48
49
  ...o
49
50
  }
50
- }, g = $(null), [d, W] = p(null);
51
- h(() => {
52
- W(i ?? g.current);
51
+ }, g = w(null), [d, j] = p(null);
52
+ C(() => {
53
+ j(i ?? g.current);
53
54
  }, [i, o == null ? void 0 : o.templateKey, o == null ? void 0 : o.scope]);
54
- const j = w(() => {
55
+ const k = J(() => {
55
56
  const t = (o == null ? void 0 : o.fields.length) === 0;
56
- return f ? /* @__PURE__ */ a(X, {
57
- isLoading: r
58
- }) : t ? /* @__PURE__ */ a(H, {
57
+ return f ? /* @__PURE__ */ r(Y, {
58
+ isLoading: a
59
+ }) : t ? /* @__PURE__ */ r(Q, {
59
60
  isBoxAiSuggestionsFeatureEnabled: n,
60
61
  level: "instance"
61
62
  }) : /* @__PURE__ */ c("div", {
62
- className: C.metadataInstanceFormContent,
63
- children: [/* @__PURE__ */ a(q, {
64
- isFetchingSuggestions: r,
63
+ className: h.metadataInstanceFormContent,
64
+ children: [/* @__PURE__ */ r(z, {
65
+ errorCode: F,
66
+ isFetchingSuggestions: a,
65
67
  isLongLoading: l
66
- }), /* @__PURE__ */ a(G, {
67
- disableForm: r,
68
+ }), /* @__PURE__ */ r(H, {
69
+ disableForm: a,
68
70
  portalElement: i ?? d,
69
71
  taxonomyOptionsFetcher: e
70
72
  })]
71
73
  });
72
- }, [o == null ? void 0 : o.fields.length, f, r, l, i, d, e, n]);
73
- return /* @__PURE__ */ a(V, {
74
- initialValues: K,
75
- onSubmit: R,
74
+ }, [o == null ? void 0 : o.fields.length, f, a, l, i, d, e, n]);
75
+ return /* @__PURE__ */ r(_, {
76
+ initialValues: W,
77
+ onSubmit: U,
76
78
  children: ({
77
79
  values: t,
78
- dirty: k
79
- }) => /* @__PURE__ */ c(_, {
80
- children: [/* @__PURE__ */ a(x, {
80
+ dirty: V
81
+ }) => /* @__PURE__ */ c($, {
82
+ children: [/* @__PURE__ */ r(L, {
81
83
  areAiSuggestionsAvailable: E,
82
- className: C.metadataInstanceForm,
84
+ className: h.metadataInstanceForm,
83
85
  formRef: g,
84
86
  formValues: t,
85
- getAiSuggestions: N,
86
- handleCancel: U,
87
- handleDelete: B,
87
+ getAiSuggestions: P,
88
+ handleCancel: B,
89
+ handleDelete: K,
88
90
  isAiSuggestionsFeatureEnabled: n,
89
- isBetaLanguageEnabled: F,
90
- isDeleteButtonDisabled: S,
91
- isFetchingSuggestions: r,
92
- isFormDirty: k,
91
+ isBetaLanguageEnabled: S,
92
+ isDeleteButtonDisabled: y,
93
+ isFetchingSuggestions: a,
94
+ isFormDirty: V,
93
95
  selectedTemplateInstance: o,
94
- suggestions: P,
95
- children: o && j
96
- }), /* @__PURE__ */ a(Q, {
96
+ suggestions: R,
97
+ children: o && k
98
+ }), /* @__PURE__ */ r(X, {
97
99
  onBackToEdit: () => s(!1),
98
- onDiscardChanges: A,
99
- open: y
100
- }), /* @__PURE__ */ a(Y, {
101
- onConfirm: () => O(o),
100
+ onDiscardChanges: v,
101
+ open: D
102
+ }), /* @__PURE__ */ r(Z, {
103
+ onConfirm: () => A(o),
102
104
  onDismiss: () => m(!1),
103
- open: L,
105
+ open: N,
104
106
  templateName: o == null ? void 0 : o.displayName
105
107
  })]
106
108
  })
107
109
  }, `${o == null ? void 0 : o.scope}.${o == null ? void 0 : o.templateKey}`);
108
110
  };
109
111
  export {
110
- go as MetadataInstanceForm
112
+ po as MetadataInstanceForm
111
113
  };
@@ -1,27 +1,27 @@
1
- import T, { createContext as v, useState as u, useCallback as w, useMemo as x, useContext as A } from "react";
2
- import { TEMPLATE_CUSTOM_PROPERTIES as E } from "../constants.js";
1
+ import E, { createContext as d, useState as u, useCallback as S, useMemo as v, useContext as x } from "react";
2
+ import { TEMPLATE_CUSTOM_PROPERTIES as A } from "../constants.js";
3
3
  import { jsx as P } from "react/jsx-runtime";
4
- const C = /* @__PURE__ */ v(null), M = ({
4
+ const _ = 1e4, T = /* @__PURE__ */ d(null), M = ({
5
5
  children: e,
6
6
  isAiSuggestionsFeatureEnabled: o,
7
7
  fetchSuggestions: l
8
8
  }) => {
9
9
  const [s, a] = u({}), [r, c] = u(!1), [f, g] = u(!1);
10
- T.useEffect(() => {
10
+ E.useEffect(() => {
11
11
  let t;
12
12
  return r ? t = setTimeout(() => {
13
13
  g(!0);
14
- }, 3e4) : (g(!1), clearTimeout(t)), () => clearTimeout(t);
14
+ }, _) : (g(!1), clearTimeout(t)), () => clearTimeout(t);
15
15
  }, [r]);
16
- const m = w(async (t, S) => {
16
+ const m = S(async (t, w) => {
17
17
  let n = [];
18
18
  if (!o)
19
19
  throw new Error("AI Suggestions feature not available.");
20
- if (t === E)
20
+ if (t === A)
21
21
  throw new Error("Can't fetch suggestions for Custom Metadata instance");
22
22
  c(!0);
23
23
  try {
24
- n = await l(t, S), a({
24
+ n = await l(t, w), a({
25
25
  ...s,
26
26
  [t]: {
27
27
  ...Object.fromEntries(n.map((i) => [i.key, i.aiSuggestion]))
@@ -32,28 +32,29 @@ const C = /* @__PURE__ */ v(null), M = ({
32
32
  c(!1);
33
33
  }
34
34
  return n;
35
- }, [o, s, l]), h = w(() => {
35
+ }, [o, s, l]), C = S(() => {
36
36
  a({});
37
- }, []), d = x(() => ({
38
- clearSuggestions: h,
37
+ }, []), h = v(() => ({
38
+ clearSuggestions: C,
39
39
  getAiSuggestions: m,
40
40
  isAiSuggestionsFeatureEnabled: o,
41
41
  isFetchingSuggestions: r,
42
42
  isLongLoading: f,
43
43
  suggestions: s
44
- }), [h, m, o, r, f, s]);
45
- return /* @__PURE__ */ P(C.Provider, {
46
- value: d,
44
+ }), [C, m, o, r, f, s]);
45
+ return /* @__PURE__ */ P(T.Provider, {
46
+ value: h,
47
47
  children: e
48
48
  });
49
- }, _ = () => {
50
- const e = A(C);
49
+ }, O = () => {
50
+ const e = x(T);
51
51
  if (!e)
52
52
  throw new Error("useAutofill should be wrapped inside AutofillProvider");
53
53
  return e;
54
54
  };
55
55
  export {
56
- C as AutofillContext,
56
+ T as AutofillContext,
57
57
  M as AutofillContextProvider,
58
- _ as useAutofill
58
+ _ as TIMEOUT_10_SECONDS,
59
+ O as useAutofill
59
60
  };
package/i18n/bn-IN.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "মান",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "যেমন, 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/da-DK.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Værdi",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "f.eks. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/de-DE.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Wert",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "z. B. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/en-AU.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Value",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "e.g. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/en-CA.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Value",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "e.g. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/en-GB.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Value",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "e.g. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/en-US.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Value",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "e.g. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
@@ -162,6 +162,12 @@ metadataEditor.metadataEditor.customIntanceNewField.valueLabel = Value
162
162
  metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder = e.g. 42
163
163
  # Loading message when autofill metadata extraction endpoint is called
164
164
  metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage = Extracting Metadata
165
+ # Dismiss button text which disabe error overlay when fetching AI suggestions failed
166
+ metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton = Dismiss
167
+ # Description for error state when fetching AI suggestions failed
168
+ metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription = Please try again in a few minutes
169
+ # Title for error state when fetching AI suggestions failed
170
+ metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle = Metadata extraction could not complete
165
171
  # Aria label for loading spinner
166
172
  metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel = Loading
167
173
  # Description for long loading state while fetching AI suggestions
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "⟦萬 Våľųĕ 國⟧",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "⟦萬萬 ê.ĝ. 42 國國⟧",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/es-419.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valor",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "Por ejemplo, 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/es-ES.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valor",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "Por ejemplo, 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/fi-FI.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Arvo",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "esim. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/fr-CA.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valeur",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "par exemple 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/fr-FR.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valeur",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "par exemple 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/hi-IN.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "मूल्यमान",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "जैसे 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/it-IT.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valore",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "es. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/ja-JP.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "値",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "例: 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
@@ -1 +1 @@
1
- [{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage","description":"Loading message when autofill metadata extraction endpoint is called","defaultMessage":"Extracting Metadata"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel","description":"Aria label for loading spinner","defaultMessage":"Loading"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle","description":"Title for long loading state while fetching AI suggestions","defaultMessage":"This is taking longer than usual"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription","description":"Description for long loading state while fetching AI suggestions","defaultMessage":"Still working on it!"}]
1
+ [{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage","description":"Loading message when autofill metadata extraction endpoint is called","defaultMessage":"Extracting Metadata"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton","description":"Dismiss button text which disabe error overlay when fetching AI suggestions failed","defaultMessage":"Dismiss"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle","description":"Title for error state when fetching AI suggestions failed","defaultMessage":"Metadata extraction could not complete"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription","description":"Description for error state when fetching AI suggestions failed","defaultMessage":"Please try again in a few minutes"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel","description":"Aria label for loading spinner","defaultMessage":"Loading"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle","description":"Title for long loading state while fetching AI suggestions","defaultMessage":"This is taking longer than usual"},{"id":"metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription","description":"Description for long loading state while fetching AI suggestions","defaultMessage":"Still working on it!"}]
package/i18n/ko-KR.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "값",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "예: 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/nb-NO.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Verdi",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "f.eks. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/nl-NL.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Waarde",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "bijv. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/pl-PL.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Wartość",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "np. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/pt-BR.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Valor",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "por exemplo, 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/ru-RU.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Значение",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "например, 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/sv-SE.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Värde",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "t.ex. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/tr-TR.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "Değer",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "örn. 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/zh-CN.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "值",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "例如 42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/i18n/zh-TW.js CHANGED
@@ -81,6 +81,9 @@ export default {
81
81
  "metadataEditor.metadataEditor.customIntanceNewField.valueLabel": "值",
82
82
  "metadataEditor.metadataEditor.customIntanceNewField.valuePlaceholder": "例如,42",
83
83
  "metadataEditor.metadataInstanceEditor.autofillOverlay.defaultLoadingMessage": "Extracting Metadata",
84
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.dismissButton": "Dismiss",
85
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorDescription": "Please try again in a few minutes",
86
+ "metadataEditor.metadataInstanceEditor.autofillOverlay.errorTitle": "Metadata extraction could not complete",
84
87
  "metadataEditor.metadataInstanceEditor.autofillOverlay.loadingAriaLabel": "Loading",
85
88
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingDescription": "Still working on it!",
86
89
  "metadataEditor.metadataInstanceEditor.autofillOverlay.longLoadingTitle": "This is taking longer than usual",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@box/metadata-editor",
3
- "version": "0.91.2",
3
+ "version": "0.92.0",
4
4
  "peerDependencies": {
5
5
  "@ariakit/react": "0.4.15",
6
6
  "@box/blueprint-web": "^7.30.3",
@@ -14,7 +14,7 @@
14
14
  "devDependencies": {
15
15
  "@ariakit/react": "0.4.15",
16
16
  "@box/babel-plugin-target-attributes": "1.3.0",
17
- "@box/blueprint-web": "^9.18.0",
17
+ "@box/blueprint-web": "^9.18.1",
18
18
  "@box/blueprint-web-assets": "^4.33.1",
19
19
  "@box/storybook-utils": "^0.8.3",
20
20
  "@testing-library/react": "^15.0.6",
@@ -53,5 +53,5 @@
53
53
  "**/*.css"
54
54
  ],
55
55
  "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "a2056d2f579edc055a85156efe0e93414840445e"
56
+ "gitHead": "f58975e6ef79aaa7ede93cd503cc8412f68fac44"
57
57
  }
@@ -1 +1 @@
1
- ._autofillOverlay_m4rm9_1{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fffc;z-index:2;display:flex;align-items:center;flex-direction:column}._loadingIcon_m4rm9_14{margin-top:96px;display:block;position:relative;margin-bottom:var(--space-4)}._testContainerStyle_m4rm9_21{position:relative;width:250px;height:400px;border:1px solid #000}
1
+ ._autofillOverlay_vvkb0_1{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#ffffffe6;z-index:2;display:flex;align-items:center;flex-direction:column;padding:var(--space-15) var(--space-4) 0 var(--space-4)}._autofillOverlayTitle_vvkb0_15{margin-top:var(--space-4);text-align:center}._dismissButton_vvkb0_20{margin-top:var(--space-4)}._loadingIcon_vvkb0_24{display:block;position:relative}._testContainerStyle_vvkb0_29{padding:var(--space-4);position:relative;width:380px;height:600px;border:1px solid #000}
@@ -1,5 +1,7 @@
1
+ import { errorCodeTypes } from '../metadata-instance-form/types';
1
2
  export type AutofillOverlayProps = {
3
+ errorCode: errorCodeTypes;
2
4
  isFetchingSuggestions: boolean;
3
5
  isLongLoading: boolean;
4
6
  };
5
- export declare const AutofillOverlay: ({ isFetchingSuggestions, isLongLoading }: AutofillOverlayProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const AutofillOverlay: ({ errorCode, isFetchingSuggestions, isLongLoading }: AutofillOverlayProps) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,21 @@ declare const messages: {
4
4
  description: string;
5
5
  id: string;
6
6
  };
7
+ dismissButton: {
8
+ defaultMessage: string;
9
+ description: string;
10
+ id: string;
11
+ };
12
+ errorTitle: {
13
+ defaultMessage: string;
14
+ description: string;
15
+ id: string;
16
+ };
17
+ errorDescription: {
18
+ defaultMessage: string;
19
+ description: string;
20
+ id: string;
21
+ };
7
22
  loadingAriaLabel: {
8
23
  defaultMessage: string;
9
24
  description: string;
@@ -2,7 +2,7 @@ import { AutofillSuggestions, MetadataFormFieldValue, MetadataTemplateField, Met
2
2
  import { TaxonomyOptionsFetcher } from '../../../metadata-editor-fields/components/metadata-taxonomy-field/types';
3
3
  import { FormValues } from '../../types';
4
4
  import { ERROR_CODE_METADATA_AUTOFILL_TIMEOUT, ERROR_CODE_METADATA_PRECONDITION_FAILED, ERROR_CODE_UNKNOWN } from './constants';
5
- type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_UNKNOWN;
5
+ export type errorCodeTypes = typeof ERROR_CODE_METADATA_AUTOFILL_TIMEOUT | typeof ERROR_CODE_METADATA_PRECONDITION_FAILED | typeof ERROR_CODE_UNKNOWN;
6
6
  export type MetadataInstanceFormProps = {
7
7
  areAiSuggestionsAvailable: boolean;
8
8
  errorCode?: errorCodeTypes;
@@ -54,4 +54,3 @@ export type JSONPatchOperation = {
54
54
  value?: MetadataFormFieldValue;
55
55
  };
56
56
  export type JSONPatchOperations = JSONPatchOperation[];
57
- export {};
@@ -13,6 +13,7 @@ export interface AutofillContextProviderProps {
13
13
  isAiSuggestionsFeatureEnabled: boolean;
14
14
  fetchSuggestions: (templateKey: MetadataTemplateInstance['templateKey'], scope: MetadataTemplateInstance['scope']) => Promise<MetadataTemplateField[]>;
15
15
  }
16
+ export declare const TIMEOUT_10_SECONDS = 10000;
16
17
  export declare const AutofillContext: React.Context<AutofillContextType>;
17
18
  export declare const AutofillContextProvider: ({ children, isAiSuggestionsFeatureEnabled, fetchSuggestions, }: AutofillContextProviderProps) => React.ReactElement;
18
19
  export declare const useAutofill: () => AutofillContextType;