@lit-pigeon/editor 0.3.2 → 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
 
@@ -733,6 +741,7 @@ export declare class PigeonProperties extends LitElement {
733
741
  doc: PigeonDocument;
734
742
  selection: Selection_2 | null;
735
743
  mergeTags: MergeTag[];
744
+ requestMergeTags: boolean;
736
745
  assetManagerConfig?: AssetManagerConfig;
737
746
  assetStorage?: AssetStorage;
738
747
  brandKit: BrandKit | null;
@@ -873,7 +882,6 @@ export declare class PigeonTextBlock extends LitElement {
873
882
  private _mountEditor;
874
883
  private _teardownEditor;
875
884
  private _commit;
876
- private _exit;
877
885
  private _handleClick;
878
886
  private _handleDblClick;
879
887
  }
@@ -883,6 +891,7 @@ export declare class PigeonTextPanel extends LitElement {
883
891
  rowId: string;
884
892
  columnId: string;
885
893
  mergeTags: MergeTag[];
894
+ requestMergeTags: boolean;
886
895
  private _pickerOpen;
887
896
  private _pickerX;
888
897
  private _pickerY;