@innovastudio/contentbox 1.6.125 → 1.6.127

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;
@@ -253,8 +254,8 @@ interface ContentBoxOptions {
253
254
  simpleTextSettings?: boolean;
254
255
  UIColor?: any[];
255
256
 
256
- defaultHeaders?: any[];
257
- headers?: any[];
257
+ defaultHeaders?: { [key: string]: string };
258
+ headers?: { [key: string]: string };
258
259
 
259
260
  consoleLog?: boolean;
260
261
  AIToolbar?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.125",
4
+ "version": "1.6.127",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -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