codexly-ui 0.12.36 → 0.12.37

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": "codexly-ui",
3
- "version": "0.12.36",
3
+ "version": "0.12.37",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1773,6 +1773,18 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1773
1773
  url: string;
1774
1774
  alt?: string;
1775
1775
  } | undefined | null>) | undefined>;
1776
+ /** Adds an extra toolbar button (only rendered when provided) that inserts a raw HTML block at
1777
+ * the cursor — e.g. an ERP's "poster" template resolved against a chosen product/variant, where
1778
+ * the result is a whole <table> block, not a single <img>, so imagePicker's fixed <img>-only
1779
+ * output doesn't fit. The returned html is inserted as-is via insertHTML, no sanitization beyond
1780
+ * what insertHTML/_sanitizePaste already does for pasted content. */
1781
+ readonly blockPicker: _angular_core.InputSignal<{
1782
+ icon: string;
1783
+ title: string;
1784
+ fn: () => Promise<{
1785
+ html: string;
1786
+ } | undefined | null>;
1787
+ } | undefined>;
1776
1788
  private _bodyEl;
1777
1789
  private _sourceEl;
1778
1790
  private readonly _cdr;
@@ -1823,6 +1835,7 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1823
1835
  protected _execVal(cmd: string, event: Event): void;
1824
1836
  private _openLinkModal;
1825
1837
  private _openImageModal;
1838
+ protected _openBlockPicker(): void;
1826
1839
  protected _saveRange(): void;
1827
1840
  private _restoreRange;
1828
1841
  protected _onPaste(event: ClipboardEvent): void;
@@ -1839,7 +1852,7 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1839
1852
  registerOnTouched(fn: () => void): void;
1840
1853
  setDisabledState(disabled: boolean): void;
1841
1854
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxEditorComponent, never>;
1842
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxEditorComponent, "clx-editor", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusMessage": { "alias": "statusMessage"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "imagePicker": { "alias": "imagePicker"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1855
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClxEditorComponent, "clx-editor", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "statusMessage": { "alias": "statusMessage"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "imagePicker": { "alias": "imagePicker"; "required": false; "isSignal": true; }; "blockPicker": { "alias": "blockPicker"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1843
1856
  }
1844
1857
 
1845
1858
  declare class ClxEditorLinkModalComponent {