crownpeak-dxm-angular-sdk
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -23,3 +23,3 @@ const dotenv = require("dotenv"); | ||
let components = [], pages = [], wrappers = [], uploads = []; | ||
const htmlfiles = files.getRecursive(cwd, "html"); | ||
const htmlfiles = files.getRecursive(cwd, "html", (config.CMS_SCAFFOLD_IGNORE ? config.CMS_SCAFFOLD_IGNORE.split(",") : [])); | ||
for (let f in htmlfiles) { | ||
@@ -37,3 +37,3 @@ //console.log(`Processing ${htmlfiles[f]}`); | ||
} | ||
const tsFiles = files.getRecursive(cwd, "ts"); | ||
const tsFiles = files.getRecursive(cwd, "ts", (config.CMS_SCAFFOLD_IGNORE ? config.CMS_SCAFFOLD_IGNORE.split(",") : [])); | ||
for (let f in tsFiles) { | ||
@@ -40,0 +40,0 @@ //console.log(`Processing ${tsFiles[f]}`); |
@@ -9,3 +9,6 @@ import CmsCore from "../common/cmsCore"; | ||
isLoaded: boolean; | ||
cmsLoadDataTimeout?: number; | ||
cmsDataLoaded?: (data: object, assetId: number) => object | void; | ||
cmsDataError?: (exception: any, assetId: number) => void; | ||
ngOnInit(): void; | ||
} |
@@ -31,3 +31,16 @@ "use strict"; | ||
var that = this; | ||
this.cmsDataProvider.getSingleAsset(this.cmsAssetId).then(function () { return that.isLoaded = true; }); | ||
var isError = false; | ||
this.cmsDataProvider.getSingleAsset(this.cmsAssetId, this.cmsLoadDataTimeout).catch(function (ex) { | ||
isError = true; | ||
if (that.cmsDataError) | ||
that.cmsDataError(ex, that.cmsAssetId); | ||
else | ||
console.error(ex); | ||
}).then(function () { | ||
if (!isError) { | ||
if (that.cmsDataLoaded) | ||
crownpeak_dxm_sdk_core_1.CmsDataCache.set(that.cmsAssetId, that.cmsDataLoaded(crownpeak_dxm_sdk_core_1.CmsDataCache.get(that.cmsAssetId), that.cmsAssetId) || crownpeak_dxm_sdk_core_1.CmsDataCache.get(that.cmsAssetId)); | ||
that.isLoaded = true; | ||
} | ||
}); | ||
crownpeak_dxm_sdk_core_1.CmsDataCache.cmsAssetId = this.cmsAssetId; | ||
@@ -34,0 +47,0 @@ }; |
{ | ||
"name": "crownpeak-dxm-angular-sdk", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Crownpeak Digital Experience Management (DXM)Software Development Kit (SDK) for Angular has been constructed to assist the Single Page App developer in developing client-side applications that leverage DXM for content management purposes.", | ||
@@ -19,3 +19,3 @@ "repository": "https://github.com/Crownpeak/DXM-Angular-SDK", | ||
"@babel/parser": "^7.9.4", | ||
"crownpeak-dxm-sdk-core": "^3.3.0", | ||
"crownpeak-dxm-sdk-core": "^3.4.0", | ||
"dotenv": "^8.2.0", | ||
@@ -22,0 +22,0 @@ "rxjs": "~6.5.4", |
@@ -54,2 +54,3 @@ <a href="https://www.crownpeak.com" target="_blank">![Crownpeak Logo](https://github.com/Crownpeak/DXM-Angular-SDK/raw/master/images/crownpeak-logo.png?raw=true "Crownpeak Logo")</a> | ||
| 3.2.1 | 2021JAN08 | Extra macro option using {file} in CMS_STATIC_CONTENT_LOCATION. | | ||
| 3.3.0 | 2021JAN13 | Add cmsDisableDragDrop option to mark components unsuitable for Drag and Drop. | | ||
| 3.3.0 | 2021JAN13 | Add cmsDisableDragDrop option to mark components unsuitable for Drag and Drop. | | ||
| 3.4.0 | 2021MAR15 | Bug fixes. | |
Sorry, the diff of this file is not supported yet
66791
1154
55