@mdzip/editor-ng 1.2.5 → 1.2.7
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 +6 -5
- package/src/workspace.component.ts +7 -7
- package/tsconfig.lib.json +3 -2
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdzip/editor-ng",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
4
4
|
"description": "Angular UI components for the MDZip workspace engine.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "
|
|
9
|
-
"@angular/core": "
|
|
10
|
-
"@mdzip/editor": "1.2.
|
|
8
|
+
"@angular/common": ">=20.0.0",
|
|
9
|
+
"@angular/core": ">=20.0.0",
|
|
10
|
+
"@mdzip/editor": "^1.2.6"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.8.1"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "ng build @mdzip/editor-ng"
|
|
16
|
+
"build": "ng build @mdzip/editor-ng",
|
|
17
|
+
"publish": "npm publish ../../dist/packages/editor-ng"
|
|
17
18
|
},
|
|
18
19
|
"publishConfig": {
|
|
19
20
|
"access": "public"
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SimpleChanges,
|
|
12
12
|
ViewChild,
|
|
13
13
|
} from '@angular/core';
|
|
14
|
-
import { MdzipWorkspaceView } from 'mdzip
|
|
14
|
+
import { MdzipWorkspaceView } from '@mdzip/editor';
|
|
15
15
|
import type {
|
|
16
16
|
MdzipControlPolicy,
|
|
17
17
|
MdzipControlPreset,
|
|
@@ -29,7 +29,7 @@ import type {
|
|
|
29
29
|
MdzipWorkspaceMode,
|
|
30
30
|
MdzipWorkspaceSave,
|
|
31
31
|
MdzipWorkspaceSnapshot,
|
|
32
|
-
} from 'mdzip
|
|
32
|
+
} from '@mdzip/editor';
|
|
33
33
|
|
|
34
34
|
@Component({
|
|
35
35
|
selector: 'mdzip-workspace',
|
|
@@ -167,11 +167,11 @@ export class MdzipWorkspaceComponent implements AfterViewInit, OnChanges, OnDest
|
|
|
167
167
|
onAssetChanged: (event) => this.assetChanged.emit(event),
|
|
168
168
|
onManifestChanged: (event) => this.manifestChanged.emit(event),
|
|
169
169
|
onSnapshotChanged: (snapshot) => this.snapshotChanged.emit(snapshot),
|
|
170
|
-
onSelectionChanged: (snapshot) => this.selectionChanged.emit(snapshot),
|
|
171
|
-
onDirtyChanged: (snapshot) => this.dirtyChanged.emit(snapshot),
|
|
172
|
-
onValidationChanged: (snapshot) => this.validationChanged.emit(snapshot),
|
|
173
|
-
onColorSchemeChanged: (colorScheme) => this.colorSchemeChanged.emit(colorScheme),
|
|
174
|
-
onFailed: (e) => this.failed.emit(e),
|
|
170
|
+
onSelectionChanged: (snapshot: MdzipWorkspaceSnapshot) => this.selectionChanged.emit(snapshot),
|
|
171
|
+
onDirtyChanged: (snapshot: MdzipWorkspaceSnapshot) => this.dirtyChanged.emit(snapshot),
|
|
172
|
+
onValidationChanged: (snapshot: MdzipWorkspaceSnapshot) => this.validationChanged.emit(snapshot),
|
|
173
|
+
onColorSchemeChanged: (colorScheme: MdzipColorScheme) => this.colorSchemeChanged.emit(colorScheme),
|
|
174
|
+
onFailed: (e: unknown) => this.failed.emit(e),
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
}
|
package/tsconfig.lib.json
CHANGED
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
"declarationMap": true,
|
|
7
7
|
"inlineSources": true,
|
|
8
8
|
"paths": {
|
|
9
|
-
"mdzip
|
|
9
|
+
"@mdzip/editor": ["../editor/dist/index.d.ts"]
|
|
10
10
|
},
|
|
11
11
|
"types": []
|
|
12
12
|
},
|
|
13
13
|
"angularCompilerOptions": {
|
|
14
|
-
"strictTemplates": true
|
|
14
|
+
"strictTemplates": true,
|
|
15
|
+
"compilationMode": "partial"
|
|
15
16
|
},
|
|
16
17
|
"exclude": ["**/*.spec.ts"],
|
|
17
18
|
"include": ["src/**/*.ts"]
|