ngx-xtroedge-cms 1.4.7 → 1.4.8
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.global.js +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2999,10 +2999,11 @@ var _XtroedgeCMS = class _XtroedgeCMS {
|
|
|
2999
2999
|
this.loginModalEl?.remove();
|
|
3000
3000
|
this.loginModalEl = null;
|
|
3001
3001
|
}
|
|
3002
|
-
completeLogin(data) {
|
|
3002
|
+
async completeLogin(data) {
|
|
3003
3003
|
const token = data?.token || data?.authToken || data?.auth_token || data?.data?.token;
|
|
3004
3004
|
if (!token) throw new Error("Login successful but no token returned.");
|
|
3005
3005
|
_XtroedgeCMS.secureSet("builder_token", token);
|
|
3006
|
+
_XtroedgeCMS.secureRemove(_XtroedgeCMS.LICENSE_CACHE_KEY);
|
|
3006
3007
|
if (data?.get_url) _XtroedgeCMS.secureSet("xtroedge_get_url", data.get_url);
|
|
3007
3008
|
else _XtroedgeCMS.secureRemove("xtroedge_get_url");
|
|
3008
3009
|
if (data?.published_url) _XtroedgeCMS.secureSet("xtroedge_published_url", data.published_url);
|
|
@@ -3019,6 +3020,8 @@ var _XtroedgeCMS = class _XtroedgeCMS {
|
|
|
3019
3020
|
else _XtroedgeCMS.secureRemove("xtroedge_save_url");
|
|
3020
3021
|
this.clearOtpState();
|
|
3021
3022
|
this.hideLoginModal();
|
|
3023
|
+
await this.validateLicense();
|
|
3024
|
+
document.getElementById("lcms-trial-banner")?.remove();
|
|
3022
3025
|
this.editMode = true;
|
|
3023
3026
|
this.pendingEditMode = false;
|
|
3024
3027
|
sessionStorage.setItem("builder_edit_mode", "true");
|