@innovastudio/contentbuilder 1.5.129 → 1.5.130

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,6 +1,7 @@
1
1
  interface ContentBuilderOptions {
2
2
  page?: string;
3
3
  container?: string;
4
+ siteToken?: string;
4
5
  row?: string;
5
6
  cols?: any[];
6
7
  colequal?: any[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.129",
4
+ "version": "1.5.130",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "types": "index.d.ts",
@@ -92811,6 +92811,7 @@ class ContentBuilder {
92811
92811
  let defaults = {
92812
92812
  page: '',
92813
92813
  container: '.is-container',
92814
+ siteToken: '',
92814
92815
  row: '',
92815
92816
  cols: [],
92816
92817
  colequal: [],
@@ -94220,6 +94221,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
94220
94221
  const builders = this.doc.querySelectorAll(this.opts.container);
94221
94222
  Array.prototype.forEach.call(builders, builder => {
94222
94223
  builder.classList.add('is-container');
94224
+ if (this.siteToken) builder.setAttribute('data-site-token', this.siteToken);
94223
94225
 
94224
94226
  // Check if preview
94225
94227
  if (this.dom.hasClass(builder, 'preview')) this.preview = true;