@innovastudio/contentbox 1.6.27 → 1.6.28

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@innovastudio/contentbox",
3
3
  "type": "module",
4
- "version": "1.6.27",
4
+ "version": "1.6.28",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "files": [
@@ -131643,6 +131643,7 @@ class IframePanel {
131643
131643
  constructor(opts = {}, builder) {
131644
131644
  let defaults = {
131645
131645
  src: '',
131646
+ blankHtml: '',
131646
131647
  page: '.is-wrapper',
131647
131648
  onReady: () => {}
131648
131649
  };
@@ -132179,7 +132180,9 @@ class IframePanel {
132179
132180
  loadIframe() {
132180
132181
  let iframe = this.editPanel.querySelector('iframe');
132181
132182
 
132182
- if (this.src !== '') {
132183
+ if (this.blankHtml !== '') {
132184
+ iframe.srcdoc = this.blankHtml;
132185
+ } else if (this.src !== '') {
132183
132186
  iframe.setAttribute('src', this.src);
132184
132187
  } else {
132185
132188
  alert('Please specify src attribute.');
@@ -132287,6 +132290,7 @@ class ContentBox {
132287
132290
  simpleEditingBreakpoint: '970px',
132288
132291
  // iframe only
132289
132292
  canvas: false,
132293
+ blankHtml: '',
132290
132294
  // Old Template System:
132291
132295
  designUrl1: 'assets/designs/basic.js',
132292
132296
  designUrl2: 'assets/designs/examples.js',
@@ -135216,7 +135220,7 @@ Add an image for each feature.`, 'Revise the headline, paragraph, and all the te
135216
135220
  image: {
135217
135221
  title: 'Image',
135218
135222
  description: 'Generate image for the selected image or background',
135219
- list: ['A small, minimalist wood cabin, situated atop a hill, seen from a distance']
135223
+ list: ['A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building\'s design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.', 'A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.', 'A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail.']
135220
135224
  },
135221
135225
  selection: {
135222
135226
  title: 'Selection & Layout',
@@ -135361,7 +135365,7 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
135361
135365
  image: {
135362
135366
  title: 'Image',
135363
135367
  description: 'Generate image for the selected image or background',
135364
- list: ['A small, minimalist wood cabin, situated atop a hill, seen from a distance']
135368
+ list: ['A small office building in a distant view, surrounded by a warm blend of brown and orange hues against a serene blue sky. Embrace a muted color palette with pastel tones, emphasizing natural and clean aesthetics. Craft a simple yet impactful composition with generous negative space, channeling a minimalist look that exudes brightness and sophistication. Infuse the scene with a style reminiscent of architecture magazines, ensuring a full focus background that complements the building\'s design. Utilize high-quality equipment such as an 8K UHD camera and DSLR for impeccable detail, and employ soft lighting to enhance the overall visual appeal.', 'A minimalist wood cabin is captured from a distance, surrounded by a sea of grass, bathed in the soft, breathtaking sunlight of 17:00, under an expansive blue sky. The image is crafted in a true minimalist photographic style, emphasizing the bright open sky and featuring lots of white space.', 'A simple wooden table adorned with a petite vase and a vibrant yellow flower. Opt for a clean background with ample white space, prioritizing minimalism. Cultivate a muted color palette and pastel tones to create a serene atmosphere. Employ soft lighting to enhance the gentle ambiance. Aim for a style reminiscent of interior magazines, capturing the essence of sophistication and simplicity in every detail.']
135365
135369
  }
135366
135370
  /*
135367
135371
  selection: {
@@ -135898,9 +135902,9 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
135898
135902
  };
135899
135903
 
135900
135904
  if (this.iframeSrc) {
135901
- let iframeSrc = this.iframeSrc;
135902
135905
  this.iframePanel = new IframePanel({
135903
- src: iframeSrc,
135906
+ src: this.iframeSrc,
135907
+ blankHtml: this.blankHtml,
135904
135908
  page: '.is-wrapper',
135905
135909
  onReady: ifr => {
135906
135910
  initialStart(ifr);
@@ -135920,7 +135924,7 @@ Add an image for each feature.`, 'Create a new block showcasing a photo gallery
135920
135924
  editorSetup() {
135921
135925
  this.editor = new ContentBuilder({
135922
135926
  controlPanel: this.settings.controlPanel,
135923
- canvas: true,
135927
+ canvas: this.settings.canvas,
135924
135928
  isContentBox: true,
135925
135929
  speechTranscribeUrl: this.settings.speechTranscribeUrl,
135926
135930
  autoSendDelay: this.settings.autoSendDelay,