@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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloklabs/angular",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Angular block editor — official Angular bindings for Blok, the headless Notion-like rich text editor. Standalone components that render blocks and save to JSON (APF partial-Ivy bundle).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JackUait",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@angular/common": ">=20 <23",
|
|
37
37
|
"@angular/core": ">=20 <23",
|
|
38
38
|
"@angular/forms": ">=20 <23",
|
|
39
|
-
"@bloklabs/core": "1.4.
|
|
39
|
+
"@bloklabs/core": "1.4.2"
|
|
40
40
|
},
|
|
41
41
|
"module": "fesm2022/bloklabs-angular.mjs",
|
|
42
42
|
"typings": "./index.d.ts",
|
|
@@ -75,6 +75,11 @@ declare class BlokEditorComponent implements AfterViewInit, ControlValueAccessor
|
|
|
75
75
|
* (possibly modified) html, or null to drop the paste.
|
|
76
76
|
*/
|
|
77
77
|
onBeforePaste?: (html: string) => string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Error channel (core `onError`). Fires with the raised error whenever an
|
|
80
|
+
* editor operation — currently serialization — fails instead of only logging.
|
|
81
|
+
*/
|
|
82
|
+
onError?: BlokConfig['onError'];
|
|
78
83
|
private readonly readOnly$;
|
|
79
84
|
set readOnly(value: BlokConfig['readOnly'] | undefined);
|
|
80
85
|
private readonly hideToolbar$;
|
|
@@ -168,7 +173,7 @@ declare class BlokEditorComponent implements AfterViewInit, ControlValueAccessor
|
|
|
168
173
|
/** Form disabled state maps to the editor's read-only mode (via the readOnly effect). */
|
|
169
174
|
setDisabledState(isDisabled: boolean): void;
|
|
170
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlokEditorComponent, never>;
|
|
171
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BlokEditorComponent, "blok-editor", ["blok"], { "onBeforeRender": { "alias": "onBeforeRender"; "required": false; }; "onBeforePaste": { "alias": "onBeforePaste"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "hideToolbar": { "alias": "hideToolbar"; "required": false; }; "inlineToolbar": { "alias": "inlineToolbar"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "width": { "alias": "width"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "styleTokens": { "alias": "styleTokens"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tools": { "alias": "tools"; "required": false; }; "config": { "alias": "config"; "required": false; }; "recreateKey": { "alias": "recreateKey"; "required": false; }; }, { "ready": "ready"; "dataChange": "dataChange"; "save": "save"; "change": "change"; "afterRender": "afterRender"; "themeChange": "themeChange"; "blocksRendered": "blocksRendered"; "blockRendered": "blockRendered"; }, never, never, true, never>;
|
|
176
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BlokEditorComponent, "blok-editor", ["blok"], { "onBeforeRender": { "alias": "onBeforeRender"; "required": false; }; "onBeforePaste": { "alias": "onBeforePaste"; "required": false; }; "onError": { "alias": "onError"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "hideToolbar": { "alias": "hideToolbar"; "required": false; }; "inlineToolbar": { "alias": "inlineToolbar"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "width": { "alias": "width"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "styleTokens": { "alias": "styleTokens"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tools": { "alias": "tools"; "required": false; }; "config": { "alias": "config"; "required": false; }; "recreateKey": { "alias": "recreateKey"; "required": false; }; }, { "ready": "ready"; "dataChange": "dataChange"; "save": "save"; "change": "change"; "afterRender": "afterRender"; "themeChange": "themeChange"; "blocksRendered": "blocksRendered"; "blockRendered": "blockRendered"; }, never, never, true, never>;
|
|
172
177
|
}
|
|
173
178
|
|
|
174
179
|
/**
|