@livechat/platform-workflows 0.1.3 → 0.1.5
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/chunk-BW4GCPXP.mjs +20 -0
- package/dist/chunk-EACC5D4G.mjs +113 -0
- package/dist/{config/index.mjs → chunk-I4E63NIC.mjs} +5 -15
- package/dist/{chunk-I7LVNCZF.mjs → chunk-PWFJOGII.mjs} +1 -62
- package/dist/{chunk-Q53XLSIX.mjs → chunk-UQO6HYDU.mjs} +1 -53
- package/dist/chunk-V3FK4SUN.mjs +1606 -0
- package/dist/chunk-WFVTCU6F.mjs +24 -0
- package/dist/chunk-WNNR3KXF.mjs +1607 -0
- package/dist/chunk-WS4FFM4M.mjs +111 -0
- package/dist/chunk-XIPVJOPR.mjs +1621 -0
- package/dist/chunk-YS3C7NY2.mjs +1623 -0
- package/dist/{config/index.d.ts → config.d.mts} +5 -2
- package/dist/{config/index.d.mts → config.d.ts} +5 -2
- package/dist/{config/index.js → config.js} +0 -2
- package/dist/config.mjs +11 -0
- package/dist/constants.d.mts +1037 -0
- package/dist/constants.d.ts +1037 -0
- package/dist/constants.js +10845 -0
- package/dist/constants.mjs +10779 -0
- package/dist/index-B3GBo8sA.d.mts +98 -0
- package/dist/index-B3GBo8sA.d.ts +98 -0
- package/dist/index.d.mts +108 -2
- package/dist/index.d.ts +108 -2
- package/dist/index.js +203 -205
- package/dist/index.mjs +182 -11
- package/dist/tests.js +0 -1
- package/dist/tests.mjs +109 -4
- package/package.json +20 -7
- package/dist/.DS_Store +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Config } from '@livechat/developer-studio-ui-react';
|
|
2
2
|
|
|
3
3
|
type WorkflowsConfig = Config & {
|
|
4
|
+
subPath?: string;
|
|
4
5
|
isHeadless: boolean;
|
|
5
6
|
workflowsAppId: string;
|
|
6
7
|
workflowsWebhooksAppId: string;
|
|
7
|
-
|
|
8
|
+
workflowsFunctionsUrl: string;
|
|
9
|
+
workflowAiAgentId: string;
|
|
10
|
+
isLiveChatMode: boolean;
|
|
8
11
|
pusherKey: string;
|
|
9
12
|
amplitudeKey: string;
|
|
10
13
|
};
|
|
@@ -12,6 +15,6 @@ declare const config: {
|
|
|
12
15
|
config: WorkflowsConfig;
|
|
13
16
|
};
|
|
14
17
|
declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfig>): void;
|
|
15
|
-
declare const getWorkflowsEnv: <T extends keyof
|
|
18
|
+
declare const getWorkflowsEnv: <T extends keyof WorkflowsConfig>(key: T) => WorkflowsConfig[T];
|
|
16
19
|
|
|
17
20
|
export { type WorkflowsConfig, config, getWorkflowsEnv, setWorkflowsConfig };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Config } from '@livechat/developer-studio-ui-react';
|
|
2
2
|
|
|
3
3
|
type WorkflowsConfig = Config & {
|
|
4
|
+
subPath?: string;
|
|
4
5
|
isHeadless: boolean;
|
|
5
6
|
workflowsAppId: string;
|
|
6
7
|
workflowsWebhooksAppId: string;
|
|
7
|
-
|
|
8
|
+
workflowsFunctionsUrl: string;
|
|
9
|
+
workflowAiAgentId: string;
|
|
10
|
+
isLiveChatMode: boolean;
|
|
8
11
|
pusherKey: string;
|
|
9
12
|
amplitudeKey: string;
|
|
10
13
|
};
|
|
@@ -12,6 +15,6 @@ declare const config: {
|
|
|
12
15
|
config: WorkflowsConfig;
|
|
13
16
|
};
|
|
14
17
|
declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfig>): void;
|
|
15
|
-
declare const getWorkflowsEnv: <T extends keyof
|
|
18
|
+
declare const getWorkflowsEnv: <T extends keyof WorkflowsConfig>(key: T) => WorkflowsConfig[T];
|
|
16
19
|
|
|
17
20
|
export { type WorkflowsConfig, config, getWorkflowsEnv, setWorkflowsConfig };
|
|
@@ -39,13 +39,11 @@ __export(config_exports, {
|
|
|
39
39
|
setWorkflowsConfig: () => setWorkflowsConfig
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(config_exports);
|
|
42
|
-
var import_developer_studio_ui_react = require("@livechat/developer-studio-ui-react");
|
|
43
42
|
var config = {
|
|
44
43
|
config: void 0
|
|
45
44
|
};
|
|
46
45
|
function setWorkflowsConfig(newConfig) {
|
|
47
46
|
config.config = __spreadValues(__spreadValues({}, config.config), newConfig);
|
|
48
|
-
(0, import_developer_studio_ui_react.setConfig)(newConfig);
|
|
49
47
|
}
|
|
50
48
|
var getWorkflowsEnv = (key) => {
|
|
51
49
|
return config.config[key];
|