@phuong-tran-redoc/document-engine-angular 0.1.4 → 0.1.5

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
@@ -50,9 +50,13 @@ Add the SCSS entry to your global styles (or `angular.json` styles array):
50
50
 
51
51
  ```scss
52
52
  // styles.scss
53
- @import '@phuong-tran-redoc/document-engine-angular/styles';
53
+ @use '@phuong-tran-redoc/document-engine-angular/styles';
54
54
  ```
55
55
 
56
+ That one import is the whole baseline — it ships the editor chrome **and** a default value for every
57
+ design token the library reads, so it looks right with no theming at all. **Tailwind CSS is not
58
+ required**; the library does not depend on your Tailwind config.
59
+
56
60
  ---
57
61
 
58
62
  ## 🚀 Quick Start
@@ -167,11 +171,43 @@ The feature-toggle object passed to `[config]`. Each key is a boolean or an opti
167
171
 
168
172
  > The package entry `index.ts` is the public contract — additive changes only between minor versions.
169
173
 
174
+ ### Deprecations
175
+
176
+ | Deprecated | Use instead | Removed in |
177
+ | --- | --- | --- |
178
+ | `[popover]` selector/input on `PopoverDirective` | `[documentEnginePopover]` | next major |
179
+
180
+ `[popover]` still works, so no consumer breaks on upgrade. It is being retired because it collides with
181
+ the platform's native [`popover`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/popover)
182
+ HTML attribute — an element carrying both gets the browser's top-layer behaviour *and* ours.
183
+
184
+ ```html
185
+ <!-- before -->
186
+ <div [popover]="triggerRef">…</div>
187
+ <!-- after -->
188
+ <div [documentEnginePopover]="triggerRef">…</div>
189
+ ```
190
+
170
191
  ---
171
192
 
172
- ## 🎨 Styling
193
+ ## 🎨 Styling & theming
194
+
195
+ Import the SCSS entry (see [Importing Styles](#importing-styles)), then theme by **redeclaring CSS
196
+ custom properties** — never by overriding rule bodies.
197
+
198
+ **[`docs/THEMING.md`](https://github.com/phuong-tran-redoc/document-engine/blob/main/docs/THEMING.md) is
199
+ the contract.** It lists every token the library reads
200
+ (colour, elevation, sizing), its default, and what it paints. Highlights:
173
201
 
174
- Import the SCSS entry (see [Installation](#importing-styles)). The editor ships a Tailwind + SCSS design system; theme it through your global stylesheet alongside your app's design tokens.
202
+ - The barrel's defaults are emitted on `:where(:root)`, which has **zero specificity** — anything you
203
+ declare (`:root`, `.dark`, `[data-theme]`, an inline style) wins regardless of source order. No
204
+ `!important`, no matching a selector shape.
205
+ - Dark mode is purely a matter of redeclaring the tokens on your dark selector; nothing in the library
206
+ hardcodes a colour.
207
+ - `--de-editor-min-height` (default `12rem`) sets the editing surface's floor; alternatively give the
208
+ `document-engine-editor` element a real height and the surface fills it.
209
+ - Prose and editing-affordance styles are **opt-in** subpaths (`styles/editor-content`,
210
+ `styles/editor-interaction`), so the baseline can never impose a look on your documents.
175
211
 
176
212
  ---
177
213