verstak 0.24.203 → 0.24.204

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.
@@ -6,8 +6,7 @@ export declare function Table<M = unknown, R = void>(declaration?: RxNodeDecl<El
6
6
  export declare function row<T = void>(builder?: (element: void) => T, shiftCursorDown?: number): void;
7
7
  export declare function startNewRow(shiftCursorDown?: number): void;
8
8
  export declare function cursor(areaParams: ElArea): void;
9
- export declare function Note(content: string, declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>>;
10
- export declare function HtmlNote(content: string, declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>>;
9
+ export declare function Note(content: string, formatted?: boolean, declaration?: RxNodeDecl<El<HTMLElement, void>>): RxNode<El<HTMLElement, void>>;
11
10
  export declare function Group<M = unknown, R = void>(declaration?: RxNodeDecl<El<HTMLElement, M>>, preset?: RxNodeDecl<El<HTMLElement, M>>): RxNode<El<HTMLElement, M>>;
12
11
  export declare function Handling<M = unknown>(formula: Delegate<El<void, M>>): RxNode<El<void, M>>;
13
12
  export declare function SyntheticElement<M = unknown>(declaration?: RxNodeDecl<El<void, M>>, preset?: RxNodeDecl<El<void, M>>): RxNode<El<void, M>>;
@@ -21,17 +21,13 @@ export function cursor(areaParams) {
21
21
  },
22
22
  });
23
23
  }
24
- export function Note(content, declaration) {
24
+ export function Note(content, formatted, declaration) {
25
25
  return RxNode.declare(Drivers.note, declaration, {
26
26
  formula: b => {
27
- b.native.innerText = content;
28
- }
29
- });
30
- }
31
- export function HtmlNote(content, declaration) {
32
- return RxNode.declare(Drivers.note, declaration, {
33
- formula: b => {
34
- b.native.innerHTML = content;
27
+ if (formatted)
28
+ b.native.innerHTML = content;
29
+ else
30
+ b.native.innerText = content;
35
31
  }
36
32
  });
37
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verstak",
3
- "version": "0.24.203",
3
+ "version": "0.24.204",
4
4
  "description": "Verstak - Front-End Library",
5
5
  "publisher": "Nezaboodka Software",
6
6
  "license": "Apache-2.0",