@novasamatech/host-api 0.6.3 → 0.6.4

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.
@@ -156,15 +156,15 @@ export declare const TextProps: Codec<{
156
156
  export declare const ButtonProps: Codec<{
157
157
  text: string;
158
158
  variant: "primary" | "secondary" | "text" | undefined;
159
- enabled: boolean | undefined;
160
- loading: boolean | undefined;
159
+ enabled: boolean | void;
160
+ loading: boolean | void;
161
161
  clickAction: string | undefined;
162
162
  }>;
163
163
  export declare const TextFieldProps: Codec<{
164
164
  text: string;
165
165
  placeholder: string | undefined;
166
166
  label: string | undefined;
167
- enabled: boolean | undefined;
167
+ enabled: boolean | void;
168
168
  valueChangeAction: string | undefined;
169
169
  }>;
170
170
  export type CustomRendererNodeType = EnumVariants<{
@@ -1,4 +1,4 @@
1
- import { Enum, Status, lazy } from '@novasamatech/scale';
1
+ import { Enum, OptionBool, Status, lazy } from '@novasamatech/scale';
2
2
  import { Option, Struct, Tuple, Vector, _void, bool, compact, str } from 'scale-ts';
3
3
  export const Size = compact;
4
4
  export const Dimensions = Tuple(Size, Size, Option(Size), Option(Size));
@@ -59,15 +59,15 @@ export const TextProps = Struct({
59
59
  export const ButtonProps = Struct({
60
60
  text: str,
61
61
  variant: Option(ButtonVariant),
62
- enabled: Option(bool),
63
- loading: Option(bool),
62
+ enabled: OptionBool,
63
+ loading: OptionBool,
64
64
  clickAction: Option(str),
65
65
  });
66
66
  export const TextFieldProps = Struct({
67
67
  text: str,
68
68
  placeholder: Option(str),
69
69
  label: Option(str),
70
- enabled: Option(bool),
70
+ enabled: OptionBool,
71
71
  valueChangeAction: Option(str),
72
72
  });
73
73
  export const CustomRendererNode = Enum({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@novasamatech/host-api",
3
3
  "type": "module",
4
- "version": "0.6.3",
4
+ "version": "0.6.4",
5
5
  "description": "Host API: transport implementation for host - product integration.",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "README.md"
22
22
  ],
23
23
  "dependencies": {
24
- "@novasamatech/scale": "0.6.3",
24
+ "@novasamatech/scale": "0.6.4",
25
25
  "@polkadot-api/utils": "^0.2.0",
26
26
  "nanoevents": "9.1.0",
27
27
  "nanoid": "5.1.6",