@tesouro/embedded-components-react 0.7.73 → 0.7.74

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.
@@ -16,10 +16,9 @@ var e = {
16
16
  amountOverlap: "Overlaps another rule",
17
17
  amountOverlapUnlisted: "Overlaps a rule that isn’t shown above",
18
18
  approverGroupEmpty: "Choose at least one approver",
19
- approverDuplicate: "This approver is already required by another rule",
19
+ approverDuplicate: "This approver is already required by another step",
20
20
  approverRolesLocked: "Remove the selected people to require a role instead.",
21
21
  approverTeamMembersLocked: "Remove the selected role to require specific people instead.",
22
- approverUsedByOtherRule: "Already required by another rule.",
23
22
  approverUsedByOtherStep: "Already required by another step in this rule.",
24
23
  unlistedPoliciesHeadingOne: "1 existing rule isn’t shown here",
25
24
  unlistedPoliciesHeadingMany: "{count} existing rules aren’t shown here",
@@ -57,22 +57,21 @@ function m(e) {
57
57
  upper: e.max === void 0 ? "" : r(e.max)
58
58
  };
59
59
  }
60
- function h(e, { lookup: t, labels: n, usedByOtherRules: r, usedByOtherSteps: i }) {
61
- let a = !1, o = !1;
60
+ function h(e, { lookup: t, labels: n, usedByOtherSteps: r }) {
61
+ let i = !1, a = !1;
62
62
  for (let n of e.selectedItems) {
63
63
  let e = t.get(n.id)?.kind;
64
- e === "role" ? a = !0 : e === "user" && (o = !0);
64
+ e === "role" ? i = !0 : e === "user" && (a = !0);
65
65
  }
66
- let s = {};
67
- for (let e of r ?? []) s[e] = n.approverUsedByOtherRule;
68
- for (let e of i ?? []) s[e] ??= n.approverUsedByOtherStep;
66
+ let o = {};
67
+ for (let e of r ?? []) o[e] = n.approverUsedByOtherStep;
69
68
  return {
70
69
  ...e,
71
70
  lockedSections: {
72
- roles: o ? n.approverRolesLocked : void 0,
73
- teamMembers: a ? n.approverTeamMembersLocked : void 0
71
+ roles: a ? n.approverRolesLocked : void 0,
72
+ teamMembers: i ? n.approverTeamMembersLocked : void 0
74
73
  },
75
- lockedOptions: s
74
+ lockedOptions: o
76
75
  };
77
76
  }
78
77
  function g(e, t) {
@@ -11,22 +11,22 @@ import { nextPolicyPriority as r } from "../../../util/dist/lib/policyPriority.j
11
11
  import { buildApprovalPolicyScript as i, parseApprovalPolicyScript as a } from "../../../util/dist/lib/policyScript.js";
12
12
  import { buildApprovalPolicyTrigger as o, parseApprovalPolicyTrigger as s } from "../../../util/dist/lib/policyTrigger.js";
13
13
  import { validatePolicyDraft as c } from "../../../util/dist/lib/validatePolicyDraft.js";
14
- import { buildPolicySentence as l, buildPolicyTitle as u, buildUnlistedPoliciesHeading as ee, gapId as te, lockUnavailableApprovers as ne, toAmountConditionErrors as d, toAmountConditionValue as f, toApproverErrors as re, toApproverGroupRefs as ie, toApproverSteps as ae, toGapRanges as oe } from "./policyViewModel.js";
15
- import { useApproverOptions as se } from "./useApproverOptions.js";
16
- import { approvalPolicyTestIds as p } from "./testIds.js";
17
- import { ApprovalPolicyObjectType as ce } from "../../../data-access/dist/lib/queryKeys.js";
18
- import { useDeleteApprovalPoliciesIdMutation as le, useGetApprovalPoliciesQuery as ue, usePatchApprovalPoliciesIdMutation as de, usePostApprovalPoliciesMutation as fe } from "../../../data-access/dist/lib/approvalPoliciesApi.js";
14
+ import { buildPolicySentence as l, buildPolicyTitle as u, buildUnlistedPoliciesHeading as ee, gapId as te, lockUnavailableApprovers as ne, toAmountConditionErrors as d, toAmountConditionValue as f, toApproverErrors as re, toApproverGroupRefs as ie, toApproverSteps as ae, toGapRanges as p } from "./policyViewModel.js";
15
+ import { useApproverOptions as oe } from "./useApproverOptions.js";
16
+ import { approvalPolicyTestIds as m } from "./testIds.js";
17
+ import { ApprovalPolicyObjectType as se } from "../../../data-access/dist/lib/queryKeys.js";
18
+ import { useDeleteApprovalPoliciesIdMutation as ce, useGetApprovalPoliciesQuery as le, usePatchApprovalPoliciesIdMutation as ue, usePostApprovalPoliciesMutation as h } from "../../../data-access/dist/lib/approvalPoliciesApi.js";
19
19
  import "../../../data-access/dist/index.js";
20
- import { useCallback as m, useEffect as h, useMemo as g, useRef as _, useState as v } from "react";
20
+ import { useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
21
21
  //#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js
22
- var y = "draft", pe = {
22
+ var x = "draft", de = {
23
23
  lower: "",
24
24
  upper: ""
25
- }, b = {
25
+ }, S = {
26
26
  lower: !1,
27
27
  upper: !1
28
28
  };
29
- function me(e) {
29
+ function fe(e) {
30
30
  return e.map((e) => {
31
31
  let t = s(e.trigger), n = a(e.script), r = t.currency === void 0 || t.currency === "USD", i = e.status === "active", o = t.hasKnownAmountBounds && r;
32
32
  return {
@@ -41,18 +41,18 @@ function me(e) {
41
41
  };
42
42
  });
43
43
  }
44
- function he(e) {
44
+ function pe(e) {
45
45
  return [...e].sort((e, t) => (e.condition.min ?? 0) - (t.condition.min ?? 0));
46
46
  }
47
- function x({ labels: a, componentLabels: s }) {
48
- let y = ue(), x = fe(), S = de(), C = le(), w = se(), { organizationId: T } = t(), [E, D] = v(null), [O, k] = v(null), A = _(T);
49
- T && T !== A.current && (A.current = T, D(null), k(null));
50
- let j = _(0), M = m(() => (j.current += 1, {
51
- id: `group-new-${j.current}`,
47
+ function C({ labels: a, componentLabels: s }) {
48
+ let x = le(), C = h(), w = ue(), T = ce(), E = oe(), { organizationId: D } = t(), [O, k] = b(null), [A, j] = b(null), M = y(D);
49
+ D && D !== M.current && (M.current = D, k(null), j(null));
50
+ let N = y(0), P = g(() => (N.current += 1, {
51
+ id: `group-new-${N.current}`,
52
52
  selectedItems: []
53
- }), []), N = g(() => me(y.data?.data ?? []), [y.data]), P = g(() => w.isResolving ? [] : he(N.flatMap((e) => {
53
+ }), []), F = v(() => fe(x.data?.data ?? []), [x.data]), I = v(() => E.isResolving ? [] : pe(F.flatMap((e) => {
54
54
  if (!e.isRepresentable) return [];
55
- let t = ae(e.groups, w.lookup);
55
+ let t = ae(e.groups, E.lookup);
56
56
  return t === void 0 ? [] : [{
57
57
  id: e.id,
58
58
  priority: e.priority,
@@ -60,66 +60,55 @@ function x({ labels: a, componentLabels: s }) {
60
60
  steps: t
61
61
  }];
62
62
  })), [
63
- N,
64
- w.isResolving,
65
- w.lookup
66
- ]), F = E ? E.policyId ?? "draft" : null, I = !T && A.current != null || y.isResolving || w.isResolving, L = E?.policyId != null && E.policyId !== O && !I && !P.some((e) => e.id === E.policyId);
67
- h(() => {
68
- L && (D(null), e.error(a.approverUnavailable));
69
- }, [L, a.approverUnavailable]);
70
- let R = g(() => new Set(P.map((e) => e.id)), [P]), z = g(() => I ? [] : N.filter((e) => !R.has(e.id)), [
71
- I,
72
- N,
73
- R
74
- ]), B = g(() => {
75
- let e = /* @__PURE__ */ new Map();
76
- for (let t of P) e.set(t.id, t.steps.flatMap((e) => e.selectedItems.map((e) => e.id)));
77
- return e;
78
- }, [P]), V = g(() => {
79
- let e = /* @__PURE__ */ new Set();
80
- for (let [t, n] of B) if (t !== E?.policyId) for (let t of n) e.add(t);
81
- return e;
82
- }, [B, E?.policyId]), H = g(() => {
83
- if (!E) return;
84
- let e = (e) => e.id !== E.policyId;
63
+ F,
64
+ E.isResolving,
65
+ E.lookup
66
+ ]), L = O ? O.policyId ?? "draft" : null, R = !D && M.current != null || x.isResolving || E.isResolving, z = O?.policyId != null && O.policyId !== A && !R && !I.some((e) => e.id === O.policyId);
67
+ _(() => {
68
+ z && (k(null), e.error(a.approverUnavailable));
69
+ }, [z, a.approverUnavailable]);
70
+ let B = v(() => new Set(I.map((e) => e.id)), [I]), V = v(() => R ? [] : F.filter((e) => !B.has(e.id)), [
71
+ R,
72
+ F,
73
+ B
74
+ ]), H = v(() => {
75
+ if (!O) return;
76
+ let e = (e) => e.id !== O.policyId;
85
77
  return c({
86
- amount: E.amount,
87
- groups: E.steps.map((e) => ({
78
+ amount: O.amount,
79
+ groups: O.steps.map((e) => ({
88
80
  id: e.id,
89
81
  approverIds: e.selectedItems.map((e) => e.id)
90
82
  })),
91
- otherConditions: P.filter(e).map((e) => e.condition),
92
- unlistedConditions: z.filter((t) => t.hasKnownCondition && e(t)).map((e) => e.condition),
93
- approverIdsUsedByOtherRules: [...V].filter((e) => !E.originalApproverIds.has(e))
83
+ otherConditions: I.filter(e).map((e) => e.condition),
84
+ unlistedConditions: V.filter((t) => t.hasKnownCondition && e(t)).map((e) => e.condition)
94
85
  });
95
86
  }, [
96
- E,
97
- P,
98
- z,
87
+ O,
88
+ I,
99
89
  V
100
- ]), U = g(() => n(N.filter((e) => e.coversNow).map((e) => e.condition)), [N]), W = g(() => N.filter((e) => e.hasKnownCondition).map((e) => e.condition), [N]), G = g(() => N.length === 0 ? [] : oe(U, a, W), [
101
- N.length,
90
+ ]), U = v(() => n(F.filter((e) => e.coversNow).map((e) => e.condition)), [F]), W = v(() => F.filter((e) => e.hasKnownCondition).map((e) => e.condition), [F]), G = v(() => F.length === 0 ? [] : p(U, a, W), [
91
+ F.length,
102
92
  U,
103
93
  a,
104
94
  W
105
- ]), ge = g(() => n(W), [W]), _e = !I && N.length > 0 && ge.length === 0 ? P.length === 0 ? a.addRuleFullyCoveredUnlisted : a.addRuleFullyCovered : void 0, [K, ve] = v(0), q = _(null);
106
- h(() => {
95
+ ]), me = v(() => n(W), [W]), he = !R && F.length > 0 && me.length === 0 ? I.length === 0 ? a.addRuleFullyCoveredUnlisted : a.addRuleFullyCovered : void 0, [K, ge] = b(0), q = y(null);
96
+ _(() => {
107
97
  K !== 0 && q.current?.scrollIntoView({
108
98
  behavior: globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth",
109
99
  block: "nearest"
110
100
  });
111
101
  }, [K]);
112
- let J = m((e) => {
113
- D({
102
+ let J = g((e) => {
103
+ k({
114
104
  policyId: null,
115
105
  amount: e,
116
- steps: [M()],
117
- originalApproverIds: /* @__PURE__ */ new Set(),
118
- touchedAmount: b
119
- }), ve((e) => e + 1);
120
- }, [M]), ye = m(() => {
121
- J(pe);
122
- }, [J]), be = m((e) => {
106
+ steps: [P()],
107
+ touchedAmount: S
108
+ }), ge((e) => e + 1);
109
+ }, [P]), _e = g(() => {
110
+ J(de);
111
+ }, [J]), ve = g((e) => {
123
112
  let t = U.find((t) => te(t) === e);
124
113
  t && G.find((t) => t.id === e)?.blockedReason === void 0 && J(f({
125
114
  type: "between",
@@ -130,65 +119,65 @@ function x({ labels: a, componentLabels: s }) {
130
119
  U,
131
120
  G,
132
121
  J
133
- ]), Y = m(() => {
134
- D(null);
135
- }, []), X = x.isPending || S.isPending || C.isPending, Z = m(async () => {
136
- if (!E || !H || !H.isValid) return;
137
- let t = H.condition, n = ie(E.steps, w.lookup);
122
+ ]), Y = g(() => {
123
+ k(null);
124
+ }, []), X = C.isPending || w.isPending || T.isPending, Z = g(async () => {
125
+ if (!O || !H || !H.isValid) return;
126
+ let t = H.condition, n = ie(O.steps, E.lookup);
138
127
  if (!n) {
139
128
  e.error(a.approverUnavailable);
140
129
  return;
141
130
  }
142
131
  let s = o(t), c = i(n), l = u(t, a);
143
132
  try {
144
- E.policyId === null ? await x.mutateAsync({ body: {
145
- object_type: ce.Payable,
133
+ O.policyId === null ? await C.mutateAsync({ body: {
134
+ object_type: se.Payable,
146
135
  name: l,
147
136
  trigger: s,
148
137
  script: c,
149
- priority: r(N.map((e) => e.priority))
150
- } }) : await S.mutateAsync({
151
- path: { approval_policy_id: E.policyId },
138
+ priority: r(F.map((e) => e.priority))
139
+ } }) : await w.mutateAsync({
140
+ path: { approval_policy_id: O.policyId },
152
141
  body: {
153
142
  name: l,
154
143
  trigger: s,
155
144
  script: c
156
145
  }
157
- }), D(null), e.success(a.ruleSaved);
146
+ }), k(null), e.success(a.ruleSaved);
158
147
  } catch {
159
148
  e.error(a.ruleSaveFailed);
160
149
  }
161
150
  }, [
162
- E,
151
+ O,
163
152
  H,
164
- w.lookup,
153
+ E.lookup,
165
154
  a,
166
- N,
167
- x,
168
- S
169
- ]), xe = m(async () => {
170
- if (O) try {
171
- await C.mutateAsync({ path: { approval_policy_id: O } }), k(null), D(null), e.success(a.ruleDeleted);
155
+ F,
156
+ C,
157
+ w
158
+ ]), ye = g(async () => {
159
+ if (A) try {
160
+ await T.mutateAsync({ path: { approval_policy_id: A } }), j(null), k(null), e.success(a.ruleDeleted);
172
161
  } catch {
173
- k(null), e.error(a.ruleDeleteFailed);
162
+ j(null), e.error(a.ruleDeleteFailed);
174
163
  }
175
164
  }, [
176
- O,
177
- C,
165
+ A,
166
+ T,
178
167
  a
179
- ]), Se = I || X, Q = g(() => {
180
- if (!E || !H || X) return;
168
+ ]), be = R || X, Q = v(() => {
169
+ if (!O || !H || X) return;
181
170
  let e = d(H.amountErrors, a);
182
171
  if (e) return {
183
- lower: E.touchedAmount.lower ? e.lower : void 0,
184
- upper: E.touchedAmount.upper ? e.upper : void 0
172
+ lower: O.touchedAmount.lower ? e.lower : void 0,
173
+ upper: O.touchedAmount.upper ? e.upper : void 0
185
174
  };
186
175
  }, [
187
- E,
176
+ O,
188
177
  H,
189
178
  X,
190
179
  a
191
- ]), $ = g(() => {
180
+ ]), $ = v(() => {
192
181
  if (!H || H.isValid) return;
193
182
  let e = re(H.groupErrors, a), t = d(H.amountErrors, a), n = [
194
183
  ...Object.values(e?.steps ?? {}),
@@ -198,28 +187,28 @@ function x({ labels: a, componentLabels: s }) {
198
187
  return r.length > 0 ? r : void 0;
199
188
  }, [H, a]);
200
189
  return {
201
- items: g(() => {
190
+ items: v(() => {
202
191
  let e = {
203
- onAmountConditionChange: (e) => D((t) => t && {
192
+ onAmountConditionChange: (e) => k((t) => t && {
204
193
  ...t,
205
194
  amount: e
206
195
  }),
207
- onAmountFieldBlur: (e) => D((t) => t && {
196
+ onAmountFieldBlur: (e) => k((t) => t && {
208
197
  ...t,
209
198
  touchedAmount: {
210
199
  ...t.touchedAmount,
211
200
  [e]: !0
212
201
  }
213
202
  }),
214
- onApproverStepsChange: (e) => D((t) => t && {
203
+ onApproverStepsChange: (e) => k((t) => t && {
215
204
  ...t,
216
205
  steps: e
217
206
  }),
218
- onAddApproverStep: () => D((e) => e && {
207
+ onAddApproverStep: () => k((e) => e && {
219
208
  ...e,
220
- steps: [...e.steps, M()]
209
+ steps: [...e.steps, P()]
221
210
  }),
222
- onRemoveApproverStep: (e) => D((t) => t && {
211
+ onRemoveApproverStep: (e) => k((t) => t && {
223
212
  ...t,
224
213
  steps: t.steps.filter((t) => t.id !== e)
225
214
  })
@@ -228,22 +217,20 @@ function x({ labels: a, componentLabels: s }) {
228
217
  title: u(n, a),
229
218
  sentence: l(n, a),
230
219
  approverSteps: r.map((e) => ne(e, {
231
- lookup: w.lookup,
220
+ lookup: E.lookup,
232
221
  labels: a,
233
- usedByOtherRules: i ? V : void 0,
234
222
  usedByOtherSteps: i ? new Set(r.filter((t) => t.id !== e.id).flatMap((e) => e.selectedItems.map((e) => e.id))) : void 0
235
223
  })),
236
224
  addApproverStepDisabled: r.some((e) => e.selectedItems.length === 0),
237
- approverOptions: w.options,
225
+ approverOptions: E.options,
238
226
  amountCondition: f(n),
239
227
  amountConditionErrors: i ? Q : void 0,
240
228
  onEdit: () => {
241
- D({
229
+ k({
242
230
  policyId: t,
243
231
  amount: f(n),
244
232
  steps: r,
245
- originalApproverIds: new Set(r.flatMap((e) => e.selectedItems.map((e) => e.id))),
246
- touchedAmount: b
233
+ touchedAmount: S
247
234
  });
248
235
  },
249
236
  onCancel: Y,
@@ -254,72 +241,71 @@ function x({ labels: a, componentLabels: s }) {
254
241
  labels: s?.policyCard,
255
242
  testIds: {
256
243
  amountConditionBuilder: {
257
- root: p.amountConditionBuilder,
258
- lowerInput: p.amountConditionLowerInput,
259
- upperInput: p.amountConditionUpperInput
244
+ root: m.amountConditionBuilder,
245
+ lowerInput: m.amountConditionLowerInput,
246
+ upperInput: m.amountConditionUpperInput
260
247
  },
261
248
  approverGroupsBuilder: {
262
- root: p.approverGroupsBuilder,
263
- loading: p.approverGroupsLoading,
264
- error: p.approverGroupsError,
265
- description: p.approverGroupsDescription,
266
- empty: p.approverGroupsEmpty,
267
- addStepButton: p.approverGroupsAddStep
249
+ root: m.approverGroupsBuilder,
250
+ loading: m.approverGroupsLoading,
251
+ error: m.approverGroupsError,
252
+ description: m.approverGroupsDescription,
253
+ empty: m.approverGroupsEmpty,
254
+ addStepButton: m.approverGroupsAddStep
268
255
  }
269
256
  },
270
257
  ...e
271
- }), n = P.map((e) => {
272
- let n = F === e.id, r = t(e.id, e.condition, n && E ? E.steps : e.steps, n, () => k(e.id));
273
- return n && E ? {
258
+ }), n = I.map((e) => {
259
+ let n = L === e.id, r = t(e.id, e.condition, n && O ? O.steps : e.steps, n, () => j(e.id));
260
+ return n && O ? {
274
261
  ...r,
275
- amountCondition: E.amount
262
+ amountCondition: O.amount
276
263
  } : r;
277
264
  });
278
- return E?.policyId === null && n.unshift({
279
- ...t("draft", { type: "between" }, E.steps, !0, void 0),
280
- amountCondition: E.amount,
265
+ return O?.policyId === null && n.unshift({
266
+ ...t("draft", { type: "between" }, O.steps, !0, void 0),
267
+ amountCondition: O.amount,
281
268
  ref: q
282
269
  }), n;
283
270
  }, [
284
- P,
285
- E,
286
- F,
271
+ I,
272
+ O,
273
+ L,
287
274
  Q,
288
275
  $,
289
276
  H,
290
277
  a,
291
278
  s?.policyCard,
292
- w.options,
293
- w.lookup,
294
- V,
279
+ E.options,
280
+ E.lookup,
295
281
  Y,
296
- M,
282
+ P,
297
283
  Z
298
284
  ]),
299
- editingId: F,
285
+ editingId: L,
300
286
  gaps: G,
301
- unlistedPoliciesHeading: ee(z.length, a),
302
- unlistedPoliciesBlockAmounts: z.some((e) => e.hasKnownCondition),
303
- unlistedPoliciesStillApply: z.some((e) => e.isActive),
304
- onAddRule: ye,
305
- addRuleDisabledReason: _e,
306
- onSelectGap: be,
307
- isBusy: Se,
308
- isLoading: I,
309
- isError: y.isError || w.isError,
287
+ unlistedPoliciesHeading: ee(V.length, a),
288
+ unlistedPoliciesBlockAmounts: V.some((e) => e.hasKnownCondition),
289
+ unlistedPoliciesStillApply: V.some((e) => e.isActive),
290
+ onAddRule: _e,
291
+ addRuleDisabledReason: he,
292
+ onSelectGap: ve,
293
+ isBusy: be,
294
+ isLoading: R,
295
+ isError: x.isError || E.isError,
310
296
  onRetry: () => {
311
- y.refetch(), w.refetch();
297
+ x.refetch(), E.refetch();
312
298
  },
313
299
  deleteDialog: {
314
- open: O !== null,
315
- isDeleting: C.isPending,
300
+ open: A !== null,
301
+ isDeleting: T.isPending,
316
302
  onOpenChange: (e) => {
317
- e || k(null);
303
+ e || j(null);
318
304
  },
319
- onConfirm: () => void xe(),
320
- onCancel: () => k(null)
305
+ onConfirm: () => void ye(),
306
+ onCancel: () => j(null)
321
307
  }
322
308
  };
323
309
  }
324
310
  //#endregion
325
- export { y as DRAFT_POLICY_ID, x as useApprovalPolicyRules };
311
+ export { x as DRAFT_POLICY_ID, C as useApprovalPolicyRules };
@@ -19,7 +19,7 @@ function a(a) {
19
19
  let t = (t) => t.some((t) => e(d, t)), n = t(a.otherConditions) ? r.Overlap : t(a.unlistedConditions ?? []) ? r.OverlapUnlisted : void 0;
20
20
  n && (c.lower = n, c.upper = n);
21
21
  }
22
- let f = {}, p = new Set(a.approverIdsUsedByOtherRules ?? []);
22
+ let f = {}, p = /* @__PURE__ */ new Set();
23
23
  for (let e of a.groups) {
24
24
  if (e.approverIds.length === 0) {
25
25
  f[e.id] = i.Empty;
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.7.73", n = "6460d41dcd6d9cc7806778015e14814d4bfd495d", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.7.74", n = "d23dff761f62b81b42e673496e0b7f74793bc606", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.7.73",
3
+ "version": "0.7.74",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [