@tesouro/embedded-components-react 0.5.20 → 0.5.24

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 (51) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +1 -1
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +191 -193
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -16
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +16 -20
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +21 -12
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -9
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +140 -139
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +139 -134
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
  17. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +24 -0
  18. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +13 -0
  19. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index4.js +6 -6
  20. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index5.js +6 -6
  21. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +33 -0
  22. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
  23. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
  24. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
  25. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index10.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index11.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index2.js +5 -0
  28. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index3.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index4.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index5.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index6.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index7.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index8.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index9.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index2.js +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index3.js +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index4.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index5.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index10.js +0 -25
  42. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index2.js +0 -24
  43. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index3.js +0 -13
  44. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +0 -33
  45. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index7.js +0 -19
  46. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js +0 -22
  47. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js +0 -26
  48. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index2.js +0 -4
  49. /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/data-access/dist/index.js +0 -0
  50. /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/feature/dist/index.js +0 -0
  51. /package/dist/libs/tesouro-embedded-components-react/{tags-widget → settings-widget/tags}/ui/dist/index.js +0 -0
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
+ import { getEntitiesIdSettingsOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
+ import "../../../../shared/data-access/dist/index.js";
9
+ import { useQuery as r } from "@tanstack/react-query";
10
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js
11
+ function i(i) {
12
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = e(), l = !!(o && s && i), u = t({
13
+ client: a,
14
+ path: { entity_id: i ?? "" }
15
+ });
16
+ return r({
17
+ ...n(u, c),
18
+ enabled: l
19
+ });
20
+ }
21
+ //#endregion
22
+ export { i as useEntitySettingsQuery };
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
+ import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { patchEntitiesIdSettingsMutation as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
+ import "../../../../shared/data-access/dist/index.js";
9
+ import { entitySettingsInvalidationKey as r } from "./index3.js";
10
+ import { useMutation as i } from "@tanstack/react-query";
11
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js
12
+ function a() {
13
+ let { client: a } = t();
14
+ return i({
15
+ ...n({ client: a }),
16
+ onSuccess: async (t, n) => {
17
+ let i = n?.path?.entity_id;
18
+ i && await e(r({
19
+ client: a,
20
+ entityId: i
21
+ }));
22
+ }
23
+ });
24
+ }
25
+ //#endregion
26
+ export { a as useUpdateEntitySettingsMutation };
@@ -9,7 +9,7 @@ import { useTagDelete as r } from "./index7.js";
9
9
  import { useTagForm as i } from "./index8.js";
10
10
  import { useTagsTable as a } from "./index9.js";
11
11
  import { useCallback as o, useMemo as s, useState as c } from "react";
12
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index10.js
12
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js
13
13
  function l({ messageLabels: l }) {
14
14
  let u = s(() => ({
15
15
  ...e,
@@ -2,9 +2,9 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useAnalyticsTrack as e } from "../../../shared/feature/dist/lib/analytics/hooks.js";
6
- import { WidgetProvider as t } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
- import "../../../shared/feature/dist/index.js";
5
+ import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
6
+ import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
7
+ import "../../../../shared/feature/dist/index.js";
8
8
  import { TagsWidgetAnalyticsEvent as n, WIDGET_NAME as r } from "./index2.js";
9
9
  import { PAGE_SIZE_OPTIONS as i } from "./index3.js";
10
10
  import { useTagsWidget as a } from "./index10.js";
@@ -14,7 +14,7 @@ import { TagDeleteDialog as c } from "../../ui/dist/index5.js";
14
14
  import "../../ui/dist/index.js";
15
15
  import { useEffect as l } from "react";
16
16
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
17
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js
17
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js
18
18
  function p({ pageSizeOptions: t = i, screenLabels: r, formLabels: p, deleteLabels: m, messageLabels: h }) {
19
19
  let g = e();
20
20
  l(() => {
@@ -0,0 +1,5 @@
1
+ import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
2
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index2.js
3
+ var t = `${e}.tags`, n = { Mounted: `${t}.mounted` };
4
+ //#endregion
5
+ export { n as TagsWidgetAnalyticsEvent, t as WIDGET_NAME };
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index3.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index3.js
2
2
  var e = [
3
3
  10,
4
4
  25,
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index4.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js
2
2
  var e = {
3
3
  nameRequired: "Required",
4
4
  nameTooLong: "Value must be at most '255' characters",
@@ -1,5 +1,5 @@
1
1
  import { TAG_MESSAGE_LABELS_EN as e } from "./index4.js";
2
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index5.js
2
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js
3
3
  var t = [
4
4
  "document_type",
5
5
  "department",
@@ -8,7 +8,7 @@ import { useEntitySettingsQuery as r } from "../../data-access/dist/index8.js";
8
8
  import { useEntityUsersQuery as i } from "../../data-access/dist/index10.js";
9
9
  import "../../data-access/dist/index.js";
10
10
  import { useCallback as a, useMemo as o } from "react";
11
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index6.js
11
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js
12
12
  function s({ messages: s }) {
13
13
  let c = n().data?.id, l = r(c), u = i(), d = o(() => e(l.data?.payables_ocr_auto_tagging), [l.data]), f = o(() => t(u.data?.data), [u.data]), p = a(async () => (await l.refetch()).data ?? l.data, [l]), m = a(async () => {
14
14
  let e = await p();
@@ -7,7 +7,7 @@ import { useDeleteTagMutation as t } from "../../data-access/dist/index6.js";
7
7
  import { useUpdateEntitySettingsMutation as n } from "../../data-access/dist/index9.js";
8
8
  import "../../data-access/dist/index.js";
9
9
  import { useCallback as r, useState as i } from "react";
10
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index7.js
10
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js
11
11
  function a({ selectedTag: a, setSelectedTag: o, settings: s }) {
12
12
  let { entityId: c, requireFreshSettings: l } = s, u = t(), d = n(), [f, p] = i(!1), m = r((e) => {
13
13
  o(e), p(!0);
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { extractApiErrorMessage as e } from "../../../shared/util/dist/lib/apiErrors.js";
5
+ import { extractApiErrorMessage as e } from "../../../../shared/util/dist/lib/apiErrors.js";
6
6
  import { EMPTY_FORM_VALUES as t } from "./index3.js";
7
7
  import { buildKeywordsByTagId as n, computeNextOcrAutoTagging as r, getCategoryOptions as i, hasFormErrors as a, isDuplicateTagNameError as o, validateTagForm as s } from "./index5.js";
8
8
  import { useCreateTagMutation as c } from "../../data-access/dist/index4.js";
@@ -10,7 +10,7 @@ import { useUpdateTagMutation as l } from "../../data-access/dist/index5.js";
10
10
  import { useUpdateEntitySettingsMutation as u } from "../../data-access/dist/index9.js";
11
11
  import "../../data-access/dist/index.js";
12
12
  import { useCallback as d, useMemo as f, useState as p } from "react";
13
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index8.js
13
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js
14
14
  function m({ selectedTag: m, setSelectedTag: h, settings: g, messages: _ }) {
15
15
  let { entityId: v, settingsData: y, refetchSettings: b, requireFreshSettings: x } = g, S = c(), C = l(), w = u(), [T, E] = p(!1), [D, O] = p("create"), [k, A] = p(t), [j, M] = p({});
16
16
  return {
@@ -6,7 +6,7 @@ import { buildTagRows as e, sortFieldForColumn as t } from "./index5.js";
6
6
  import { useTagsQuery as n } from "../../data-access/dist/index2.js";
7
7
  import "../../data-access/dist/index.js";
8
8
  import { useCallback as r, useMemo as i, useState as a } from "react";
9
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index9.js
9
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js
10
10
  function o({ keywordsByTagId: o, userNamesById: s }) {
11
11
  let [c, l] = a([{
12
12
  id: "createdAtLabel",
@@ -1,4 +1,4 @@
1
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/ui/dist/index2.js
1
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js
2
2
  var e = {
3
3
  createButton: "Create",
4
4
  columnName: "Name",
@@ -1,11 +1,11 @@
1
- import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { EmptyState as o } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
- import { ErrorState as s } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
- import "../../../shared/ui/dist/index.js";
1
+ import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as o } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as s } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import "../../../../shared/ui/dist/index.js";
5
5
  import { TAGS_SCREEN_LABELS_EN as c } from "./index2.js";
6
6
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
7
7
  import { ArrowDownIcon as d, ArrowUpDownIcon as f, ArrowUpIcon as p, MoreVerticalIcon as m, PlusIcon as h, Trash2Icon as g } from "lucide-react";
8
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js
8
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index3.js
9
9
  var _ = [
10
10
  10,
11
11
  25,
@@ -1,8 +1,8 @@
1
- import { Button as e, Input as t, InputTags as n, Label as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c, Sheet as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { Button as e, Input as t, InputTags as n, Label as r, Select as i, SelectContent as a, SelectItem as o, SelectTrigger as s, SelectValue as c, Sheet as l, SheetContent as u, SheetDescription as d, SheetFooter as f, SheetHeader as p, SheetTitle as m } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { TAG_FORM_SHEET_LABELS_EN as h } from "./index2.js";
3
3
  import { useId as g } from "react";
4
4
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
5
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/ui/dist/index4.js
5
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index4.js
6
6
  function y({ open: y, onOpenChange: b, mode: x, values: S, errors: C, categoryOptions: w, tagName: T, inProgress: E, showDelete: D, onNameChange: O, onCategoryChange: k, onKeywordsChange: A, onKeywordsInputChange: j, onSubmit: M, onCancel: N, onDelete: P, labels: F }) {
7
7
  let I = {
8
8
  ...h,
@@ -1,7 +1,7 @@
1
- import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { TAG_DELETE_DIALOG_LABELS_EN as s } from "./index2.js";
3
3
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/ui/dist/index5.js
4
+ //#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index5.js
5
5
  function u({ open: u, onOpenChange: d, tagName: f, isDeleting: p, onConfirm: m, onCancel: h, labels: g }) {
6
6
  let _ = {
7
7
  ...s,
@@ -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.5.20", n = "57c6eae1cd161650486838db1dece762345eb368", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.24", n = "980ea14e555ac5276bc9cf03c8c53b072ab58da1", 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.5.20",
3
+ "version": "0.5.24",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,25 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getEntityUsersOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { useQuery as i } from "@tanstack/react-query";
11
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index10.js
12
- var a = 100;
13
- function o(o = a) {
14
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l), f = n({
15
- query: { limit: o },
16
- client: s,
17
- headers: t(c)
18
- });
19
- return i({
20
- ...r(f, u),
21
- enabled: d
22
- });
23
- }
24
- //#endregion
25
- export { o as useEntityUsersQuery };
@@ -1,24 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getTagsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { useQuery as i } from "@tanstack/react-query";
11
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index2.js
12
- function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (a === !0 || a === void 0), f = n({
14
- query: o,
15
- client: s,
16
- headers: t(c)
17
- });
18
- return i({
19
- ...r(f, u),
20
- enabled: d
21
- });
22
- }
23
- //#endregion
24
- export { a as useTagsQuery };
@@ -1,13 +0,0 @@
1
- import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getEntitiesIdSettingsQueryKey as t, getTagsQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
3
- import "../../../shared/data-access/dist/index.js";
4
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index3.js
5
- var r = ({ client: t, organizationId: r }) => n({
6
- client: t,
7
- headers: e(r)
8
- }), i = ({ client: e, entityId: n }) => t({
9
- client: e,
10
- path: { entity_id: n }
11
- });
12
- //#endregion
13
- export { i as entitySettingsInvalidationKey, r as tagsInvalidationKey };
@@ -1,33 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { deleteTagsId as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
9
- import "../../../shared/data-access/dist/index.js";
10
- import { tagsInvalidationKey as i } from "./index3.js";
11
- import { useMutation as a } from "@tanstack/react-query";
12
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js
13
- function o() {
14
- let { client: o, organizationId: s } = t();
15
- return a({
16
- mutationFn: async ({ path: e }) => {
17
- await r({
18
- client: o,
19
- headers: n(s),
20
- path: e,
21
- throwOnError: !0
22
- });
23
- },
24
- onSuccess: async () => {
25
- await e(i({
26
- client: o,
27
- organizationId: s
28
- }));
29
- }
30
- });
31
- }
32
- //#endregion
33
- export { o as useDeleteTagMutation };
@@ -1,19 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getEntitiesMeOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { useQuery as r } from "@tanstack/react-query";
10
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index7.js
11
- function i() {
12
- let { client: i, organizationId: a, widgetToken: o, authEpoch: s } = e(), c = !!(a && o), l = t({ client: i });
13
- return r({
14
- ...n(l, s),
15
- enabled: c
16
- });
17
- }
18
- //#endregion
19
- export { i as useMyEntityQuery };
@@ -1,22 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getEntitiesIdSettingsOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { useQuery as r } from "@tanstack/react-query";
10
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index8.js
11
- function i(i) {
12
- let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = e(), l = !!(o && s && i), u = t({
13
- client: a,
14
- path: { entity_id: i ?? "" }
15
- });
16
- return r({
17
- ...n(u, c),
18
- enabled: l
19
- });
20
- }
21
- //#endregion
22
- export { i as useEntitySettingsQuery };
@@ -1,26 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { invalidateAllClients as e } from "../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { patchEntitiesIdSettingsMutation as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import "../../../shared/data-access/dist/index.js";
9
- import { entitySettingsInvalidationKey as r } from "./index3.js";
10
- import { useMutation as i } from "@tanstack/react-query";
11
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index9.js
12
- function a() {
13
- let { client: a } = t();
14
- return i({
15
- ...n({ client: a }),
16
- onSuccess: async (t, n) => {
17
- let i = n?.path?.entity_id;
18
- i && await e(r({
19
- client: a,
20
- entityId: i
21
- }));
22
- }
23
- });
24
- }
25
- //#endregion
26
- export { a as useUpdateEntitySettingsMutation };
@@ -1,4 +0,0 @@
1
- //#region ../../libs/tesouro-embedded-components-react/tags-widget/feature/dist/index2.js
2
- var e = { Mounted: "tags.mounted" }, t = "tags";
3
- //#endregion
4
- export { e as TagsWidgetAnalyticsEvent, t as WIDGET_NAME };