@stackch/angular-material-richtext-editor 1.0.0 → 1.2.1
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/README.md
CHANGED
|
@@ -15,6 +15,16 @@ Angular Material variant of the Stackch Rich Text Editor.
|
|
|
15
15
|
npm install @stackch/angular-material-richtext-editor @angular/material @angular/cdk
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
Optional alternatives:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
# Yarn
|
|
22
|
+
yarn add @stackch/angular-material-richtext-editor @angular/material @angular/cdk
|
|
23
|
+
|
|
24
|
+
# pnpm
|
|
25
|
+
pnpm add @stackch/angular-material-richtext-editor @angular/material @angular/cdk
|
|
26
|
+
```
|
|
27
|
+
|
|
18
28
|
Make sure your app enables animations and includes a Material theme and icons:
|
|
19
29
|
|
|
20
30
|
- Provide animations in your app config (or use NoopAnimations if preferred).
|
|
@@ -57,6 +67,75 @@ Global setup additions:
|
|
|
57
67
|
- index.html: `<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`
|
|
58
68
|
- styles.css: `@import '@angular/material/prebuilt-themes/indigo-pink.css';`
|
|
59
69
|
|
|
70
|
+
## Changelog (English)
|
|
71
|
+
|
|
72
|
+
- 1.2.0 (2025-10-12)
|
|
73
|
+
- Feature: new structured output event `metricsChange` emitting `{ htmlLength, textLength }`.
|
|
74
|
+
- Breaking: removed legacy `htmlLengthChange` and `textLengthChange` events.
|
|
75
|
+
- Fix: normalize color/highlight spans to avoid duplicate wrappers; remove descendant styles, merge with parent/siblings, and collapse single-child parent into the child span when possible.
|
|
76
|
+
- 1.0.0 (2025-10-11)
|
|
77
|
+
- Initial public release of the Angular Material variant
|
|
78
|
+
|
|
79
|
+
For a detailed history, see `RELEASE_NOTES.md` in the repository.
|
|
80
|
+
|
|
81
|
+
## CI install (YAML examples)
|
|
82
|
+
|
|
83
|
+
Install dependencies in CI. Prefer listing packages in your `package.json` so a simple `npm ci` is enough. The explicit install step below can be removed once dependencies are committed.
|
|
84
|
+
|
|
85
|
+
GitHub Actions:
|
|
86
|
+
|
|
87
|
+
```yaml
|
|
88
|
+
name: CI
|
|
89
|
+
on:
|
|
90
|
+
push:
|
|
91
|
+
branches: [ main ]
|
|
92
|
+
pull_request:
|
|
93
|
+
branches: [ main ]
|
|
94
|
+
|
|
95
|
+
jobs:
|
|
96
|
+
build:
|
|
97
|
+
runs-on: ubuntu-latest
|
|
98
|
+
steps:
|
|
99
|
+
- uses: actions/checkout@v4
|
|
100
|
+
- uses: actions/setup-node@v4
|
|
101
|
+
with:
|
|
102
|
+
node-version: '20'
|
|
103
|
+
cache: 'npm'
|
|
104
|
+
- name: Install dependencies
|
|
105
|
+
run: npm ci
|
|
106
|
+
# Optional if not in package.json yet
|
|
107
|
+
- name: Add rich text editor (one-off)
|
|
108
|
+
run: npm install @stackch/angular-material-richtext-editor @angular/material @angular/cdk --save
|
|
109
|
+
- name: Build
|
|
110
|
+
run: npm run build
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Azure Pipelines:
|
|
114
|
+
|
|
115
|
+
```yaml
|
|
116
|
+
trigger:
|
|
117
|
+
- main
|
|
118
|
+
|
|
119
|
+
pool:
|
|
120
|
+
vmImage: 'ubuntu-latest'
|
|
121
|
+
|
|
122
|
+
steps:
|
|
123
|
+
- task: NodeTool@0
|
|
124
|
+
inputs:
|
|
125
|
+
versionSpec: '20.x'
|
|
126
|
+
displayName: 'Use Node.js 20'
|
|
127
|
+
|
|
128
|
+
- script: npm ci
|
|
129
|
+
displayName: 'Install dependencies'
|
|
130
|
+
|
|
131
|
+
# Optional if not in package.json yet
|
|
132
|
+
- script: npm install @stackch/angular-material-richtext-editor @angular/material @angular/cdk --save
|
|
133
|
+
displayName: 'Add rich text editor (one-off)'
|
|
134
|
+
|
|
135
|
+
- script: npm run build
|
|
136
|
+
displayName: 'Build'
|
|
137
|
+
```
|
|
138
|
+
|
|
60
139
|
## Inputs
|
|
61
140
|
|
|
62
141
|
- `config: Partial<StackchRichtextEditorConfig>` – toggle toolbar sections and pass i18n overrides
|
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @stackch/angular-material-richtext-editor — Release Notes
|
|
2
2
|
|
|
3
|
+
## 1.2.0 (2025-10-12)
|
|
4
|
+
|
|
5
|
+
Parity with core 1.2.0
|
|
6
|
+
|
|
7
|
+
- Feature: new structured output event `metricsChange` emitting `{ htmlLength, textLength }`.
|
|
8
|
+
- Breaking: removed legacy `htmlLengthChange` and `textLengthChange` events.
|
|
9
|
+
- Fix: normalize color/highlight spans to avoid duplicate wrappers; remove descendant styles, merge with parent/siblings, and collapse single-child parent into the child span when possible.
|
|
10
|
+
|
|
11
|
+
Docs:
|
|
12
|
+
- Added Changelog to package README and CI install examples (GitHub Actions and Azure Pipelines). See README for YAML snippets.
|
|
13
|
+
|
|
3
14
|
## 1.0.0 (2025-10-11)
|
|
4
15
|
|
|
5
16
|
Initial stable release of the Angular Material variant of the Stackch Rich Text Editor.
|