@lit-pigeon/editor 0.3.1 → 0.3.3

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 CHANGED
@@ -154,6 +154,7 @@ export declare class PigeonAssetManager extends LitElement {
154
154
  export declare class PigeonBodyPanel extends LitElement {
155
155
  doc: PigeonDocument;
156
156
  mergeTags: MergeTag[];
157
+ requestMergeTags: boolean;
157
158
  swatches: BrandColor[];
158
159
  brandFonts: FontDefinition[];
159
160
  private _pickerOpen;
@@ -320,11 +321,12 @@ export declare class PigeonDropIndicator extends LitElement {
320
321
  * @fires pigeon:select - Fired when the selection changes
321
322
  * @fires pigeon:ready - Fired once after the editor has initialised
322
323
  * @fires pigeon:preview - Fired when the user clicks Preview in the toolbar
323
- * @fires pigeon:export - Fired when the user clicks Export in the toolbar
324
+ * @fires pigeon:export - Fired when the user opens the Export menu in the toolbar
324
325
  * @fires pigeon:export-json - Fired for JSON export
325
326
  * @fires pigeon:export-mjml - Fired for MJML export
326
327
  * @fires pigeon:export-html - Fired for HTML export
327
- * @fires pigeon:merge-tag-request - Fired when merge tag trigger detected but no static tags
328
+ * @fires pigeon:merge-tag-request - Fired when the user clicks a Tag button while
329
+ * `config.mergeTags` is set without static `tags`; answer with `setMergeTags()`
328
330
  *
329
331
  * @csspart toolbar - The toolbar area
330
332
  * @csspart palette - The left palette area
@@ -472,6 +474,7 @@ export declare class PigeonEditor extends LitElement {
472
474
  private _handleDevice;
473
475
  private _handleFullscreen;
474
476
  private _handlePreview;
477
+ private _handleExport;
475
478
  private _handleExportHtml;
476
479
  private _handleExportMjml;
477
480
  private _handleExportJson;
@@ -497,6 +500,8 @@ export declare class PigeonEditor extends LitElement {
497
500
  * Uses composedPath so it works across shadow DOM boundaries.
498
501
  */
499
502
  private _isInTextInput;
503
+ /** True when the key press is aimed at the editor, or at nothing else on the page. */
504
+ private _isForEditor;
500
505
  private _handleKeyDown;
501
506
  private _flattenBlockLocations;
502
507
  private _moveBlockSelection;
@@ -563,8 +568,11 @@ export declare class PigeonHeroPanel extends LitElement {
563
568
  export declare class PigeonHtmlBlock extends LitElement {
564
569
  block: HtmlBlock;
565
570
  selected: boolean;
571
+ private _resizer?;
566
572
  static styles: CSSResult;
567
573
  render(): TemplateResult<1>;
574
+ /** No scripts run inside the sandbox, so the parent sizes the frame to its content. */
575
+ private _fit;
568
576
  private _handleClick;
569
577
  }
570
578
 
@@ -683,7 +691,15 @@ export declare class PigeonPaletteItem extends LitElement {
683
691
  columnCount: number;
684
692
  static styles: CSSResult;
685
693
  render(): TemplateResult<1>;
694
+ /** Suppresses the click that some browsers fire after a drag operation. */
695
+ private _didDrag;
696
+ private _onClick;
686
697
  private _onKeyDown;
698
+ /**
699
+ * Click/keyboard equivalent of dragging this item onto the canvas: ask the
700
+ * editor to append the block/layout to the document.
701
+ */
702
+ private _activate;
687
703
  private _onDragStart;
688
704
  private _onDragEnd;
689
705
  }
@@ -725,6 +741,7 @@ export declare class PigeonProperties extends LitElement {
725
741
  doc: PigeonDocument;
726
742
  selection: Selection_2 | null;
727
743
  mergeTags: MergeTag[];
744
+ requestMergeTags: boolean;
728
745
  assetManagerConfig?: AssetManagerConfig;
729
746
  assetStorage?: AssetStorage;
730
747
  brandKit: BrandKit | null;
@@ -865,7 +882,6 @@ export declare class PigeonTextBlock extends LitElement {
865
882
  private _mountEditor;
866
883
  private _teardownEditor;
867
884
  private _commit;
868
- private _exit;
869
885
  private _handleClick;
870
886
  private _handleDblClick;
871
887
  }
@@ -875,6 +891,7 @@ export declare class PigeonTextPanel extends LitElement {
875
891
  rowId: string;
876
892
  columnId: string;
877
893
  mergeTags: MergeTag[];
894
+ requestMergeTags: boolean;
878
895
  private _pickerOpen;
879
896
  private _pickerX;
880
897
  private _pickerY;