@fluentui-react-native/use-slots 0.7.1 → 0.7.3

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/.eslintrc.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ extends: ['@fluentui-react-native/eslint-config-rules'],
3
+ };
package/CHANGELOG.json CHANGED
@@ -2,7 +2,64 @@
2
2
  "name": "@fluentui-react-native/use-slots",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 30 Sep 2022 00:51:19 GMT",
5
+ "date": "Thu, 02 Feb 2023 01:27:10 GMT",
6
+ "tag": "@fluentui-react-native/use-slots_v0.7.3",
7
+ "version": "0.7.3",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/use-slots",
13
+ "commit": "ac679ca51704ba5c2d2cc2385a71694b69735a1d",
14
+ "comment": "Add eslint to packages missing a config"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/use-slots",
19
+ "comment": "Bump @fluentui-react-native/use-slot to v0.3.3",
20
+ "commit": "ac679ca51704ba5c2d2cc2385a71694b69735a1d"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "date": "Wed, 01 Feb 2023 22:33:17 GMT",
27
+ "tag": "@fluentui-react-native/use-slots_v0.7.2",
28
+ "version": "0.7.2",
29
+ "comments": {
30
+ "patch": [
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui-react-native/use-slots",
34
+ "comment": "Bump @fluentui-react-native/use-slot to v0.3.2",
35
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui-react-native/use-slots",
40
+ "comment": "Bump @fluentui-react-native/merge-props to v0.5.2",
41
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
42
+ }
43
+ ]
44
+ }
45
+ },
46
+ {
47
+ "date": "Mon, 30 Jan 2023 15:17:32 GMT",
48
+ "tag": "@fluentui-react-native/use-slots_v0.7.1",
49
+ "version": "0.7.1",
50
+ "comments": {
51
+ "none": [
52
+ {
53
+ "author": "4123478+tido64@users.noreply.github.com",
54
+ "package": "@fluentui-react-native/use-slots",
55
+ "commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
56
+ "comment": "Migrate to align-deps"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Fri, 30 Sep 2022 00:54:37 GMT",
6
63
  "tag": "@fluentui-react-native/use-slots_v0.7.1",
7
64
  "version": "0.7.1",
8
65
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,30 @@
1
1
  # Change Log - @fluentui-react-native/use-slots
2
2
 
3
- This log was last generated on Fri, 30 Sep 2022 00:51:19 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 02 Feb 2023 01:27:10 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.7.3
8
+
9
+ Thu, 02 Feb 2023 01:27:10 GMT
10
+
11
+ ### Patches
12
+
13
+ - Add eslint to packages missing a config (30809111+acoates-ms@users.noreply.github.com)
14
+ - Bump @fluentui-react-native/use-slot to v0.3.3
15
+
16
+ ## 0.7.2
17
+
18
+ Wed, 01 Feb 2023 22:33:17 GMT
19
+
20
+ ### Patches
21
+
22
+ - Bump @fluentui-react-native/use-slot to v0.3.2
23
+ - Bump @fluentui-react-native/merge-props to v0.5.2
24
+
7
25
  ## 0.7.1
8
26
 
9
- Fri, 30 Sep 2022 00:51:19 GMT
27
+ Fri, 30 Sep 2022 00:54:37 GMT
10
28
 
11
29
  ### Patches
12
30
 
@@ -1,8 +1,8 @@
1
- import { ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
2
- export declare type Slots<TSlotProps> = {
1
+ import type { ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
2
+ export type Slots<TSlotProps> = {
3
3
  [K in keyof TSlotProps]: SlotFn<TSlotProps[K]>;
4
4
  };
5
- export declare type UseSlotOptions<TSlotProps> = {
5
+ export type UseSlotOptions<TSlotProps> = {
6
6
  slots: {
7
7
  [K in keyof TSlotProps]: NativeReactType | ComposableFunction<TSlotProps[K]>;
8
8
  };
@@ -11,7 +11,7 @@ export declare type UseSlotOptions<TSlotProps> = {
11
11
  };
12
12
  useStyling?: TSlotProps | GetSlotProps<TSlotProps>;
13
13
  };
14
- export declare type GetSlotProps<TSlotProps> = (...args: any[]) => TSlotProps;
15
- export declare type UseSlotsBase<TSlotProps> = (...args: any[]) => Slots<TSlotProps>;
14
+ export type GetSlotProps<TSlotProps> = (...args: any[]) => TSlotProps;
15
+ export type UseSlotsBase<TSlotProps> = (...args: any[]) => Slots<TSlotProps>;
16
16
  export declare function buildUseSlots<TSlotProps>(options: UseSlotOptions<TSlotProps>): UseSlotsBase<TSlotProps>;
17
17
  //# sourceMappingURL=buildUseSlots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.d.ts","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIvG,oBAAY,KAAK,CAAC,UAAU,IAAI;KAAG,CAAC,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEnF,oBAAY,cAAc,CAAC,UAAU,IAAI;IACvC,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,UAAU,GAAG,eAAe,GAAG,kBAAkB,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,C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E,wBAAgB,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,cAAc,CAAC,UAAU,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAkBvG"}
@@ -7,6 +7,7 @@ export function buildUseSlots(options) {
7
7
  args[_i] = arguments[_i];
8
8
  }
9
9
  // get the baseline slot props to render with the slots
10
+ // eslint-disable-next-line @typescript-eslint/ban-types
10
11
  var slotProps = typeof useStyling === 'function' ? useStyling.apply(void 0, args) : (useStyling || {});
11
12
  // build up a set of slots closures and store them in props
12
13
  var builtSlots = {};
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA+C,MAAM,iCAAiC,CAAC;AAgBvG,MAAM,UAAU,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,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;AAgB1D,MAAM,UAAU,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,wDAAwD;QACxD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,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.test.js","sourceRoot":"","sources":["../src/buildUseSlots.test.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,qBAAqB;AACrB,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa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1,3 @@
1
- export * from './buildUseSlots';
1
+ export { buildUseSlots } from './buildUseSlots';
2
+ export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from './buildUseSlots';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
package/lib/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './buildUseSlots';
1
+ export { buildUseSlots } from './buildUseSlots';
2
2
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
2
- export declare type Slots<TSlotProps> = {
1
+ import type { ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
2
+ export type Slots<TSlotProps> = {
3
3
  [K in keyof TSlotProps]: SlotFn<TSlotProps[K]>;
4
4
  };
5
- export declare type UseSlotOptions<TSlotProps> = {
5
+ export type UseSlotOptions<TSlotProps> = {
6
6
  slots: {
7
7
  [K in keyof TSlotProps]: NativeReactType | ComposableFunction<TSlotProps[K]>;
8
8
  };
@@ -11,7 +11,7 @@ export declare type UseSlotOptions<TSlotProps> = {
11
11
  };
12
12
  useStyling?: TSlotProps | GetSlotProps<TSlotProps>;
13
13
  };
14
- export declare type GetSlotProps<TSlotProps> = (...args: any[]) => TSlotProps;
15
- export declare type UseSlotsBase<TSlotProps> = (...args: any[]) => Slots<TSlotProps>;
14
+ export type GetSlotProps<TSlotProps> = (...args: any[]) => TSlotProps;
15
+ export type UseSlotsBase<TSlotProps> = (...args: any[]) => Slots<TSlotProps>;
16
16
  export declare function buildUseSlots<TSlotProps>(options: UseSlotOptions<TSlotProps>): UseSlotsBase<TSlotProps>;
17
17
  //# sourceMappingURL=buildUseSlots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.d.ts","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,kBAAkB,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIvG,oBAAY,KAAK,CAAC,UAAU,IAAI;KAAG,CAAC,IAAI,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAEnF,oBAAY,cAAc,CAAC,UAAU,IAAI;IACvC,KAAK,EAAE;SAAG,CAAC,IAAI,MAAM,UAAU,GAAG,eAAe,GAAG,kBAAkB,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,oBAAY,YAAY,CAAC,UAAU,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC;AAEtE,oBAAY,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,CAiBvG"}
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;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"}
@@ -10,6 +10,7 @@ function buildUseSlots(options) {
10
10
  args[_i] = arguments[_i];
11
11
  }
12
12
  // get the baseline slot props to render with the slots
13
+ // eslint-disable-next-line @typescript-eslint/ban-types
13
14
  var slotProps = typeof useStyling === 'function' ? useStyling.apply(void 0, args) : (useStyling || {});
14
15
  // build up a set of slots closures and store them in props
15
16
  var builtSlots = {};
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":";;;AAAA,4DAAuG;AAgBvG,SAAgB,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAA,kBAAO,EAAC,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;AAjBD,sCAiBC"}
1
+ {"version":3,"file":"buildUseSlots.js","sourceRoot":"","sources":["../src/buildUseSlots.ts"],"names":[],"mappings":";;;AACA,4DAA0D;AAgB1D,SAAgB,aAAa,CAAa,OAAmC;IACnE,IAAA,KAAK,GAA+B,OAAO,MAAtC,EAAE,KAA6B,OAAO,QAAxB,EAAZ,OAAO,mBAAG,EAAE,KAAA,EAAE,UAAU,GAAK,OAAO,WAAZ,CAAa;IACpD,OAAO;QAAC,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,yBAAc;;QACpB,uDAAuD;QACvD,wDAAwD;QACxD,IAAM,SAAS,GAAe,OAAO,UAAU,KAAK,UAAU,CAAC,CAAC,CAAE,UAAuB,eAAI,IAAI,EAAE,CAAC,CAAE,CAAC,UAAU,IAAI,EAAE,CAAgB,CAAC;QAExI,2DAA2D;QAC3D,IAAM,UAAU,GAAsB,EAAuB,CAAC;QAE9D,mGAAmG;QACnG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YAClC,UAAU,CAAC,QAAQ,CAAC,GAAG,IAAA,kBAAO,EAAC,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;AAlBD,sCAkBC"}
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
12
12
  };
13
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
14
  if (k2 === undefined) k2 = k;
15
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
16
20
  }) : (function(o, m, k, k2) {
17
21
  if (k2 === undefined) k2 = k;
18
22
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"buildUseSlots.test.js","sourceRoot":"","sources":["../src/buildUseSlots.test.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;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;;AAAA,qBAAqB;AACrB,4DAA6E;AAC7E,4DAAgD;AAChD,iDAAgD;AAEhD,6CAA0C;AAQ1C,IAAM,YAAY,GAAG,IAAA,6BAAa,EAAa;IAC7C,KAAK,EAAE;QACL,KAAK,EAAE,mBAAI;QACX,KAAK,EAAE,mBAAI;QACX,OAAO,EAAE,mBAAI;KACd;CACF,CAAC,CAAC;AAEH,IAAM,QAAQ,GAAG,IAAA,0BAAe,EAAC,UAAC,KAAgB;IAChD,IAAM,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAClC,OAAO,UAAC,KAAgB;QACtB,IAAM,MAAM,yBAAQ,KAAK,GAAK,KAAK,CAAE,CAAC;QACtC,OAAO,CACL,0BAAC,KAAK,CAAC,KAAK,eAAK,MAAM;YACrB,0BAAC,KAAK,CAAC,KAAK,IAAC,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;gBACpE,0BAAC,KAAK,CAAC,OAAO,gBAAsB,CACxB,CACF,CACf,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,QAAQ,CAAC,0BAA0B,EAAE;IACnC,EAAE,CAAC,yBAAyB,EAAE;QAC5B,IAAM,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,0BAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,GAAI,CAAC,CAAC,MAAM,EAAE,CAAC;QAC5H,MAAM,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- export * from './buildUseSlots';
1
+ export { buildUseSlots } from './buildUseSlots';
2
+ export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from './buildUseSlots';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC"}
@@ -1,14 +1,6 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
2
  Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./buildUseSlots"), exports);
3
+ exports.buildUseSlots = void 0;
4
+ var buildUseSlots_1 = require("./buildUseSlots");
5
+ Object.defineProperty(exports, "buildUseSlots", { enumerable: true, get: function () { return buildUseSlots_1.buildUseSlots; } });
14
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/use-slots",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "description": "Hook function to return styled slots",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,10 +27,10 @@
27
27
  "author": "",
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
- "@fluentui-react-native/use-slot": ">=0.3.1 <1.0.0"
30
+ "@fluentui-react-native/use-slot": ">=0.3.3 <1.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@fluentui-react-native/merge-props": ">=0.5.1 <1.0.0",
33
+ "@fluentui-react-native/merge-props": ">=0.5.2 <1.0.0",
34
34
  "@fluentui-react-native/scripts": "^0.1.1",
35
35
  "react": "17.0.2",
36
36
  "react-native": "^0.68.0"
@@ -40,14 +40,20 @@
40
40
  "react-native": "^0.68.0"
41
41
  },
42
42
  "rnx-kit": {
43
- "reactNativeVersion": "^0.68",
44
- "reactNativeDevVersion": "^0.68",
45
43
  "kitType": "library",
46
- "capabilities": [
47
- "core",
48
- "core-android",
49
- "core-ios",
50
- "react"
51
- ]
44
+ "alignDeps": {
45
+ "presets": [
46
+ "microsoft/react-native"
47
+ ],
48
+ "requirements": [
49
+ "react-native@0.68"
50
+ ],
51
+ "capabilities": [
52
+ "core",
53
+ "core-android",
54
+ "core-ios",
55
+ "react"
56
+ ]
57
+ }
52
58
  }
53
59
  }
@@ -2,7 +2,8 @@
2
2
  import { withSlots, stagedComponent } from '@fluentui-react-native/use-slot';
3
3
  import * as renderer from 'react-test-renderer';
4
4
  import { buildUseSlots } from './buildUseSlots';
5
- import { ViewProps, View, Text, TextProps } from 'react-native';
5
+ import type { ViewProps, TextProps } from 'react-native';
6
+ import { View, Text } from 'react-native';
6
7
 
7
8
  type SlotProps1 = {
8
9
  outer: ViewProps;
@@ -1,4 +1,5 @@
1
- import { useSlot, ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
1
+ import type { ComposableFunction, SlotFn, NativeReactType } from '@fluentui-react-native/use-slot';
2
+ import { useSlot } from '@fluentui-react-native/use-slot';
2
3
 
3
4
  // type AsObject<T> = T extends object ? T : never
4
5
 
@@ -18,6 +19,7 @@ export function buildUseSlots<TSlotProps>(options: UseSlotOptions<TSlotProps>):
18
19
  const { slots, filters = {}, useStyling } = options;
19
20
  return (...args: any[]) => {
20
21
  // get the baseline slot props to render with the slots
22
+ // eslint-disable-next-line @typescript-eslint/ban-types
21
23
  const slotProps: TSlotProps = typeof useStyling === 'function' ? (useStyling as Function)(...args) : ((useStyling || {}) as TSlotProps);
22
24
 
23
25
  // build up a set of slots closures and store them in props
package/src/index.ts CHANGED
@@ -1 +1,2 @@
1
- export * from './buildUseSlots';
1
+ export { buildUseSlots } from './buildUseSlots';
2
+ export type { GetSlotProps, Slots, UseSlotOptions, UseSlotsBase } from './buildUseSlots';
@@ -4,7 +4,7 @@ import { mergeProps } from '@fluentui-react-native/merge-props';
4
4
  import { buildUseSlots } from './buildUseSlots';
5
5
  import toJson from 'enzyme-to-json';
6
6
  import { mount } from 'enzyme';
7
- import { CSSProperties } from 'react';
7
+ import type { CSSProperties } from 'react';
8
8
 
9
9
  // types for web
10
10
  type TextProps = { style?: CSSProperties };