@stack-spot/portal-layout 2.3.0 → 2.3.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.3.1](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.3.0...portal-layout@v2.3.1) (2024-08-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add portal pro ([92b552a](https://github.com/stack-spot/portal-commons/commit/92b552aa94fe5e607cdaaf98c186bfb4a39caec6))
|
|
9
|
+
|
|
3
10
|
## [2.3.0](https://github.com/stack-spot/portal-commons/compare/portal-layout@v2.2.0...portal-layout@v2.3.0) (2024-08-01)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -2,7 +2,8 @@ interface Props {
|
|
|
2
2
|
tfLive: string;
|
|
3
3
|
userId: string;
|
|
4
4
|
orgId: string;
|
|
5
|
+
portal: 'AI' | 'EDP';
|
|
5
6
|
}
|
|
6
|
-
export declare const RateComponent: ({ tfLive, userId, orgId }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const RateComponent: ({ tfLive, userId, orgId, portal }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Rate/index.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Rate/index.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,IAAI,GAAG,KAAK,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,sCAAuC,KAAK,4CAoBrE,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box, Flex } from '@citric/core';
|
|
3
3
|
import { LoadingCircular } from '@citric/ui';
|
|
4
4
|
import { useEffect, useState } from 'react';
|
|
5
|
-
export const RateComponent = ({ tfLive, userId, orgId }) => {
|
|
5
|
+
export const RateComponent = ({ tfLive, userId, orgId, portal }) => {
|
|
6
6
|
const [isLoading, setIsLoading] = useState(true);
|
|
7
7
|
useEffect(() => {
|
|
8
8
|
window.tf?.load();
|
|
@@ -10,6 +10,6 @@ export const RateComponent = ({ tfLive, userId, orgId }) => {
|
|
|
10
10
|
setIsLoading(false);
|
|
11
11
|
}, 2000);
|
|
12
12
|
}, []);
|
|
13
|
-
return (_jsxs(Box, { sx: { minWidth: '650px', minHeight: '500px' }, children: [isLoading && _jsx(Flex, { alignItems: "center", justifyContent: "center", w: "12", sx: { height: '100%' }, children: _jsx(LoadingCircular, {}) }), _jsx(Box, { sx: { opacity: isLoading ? '0' : 1 }, children: _jsx("div", { "data-tf-live": tfLive, "data-tf-hidden": `user_id=${userId},org_id=${orgId}`, "data-tf-open": "time", "data-tf-open-value": "100" }) })] }));
|
|
13
|
+
return (_jsxs(Box, { sx: { minWidth: '650px', minHeight: '500px' }, children: [isLoading && _jsx(Flex, { alignItems: "center", justifyContent: "center", w: "12", sx: { height: '100%' }, children: _jsx(LoadingCircular, {}) }), _jsx(Box, { sx: { opacity: isLoading ? '0' : 1 }, children: _jsx("div", { "data-tf-live": tfLive, "data-tf-hidden": `user_id=${userId},org_id=${orgId},portal_name=${portal}`, "data-tf-open": "time", "data-tf-open-value": "100" }) })] }));
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Rate/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Rate/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAS3C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAS,EAAE,EAAE;IACxE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAA;IAEhD,SAAS,CAAC,GAAG,EAAE;QACZ,MAAc,CAAC,EAAE,EAAE,IAAI,EAAE,CAAA;QAC1B,UAAU,CAAC,GAAG,EAAE;YACd,YAAY,CAAC,KAAK,CAAC,CAAA;QACrB,CAAC,EAAE,IAAI,CAAC,CAAA;IACV,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CAAC,MAAC,GAAG,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,aACvD,SAAS,IAAI,KAAC,IAAI,IAAC,UAAU,EAAC,QAAQ,EAAC,cAAc,EAAC,QAAQ,EAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,YAC3F,KAAC,eAAe,KAAG,GACd,EACP,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,YACvC,8BAAmB,MAAM,oBACP,WAAW,MAAM,WAAW,KAAK,gBAAgB,MAAM,EAAE,kBAC5D,MAAM,wBAAoB,KAAK,GAAG,GAC7C,IACF,CAAC,CAAA;AACT,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -6,9 +6,10 @@ interface Props {
|
|
|
6
6
|
tfLive: string,
|
|
7
7
|
userId: string,
|
|
8
8
|
orgId: string,
|
|
9
|
+
portal: 'AI' | 'EDP',
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export const RateComponent = ({ tfLive, userId, orgId }: Props) => {
|
|
12
|
+
export const RateComponent = ({ tfLive, userId, orgId, portal }: Props) => {
|
|
12
13
|
const [isLoading, setIsLoading] = useState(true)
|
|
13
14
|
|
|
14
15
|
useEffect(() => {
|
|
@@ -23,7 +24,9 @@ export const RateComponent = ({ tfLive, userId, orgId }: Props) => {
|
|
|
23
24
|
<LoadingCircular />
|
|
24
25
|
</Flex>}
|
|
25
26
|
<Box sx={{ opacity: isLoading ? '0' : 1 }}>
|
|
26
|
-
<div data-tf-live={tfLive}
|
|
27
|
+
<div data-tf-live={tfLive}
|
|
28
|
+
data-tf-hidden={`user_id=${userId},org_id=${orgId},portal_name=${portal}`}
|
|
29
|
+
data-tf-open="time" data-tf-open-value="100" />
|
|
27
30
|
</Box>
|
|
28
31
|
</Box>)
|
|
29
32
|
}
|