codexly-ui 0.12.40 → 0.12.41

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.40",
3
+ "version": "0.12.41",
4
4
  "description": "Standalone, signal-based Angular UI component library for Codexly, styled with Tailwind CSS.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1778,6 +1778,18 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1778
1778
  url: string;
1779
1779
  alt?: string;
1780
1780
  } | undefined | null>) | undefined>;
1781
+ /** Adds an extra toolbar button (only rendered when provided) that inserts a raw HTML block at
1782
+ * the cursor — e.g. an ERP's own "insert product card" flow, where the result is a whole
1783
+ * <table> block, not a single <img>, so imagePicker's fixed <img>-only output doesn't fit. The
1784
+ * returned html is inserted as-is via insertHTML, no sanitization beyond what
1785
+ * insertHTML/_sanitizePaste already does for pasted content. */
1786
+ readonly blockPicker: _angular_core.InputSignal<{
1787
+ icon: string;
1788
+ title: string;
1789
+ fn: () => Promise<{
1790
+ html: string;
1791
+ } | undefined | null>;
1792
+ } | undefined>;
1781
1793
  private _bodyEl;
1782
1794
  private _sourceEl;
1783
1795
  private readonly _cdr;
@@ -1828,6 +1840,7 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1828
1840
  protected _execVal(cmd: string, event: Event): void;
1829
1841
  private _openLinkModal;
1830
1842
  private _openImageModal;
1843
+ protected _openBlockPicker(): void;
1831
1844
  protected _saveRange(): void;
1832
1845
  private _restoreRange;
1833
1846
  protected _onPaste(event: ClipboardEvent): void;
@@ -1844,7 +1857,7 @@ declare class ClxEditorComponent implements AfterViewInit, OnDestroy, ControlVal
1844
1857
  registerOnTouched(fn: () => void): void;
1845
1858
  setDisabledState(disabled: boolean): void;
1846
1859
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClxEditorComponent, never>;
1847
- 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>;
1860
+ 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>;
1848
1861
  }
1849
1862
 
1850
1863
  declare class ClxEditorLinkModalComponent {