@octane-xplat/picker 0.7.3 → 0.9.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "66ce1949-6caf-44dc-b2c3-7473087ed56a",
3
+ "buildId": "a4606520-5b00-4ccb-96d8-75a25bba8847",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "buildId": "dc6199c1-9fcb-47bd-98cf-c156bf5a7c1b",
3
+ "buildId": "63d41303-4a34-4908-8e3a-35e7440ab593",
4
4
  "mode": "production",
5
5
  "capabilities": {
6
6
  "independentHydration": false
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@octane-xplat/picker",
3
- "version": "0.7.3",
3
+ "version": "0.9.0",
4
4
  "description": "Select control for Octane xplat — web select + SwiftUI picker (iOS) / Material dropdown (Android)",
5
5
  "keywords": [
6
- "octane",
7
- "xplat",
6
+ "android",
7
+ "combobox",
8
8
  "cross-platform",
9
- "picker",
10
- "select",
11
9
  "dropdown",
12
- "combobox",
13
- "nativescript",
14
10
  "ios",
15
- "android",
16
- "web"
11
+ "nativescript",
12
+ "octane",
13
+ "picker",
14
+ "select",
15
+ "web",
16
+ "xplat"
17
17
  ],
18
- "license": "MIT",
19
18
  "homepage": "https://github.com/octane-xplat/octane-xplat/tree/main/packages/picker",
19
+ "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "git+https://github.com/octane-xplat/octane-xplat.git",
22
+ "url": "https://github.com/octane-xplat/octane-xplat",
23
23
  "directory": "packages/picker"
24
24
  },
25
25
  "files": [
@@ -51,10 +51,11 @@
51
51
  "@nativescript/swift-ui": "4.0.2"
52
52
  },
53
53
  "devDependencies": {
54
- "@nativescript-community/octane": "0.2.1",
54
+ "@nativescript-community/octane": "0.2.4",
55
55
  "@nativescript/core": "9.1.2",
56
56
  "@octanejs/vite-plugin": "0.1.61",
57
57
  "octane": "0.6.3",
58
+ "tsrx-typegen": "0.2.1",
58
59
  "typescript": "5.9.3",
59
60
  "vite": "8.3.0"
60
61
  },
@@ -81,6 +82,8 @@
81
82
  }
82
83
  },
83
84
  "scripts": {
84
- "build": "vite build && vite build --mode native && tsc -p tsconfig.types.json && node ../../scripts/check-native-dist.mjs"
85
+ "build": "vite build && vite build --mode native && tsc -p tsconfig.types.json && node ../../scripts/check-native-dist.mjs",
86
+ "test:packed": "node tests/packed-consumer.mjs",
87
+ "pack:check": "tsrx-typegen --pack-check"
85
88
  }
86
89
  }
@@ -34,6 +34,7 @@ export function MaterialDropdown(props: MaterialDropdownProps) @{
34
34
  value: selectedKey,
35
35
  disabled: props.enabled === false ? 1 : 0,
36
36
  }
37
+
37
38
  const update = (nextKey: string) => {
38
39
  if (!controlled) setInternalKey(nextKey)
39
40
  props.onSelectedKeyChange?.(nextKey)
@@ -1,5 +1,3 @@
1
- import type { UniversalComponent } from 'octane/universal'
2
-
3
1
  export interface MaterialDropdownItem {
4
2
  key: string
5
3
  text: string
@@ -19,4 +17,4 @@ export interface MaterialDropdownProps {
19
17
  accessibilityLabel?: string
20
18
  }
21
19
 
22
- export declare const MaterialDropdown: UniversalComponent<MaterialDropdownProps>
20
+ export declare function MaterialDropdown(props: MaterialDropdownProps): unknown
@@ -1,5 +1,3 @@
1
- import type { UniversalComponent } from 'octane/universal'
2
-
3
1
  export interface SwiftUIPickerOption {
4
2
  id: string
5
3
  title: string
@@ -19,4 +17,4 @@ export interface SwiftUIPickerProps {
19
17
  accessibilityLabel?: string
20
18
  }
21
19
 
22
- export declare const SwiftUIPicker: UniversalComponent<SwiftUIPickerProps>
20
+ export declare function SwiftUIPicker(props: SwiftUIPickerProps): unknown
@@ -1,5 +1,3 @@
1
- import type { UniversalComponent } from 'octane/universal'
2
-
3
1
  export interface SelectOption {
4
2
  value: string
5
3
  label: string
@@ -19,4 +17,4 @@ export interface SelectProps {
19
17
  accessibilityLabel?: string
20
18
  }
21
19
 
22
- export declare const Select: UniversalComponent<SelectProps>
20
+ export declare function Select(props: SelectProps): unknown