@friggframework/ui 1.3.0--canary.325.d77546e.0 → 1.3.0--canary.325.c79ad57.0
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.es.js +8 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -64189,21 +64189,21 @@ const cAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
64189
64189
|
(async () => {
|
|
64190
64190
|
const n = new ts(e.friggBaseUrl, e.authToken), r = cAe.parse(window.location.search);
|
|
64191
64191
|
if (r.code) {
|
|
64192
|
-
const s = await n.
|
|
64192
|
+
const s = await n.authorize(e.app, {
|
|
64193
64193
|
code: r.code
|
|
64194
|
-
});
|
|
64195
|
-
if (
|
|
64196
|
-
alert(
|
|
64194
|
+
}), a = await n.listIntegrations();
|
|
64195
|
+
if (s != null && s.error) {
|
|
64196
|
+
alert(s.error), e.redirectToUrl();
|
|
64197
64197
|
return;
|
|
64198
64198
|
}
|
|
64199
64199
|
const i = {
|
|
64200
64200
|
type: e.app,
|
|
64201
64201
|
category: "CRM"
|
|
64202
|
-
}, l =
|
|
64202
|
+
}, l = a.entities.authorized.find(
|
|
64203
64203
|
(u) => u.type === e.primaryEntityName
|
|
64204
64204
|
), c = await n.createIntegration(
|
|
64205
|
-
l.id ??
|
|
64206
|
-
|
|
64205
|
+
l.id ?? s.entity_id,
|
|
64206
|
+
s.entity_id,
|
|
64207
64207
|
i
|
|
64208
64208
|
);
|
|
64209
64209
|
if (c.error) {
|
|
@@ -64213,7 +64213,7 @@ const cAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
64213
64213
|
e.redirectToUrl();
|
|
64214
64214
|
}
|
|
64215
64215
|
})();
|
|
64216
|
-
}, [
|
|
64216
|
+
}, []), /* @__PURE__ */ C.jsx("div", { className: "flex items-center justify-center h-screen w-screen", children: /* @__PURE__ */ C.jsx(Ai, {}) }));
|
|
64217
64217
|
var uAe = "VisuallyHidden", U$ = $.forwardRef(
|
|
64218
64218
|
(e, t) => /* @__PURE__ */ C.jsx(
|
|
64219
64219
|
Nt.span,
|