@vicinae/api 0.13.0 → 0.13.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.
@@ -14,7 +14,9 @@ const wrapFormItemProps = (props) => {
14
14
  };
15
15
  };
16
16
  const FormRoot = ({ enableDrafts = false, actions, children, isLoading = false, navigationTitle, searchBarAccessory, }) => {
17
- return ((0, jsx_runtime_1.jsxs)("form", { enableDrafts: enableDrafts, isLoading: isLoading, navigationTitle: navigationTitle, children: [searchBarAccessory, children, actions] }));
17
+ return ((0, jsx_runtime_1.jsxs)("form", {
18
+ //@ts-ignore
19
+ enableDrafts: enableDrafts, isLoading: isLoading, navigationTitle: navigationTitle, children: [searchBarAccessory, children, actions] }));
18
20
  };
19
21
  const TextField = ({ ref, ...props }) => {
20
22
  (0, use_imperative_form_handle_1.useImperativeFormHandle)(ref);
@@ -10,9 +10,8 @@ type SectionConfig = {
10
10
  inset?: GridInset;
11
11
  columns?: number;
12
12
  fit?: GridFit;
13
- aspectRatio?: GridAspectRatio;
13
+ aspectRatio?: Grid.AspectRatio;
14
14
  };
15
- type GridAspectRatio = "1" | "3/2" | "2/3" | "4/3" | "3/4" | "16/9" | "9/16";
16
15
  declare enum GridFit {
17
16
  Contain = "contain",
18
17
  Fill = "fill"
@@ -24,7 +23,7 @@ export declare namespace Grid {
24
23
  type Fit = GridFit;
25
24
  type Props = GridProps;
26
25
  type Inset = GridInset;
27
- type AspectRatio = GridAspectRatio;
26
+ type AspectRatio = "1" | "3/2" | "2/3" | "4/3" | "3/4" | "16/9" | "9/16" | '21/9' | '9/21' | '32/9' | '9/32';
28
27
  namespace Item {
29
28
  export type Props = {
30
29
  title?: string;
@@ -20,7 +20,11 @@ const aspectRatioMap = {
20
20
  '4/3': 4 / 3,
21
21
  '3/4': 3 / 4,
22
22
  '16/9': 16 / 9,
23
- '9/16': 9 / 16
23
+ '9/16': 9 / 16,
24
+ '21/9': 21 / 9,
25
+ '9/21': 9 / 21,
26
+ '32/9': 32 / 9,
27
+ '9/32': 9 / 32
24
28
  };
25
29
  var GridFit;
26
30
  (function (GridFit) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vicinae/api",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "TypeScript SDK to build Vicinae extensions",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -33,16 +33,16 @@
33
33
  "@oclif/plugin-help": "^6",
34
34
  "@oclif/plugin-plugins": "^5",
35
35
  "@types/node": ">=18",
36
- "@types/react": "^18.1.0",
36
+ "@types/react": "19.0.10",
37
37
  "chalk": "^5.6.0",
38
38
  "chokidar": "^4.0.3",
39
39
  "esbuild": "^0.25.2",
40
- "react": "18.1.0",
40
+ "react": "19.0.0",
41
41
  "zod": "^4.0.17"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@types/node": ">=18",
45
- "@types/react": "^18.1.0"
45
+ "@types/react": "19.0.10"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@bufbuild/protobuf": "^2.7.0",