@tesouro/embedded-components-react 0.5.92 → 0.5.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/feature/dist/lib/ExpenseRequirementsWidget.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/feature/dist/lib/analytics/events.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/feature/dist/lib/useTransactionValidations.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +0 -10
- /package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{expense-requirements-widget → shared/expense-requirements}/ui/dist/index.js +0 -0
|
@@ -11,8 +11,8 @@ import { ExpenseApprovalPoliciesWidget as r } from "./index6.js";
|
|
|
11
11
|
import { UploadReceiptWidget as i } from "./index7.js";
|
|
12
12
|
import { ReceiptMatchPane as a } from "./index11.js";
|
|
13
13
|
import { ExpenseManagementWidgetAnalyticsEvent as o, WIDGET_NAME as s } from "./index12.js";
|
|
14
|
-
import { ExpenseRequirementsWidget as c } from "../../../expense-requirements
|
|
15
|
-
import "../../../expense-requirements
|
|
14
|
+
import { ExpenseRequirementsWidget as c } from "../../../shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js";
|
|
15
|
+
import "../../../shared/expense-requirements/feature/dist/index.js";
|
|
16
16
|
import { useEffect as l } from "react";
|
|
17
17
|
import { jsx as u } from "react/jsx-runtime";
|
|
18
18
|
//#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { Tabs as e, TabsContent as t, TabsList as n, TabsTrigger as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { ExpenseApprovalPoliciesWidget as i } from "../../../expense-management-widget/feature/dist/index6.js";
|
|
7
|
-
import { ExpenseRequirementsWidget as a } from "../../../expense-requirements
|
|
8
|
-
import "../../../expense-requirements
|
|
7
|
+
import { ExpenseRequirementsWidget as a } from "../../../shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js";
|
|
8
|
+
import "../../../shared/expense-requirements/feature/dist/index.js";
|
|
9
9
|
import "../../../expense-management-widget/feature/dist/index.js";
|
|
10
10
|
import { useState as o } from "react";
|
|
11
11
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getTransactionsValidationsQueryKey as t } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as transactionsValidationsInvalidationKey };
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "../../../
|
|
6
|
-
import { useEmbedApi as t } from "../../../
|
|
7
|
-
import { getTransactionsValidationsOptions as n, putTransactionsValidationsMutation as r } from "../../../
|
|
8
|
-
import { withAuthEpoch as i } from "../../../
|
|
9
|
-
import "../../../
|
|
5
|
+
import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { getTransactionsValidationsOptions as n, putTransactionsValidationsMutation as r } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as i } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { transactionsValidationsInvalidationKey as a } from "./index2.js";
|
|
11
11
|
import { useMutation as o, useQuery as s } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-requirements
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js
|
|
13
13
|
function c() {
|
|
14
14
|
let { client: e, organizationId: r, widgetToken: a, authEpoch: o } = t(), c = !!(r && a), l = n({
|
|
15
15
|
client: e,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Button as e, toast as t } from "
|
|
6
|
-
import { EmbeddedToaster as n } from "../../../../
|
|
7
|
-
import "../../../../
|
|
8
|
-
import { useAnalyticsTrack as r } from "../../../../
|
|
9
|
-
import { WidgetProvider as i } from "../../../../
|
|
10
|
-
import "../../../../
|
|
5
|
+
import { Button as e, toast as t } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { EmbeddedToaster as n } from "../../../../ui/dist/lib/EmbeddedToaster.js";
|
|
7
|
+
import "../../../../ui/dist/index.js";
|
|
8
|
+
import { useAnalyticsTrack as r } from "../../../../feature/dist/lib/analytics/hooks.js";
|
|
9
|
+
import { WidgetProvider as i } from "../../../../feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
10
|
+
import "../../../../feature/dist/index.js";
|
|
11
11
|
import { FIELDS_WITH_THRESHOLD as a, FIELD_KEYS as o, useTransactionValidations as s } from "./useTransactionValidations.js";
|
|
12
12
|
import { ExpenseRequirementsAnalyticsEvent as c, WIDGET_NAME as l } from "./analytics/events.js";
|
|
13
13
|
import { ExpenseRequirementsWidgetLabels as u, FieldConfigLabels as d } from "../../../ui/dist/index2.js";
|
|
@@ -16,7 +16,7 @@ import "../../../ui/dist/index.js";
|
|
|
16
16
|
import { useEffect as p } from "react";
|
|
17
17
|
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
18
18
|
import { FileText as _, ReceiptText as v } from "lucide-react";
|
|
19
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-requirements
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js
|
|
20
20
|
var y = {
|
|
21
21
|
receipt_id: /* @__PURE__ */ h(v, { size: 20 }),
|
|
22
22
|
description: /* @__PURE__ */ h(_, { size: 20 })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-requirements
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/analytics/events.js
|
|
2
2
|
var e = { Mounted: "expense_requirements.mounted" }, t = "expense_requirements";
|
|
3
3
|
//#endregion
|
|
4
4
|
export { e as ExpenseRequirementsAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { useEmbedApi as e } from "../../../../
|
|
2
|
-
import "../../../../
|
|
1
|
+
import { useEmbedApi as e } from "../../../../data-access/dist/lib/EmbedApiContext.js";
|
|
2
|
+
import "../../../../data-access/dist/index.js";
|
|
3
3
|
import { useGetTransactionsValidationsQuery as t, usePutTransactionsValidationsMutation as n } from "../../../data-access/dist/index3.js";
|
|
4
4
|
import "../../../data-access/dist/index.js";
|
|
5
5
|
import { useCallback as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-requirements
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/useTransactionValidations.js
|
|
7
7
|
var s = ["receipt_id", "description"], c = /* @__PURE__ */ new Set(["receipt_id", "description"]), l = {
|
|
8
8
|
receipt_id: {
|
|
9
9
|
required: !1,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Input as e, Switch as t } from "
|
|
5
|
+
import { Input as e, Switch as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { RequirementCardLabels as n } from "./index2.js";
|
|
7
7
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
|
-
//#region ../../libs/tesouro-embedded-components-react/expense-requirements
|
|
8
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/ui/dist/index3.js
|
|
9
9
|
function o({ label: o, icon: s, required: c, onChange: l, disabled: u, amount: d, onAmountChange: f }) {
|
|
10
10
|
return /* @__PURE__ */ a("div", {
|
|
11
11
|
className: "ttw:border ttw:border-border ttw:rounded-lg ttw:p-4",
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.94", n = "193cc3bf0332682b6699d5de97becdf5c008c1a2", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
-
import { getTransactionsValidationsQueryKey as t } 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/expense-requirements-widget/data-access/dist/index2.js
|
|
5
|
-
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
-
client: n,
|
|
7
|
-
headers: e(r)
|
|
8
|
-
});
|
|
9
|
-
//#endregion
|
|
10
|
-
export { n as transactionsValidationsInvalidationKey };
|
|
File without changes
|
|
File without changes
|