@commercelayer/app-elements 5.7.0 → 6.0.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.
@@ -1,9 +1,8 @@
1
1
  "use client";
2
- import { t as S, b as H, d as Z, j as e, i as V, g as G, e as Q, f, h as y, k as $, D as z, l as R, n as p, B as J, o as w, p as U, u as P, q as ee, r as te, s as ne, v as _, I as ae, C as le } from "./main-BqlK85T7.js";
3
- import I, { useReducer as se, useCallback as N, useMemo as re, createContext as ie, useContext as ue, useState as g, useEffect as v, useRef as ce } from "react";
2
+ import { t as S, b as H, d as Z, j as e, i as V, g as G, e as Q, I as f, f as y, h as $, D as z, k as R, l as p, B as J, n as P, o as w, p as U, u as ee, q as te, r as ne, s as ae, v as _, w as le, C as se } from "./main-os-TPFjB.js";
3
+ import I, { useReducer as re, useCallback as N, useMemo as ie, createContext as ue, useContext as ce, useState as g, useEffect as v, useRef as oe } from "react";
4
4
  import "react-hook-form";
5
- import { a as oe } from "./fetchCoreResourcesSuggestions-DLZhtrDX.js";
6
- import { p as k } from "./parseISO-B-bk2SyC.js";
5
+ import { p as k } from "./parseISO-B-vBXvVj.js";
7
6
  function A(t, n) {
8
7
  const a = t.match(
9
8
  /(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/
@@ -27,7 +26,7 @@ function q(t, n, a) {
27
26
  function D(t, n) {
28
27
  return t == null ? !0 : Z(t, n);
29
28
  }
30
- const K = ie(
29
+ const K = ue(
31
30
  void 0
32
31
  );
33
32
  function de(t, n) {
@@ -78,7 +77,7 @@ function me({
78
77
  children: t,
79
78
  initialValue: n
80
79
  }) {
81
- const [a, r] = se(de, {
80
+ const [a, r] = re(de, {
82
81
  value: n,
83
82
  selectedRuleIndex: 0
84
83
  }), u = N((o, c) => {
@@ -87,7 +86,7 @@ function me({
87
86
  r({ type: "SET_SELECTED_RULE_INDEX", index: o });
88
87
  }, []), l = N((o) => {
89
88
  r({ type: "SET_VALUE", value: o });
90
- }, []), i = re(
89
+ }, []), i = ie(
91
90
  () => ({
92
91
  state: a,
93
92
  setPath: u,
@@ -98,8 +97,8 @@ function me({
98
97
  );
99
98
  return /* @__PURE__ */ e.jsx(K.Provider, { value: i, children: t });
100
99
  }
101
- function x() {
102
- const t = ue(K);
100
+ function h() {
101
+ const t = ce(K);
103
102
  if (t === void 0)
104
103
  throw new Error("useRuleEngine must be used within a RuleEngineProvider");
105
104
  return t;
@@ -117,7 +116,7 @@ function fe({
117
116
  item: t,
118
117
  pathPrefix: n
119
118
  }) {
120
- const { setPath: a } = x();
119
+ const { setPath: a } = h();
121
120
  if (t == null)
122
121
  return null;
123
122
  switch (t.type) {
@@ -237,7 +236,7 @@ function ge({
237
236
  const {
238
237
  setPath: r,
239
238
  state: { selectedRuleIndex: u }
240
- } = x(), s = {
239
+ } = h(), s = {
241
240
  percentage: "Percentage discount",
242
241
  fixed_amount: "Fixed amount",
243
242
  fixed_price: "Fixed price",
@@ -245,7 +244,7 @@ function ge({
245
244
  every_x_discount_y: "Every X, Discount Y"
246
245
  }, l = `rules.${u}.actions.${n}`;
247
246
  return /* @__PURE__ */ e.jsx("div", { className: "mb-4 last:mb-0", children: /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 rounded-md flex items-center", children: [
248
- /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-2 flex-grow p-2", children: [
247
+ /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-2 grow p-2", children: [
249
248
  /* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsx(
250
249
  y,
251
250
  {
@@ -284,7 +283,7 @@ function ge({
284
283
  "button",
285
284
  {
286
285
  type: "button",
287
- className: "flex items-center justify-center self-stretch flex-grow",
286
+ className: "flex items-center justify-center self-stretch grow",
288
287
  children: /* @__PURE__ */ e.jsx(p, { name: "dotsThreeVertical", size: 16, weight: "bold" })
289
288
  }
290
289
  ),
@@ -301,13 +300,13 @@ function ge({
301
300
  )
302
301
  ] }) });
303
302
  }
304
- function xe({
303
+ function he({
305
304
  actions: t
306
305
  }) {
307
306
  const [n, a] = g(0), {
308
307
  setPath: r,
309
308
  state: { selectedRuleIndex: u }
310
- } = x();
309
+ } = h();
311
310
  return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
312
311
  /* @__PURE__ */ e.jsx("div", { children: t?.map((s, l, i) => /* @__PURE__ */ e.jsx(
313
312
  ge,
@@ -343,7 +342,7 @@ function xe({
343
342
  function X(t) {
344
343
  const [n, a] = g(void 0);
345
344
  return v(() => {
346
- t?.field != null && oe(t.field).then((r) => {
345
+ t?.field != null && P(t.field).then((r) => {
347
346
  a(r);
348
347
  }).catch((r) => {
349
348
  console.error("Error fetching field info:", r);
@@ -365,11 +364,11 @@ function Y(t) {
365
364
  }
366
365
  return "string";
367
366
  }
368
- function he({
367
+ function xe({
369
368
  item: t,
370
369
  pathPrefix: n
371
370
  }) {
372
- const { setPath: a } = x(), { infos: r } = X(t);
371
+ const { setPath: a } = h(), { infos: r } = X(t);
373
372
  let u = r?.field?.type;
374
373
  return u == null && (u = Y(t?.value)), /* @__PURE__ */ e.jsx(
375
374
  y,
@@ -669,11 +668,11 @@ function be({
669
668
  defaultValue: n,
670
669
  pathPrefix: a
671
670
  }) {
672
- const [r, u] = g(t), [s, l] = g(t), [i, o] = g(n), { setPath: c } = x();
671
+ const [r, u] = g(t), [s, l] = g(t), [i, o] = g(n), { setPath: c } = h();
673
672
  return v(() => {
674
673
  r !== s && (c(`${a}.${r}`, null), u(s)), c(`${a}.${s}`, i);
675
674
  }, [s, i, c]), /* @__PURE__ */ e.jsxs("div", { className: "flex gap-2 last-of-type:mt-2", children: [
676
- /* @__PURE__ */ e.jsx("div", { className: "flex-shrink-0", children: /* @__PURE__ */ e.jsx(
675
+ /* @__PURE__ */ e.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ e.jsx(
677
676
  y,
678
677
  {
679
678
  defaultValue: [
@@ -690,7 +689,7 @@ function be({
690
689
  }
691
690
  }
692
691
  ) }),
693
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsx(
692
+ /* @__PURE__ */ e.jsx("div", { className: "grow", children: /* @__PURE__ */ e.jsx(
694
693
  y,
695
694
  {
696
695
  isMulti: !0,
@@ -721,7 +720,7 @@ function ye({
721
720
  Array.isArray(t) && typeof t[1] == "number" ? t[1] : null
722
721
  );
723
722
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-4", children: [
724
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsx(
723
+ /* @__PURE__ */ e.jsx("div", { className: "grow", children: /* @__PURE__ */ e.jsx(
725
724
  f,
726
725
  {
727
726
  type: "number",
@@ -734,7 +733,7 @@ function ye({
734
733
  }
735
734
  ) }),
736
735
  /* @__PURE__ */ e.jsx("span", { className: "text-gray-300", children: "to" }),
737
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsx(
736
+ /* @__PURE__ */ e.jsx("div", { className: "grow", children: /* @__PURE__ */ e.jsx(
738
737
  f,
739
738
  {
740
739
  type: "number",
@@ -758,7 +757,7 @@ function ve({
758
757
  Array.isArray(t) && typeof t[1] == "string" ? t[1] : null
759
758
  );
760
759
  return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-4", children: [
761
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsx(
760
+ /* @__PURE__ */ e.jsx("div", { className: "grow", children: /* @__PURE__ */ e.jsx(
762
761
  f,
763
762
  {
764
763
  type: "text",
@@ -771,7 +770,7 @@ function ve({
771
770
  }
772
771
  ) }),
773
772
  /* @__PURE__ */ e.jsx("span", { className: "text-gray-300", children: "to" }),
774
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow", children: /* @__PURE__ */ e.jsx(
773
+ /* @__PURE__ */ e.jsx("div", { className: "grow", children: /* @__PURE__ */ e.jsx(
775
774
  f,
776
775
  {
777
776
  type: "text",
@@ -789,7 +788,7 @@ function je({
789
788
  item: t,
790
789
  pathPrefix: n
791
790
  }) {
792
- const { setPath: a } = x(), { infos: r } = X(t), { user: u } = P(), s = `${n}.value`;
791
+ const { setPath: a } = h(), { infos: r } = X(t), { user: u } = ee(), s = `${n}.value`;
793
792
  if (t == null || W.includes(
794
793
  t.matcher
795
794
  ))
@@ -870,7 +869,7 @@ function je({
870
869
  typeof l.value == "string" ? l.value : ""
871
870
  );
872
871
  return /* @__PURE__ */ e.jsx(
873
- te,
872
+ ne,
874
873
  {
875
874
  value: w(c) ? c : void 0,
876
875
  showTimeSelect: !0,
@@ -888,7 +887,7 @@ function je({
888
887
  return w(m) ? m : null;
889
888
  }) : [null, null];
890
889
  return /* @__PURE__ */ e.jsx(
891
- ee,
890
+ te,
892
891
  {
893
892
  value: c,
894
893
  showTimeSelect: !0,
@@ -1013,7 +1012,7 @@ function Ne({
1013
1012
  pathPrefix: a,
1014
1013
  onDelete: r
1015
1014
  }) {
1016
- const { setPath: u } = x(), s = [];
1015
+ const { setPath: u } = h(), s = [];
1017
1016
  return n < 2 && (s[0] ??= [], s[0].push(
1018
1017
  /* @__PURE__ */ e.jsx(
1019
1018
  R,
@@ -1038,7 +1037,7 @@ function Ne({
1038
1037
  }
1039
1038
  )
1040
1039
  )), /* @__PURE__ */ e.jsxs("div", { className: "bg-gray-50 rounded-md flex items-center", children: [
1041
- /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-between gap-2 flex-grow p-2", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 flex-grow", children: [
1040
+ /* @__PURE__ */ e.jsx("div", { className: "flex items-center justify-between gap-2 grow p-2", children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-2 grow", children: [
1042
1041
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
1043
1042
  /* @__PURE__ */ e.jsx("div", { className: "flex-1", children: /* @__PURE__ */ e.jsx(
1044
1043
  f,
@@ -1054,7 +1053,7 @@ function Ne({
1054
1053
  }
1055
1054
  }
1056
1055
  ) }),
1057
- /* @__PURE__ */ e.jsx("div", { className: "flex-14", children: /* @__PURE__ */ e.jsx(he, { item: t, pathPrefix: a }) })
1056
+ /* @__PURE__ */ e.jsx("div", { children: /* @__PURE__ */ e.jsx(xe, { item: t, pathPrefix: a }) })
1058
1057
  ] }),
1059
1058
  /* @__PURE__ */ e.jsx(je, { item: t, pathPrefix: a })
1060
1059
  ] }) }),
@@ -1066,7 +1065,7 @@ function Ne({
1066
1065
  "button",
1067
1066
  {
1068
1067
  type: "button",
1069
- className: "flex items-center justify-center self-stretch flex-grow",
1068
+ className: "flex items-center justify-center self-stretch grow",
1070
1069
  children: /* @__PURE__ */ e.jsx(p, { name: "dotsThreeVertical", size: 16, weight: "bold" })
1071
1070
  }
1072
1071
  ),
@@ -1077,7 +1076,7 @@ function Ne({
1077
1076
  // biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here since items are static
1078
1077
  /* @__PURE__ */ e.jsx(I.Fragment, { children: c }, d)
1079
1078
  )),
1080
- i < o.length - 1 && /* @__PURE__ */ e.jsx(ne, {})
1079
+ i < o.length - 1 && /* @__PURE__ */ e.jsx(ae, {})
1081
1080
  ] }, i)
1082
1081
  ))
1083
1082
  }
@@ -1092,7 +1091,7 @@ function B({
1092
1091
  }) {
1093
1092
  const {
1094
1093
  state: { selectedRuleIndex: u }
1095
- } = x(), s = t?.conditions_logic?.toLowerCase() ?? "and", { setPath: l } = x(), [i, o] = g(0), c = a > 0;
1094
+ } = h(), s = t?.conditions_logic?.toLowerCase() ?? "and", { setPath: l } = h(), [i, o] = g(0), c = a > 0;
1096
1095
  return /* @__PURE__ */ e.jsxs(
1097
1096
  "div",
1098
1097
  {
@@ -1112,7 +1111,7 @@ function B({
1112
1111
  );
1113
1112
  },
1114
1113
  defaultValue: s,
1115
- className: "pl-4 pr-8 py-2 font-bold focus:ring-0 focus:outline-none appearance-none bg-gray-50 border border-gray-200 rounded-md text-sm leading-4",
1114
+ className: "pl-4 pr-8 py-2 font-bold focus:ring-0 focus:outline-hidden appearance-none bg-gray-50 border border-gray-200 rounded-md text-sm leading-4",
1116
1115
  children: [
1117
1116
  /* @__PURE__ */ e.jsxs("option", { value: "and", children: [
1118
1117
  c ? "Nested in " : "",
@@ -1152,7 +1151,7 @@ function B({
1152
1151
  nestingLevel: a,
1153
1152
  pathPrefix: `${r}.conditions.${m}`,
1154
1153
  onDelete: j.length > 1 || a > 0 ? () => {
1155
- o((h) => h + 1);
1154
+ o((x) => x + 1);
1156
1155
  } : void 0
1157
1156
  }
1158
1157
  )
@@ -1174,15 +1173,15 @@ function we({
1174
1173
  rounded: t = !1
1175
1174
  }) {
1176
1175
  return t ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1177
- /* @__PURE__ */ e.jsx("div", { className: "absolute -left-[1px] top-1/2 w-px h-1/2 bg-white" }),
1178
- /* @__PURE__ */ e.jsx("div", { className: "absolute -left-[1px] top-1/2 -translate-y-1/2 w-3.5 h-3.5 border-l border-b rounded-es-sm bg-white border-gray-200" })
1176
+ /* @__PURE__ */ e.jsx("div", { className: "absolute -left-px top-1/2 w-px h-1/2 bg-white" }),
1177
+ /* @__PURE__ */ e.jsx("div", { className: "absolute -left-px top-1/2 -translate-y-1/2 w-3.5 h-3.5 border-l border-b rounded-es-sm bg-white border-gray-200" })
1179
1178
  ] }) : /* @__PURE__ */ e.jsx("div", { className: "absolute left-0 top-1/2 -translate-y-1/2 w-3.5 h-px bg-gray-200" });
1180
1179
  }
1181
1180
  function _e() {
1182
1181
  const {
1183
1182
  setPath: t,
1184
1183
  state: { value: n, selectedRuleIndex: a }
1185
- } = x(), [r, u] = g(
1184
+ } = h(), [r, u] = g(
1186
1185
  n.rules[a]?.name ?? ""
1187
1186
  );
1188
1187
  return v(() => {
@@ -1224,7 +1223,7 @@ const F = {
1224
1223
  return !1;
1225
1224
  }
1226
1225
  };
1227
- function Ae(t) {
1226
+ function ke(t) {
1228
1227
  const [n, a] = g(
1229
1228
  T(t.value ?? t.defaultValue)
1230
1229
  );
@@ -1241,9 +1240,9 @@ function $e(t) {
1241
1240
  setSelectedRuleIndex: r,
1242
1241
  setValue: u,
1243
1242
  setPath: s
1244
- } = x(), [l, i] = g(
1243
+ } = h(), [l, i] = g(
1245
1244
  t.defaultCodeEditorVisible ?? !1
1246
- ), o = n.rules[a], c = ce(null), [d, m] = g(0);
1245
+ ), o = n.rules[a], c = oe(null), [d, m] = g(0);
1247
1246
  v(
1248
1247
  function() {
1249
1248
  V(T(c.current?.getValue()), n) || c.current?.setValue(JSON.stringify(n, null, 2)), t.onChange?.(n);
@@ -1252,13 +1251,13 @@ function $e(t) {
1252
1251
  );
1253
1252
  const j = N(
1254
1253
  (b) => {
1255
- const h = T(b);
1256
- c.current?.hasTextFocus() && Te(b) && !V(h, n) && (u(h), m((C) => C + 1));
1254
+ const x = T(b);
1255
+ c.current?.hasTextFocus() && Te(b) && !V(x, n) && (u(x), m((C) => C + 1));
1257
1256
  },
1258
1257
  [n]
1259
1258
  );
1260
1259
  return /* @__PURE__ */ e.jsx(
1261
- ae,
1260
+ le,
1262
1261
  {
1263
1262
  hint: t.hint,
1264
1263
  feedback: t.feedback,
@@ -1271,17 +1270,17 @@ function $e(t) {
1271
1270
  children: [
1272
1271
  /* @__PURE__ */ e.jsxs("header", { className: "w-full bg-white border-b border-gray-200 py-3 px-8 flex text-[13px] gap-4 text-gray-400 font-semibold items-center", children: [
1273
1272
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-4 flex-wrap", children: [
1274
- n.rules.map((b, h) => {
1275
- const C = `#${(h + 1).toString().padStart(2, "0")}`;
1273
+ n.rules.map((b, x) => {
1274
+ const C = `#${(x + 1).toString().padStart(2, "0")}`;
1276
1275
  return /* @__PURE__ */ e.jsx(
1277
1276
  "button",
1278
1277
  {
1279
1278
  type: "button",
1280
1279
  className: _("font-bold", {
1281
- "text-black": a === h
1280
+ "text-black": a === x
1282
1281
  }),
1283
1282
  onClick: () => {
1284
- r(h);
1283
+ r(x);
1285
1284
  },
1286
1285
  children: C
1287
1286
  },
@@ -1306,11 +1305,11 @@ function $e(t) {
1306
1305
  }
1307
1306
  )
1308
1307
  ] }),
1309
- /* @__PURE__ */ e.jsx("div", { className: "flex-grow flex justify-end", children: /* @__PURE__ */ e.jsx(
1308
+ /* @__PURE__ */ e.jsx("div", { className: "grow flex justify-end", children: /* @__PURE__ */ e.jsx(
1310
1309
  "button",
1311
1310
  {
1312
1311
  type: "button",
1313
- className: "text-blue-600 hover:text-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500",
1312
+ className: "text-blue-600 hover:text-blue-700 focus:outline-hidden focus:ring-2 focus:ring-blue-500",
1314
1313
  onClick: () => {
1315
1314
  i(!l);
1316
1315
  },
@@ -1323,7 +1322,7 @@ function $e(t) {
1323
1322
  /* @__PURE__ */ e.jsx(_e, {}),
1324
1323
  /* @__PURE__ */ e.jsx(p, { name: "pencilSimple", size: 16, className: "shrink-0" })
1325
1324
  ] }),
1326
- /* @__PURE__ */ e.jsx(L, { title: "Actions", icon: "lightning", children: /* @__PURE__ */ e.jsx(xe, { actions: o?.actions }) }),
1325
+ /* @__PURE__ */ e.jsx(L, { title: "Actions", icon: "lightning", children: /* @__PURE__ */ e.jsx(he, { actions: o?.actions }) }),
1327
1326
  /* @__PURE__ */ e.jsx(Ce, { children: "when" }),
1328
1327
  /* @__PURE__ */ e.jsxs(L, { title: "Conditions", icon: "treeView", children: [
1329
1328
  /* @__PURE__ */ e.jsx(
@@ -1358,7 +1357,7 @@ function $e(t) {
1358
1357
  d
1359
1358
  ),
1360
1359
  l && /* @__PURE__ */ e.jsx("div", { className: "shrink-0 basis-2/5", children: /* @__PURE__ */ e.jsx(
1361
- le,
1360
+ se,
1362
1361
  {
1363
1362
  ref: c,
1364
1363
  name: t.id ?? t.name,
@@ -1386,9 +1385,9 @@ function L({
1386
1385
  title: n,
1387
1386
  icon: a
1388
1387
  }) {
1389
- return /* @__PURE__ */ e.jsxs("div", { className: "rounded-md bg-white shadow-sm", children: [
1388
+ return /* @__PURE__ */ e.jsxs("div", { className: "rounded-md bg-white shadow-xs", children: [
1390
1389
  /* @__PURE__ */ e.jsxs("div", { className: "flex items-center space-x-4 py-4 border-b border-gray-100", children: [
1391
- /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 -ml-4 bg-white rounded-full border border-gray-200 flex items-center justify-center shadow-sm shadow-primary-200", children: /* @__PURE__ */ e.jsx(p, { name: a }) }),
1390
+ /* @__PURE__ */ e.jsx("div", { className: "w-8 h-8 -ml-4 bg-white rounded-full border border-gray-200 flex items-center justify-center shadow-xs shadow-primary-200", children: /* @__PURE__ */ e.jsx(p, { name: a }) }),
1392
1391
  /* @__PURE__ */ e.jsx("h2", { className: "text-lg font-semibold", children: n })
1393
1392
  ] }),
1394
1393
  /* @__PURE__ */ e.jsx("div", { className: "p-6", children: t })
@@ -1397,8 +1396,8 @@ function L({
1397
1396
  function Ve({
1398
1397
  children: t
1399
1398
  }) {
1400
- return /* @__PURE__ */ e.jsx("div", { className: "h-full w-full bg-gray-50 p-8 [background-image:radial-gradient(#d6d6d6_1px,transparent_1px)] [background-size:16px_16px] overflow-auto", children: /* @__PURE__ */ e.jsx("div", { className: "max-w-[900px] mx-auto", children: t }) });
1399
+ return /* @__PURE__ */ e.jsx("div", { className: "h-full w-full bg-gray-50 p-8 bg-[radial-gradient(#d6d6d6_1px,transparent_1px)] bg-size-[16px_16px] overflow-auto", children: /* @__PURE__ */ e.jsx("div", { className: "max-w-[900px] mx-auto", children: t }) });
1401
1400
  }
1402
1401
  export {
1403
- Ae as RuleEngine
1402
+ ke as RuleEngine
1404
1403
  };
@@ -282,6 +282,7 @@ const e = {
282
282
  update: "Update",
283
283
  updated: "Updated",
284
284
  view_logs: "View logs",
285
+ view_json: "View JSON",
285
286
  view_api_docs: "View API reference",
286
287
  empty_states: {
287
288
  not_found: "Not found",
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ interface OverlayProps {
3
+ title: string;
4
+ json: object;
5
+ }
6
+ interface ViewJsonOverlayHook {
7
+ showJsonOverlay: () => void;
8
+ JsonOverlay: FC<OverlayProps>;
9
+ }
10
+ export declare function useViewJsonOverlay(): ViewJsonOverlayHook;
11
+ export {};
@@ -81,6 +81,7 @@ const e = {
81
81
  update: "Aggiorna",
82
82
  updated: "Aggiornato",
83
83
  view_logs: "Visualizza i log",
84
+ view_json: "Vedi JSON",
84
85
  view_api_docs: "Visualizza la documentazione API",
85
86
  empty_states: {
86
87
  not_found: "Non trovato",
@@ -80,6 +80,7 @@ declare const en: {
80
80
  update: string;
81
81
  updated: string;
82
82
  view_logs: string;
83
+ view_json: string;
83
84
  view_api_docs: string;
84
85
  empty_states: {
85
86
  not_found: string;