@solidev/data 1.1.1 → 1.1.2
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/AGENTS.md +2 -2
- package/package.json +1 -1
- package/types/solidev-data.d.ts +3 -3
package/AGENTS.md
CHANGED
|
@@ -376,8 +376,8 @@ Notes worth knowing:
|
|
|
376
376
|
**They are not dispedit editors.** `dispedit` lives in the primary entry point and
|
|
377
377
|
cannot import a secondary one, so use these components directly. For the
|
|
378
378
|
read-only half, point a dispedit at the rendered `…_html` column with
|
|
379
|
-
`[viewer]="'html'"` — that renders trusted HTML and covers markdown too
|
|
380
|
-
|
|
379
|
+
`[viewer]="'html'"` — that renders trusted HTML, and covers markdown too
|
|
380
|
+
wherever the rendered form is stored alongside the source. It does **not** sanitize: use it
|
|
381
381
|
only on HTML your own editor produced.
|
|
382
382
|
|
|
383
383
|
Two editors live in their own entry points, so they are only pulled in if imported:
|
package/package.json
CHANGED
package/types/solidev-data.d.ts
CHANGED
|
@@ -968,9 +968,9 @@ type DISPEDIT_EDITOR_TYPES = 'input.text' | 'input.email' | 'input.number' | 'in
|
|
|
968
968
|
* - `m2mdetails`: one line per item, each rendered via its `_display`.
|
|
969
969
|
* - `datetime` / `date`: value passed through Angular's `date` pipe (`short`
|
|
970
970
|
* and `shortDate` respectively).
|
|
971
|
-
* - `html`: the value injected as trusted HTML.
|
|
972
|
-
*
|
|
973
|
-
*
|
|
971
|
+
* - `html`: the value injected as trusted HTML. Where a rich text or markdown
|
|
972
|
+
* field stores its rendered form alongside the source, point the dispedit at
|
|
973
|
+
* that `…_html` field and set `[viewer]="'html'"`. **The value is
|
|
974
974
|
* not sanitized**; the value goes through `SafeHtmlPipe`.
|
|
975
975
|
*/
|
|
976
976
|
type DISPEDIT_DISPLAY_TYPES = 'text' | 'choice' | 'boolean' | 'decimal' | 'fkdetails' | 'm2mdetails' | 'datetime' | 'date' | 'html';
|