@protobase/schema 0.19.7 → 0.19.9

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/dist/model.d.ts CHANGED
@@ -223,6 +223,8 @@ export type FieldViewModel = {
223
223
  format?: FieldFormat;
224
224
  /** A text that runs over several lines: forms edit it in a box that grows with it, and its line breaks show. */
225
225
  multiline?: boolean;
226
+ /** Markdown: forms edit its source with a preview, and it shows rendered, raw HTML as text. */
227
+ markdown?: boolean;
226
228
  /** Text before a number wherever it is shown, such as `€`. */
227
229
  prefix?: string;
228
230
  /** Text after a number wherever it is shown, such as a unit: `m²` shows `120 m²`. */
@@ -28,6 +28,12 @@ export declare class FieldView<N extends string = string, V = unknown> {
28
28
  * page and cards keep its line breaks. Only a text field takes it.
29
29
  */
30
30
  multiline(): FieldView<N, V>;
31
+ /**
32
+ * Markdown, such as notes: forms edit its source with a Write and Preview switch, and the record page, a page's field
33
+ * blocks and a card's subtitle show it rendered, raw HTML shown as text and links opening in a new tab; the list's
34
+ * table shows its text on one line. Only a text field takes it.
35
+ */
36
+ markdown(): FieldView<N, V>;
31
37
  /** Text before a number wherever it is shown, such as a currency: `.prefix('€')`. */
32
38
  prefix(prefix: string): FieldView<N, V>;
33
39
  /** Text after a number wherever it is shown, such as a unit: `.suffix(' m²')`. */
@@ -34,6 +34,14 @@ var FieldView = class FieldView {
34
34
  multiline() {
35
35
  return this.with({ multiline: true });
36
36
  }
37
+ /**
38
+ * Markdown, such as notes: forms edit its source with a Write and Preview switch, and the record page, a page's field
39
+ * blocks and a card's subtitle show it rendered, raw HTML shown as text and links opening in a new tab; the list's
40
+ * table shows its text on one line. Only a text field takes it.
41
+ */
42
+ markdown() {
43
+ return this.with({ markdown: true });
44
+ }
37
45
  /** Text before a number wherever it is shown, such as a currency: `.prefix('€')`. */
38
46
  prefix(prefix) {
39
47
  return this.with({ prefix });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/schema",
3
- "version": "0.19.7",
3
+ "version": "0.19.9",
4
4
  "description": "Resource, field, view and access definitions for Protobase configs.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {