@bloklabs/angular 1.4.0 → 1.4.2

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.
@@ -2128,6 +2128,11 @@ class BlokEditorComponent {
2128
2128
  * (possibly modified) html, or null to drop the paste.
2129
2129
  */
2130
2130
  onBeforePaste;
2131
+ /**
2132
+ * Error channel (core `onError`). Fires with the raised error whenever an
2133
+ * editor operation — currently serialization — fails instead of only logging.
2134
+ */
2135
+ onError;
2131
2136
  // ---- Reactive inputs (signal-backed setters; synced in place, never recreate) ----
2132
2137
  // Default undefined (not false) so an unset input falls back to a provideBlok
2133
2138
  // default; the readOnly effect / buildConfig coerce undefined to false.
@@ -2320,6 +2325,10 @@ class BlokEditorComponent {
2320
2325
  if (beforePaste !== undefined) {
2321
2326
  cfg.onBeforePaste = (html) => beforePaste(html);
2322
2327
  }
2328
+ const onError = this.onError;
2329
+ if (onError !== undefined) {
2330
+ cfg.onError = onError;
2331
+ }
2323
2332
  return cfg;
2324
2333
  }
2325
2334
  ngAfterViewInit() {
@@ -2514,7 +2523,7 @@ class BlokEditorComponent {
2514
2523
  this.readOnly$.set(isDisabled);
2515
2524
  }
2516
2525
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: BlokEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2517
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: BlokEditorComponent, isStandalone: true, selector: "blok-editor", inputs: { onBeforeRender: "onBeforeRender", onBeforePaste: "onBeforePaste", readOnly: "readOnly", hideToolbar: "hideToolbar", inlineToolbar: "inlineToolbar", theme: "theme", width: "width", placeholder: "placeholder", styleTokens: "styleTokens", i18n: "i18n", autofocus: "autofocus", data: "data", tools: "tools", config: "config", recreateKey: "recreateKey" }, outputs: { ready: "ready", dataChange: "dataChange", save: "save", change: "change", afterRender: "afterRender", themeChange: "themeChange", blocksRendered: "blocksRendered", blockRendered: "blockRendered" }, providers: [
2526
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.7", type: BlokEditorComponent, isStandalone: true, selector: "blok-editor", inputs: { onBeforeRender: "onBeforeRender", onBeforePaste: "onBeforePaste", onError: "onError", readOnly: "readOnly", hideToolbar: "hideToolbar", inlineToolbar: "inlineToolbar", theme: "theme", width: "width", placeholder: "placeholder", styleTokens: "styleTokens", i18n: "i18n", autofocus: "autofocus", data: "data", tools: "tools", config: "config", recreateKey: "recreateKey" }, outputs: { ready: "ready", dataChange: "dataChange", save: "save", change: "change", afterRender: "afterRender", themeChange: "themeChange", blocksRendered: "blocksRendered", blockRendered: "blockRendered" }, providers: [
2518
2527
  {
2519
2528
  provide: NG_VALUE_ACCESSOR,
2520
2529
  useExisting: forwardRef(() => BlokEditorComponent),
@@ -2562,6 +2571,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
2562
2571
  type: Input
2563
2572
  }], onBeforePaste: [{
2564
2573
  type: Input
2574
+ }], onError: [{
2575
+ type: Input
2565
2576
  }], readOnly: [{
2566
2577
  type: Input
2567
2578
  }], hideToolbar: [{