@livechat/developer-studio-api 3.3.10 → 3.3.11
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/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8105,7 +8105,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
|
8105
8105
|
const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
|
|
8106
8106
|
state: serializedState
|
|
8107
8107
|
}, trigger), context));
|
|
8108
|
-
const url = `${config.urls.adapterUrl}/integrations/${name}/
|
|
8108
|
+
const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}/flow?context=${serializedContext}`;
|
|
8109
8109
|
if (trigger.mode === "modal" /* Modal */) {
|
|
8110
8110
|
const newWindow = window.open(
|
|
8111
8111
|
url,
|
|
@@ -8125,7 +8125,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
|
8125
8125
|
"message",
|
|
8126
8126
|
(event) => {
|
|
8127
8127
|
var _a;
|
|
8128
|
-
if (((_a = event.data) == null ? void 0 : _a.type) === "
|
|
8128
|
+
if (((_a = event.data) == null ? void 0 : _a.type) === "internal" && event.data.output) {
|
|
8129
8129
|
newWindow == null ? void 0 : newWindow.close();
|
|
8130
8130
|
clearInterval(observer);
|
|
8131
8131
|
resolve(event.data.output);
|
package/dist/index.mjs
CHANGED
|
@@ -7950,7 +7950,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
|
7950
7950
|
const serializedContext = serializerBase64.serialize(__spreadValues(__spreadValues({
|
|
7951
7951
|
state: serializedState
|
|
7952
7952
|
}, trigger), context));
|
|
7953
|
-
const url = `${config.urls.adapterUrl}/integrations/${name}/
|
|
7953
|
+
const url = `${config.urls.adapterUrl}/integrations/${name}/flows/${flow}/flow?context=${serializedContext}`;
|
|
7954
7954
|
if (trigger.mode === "modal" /* Modal */) {
|
|
7955
7955
|
const newWindow = window.open(
|
|
7956
7956
|
url,
|
|
@@ -7970,7 +7970,7 @@ function getIntegrationFlowUrl(name, flow, trigger, context, state, config) {
|
|
|
7970
7970
|
"message",
|
|
7971
7971
|
(event) => {
|
|
7972
7972
|
var _a;
|
|
7973
|
-
if (((_a = event.data) == null ? void 0 : _a.type) === "
|
|
7973
|
+
if (((_a = event.data) == null ? void 0 : _a.type) === "internal" && event.data.output) {
|
|
7974
7974
|
newWindow == null ? void 0 : newWindow.close();
|
|
7975
7975
|
clearInterval(observer);
|
|
7976
7976
|
resolve(event.data.output);
|