@myissue/vue-website-page-builder 3.5.50 → 3.5.52
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/dist/index.d.ts +19 -0
- package/dist/vue-website-page-builder.js +11998 -11800
- package/dist/vue-website-page-builder.umd.cjs +86 -86
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -314,6 +314,7 @@ export declare class PageBuilderService {
|
|
|
314
314
|
private _lastKnownPageSettings;
|
|
315
315
|
private isPageBuilderMissingOnStart;
|
|
316
316
|
private hasCompletedBuilderMount;
|
|
317
|
+
private builderWasMountedBeforeClose;
|
|
317
318
|
private builderMountPromise;
|
|
318
319
|
private activeBuilderSessionToken;
|
|
319
320
|
private canvasClickCaptureListener;
|
|
@@ -321,6 +322,8 @@ export declare class PageBuilderService {
|
|
|
321
322
|
private elementsWithListeners;
|
|
322
323
|
private translate;
|
|
323
324
|
constructor(pageBuilderStateStore: ReturnType<typeof usePageBuilderStateStore>);
|
|
325
|
+
private isDebugEnabled;
|
|
326
|
+
private debugLog;
|
|
324
327
|
/**
|
|
325
328
|
* Returns an array of available languages.
|
|
326
329
|
* @returns {AvailableLanguage[]} An array of available language codes.
|
|
@@ -383,6 +386,12 @@ export declare class PageBuilderService {
|
|
|
383
386
|
* document.querySelector approach would miss the empty canvas entirely.
|
|
384
387
|
*/
|
|
385
388
|
shouldCompleteBuilderMountOnMount(ownCanvas?: HTMLElement): boolean;
|
|
389
|
+
/**
|
|
390
|
+
* Marks the builder canvas lifecycle as "missing on start" for the next mount.
|
|
391
|
+
* Used by PageBuilder.vue on unmount (v-if modal close) so reopen performs
|
|
392
|
+
* a full draft-aware initialization instead of reusing potentially stale store DOM.
|
|
393
|
+
*/
|
|
394
|
+
markCanvasUnmountedForNextMount(): void;
|
|
386
395
|
/**
|
|
387
396
|
* Completes the builder initialization process once the DOM is ready.
|
|
388
397
|
* @param {BuilderResourceData} [passedComponentsArray] - Optional array of components to load.
|
|
@@ -544,6 +553,16 @@ export declare class PageBuilderService {
|
|
|
544
553
|
private handleCanvasDoubleClickCapture;
|
|
545
554
|
openInlineTipTapFromEvent(e: Event): Promise<void>;
|
|
546
555
|
private hasInlineTipTapElement;
|
|
556
|
+
/**
|
|
557
|
+
* Writes any active inline TipTap editor back to the live DOM synchronously.
|
|
558
|
+
* Used before localStorage persistence and before the builder unmounts.
|
|
559
|
+
*/
|
|
560
|
+
private commitActiveInlineTipTapEditorSync;
|
|
561
|
+
/**
|
|
562
|
+
* Commits open inline editors and persists the current canvas to localStorage.
|
|
563
|
+
* Call before destroying the PageBuilder component (e.g. modal v-if close).
|
|
564
|
+
*/
|
|
565
|
+
flushPendingEditsToLocalStorage(): void;
|
|
547
566
|
finishActiveInlineTipTapEditorFromDom(nextElement?: HTMLElement | null): Promise<void>;
|
|
548
567
|
/**
|
|
549
568
|
* Handles the click event for editable elements, setting the element as selected.
|