@fluentui-react-native/use-slots 0.10.5 → 0.10.6

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.
package/CHANGELOG.json CHANGED
@@ -2,11 +2,17 @@
2
2
  "name": "@fluentui-react-native/use-slots",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 11 Jul 2025 19:50:39 GMT",
6
- "version": "0.10.5",
7
- "tag": "@fluentui-react-native/use-slots_v0.10.5",
5
+ "date": "Tue, 15 Jul 2025 23:20:47 GMT",
6
+ "version": "0.10.6",
7
+ "tag": "@fluentui-react-native/use-slots_v0.10.6",
8
8
  "comments": {
9
9
  "none": [
10
+ {
11
+ "author": "jasonmo@microsoft.com",
12
+ "package": "@fluentui-react-native/use-slots",
13
+ "commit": "3e168e4363d1821818f219819d29532eace8d979",
14
+ "comment": "update scripts package to be fully js, use esm, and validate fully"
15
+ },
10
16
  {
11
17
  "author": "ruaraki@microsoft.com",
12
18
  "package": "@fluentui-react-native/use-slots",
@@ -33,11 +39,29 @@
33
39
  }
34
40
  ],
35
41
  "patch": [
42
+ {
43
+ "author": "jasonmo@microsoft.com",
44
+ "package": "@fluentui-react-native/use-slots",
45
+ "commit": "3d36cc95620fdb938221cbe2c5ce002264108a50",
46
+ "comment": "fix repo linting with new configs and version, fixing linting errors as well"
47
+ },
36
48
  {
37
49
  "author": "jasonmo@microsoft.com",
38
50
  "package": "@fluentui-react-native/use-slots",
39
51
  "commit": "479b93cea460a26df70c55b5d3335927ed374713",
40
52
  "comment": "update builds to use node16 settings and modern export maps"
53
+ },
54
+ {
55
+ "author": "jasonmo@microsoft.com",
56
+ "package": "@fluentui-react-native/use-slots",
57
+ "commit": "6b4d59227b1e9bbbf25cc93a3502015f663b363e",
58
+ "comment": "add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling"
59
+ },
60
+ {
61
+ "author": "sanajmi@microsoft.com",
62
+ "package": "@fluentui-react-native/use-slots",
63
+ "commit": "9cbe229ec7f6363d229dcaef506921b8d9f47d7d",
64
+ "comment": "fix: run beachball sync"
41
65
  }
42
66
  ]
43
67
  }
package/CHANGELOG.md CHANGED
@@ -1,16 +1,19 @@
1
1
  # Change Log - @fluentui-react-native/use-slots
2
2
 
3
- <!-- This log was last generated on Fri, 11 Jul 2025 19:50:39 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 15 Jul 2025 23:20:47 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.10.5
7
+ ## 0.10.6
8
8
 
9
- Fri, 11 Jul 2025 19:50:39 GMT
9
+ Tue, 15 Jul 2025 23:20:47 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
+ - fix repo linting with new configs and version, fixing linting errors as well (jasonmo@microsoft.com)
13
14
  - update builds to use node16 settings and modern export maps (jasonmo@microsoft.com)
15
+ - add react-native entrypoints that ensure metro targets TS files rather than JS files for bundling (jasonmo@microsoft.com)
16
+ - fix: run beachball sync (sanajmi@microsoft.com)
14
17
 
15
18
  ## 0.10.3
16
19
 
package/babel.config.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('@fluentui-react-native/scripts/babel.config');
1
+ module.exports = require('@fluentui-react-native/scripts/configs/babel.config');
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.d.ts","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKnG,MAAM,MAAM,KAAK,CAAC,UAAU,IAAI;KAAG,CAAC,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEnF,MAAM,MAAM,cAAc,CAAC,UAAU,IAAI;IACvC,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,UAAU,GAAG,eAAe,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC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,UAAU,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC;AAEtE,MAAM,MAAM,YAAY,CAAC,UAAU,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC;AAE7E,wBAAgB,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAkBvG"}
@@ -3,7 +3,6 @@ export function buildUseSlots(options) {
3
3
  const { slots, filters = {}, useStyling } = options;
4
4
  return (...args) => {
5
5
  // get the baseline slot props to render with the slots
6
- // eslint-disable-next-line @typescript-eslint/ban-types
7
6
  const slotProps = typeof useStyling === 'function' ? useStyling(...args) : (useStyling || {});
8
7
  // build up a set of slots closures and store them in props
9
8
  const builtSlots = {};
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAgB1D,MAAM,UAAU,aAAa,CAAa,OAAmC;IAC3E,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACpD,OAAO,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,uDAAuD;QACvD,wDAAwD;QACxD,MAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,MAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtC,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAC,CAAC;QAEH,qFAAqF;QACrF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAqB1D,MAAM,UAAU,aAAa,CAAa,OAAmC;IAC3E,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACpD,OAAO,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,uDAAuD;QACvD,MAAM,SAAS,GACb,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAqC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAE1H,2DAA2D;QAC3D,MAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YACtC,UAAU,CAAC,QAAQ,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1F,CAAC,CAAC,CAAC;QAEH,qFAAqF;QACrF,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.d.ts","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAKn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AkB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC;IACxF,OAAO,CAAC,EAAE;SAAG,CAAC,IAAI,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO;KAAE,CAAC;IACtE,UAAU,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,UAAU,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC;AAEtE,MAAM,MAAM,YAAY,CAAC,UAAU,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC;AAE7E,wBAAgB,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAkBvG"}
@@ -6,7 +6,6 @@ function buildUseSlots(options) {
6
6
  const { slots, filters = {}, useStyling } = options;
7
7
  return (...args) => {
8
8
  // get the baseline slot props to render with the slots
9
- // eslint-disable-next-line @typescript-eslint/ban-types
10
9
  const slotProps = typeof useStyling === 'function' ? useStyling(...args) : (useStyling || {});
11
10
  // build up a set of slots closures and store them in props
12
11
  const builtSlots = {};
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":";;;AACA,8DAA0D;AAgB1D,SAAgB,aAAa,CAAa,OAAmC;IAC3E,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,EAAE,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACpD,OAAO,CAAC,GAAG,IAAW,EAAE,EAAE;QACxB,uDAAuD;QACvD,wDAAwD;QACxD,MAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAE,CAAC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F,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AAlBD,sCAkBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/use-slots",
3
- "version": "0.10.5",
3
+ "version": "0.10.6",
4
4
  "description": "Hook function to return styled slots",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,6 +9,7 @@
9
9
  },
10
10
  "main": "lib-commonjs/index.js",
11
11
  "module": "lib/index.js",
12
+ "react-native": "src/index.ts",
12
13
  "exports": {
13
14
  ".": {
14
15
  "import": "./lib/index.js",
@@ -34,11 +35,11 @@
34
35
  "author": "",
35
36
  "license": "MIT",
36
37
  "dependencies": {
37
- "@fluentui-react-native/use-slot": "0.6.5"
38
+ "@fluentui-react-native/use-slot": "0.6.6"
38
39
  },
39
40
  "devDependencies": {
40
41
  "@babel/core": "^7.20.0",
41
- "@fluentui-react-native/merge-props": "0.9.4",
42
+ "@fluentui-react-native/merge-props": "0.9.5",
42
43
  "@fluentui-react-native/scripts": "0.1.1",
43
44
  "@react-native/babel-preset": "^0.74.0",
44
45
  "@react-native/metro-config": "^0.74.0",
@@ -3,6 +3,11 @@ import { useSlot } from '@fluentui-react-native/use-slot';
3
3
 
4
4
  // type AsObject<T> = T extends object ? T : never
5
5
 
6
+ /**
7
+ * Signature for the use styling hook
8
+ */
9
+ type UseStyling<TSlotProps> = (...props: unknown[]) => TSlotProps;
10
+
6
11
  export type Slots<TSlotProps> = { [K in keyof TSlotProps]: SlotFn<TSlotProps[K]> };
7
12
 
8
13
  export type UseSlotOptions<TSlotProps> = {
@@ -19,8 +24,8 @@ export function buildUseSlots<TSlotProps>(options: UseSlotOptions<TSlotProps>):
19
24
  const { slots, filters = {}, useStyling } = options;
20
25
  return (...args: any[]) => {
21
26
  // get the baseline slot props to render with the slots
22
- // eslint-disable-next-line @typescript-eslint/ban-types
23
- const slotProps: TSlotProps = typeof useStyling === 'function' ? (useStyling as Function)(...args) : ((useStyling || {}) as TSlotProps);
27
+ const slotProps: TSlotProps =
28
+ typeof useStyling === 'function' ? (useStyling as UseStyling<TSlotProps>)(...args) : ((useStyling || {}) as TSlotProps);
24
29
 
25
30
  // build up a set of slots closures and store them in props
26
31
  const builtSlots: Slots<TSlotProps> = {} as Slots<TSlotProps>;
package/just.config.js DELETED
@@ -1,3 +0,0 @@
1
- const { preset } = require('@fluentui-react-native/scripts');
2
-
3
- preset();