@myissue/vue-website-page-builder 3.4.14 → 3.4.16

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@myissue/vue-website-page-builder",
3
- "version": "3.4.14",
3
+ "version": "3.4.16",
4
4
  "description": "Vue 3 page builder component with drag & drop functionality.",
5
5
  "type": "module",
6
6
  "main": "./dist/vue-website-page-builder.umd.cjs",
package/src/css/style.css CHANGED
@@ -382,7 +382,8 @@
382
382
  pointer-events: none;
383
383
  }
384
384
 
385
- #pagebuilder #youtube-video::before {
385
+ /* Use #page-builder-wrapper ID in order for the "select video" button not to apear in production*/
386
+ #page-builder-wrapper #youtube-video::before {
386
387
  content: 'Select Video Element';
387
388
  font-family: 'Jost';
388
389
  background: #16a34a !important;
@@ -2271,49 +2271,6 @@ export class PageBuilderService {
2271
2271
  return false
2272
2272
  }
2273
2273
 
2274
- /**
2275
- * Exports all CSS used in the builder as a string.
2276
- * - Includes all inline styles and a list of all classes used.
2277
- * - If you use Tailwind, classes are your main "CSS".
2278
- * - If you have custom CSS, you can also include it here.
2279
- */
2280
- public exportCssFromPageBuilder(): string {
2281
- const pagebuilder = document.querySelector('#pagebuilder')
2282
- if (!pagebuilder) return ''
2283
-
2284
- // Collect all inline styles
2285
- const inlineStyles: string[] = []
2286
- pagebuilder.querySelectorAll('[style]').forEach((el) => {
2287
- const selector = el.id
2288
- ? `#${el.id}`
2289
- : el.className
2290
- ? `.${Array.from(el.classList).join('.')}`
2291
- : el.tagName.toLowerCase()
2292
- inlineStyles.push(`${selector} { ${el.getAttribute('style')} }`)
2293
- })
2294
-
2295
- // Collect all classes used
2296
- const classSet = new Set<string>()
2297
- pagebuilder.querySelectorAll('[class]').forEach((el) => {
2298
- el.className
2299
- .split(/\s+/)
2300
- .filter(Boolean)
2301
- .forEach((cls) => classSet.add(cls))
2302
- })
2303
-
2304
- // Optionally, output as a CSS comment block
2305
- const classesComment =
2306
- '/* Classes used in this page (for Tailwind or custom CSS):\n' +
2307
- Array.from(classSet)
2308
- .sort()
2309
- .map((cls) => `.${cls}`)
2310
- .join('\n') +
2311
- '\n*/'
2312
-
2313
- // Combine everything
2314
- return [classesComment, ...inlineStyles].join('\n\n')
2315
- }
2316
-
2317
2274
  /**
2318
2275
  * Applies a selected image to the current element.
2319
2276
  * @param {ImageObject} image - The image object to apply.