@bloklabs/angular 1.10.1 → 1.11.0
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.
|
|
3
|
+
"version": "1.11.0",
|
|
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.
|
|
39
|
+
"@bloklabs/core": "1.11.0"
|
|
40
40
|
},
|
|
41
41
|
"module": "fesm2022/bloklabs-angular.mjs",
|
|
42
42
|
"typings": "./index.d.ts",
|
|
@@ -18,10 +18,11 @@ type BlokAngularConfig = Omit<BlokConfig, 'holder'> & {
|
|
|
18
18
|
* `BlokEditor`). Delegates instance lifecycle to an internal `BlokContentDirective`
|
|
19
19
|
* and layers the typed reactive input/output API on top.
|
|
20
20
|
*
|
|
21
|
-
* Reactive inputs (`readOnly`, `hideToolbar`, `
|
|
22
|
-
* `
|
|
23
|
-
* synced in place after mount via effects — `hideToolbar`
|
|
24
|
-
* `editor.toolbar.setHidden()`, `
|
|
21
|
+
* Reactive inputs (`readOnly`, `hideToolbar`, `toolbarPosition`,
|
|
22
|
+
* `inlineToolbar`, `theme`, `width`, `placeholder`, `autofocus`, `styleTokens`,
|
|
23
|
+
* `i18n`, `data`) are synced in place after mount via effects — `hideToolbar`
|
|
24
|
+
* through `editor.toolbar.setHidden()`, `toolbarPosition` through
|
|
25
|
+
* `editor.toolbar.setPosition()`, `inlineToolbar` through
|
|
25
26
|
* `editor.tools.setInlineToolbar()` (content-compared),
|
|
26
27
|
* `styleTokens` through `editor.tokens.set()` (replace semantics),
|
|
27
28
|
* `i18n` through `editor.i18n.update()` (deep-equal–deduped; seeded at
|
|
@@ -84,6 +85,8 @@ declare class BlokEditorComponent implements AfterViewInit, DoCheck, ControlValu
|
|
|
84
85
|
set readOnly(value: BlokConfig['readOnly'] | undefined);
|
|
85
86
|
private readonly hideToolbar$;
|
|
86
87
|
set hideToolbar(value: boolean | undefined);
|
|
88
|
+
private readonly toolbarPosition$;
|
|
89
|
+
set toolbarPosition(value: BlokConfig['toolbarPosition'] | undefined);
|
|
87
90
|
private readonly inlineToolbar$;
|
|
88
91
|
set inlineToolbar(value: boolean | string[] | undefined);
|
|
89
92
|
private readonly theme$;
|
|
@@ -237,7 +240,7 @@ declare class BlokEditorComponent implements AfterViewInit, DoCheck, ControlValu
|
|
|
237
240
|
/** Form disabled state maps to the editor's read-only mode (via the readOnly effect). */
|
|
238
241
|
setDisabledState(isDisabled: boolean): void;
|
|
239
242
|
static ɵfac: i0.ɵɵFactoryDeclaration<BlokEditorComponent, never>;
|
|
240
|
-
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; }; "migrations": { "alias": "migrations"; "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>;
|
|
243
|
+
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; }; "toolbarPosition": { "alias": "toolbarPosition"; "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; }; "migrations": { "alias": "migrations"; "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>;
|
|
241
244
|
}
|
|
242
245
|
|
|
243
246
|
/**
|