@fluentui-react-native/experimental-expander 0.8.17 → 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 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,mDAAgD;AAAvC,8GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,qDAAgD;AAAvC,8GAAA,YAAY,OAAA"}
package/package.json CHANGED
@@ -1,95 +1,94 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/experimental-expander",
3
- "version": "0.8.17",
3
+ "version": "0.9.0",
4
4
  "description": "A cross-platform Native Expander component using the Fluent Design System. Currently only implemented on windows",
5
+ "homepage": "https://github.com/microsoft/fluentui-react-native",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
9
+ "directory": "packages/experimental/Expander"
10
+ },
5
11
  "license": "MIT",
6
12
  "author": "Microsoft <fluentuinativeowners@microsoft.com>",
7
- "homepage": "https://github.com/microsoft/fluentui-react-native",
8
- "main": "lib-commonjs/index.js",
9
- "module": "lib/index.js",
10
- "react-native": "src/index.ts",
11
13
  "exports": {
12
14
  ".": {
15
+ "types": "./lib/index.d.ts",
13
16
  "import": "./lib/index.js",
14
- "require": "./lib-commonjs/index.js",
15
- "types": "./lib/index.d.ts"
17
+ "require": "./lib-commonjs/index.js"
16
18
  }
17
19
  },
18
- "typings": "lib/index.d.ts",
20
+ "main": "lib-commonjs/index.js",
21
+ "module": "lib/index.js",
22
+ "types": "lib/index.d.ts",
19
23
  "scripts": {
20
24
  "build": "fluentui-scripts build",
21
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
22
27
  "clean": "fluentui-scripts clean",
23
- "lint": "fluentui-scripts eslint",
24
28
  "depcheck": "fluentui-scripts depcheck",
29
+ "lint": "fluentui-scripts eslint",
30
+ "lint-package": "fluentui-scripts lint-package",
25
31
  "test": "fluentui-scripts jest",
32
+ "update-api": "fluentui-scripts update-api-extractor",
26
33
  "update-snapshots": "fluentui-scripts jest -u",
27
34
  "verify-api": "fluentui-scripts verify-api-extractor",
28
- "update-api": "fluentui-scripts update-api-extractor",
29
35
  "windows": "react-native run-windows"
30
36
  },
31
- "repository": {
32
- "type": "git",
33
- "url": "https://github.com/microsoft/fluentui-react-native.git",
34
- "directory": "packages/experimental/Expander"
35
- },
36
37
  "dependencies": {
37
- "@fluentui-react-native/framework": "0.14.16"
38
+ "@fluentui-react-native/framework": "0.15.0"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@babel/core": "^7.20.0",
41
42
  "@fluentui-react-native/babel-config": "0.1.1",
42
43
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
43
- "@fluentui-react-native/scripts": "0.1.1",
44
- "@react-native/babel-preset": "^0.74.0",
45
- "@react-native/metro-config": "^0.74.0",
46
- "@types/react": "~18.2.0",
47
- "react": "18.2.0",
48
- "react-native": "^0.74.0",
49
- "react-native-macos": "^0.74.0",
50
- "react-native-windows": "^0.74.0"
44
+ "@fluentui-react-native/framework-base": "0.3.0",
45
+ "@fluentui-react-native/kit-config": "0.1.2",
46
+ "@fluentui-react-native/scripts": "0.1.2",
47
+ "@react-native-community/cli": "^20.0.0",
48
+ "@react-native-community/cli-platform-android": "^20.0.0",
49
+ "@react-native-community/cli-platform-ios": "^20.0.0",
50
+ "@react-native/metro-config": "^0.81.0",
51
+ "@types/react": "~19.1.0",
52
+ "react": "19.1.0",
53
+ "react-native": "^0.81.0",
54
+ "react-native-macos": "^0.81.0",
55
+ "react-native-windows": "^0.81.0"
51
56
  },
52
57
  "peerDependencies": {
53
58
  "@office-iss/react-native-win32": "^0.74.0",
54
- "react": "18.2.0",
55
- "react-native": "^0.73.0 || ^0.74.0",
56
- "react-native-macos": "^0.73.0 || ^0.74.0",
57
- "react-native-windows": "^0.73.0 || ^0.74.0"
59
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
60
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
61
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
62
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
63
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "@office-iss/react-native-win32": {
67
+ "optional": true
68
+ },
69
+ "@types/react": {
70
+ "optional": true
71
+ },
72
+ "react-native-macos": {
73
+ "optional": true
74
+ },
75
+ "react-native-windows": {
76
+ "optional": true
77
+ }
58
78
  },
59
79
  "rnx-kit": {
60
80
  "kitType": "library",
61
81
  "alignDeps": {
62
- "presets": [
63
- "microsoft/react-native"
64
- ],
65
- "requirements": {
66
- "development": [
67
- "react-native@0.74"
68
- ],
69
- "production": [
70
- "react-native@0.73 || 0.74"
71
- ]
72
- },
73
82
  "capabilities": [
74
- "babel-preset-react-native",
75
83
  "core",
76
84
  "core-android",
77
85
  "core-ios",
78
86
  "core-macos",
79
87
  "core-windows",
80
- "react"
88
+ "react",
89
+ "tools-core"
81
90
  ]
82
- }
83
- },
84
- "peerDependenciesMeta": {
85
- "@office-iss/react-native-win32": {
86
- "optional": true
87
91
  },
88
- "react-native-macos": {
89
- "optional": true
90
- },
91
- "react-native-windows": {
92
- "optional": true
93
- }
92
+ "extends": "@fluentui-react-native/kit-config"
94
93
  }
95
- }
94
+ }
package/src/Expander.tsx CHANGED
@@ -4,16 +4,15 @@
4
4
  * @format
5
5
  */
6
6
 
7
- /** @jsxRuntime classic */
8
- /** @jsx withSlots */
7
+ /** @jsxImportSource @fluentui-react-native/framework-base */
9
8
  import * as React from 'react';
10
9
 
11
10
  import type { UseSlots } from '@fluentui-react-native/framework';
12
- import { compose, mergeProps, withSlots, buildProps } from '@fluentui-react-native/framework';
11
+ import { compose, mergeProps, buildProps } from '@fluentui-react-native/framework';
13
12
 
14
13
  import type { ExpanderType, ExpanderProps, ExpanderViewProps } from './Expander.types';
15
14
  import { expanderName } from './Expander.types';
16
- import ExpanderComponent from './ExpanderNativeComponent';
15
+ import { ExpanderComponent } from './ExpanderNativeComponent';
17
16
 
18
17
  function delay(ms: number) {
19
18
  return new Promise<void>((resolve) => setTimeout(resolve, ms));
@@ -1,5 +1,6 @@
1
1
  import type { PropsWithChildren } from 'react';
2
2
  import type { ColorValue } from 'react-native';
3
+ import type { NativeProps } from './ExpanderNativeComponent';
3
4
 
4
5
  export const expanderName = 'Expander';
5
6
 
@@ -157,6 +158,6 @@ export interface ExpanderType {
157
158
  props: ExpanderProps;
158
159
  tokens: ExpanderTokens;
159
160
  slotProps: {
160
- root: ExpanderViewProps;
161
+ root: NativeProps;
161
162
  };
162
163
  }
@@ -44,6 +44,6 @@ export interface NativeProps extends ViewProps {
44
44
  onExpanding?: DirectEventHandler<null>;
45
45
  }
46
46
 
47
- export default codegenNativeComponent<NativeProps>(
48
- 'ExpanderView'
49
- ) as HostComponent<NativeProps>;
47
+ export const ExpanderComponent: HostComponent<NativeProps> = codegenNativeComponent<NativeProps>('ExpanderView');
48
+
49
+ export default ExpanderComponent;