@tmdjr/ngx-editor-js2 19.0.2 → 19.0.3
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
|
@@ -15,31 +15,37 @@ const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
|
15
15
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
16
16
|
const optionalBlocks = {
|
|
17
17
|
image: {
|
|
18
|
+
name: 'ngx-editor-js2-image',
|
|
18
19
|
package: '@tmdjr/ngx-editor-js2-image',
|
|
19
20
|
stylePath: 'dist/ngx-editor-js2-image',
|
|
20
21
|
peers: [],
|
|
21
22
|
},
|
|
22
23
|
popQuiz: {
|
|
24
|
+
name: 'ngx-editor-js2-pop-quiz',
|
|
23
25
|
package: '@tmdjr/ngx-editor-js2-pop-quiz',
|
|
24
26
|
stylePath: 'dist/ngx-editor-js2-pop-quiz',
|
|
25
27
|
peers: [],
|
|
26
28
|
},
|
|
27
29
|
mermaidjs: {
|
|
30
|
+
name: 'ngx-editor-js2-mermaidjs',
|
|
28
31
|
package: '@tmdjr/ngx-editor-js2-mermaidjs',
|
|
29
32
|
stylePath: 'dist/ngx-editor-js2-mermaidjs',
|
|
30
33
|
peers: ['mermaid', '@ctrl/ngx-codemirror', '@types/codemirror'],
|
|
31
34
|
},
|
|
32
35
|
codemirror: {
|
|
36
|
+
name: 'ngx-editor-js2-codemirror',
|
|
33
37
|
package: '@tmdjr/ngx-editor-js2-codemirror',
|
|
34
38
|
stylePath: 'dist/ngx-editor-js2-codemirror',
|
|
35
39
|
peers: ['@ctrl/ngx-codemirror', '@types/codemirror'],
|
|
36
40
|
},
|
|
37
41
|
mfeLoader: {
|
|
42
|
+
name: 'ngx-editor-js2-mfe-loader',
|
|
38
43
|
package: '@tmdjr/ngx-editor-js2-mfe-loader',
|
|
39
44
|
stylePath: 'dist/ngx-editor-js2-mfe-loader',
|
|
40
45
|
peers: ['@angular-architects/module-federation'],
|
|
41
46
|
},
|
|
42
47
|
blockquotes: {
|
|
48
|
+
name: 'ngx-editor-js2-blockquotes',
|
|
43
49
|
package: '@tmdjr/ngx-editor-js2-blockquotes',
|
|
44
50
|
stylePath: 'dist/ngx-editor-js2-blockquotes',
|
|
45
51
|
peers: [],
|
|
@@ -118,7 +124,7 @@ function updateStylesScss(tree, blocks, context, sourceRoot) {
|
|
|
118
124
|
}
|
|
119
125
|
let content = tree.read(stylePath).toString();
|
|
120
126
|
blocks.forEach((block) => {
|
|
121
|
-
const importLine = `@use '${optionalBlocks[block].package}/styles
|
|
127
|
+
const importLine = `@use '${optionalBlocks[block].package}/styles/${optionalBlocks[block].name}-drag-preview.scss';`;
|
|
122
128
|
if (!content.includes(importLine)) {
|
|
123
129
|
content = `${importLine}\n${content}`;
|
|
124
130
|
}
|
|
@@ -8,34 +8,40 @@ import {
|
|
|
8
8
|
|
|
9
9
|
const optionalBlocks: Record<
|
|
10
10
|
string,
|
|
11
|
-
{ package: string; stylePath: string; peers: string[] }
|
|
11
|
+
{ name: string; package: string; stylePath: string; peers: string[] }
|
|
12
12
|
> = {
|
|
13
13
|
image: {
|
|
14
|
+
name: 'ngx-editor-js2-image',
|
|
14
15
|
package: '@tmdjr/ngx-editor-js2-image',
|
|
15
16
|
stylePath: 'dist/ngx-editor-js2-image',
|
|
16
17
|
peers: [],
|
|
17
18
|
},
|
|
18
19
|
popQuiz: {
|
|
20
|
+
name: 'ngx-editor-js2-pop-quiz',
|
|
19
21
|
package: '@tmdjr/ngx-editor-js2-pop-quiz',
|
|
20
22
|
stylePath: 'dist/ngx-editor-js2-pop-quiz',
|
|
21
23
|
peers: [],
|
|
22
24
|
},
|
|
23
25
|
mermaidjs: {
|
|
26
|
+
name: 'ngx-editor-js2-mermaidjs',
|
|
24
27
|
package: '@tmdjr/ngx-editor-js2-mermaidjs',
|
|
25
28
|
stylePath: 'dist/ngx-editor-js2-mermaidjs',
|
|
26
29
|
peers: ['mermaid', '@ctrl/ngx-codemirror', '@types/codemirror'],
|
|
27
30
|
},
|
|
28
31
|
codemirror: {
|
|
32
|
+
name: 'ngx-editor-js2-codemirror',
|
|
29
33
|
package: '@tmdjr/ngx-editor-js2-codemirror',
|
|
30
34
|
stylePath: 'dist/ngx-editor-js2-codemirror',
|
|
31
35
|
peers: ['@ctrl/ngx-codemirror', '@types/codemirror'],
|
|
32
36
|
},
|
|
33
37
|
mfeLoader: {
|
|
38
|
+
name: 'ngx-editor-js2-mfe-loader',
|
|
34
39
|
package: '@tmdjr/ngx-editor-js2-mfe-loader',
|
|
35
40
|
stylePath: 'dist/ngx-editor-js2-mfe-loader',
|
|
36
41
|
peers: ['@angular-architects/module-federation'],
|
|
37
42
|
},
|
|
38
43
|
blockquotes: {
|
|
44
|
+
name: 'ngx-editor-js2-blockquotes',
|
|
39
45
|
package: '@tmdjr/ngx-editor-js2-blockquotes',
|
|
40
46
|
stylePath: 'dist/ngx-editor-js2-blockquotes',
|
|
41
47
|
peers: [],
|
|
@@ -138,7 +144,7 @@ function updateStylesScss(
|
|
|
138
144
|
let content = tree.read(stylePath)!.toString();
|
|
139
145
|
|
|
140
146
|
blocks.forEach((block) => {
|
|
141
|
-
const importLine = `@use '${optionalBlocks[block].package}/styles
|
|
147
|
+
const importLine = `@use '${optionalBlocks[block].package}/styles/${optionalBlocks[block].name}-drag-preview.scss';`;
|
|
142
148
|
|
|
143
149
|
if (!content.includes(importLine)) {
|
|
144
150
|
content = `${importLine}\n${content}`;
|