@twintag/twintag-core 0.2.288 → 0.2.289-feat-callback-fix-6edb0cc9224526c32f465e29480d42f5f0c3c7c1
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/cjs/{auth-2b2f17e8.js → auth-45e205e8.js} +2 -2
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/twintag-auth-callback.cjs.entry.js +1 -1
- package/dist/cjs/twintag-offline-support.cjs.entry.js +3 -0
- package/dist/collection/services/auth/auth.js +2 -2
- package/dist/collection/version.js +1 -1
- package/dist/components/twintag-auth-callback.js +2 -2
- package/dist/components/twintag-offline-support.js +3 -0
- package/dist/esm/{auth-1c631a9d.js → auth-87a71598.js} +2 -2
- package/dist/esm/index.js +2 -2
- package/dist/esm/twintag-auth-callback.entry.js +1 -1
- package/dist/esm/twintag-offline-support.entry.js +3 -0
- package/dist/stencil-web-components/index.esm.js +1 -1
- package/dist/stencil-web-components/{p-7943b86a.entry.js → p-4877be4e.entry.js} +1 -1
- package/dist/stencil-web-components/p-62d72187.entry.js +1 -0
- package/dist/stencil-web-components/{p-08e1ea24.js → p-e064b918.js} +1 -1
- package/dist/stencil-web-components/stencil-web-components.esm.js +1 -1
- package/dist/types/drone/src/libs/stencil-web-components/.stencil/libs/twintag-sdk/src/lib/listObject.d.ts +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/twintag-sdk/src/lib/listObject.js +3 -0
- package/dist/stencil-web-components/p-a53a2c70.entry.js +0 -1
|
@@ -810,9 +810,9 @@ class Auth {
|
|
|
810
810
|
static callback(code, state) {
|
|
811
811
|
let decodedState = JSON.parse(atob(state));
|
|
812
812
|
if (decodedState.viewId) {
|
|
813
|
-
let lsState = JSON.parse(localStorage.getItem(`${
|
|
813
|
+
let lsState = JSON.parse(localStorage.getItem(`${btoa(window.origin)}-state`));
|
|
814
814
|
if (!lsState) {
|
|
815
|
-
lsState = JSON.parse(localStorage.getItem(`${
|
|
815
|
+
lsState = JSON.parse(localStorage.getItem(`${decodedState.viewId}-state`));
|
|
816
816
|
}
|
|
817
817
|
if (lsState === null || lsState === void 0 ? void 0 : lsState.isBackendAuth) {
|
|
818
818
|
return backendauthService.handleCallback(code, decodedState);
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -829,6 +829,9 @@ class ListObject {
|
|
|
829
829
|
filterPredicate += fe.lte
|
|
830
830
|
? this.getFilterValue(objName, fe.lte, '<=')
|
|
831
831
|
: '';
|
|
832
|
+
filterPredicate += fe.like
|
|
833
|
+
? this.getFilterValue(objName, fe.like, 'like:')
|
|
834
|
+
: '';
|
|
832
835
|
}
|
|
833
836
|
else {
|
|
834
837
|
filterPredicate += `&filter=${encodeURIComponent(`${objName}=${this.handleTypes(objectsData)}`)}`;
|
|
@@ -113,9 +113,9 @@ export class Auth {
|
|
|
113
113
|
static callback(code, state) {
|
|
114
114
|
let decodedState = JSON.parse(atob(state));
|
|
115
115
|
if (decodedState.viewId) {
|
|
116
|
-
let lsState = JSON.parse(localStorage.getItem(`${
|
|
116
|
+
let lsState = JSON.parse(localStorage.getItem(`${btoa(window.origin)}-state`));
|
|
117
117
|
if (!lsState) {
|
|
118
|
-
lsState = JSON.parse(localStorage.getItem(`${
|
|
118
|
+
lsState = JSON.parse(localStorage.getItem(`${decodedState.viewId}-state`));
|
|
119
119
|
}
|
|
120
120
|
if (lsState === null || lsState === void 0 ? void 0 : lsState.isBackendAuth) {
|
|
121
121
|
return backendauthService.handleCallback(code, decodedState);
|
|
@@ -810,9 +810,9 @@ class Auth {
|
|
|
810
810
|
static callback(code, state) {
|
|
811
811
|
let decodedState = JSON.parse(atob(state));
|
|
812
812
|
if (decodedState.viewId) {
|
|
813
|
-
let lsState = JSON.parse(localStorage.getItem(`${
|
|
813
|
+
let lsState = JSON.parse(localStorage.getItem(`${btoa(window.origin)}-state`));
|
|
814
814
|
if (!lsState) {
|
|
815
|
-
lsState = JSON.parse(localStorage.getItem(`${
|
|
815
|
+
lsState = JSON.parse(localStorage.getItem(`${decodedState.viewId}-state`));
|
|
816
816
|
}
|
|
817
817
|
if (lsState === null || lsState === void 0 ? void 0 : lsState.isBackendAuth) {
|
|
818
818
|
return backendauthService.handleCallback(code, decodedState);
|
|
@@ -825,6 +825,9 @@ class ListObject {
|
|
|
825
825
|
filterPredicate += fe.lte
|
|
826
826
|
? this.getFilterValue(objName, fe.lte, '<=')
|
|
827
827
|
: '';
|
|
828
|
+
filterPredicate += fe.like
|
|
829
|
+
? this.getFilterValue(objName, fe.like, 'like:')
|
|
830
|
+
: '';
|
|
828
831
|
}
|
|
829
832
|
else {
|
|
830
833
|
filterPredicate += `&filter=${encodeURIComponent(`${objName}=${this.handleTypes(objectsData)}`)}`;
|
|
@@ -808,9 +808,9 @@ class Auth {
|
|
|
808
808
|
static callback(code, state) {
|
|
809
809
|
let decodedState = JSON.parse(atob(state));
|
|
810
810
|
if (decodedState.viewId) {
|
|
811
|
-
let lsState = JSON.parse(localStorage.getItem(`${
|
|
811
|
+
let lsState = JSON.parse(localStorage.getItem(`${btoa(window.origin)}-state`));
|
|
812
812
|
if (!lsState) {
|
|
813
|
-
lsState = JSON.parse(localStorage.getItem(`${
|
|
813
|
+
lsState = JSON.parse(localStorage.getItem(`${decodedState.viewId}-state`));
|
|
814
814
|
}
|
|
815
815
|
if (lsState === null || lsState === void 0 ? void 0 : lsState.isBackendAuth) {
|
|
816
816
|
return backendauthService.handleCallback(code, decodedState);
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as inIframe } from './auth-
|
|
2
|
-
export { A as Auth, a as AuthConfigTemplate } from './auth-
|
|
1
|
+
import { i as inIframe } from './auth-87a71598.js';
|
|
2
|
+
export { A as Auth, a as AuthConfigTemplate } from './auth-87a71598.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The view object represents the current active view.
|
|
@@ -825,6 +825,9 @@ class ListObject {
|
|
|
825
825
|
filterPredicate += fe.lte
|
|
826
826
|
? this.getFilterValue(objName, fe.lte, '<=')
|
|
827
827
|
: '';
|
|
828
|
+
filterPredicate += fe.like
|
|
829
|
+
? this.getFilterValue(objName, fe.like, 'like:')
|
|
830
|
+
: '';
|
|
828
831
|
}
|
|
829
832
|
else {
|
|
830
833
|
filterPredicate += `&filter=${encodeURIComponent(`${objName}=${this.handleTypes(objectsData)}`)}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as
|
|
1
|
+
import{i as t}from"./p-e064b918.js";export{A as Auth,a as AuthConfigTemplate}from"./p-e064b918.js";class e{static getId(){const e=new URL(window.location.href).pathname.split("/").filter((t=>t.length>0)),s=e.indexOf("views");return e.length>0?t()&&s>-1?e[s+1]:e[0]:""}}export{e as View}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t}from"./p-d5d0e2ee.js";import{A as o}from"./p-
|
|
1
|
+
import{r as t}from"./p-d5d0e2ee.js";import{A as o}from"./p-e064b918.js";const s=class{constructor(s){t(this,s);const a=window.location.search;let e,c,r=new URLSearchParams(a);a.includes("id_token=")?e=r.get("id_token"):a.includes("code=")&&(e=r.get("code")),a.includes("state=")&&(c=r.get("state")),o.handleCallback(e,c)}};s.style=":host{display:block}";export{s as twintag_auth_callback}
|