@innovastudio/contentbox 1.6.124 → 1.6.126
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/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
interface ContentBoxOptions {
|
2
2
|
wrapper?: string;
|
3
|
+
siteToken?: string;
|
3
4
|
previewURL?: string;
|
4
5
|
autoOpenPanel?: boolean;
|
5
6
|
openPanelOnStart?: boolean;
|
@@ -327,8 +328,6 @@ interface ContentBoxOptions {
|
|
327
328
|
assetLocale?: string;
|
328
329
|
assetDateShortOptions?: any[];
|
329
330
|
assetDateLongOptions?: any[];
|
330
|
-
|
331
|
-
wrapperEl?: HTMLElement;
|
332
331
|
}
|
333
332
|
|
334
333
|
declare class ContentBox {
|
@@ -356,6 +355,7 @@ declare class ContentBox {
|
|
356
355
|
download(options?: object): void;
|
357
356
|
viewHtml(): void;
|
358
357
|
toggleEditPanel(): void;
|
358
|
+
getWrapper(): HTMLElement;
|
359
359
|
|
360
360
|
screenMode: string;
|
361
361
|
}
|
package/package.json
CHANGED
@@ -156782,6 +156782,7 @@ class ContentBox {
|
|
156782
156782
|
constructor(settings = {}) {
|
156783
156783
|
const defaults = {
|
156784
156784
|
wrapper: '.is-wrapper',
|
156785
|
+
siteToken: '',
|
156785
156786
|
previewURL: 'preview.html',
|
156786
156787
|
autoOpenPanel: false,
|
156787
156788
|
openPanelOnStart: false,
|
@@ -160223,6 +160224,7 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
|
|
160223
160224
|
}
|
160224
160225
|
|
160225
160226
|
this.wrapperEl = this.doc.querySelector(this.wrapper);
|
160227
|
+
if (this.siteToken) this.wrapperEl.setAttribute('data-site-token', this.siteToken);
|
160226
160228
|
|
160227
160229
|
if (this.iframe) {
|
160228
160230
|
// Check rendered content
|
@@ -163986,6 +163988,10 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
|
|
163986
163988
|
}
|
163987
163989
|
}
|
163988
163990
|
|
163991
|
+
getWrapper() {
|
163992
|
+
return this.wrapperEl;
|
163993
|
+
}
|
163994
|
+
|
163989
163995
|
loadHtml(html) {
|
163990
163996
|
// Reset
|
163991
163997
|
this.activeBox = null;
|