@tesouro/embedded-components-react 0.5.5 → 0.5.7
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/settings-widget/feature/dist/index2.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index2.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/shared/util/dist/lib/widgetName.js +4 -0
- 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/profile-widget/data-access/dist/index2.js +0 -27
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index2.js +0 -4
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/feature/dist/index5.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{profile-widget → settings-widget/profile}/ui/dist/index.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { SETTINGS_WIDGET_NAME as e } from "../../shared/util/dist/lib/widgetName.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js
|
|
2
|
-
var
|
|
3
|
+
var t = { Mounted: `${e}.mounted` }, n = e;
|
|
3
4
|
//#endregion
|
|
4
|
-
export {
|
|
5
|
+
export { t as SettingsWidgetAnalyticsEvent, n as WIDGET_NAME };
|
|
@@ -27,8 +27,8 @@ import { ChartOfAccountsWidget as g } from "../../../gl-code-table-widget/featur
|
|
|
27
27
|
import "../../../gl-code-table-widget/feature/dist/index.js";
|
|
28
28
|
import { HelpWidget as _ } from "../../../help-widget/feature/dist/index3.js";
|
|
29
29
|
import "../../../help-widget/feature/dist/index.js";
|
|
30
|
-
import { ProfileWidget as v } from "
|
|
31
|
-
import "
|
|
30
|
+
import { ProfileWidget as v } from "../../profile/feature/dist/index4.js";
|
|
31
|
+
import "../../profile/feature/dist/index.js";
|
|
32
32
|
import { useEffect as y } from "react";
|
|
33
33
|
import { jsx as b } from "react/jsx-runtime";
|
|
34
34
|
import { useControllableState as x } from "@radix-ui/react-use-controllable-state";
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { getEntityUsersMyEntityOptions 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 { useCurrentUserQuery as i } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js
|
|
13
|
+
function o({ enabled: o } = {}) {
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
15
|
+
return {
|
|
16
|
+
userQuery: i({ enabled: d }),
|
|
17
|
+
entityQuery: a({
|
|
18
|
+
...r(n({
|
|
19
|
+
client: s,
|
|
20
|
+
headers: t(c)
|
|
21
|
+
}), u),
|
|
22
|
+
enabled: d
|
|
23
|
+
})
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as useProfileQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index2.js
ADDED
|
@@ -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/profile/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.profile_widget`, n = { Mounted: `${t}.mounted` };
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as ProfileWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index3.js
|
|
2
2
|
var e = {
|
|
3
3
|
personalTab: "Personal information",
|
|
4
4
|
businessTab: "Business information",
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "
|
|
6
|
-
import { WidgetProvider as t } from "
|
|
7
|
-
import { formatPhoneDisplay as n } from "
|
|
8
|
-
import { useWidgetConfig as r } from "
|
|
9
|
-
import "
|
|
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 { formatPhoneDisplay as n } from "../../../../shared/util/dist/lib/formatPhoneDisplay.js";
|
|
8
|
+
import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
|
+
import "../../../../shared/feature/dist/index.js";
|
|
10
10
|
import { DEFAULT_FEATURE_LABELS as i } from "./index3.js";
|
|
11
11
|
import { ProfileWidgetAnalyticsEvent as a, WIDGET_NAME as o } from "./index2.js";
|
|
12
12
|
import { useProfileQuery as s } from "../../data-access/dist/index2.js";
|
|
@@ -15,7 +15,7 @@ import { ProfileCard as c } from "../../ui/dist/index3.js";
|
|
|
15
15
|
import "../../ui/dist/index.js";
|
|
16
16
|
import { useCallback as l, useEffect as u, useState as d } from "react";
|
|
17
17
|
import { jsx as f } from "react/jsx-runtime";
|
|
18
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
18
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/feature/dist/index4.js
|
|
19
19
|
var p = {
|
|
20
20
|
Personal: "personal",
|
|
21
21
|
Business: "business"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index2.js
|
|
2
2
|
var e = {
|
|
3
3
|
loadingLabel: "Loading profile",
|
|
4
4
|
errorLabel: "Unable to load profile",
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Skeleton as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i } from "
|
|
6
|
-
import { SectionHeading as a } from "
|
|
7
|
-
import "
|
|
5
|
+
import { Skeleton as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { SectionHeading as a } from "../../../../shared/ui/dist/lib/SectionHeading/SectionHeading.js";
|
|
7
|
+
import "../../../../shared/ui/dist/index.js";
|
|
8
8
|
import { DEFAULT_LABELS as o } from "./index2.js";
|
|
9
9
|
import { Fragment as s } from "react";
|
|
10
10
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/ui/dist/index3.js
|
|
12
12
|
var d = {
|
|
13
13
|
Primary: "primary",
|
|
14
14
|
Secondary: "secondary"
|
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.7", n = "8f5acc275bfd0dc04a0b01538da86c5fd2b31132", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
package/dist/libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js
DELETED
|
@@ -1,27 +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 { getEntityUsersMyEntityOptions 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 { useCurrentUserQuery as i } from "../../../shared/data-access/dist/lib/useCurrentUserQuery.js";
|
|
10
|
-
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { useQuery as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/profile-widget/data-access/dist/index2.js
|
|
13
|
-
function o({ enabled: o } = {}) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
15
|
-
return {
|
|
16
|
-
userQuery: i({ enabled: d }),
|
|
17
|
-
entityQuery: a({
|
|
18
|
-
...r(n({
|
|
19
|
-
client: s,
|
|
20
|
-
headers: t(c)
|
|
21
|
-
}), u),
|
|
22
|
-
enabled: d
|
|
23
|
-
})
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { o as useProfileQuery };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|