@fluentui/react-utilities 0.0.0-nightly65dd5f749420211213.1 → 0.0.0-nightly8dfa71215620220118.1

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,17 +2,23 @@
2
2
  "name": "@fluentui/react-utilities",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 13 Dec 2021 04:16:35 GMT",
6
- "tag": "@fluentui/react-utilities_v0.0.0-nightly65dd5f749420211213.1",
7
- "version": "0.0.0-nightly65dd5f749420211213.1",
5
+ "date": "Tue, 18 Jan 2022 04:14:43 GMT",
6
+ "tag": "@fluentui/react-utilities_v0.0.0-nightly8dfa71215620220118.1",
7
+ "version": "0.0.0-nightly8dfa71215620220118.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-utilities",
13
- "commit": "77618a4c1c41ffdcf3d5d21ea90d20af614da6f1",
13
+ "commit": "88cddfc0c80b8e37df557740279661f628c46698",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "behowell@microsoft.com",
18
+ "package": "@fluentui/react-utilities",
19
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
20
+ "comment": "getSlots: remove slotNames param, and infer from state.components instead"
21
+ },
16
22
  {
17
23
  "author": "elcraig@microsoft.com",
18
24
  "package": "@fluentui/react-utilities",
@@ -22,8 +28,8 @@
22
28
  {
23
29
  "author": "beachball",
24
30
  "package": "@fluentui/react-utilities",
25
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly65dd5f749420211213.1",
26
- "commit": "77618a4c1c41ffdcf3d5d21ea90d20af614da6f1"
31
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly8dfa71215620220118.1",
32
+ "commit": "88cddfc0c80b8e37df557740279661f628c46698"
27
33
  }
28
34
  ],
29
35
  "none": [
@@ -33,11 +39,23 @@
33
39
  "commit": "3360b45ec159250b1346c91afad7dce138e6bc20",
34
40
  "comment": "Update API file to version generated by typescript 4.3"
35
41
  },
42
+ {
43
+ "author": "martinhochel@microsoft.com",
44
+ "package": "@fluentui/react-utilities",
45
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
46
+ "comment": "chore: use storybook runner for all vNext packages"
47
+ },
36
48
  {
37
49
  "author": "seanmonahan@microsoft.com",
38
50
  "package": "@fluentui/react-utilities",
39
51
  "commit": "6404bef16cebf1f67b9b80a9f6d5f605f9873df1",
40
52
  "comment": "Update getSlots() docs."
53
+ },
54
+ {
55
+ "author": "lingfangao@hotmail.com",
56
+ "package": "@fluentui/react-utilities",
57
+ "commit": "a4e048a0e03ddd676670da516e3a6612b26ea500",
58
+ "comment": "chore: Remove enzyme from react-utilities tests"
41
59
  }
42
60
  ]
43
61
  }
package/CHANGELOG.md CHANGED
@@ -1,19 +1,20 @@
1
1
  # Change Log - @fluentui/react-utilities
2
2
 
3
- This log was last generated on Mon, 13 Dec 2021 04:16:35 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 18 Jan 2022 04:14:43 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly65dd5f749420211213.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v0.0.0-nightly65dd5f749420211213.1)
7
+ ## [0.0.0-nightly8dfa71215620220118.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v0.0.0-nightly8dfa71215620220118.1)
8
8
 
9
- Mon, 13 Dec 2021 04:16:35 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-beta.4..@fluentui/react-utilities_v0.0.0-nightly65dd5f749420211213.1)
9
+ Tue, 18 Jan 2022 04:14:43 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-utilities_v9.0.0-beta.4..@fluentui/react-utilities_v0.0.0-nightly8dfa71215620220118.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/77618a4c1c41ffdcf3d5d21ea90d20af614da6f1) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/88cddfc0c80b8e37df557740279661f628c46698) by email not defined)
15
+ - getSlots: remove slotNames param, and infer from state.components instead ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
15
16
  - [breaking] Remove useControllableValue hook (use useControllableState instead) ([PR #20865](https://github.com/microsoft/fluentui/pull/20865) by elcraig@microsoft.com)
16
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly65dd5f749420211213.1 ([commit](https://github.com/microsoft/fluentui/commit/77618a4c1c41ffdcf3d5d21ea90d20af614da6f1) by beachball)
17
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightly8dfa71215620220118.1 ([commit](https://github.com/microsoft/fluentui/commit/88cddfc0c80b8e37df557740279661f628c46698) by beachball)
17
18
 
18
19
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-utilities_v9.0.0-beta.4)
19
20
 
@@ -76,7 +76,7 @@ export declare type ComponentProps<Shorthands extends ObjectShorthandPropsRecord
76
76
  }, Primary & 'root'> & PropsWithoutRef<Shorthands[Primary]>;
77
77
 
78
78
  export declare type ComponentState<Shorthands extends ObjectShorthandPropsRecord> = {
79
- components?: {
79
+ components: {
80
80
  [Key in keyof Shorthands]-?: React_2.ComponentType<NonNullable<Shorthands[Key]> extends ObjectShorthandProps<infer P> ? P : NonNullable<Shorthands[Key]>> | (NonNullable<Shorthands[Key]> extends AsIntrinsicElement<infer As> ? As : keyof JSX.IntrinsicElements);
81
81
  };
82
82
  } & Shorthands;
@@ -185,10 +185,9 @@ export declare const getRTLSafeKey: (key: string, dir: 'ltr' | 'rtl') => string;
185
185
  * runtime code filtering props in this function.
186
186
  *
187
187
  * @param state - State including slot definitions
188
- * @param slotNames - Name of which props are slots
189
188
  * @returns An object containing the `slots` map and `slotProps` map.
190
189
  */
191
- export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>, slotNames?: (keyof R)[]): {
190
+ export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>): {
192
191
  slots: Slots<R>;
193
192
  slotProps: SlotProps<R>;
194
193
  };
@@ -21,10 +21,9 @@ declare type SlotProps<S extends ObjectShorthandPropsRecord> = {
21
21
  * runtime code filtering props in this function.
22
22
  *
23
23
  * @param state - State including slot definitions
24
- * @param slotNames - Name of which props are slots
25
24
  * @returns An object containing the `slots` map and `slotProps` map.
26
25
  */
27
- export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>, slotNames?: (keyof R)[]): {
26
+ export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>): {
28
27
  slots: Slots<R>;
29
28
  slotProps: SlotProps<R>;
30
29
  };
@@ -16,13 +16,13 @@ import { omit } from '../utils/omit';
16
16
  * runtime code filtering props in this function.
17
17
  *
18
18
  * @param state - State including slot definitions
19
- * @param slotNames - Name of which props are slots
20
19
  * @returns An object containing the `slots` map and `slotProps` map.
21
20
  */
22
21
 
23
- export function getSlots(state, slotNames = ['root']) {
22
+ export function getSlots(state) {
24
23
  const slots = {};
25
24
  const slotProps = {};
25
+ const slotNames = Object.keys(state.components);
26
26
 
27
27
  for (const slotName of slotNames) {
28
28
  const [slot, props] = getSlot(state, slotName);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/compose/getSlots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AAUA,SAAS,UAAT,QAA2B,cAA3B;AACA,SAAS,IAAT,QAAqB,eAArB;AAqBA;;;;;;;;;;;;;;;;;AAiBG;;AACH,OAAM,SAAU,QAAV,CACJ,KADI,EAEJ,SAAA,GAAyB,CAAC,MAAD,CAFrB,EAE6B;AAKjC,QAAM,KAAK,GAAG,EAAd;AACA,QAAM,SAAS,GAAG,EAAlB;;AAEA,OA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ands[Key]>>;
80
80
  }, Primary & 'root'> & PropsWithoutRef<Shorthands[Primary]>;
81
81
  export declare type ComponentState<Shorthands extends ObjectShorthandPropsRecord> = {
82
- components?: {
82
+ components: {
83
83
  [Key in keyof Shorthands]-?: React.ComponentType<NonNullable<Shorthands[Key]> extends ObjectShorthandProps<infer P> ? P : NonNullable<Shorthands[Key]>> | (NonNullable<Shorthands[Key]> extends AsIntrinsicElement<infer As> ? As : keyof JSX.IntrinsicElements);
84
84
  };
85
85
  } & Shorthands;
@@ -21,10 +21,9 @@ declare type SlotProps<S extends ObjectShorthandPropsRecord> = {
21
21
  * runtime code filtering props in this function.
22
22
  *
23
23
  * @param state - State including slot definitions
24
- * @param slotNames - Name of which props are slots
25
24
  * @returns An object containing the `slots` map and `slotProps` map.
26
25
  */
27
- export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>, slotNames?: (keyof R)[]): {
26
+ export declare function getSlots<R extends ObjectShorthandPropsRecord>(state: ComponentState<R>): {
28
27
  slots: Slots<R>;
29
28
  slotProps: SlotProps<R>;
30
29
  };
@@ -25,14 +25,14 @@ const omit_1 = /*#__PURE__*/require("../utils/omit");
25
25
  * runtime code filtering props in this function.
26
26
  *
27
27
  * @param state - State including slot definitions
28
- * @param slotNames - Name of which props are slots
29
28
  * @returns An object containing the `slots` map and `slotProps` map.
30
29
  */
31
30
 
32
31
 
33
- function getSlots(state, slotNames = ['root']) {
32
+ function getSlots(state) {
34
33
  const slots = {};
35
34
  const slotProps = {};
35
+ const slotNames = Object.keys(state.components);
36
36
 
37
37
  for (const slotName of slotNames) {
38
38
  const [slot, props] = getSlot(state, slotName);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/compose/getSlots.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AAUA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,MAAA,gBAAA,OAAA,CAAA,eAAA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CAAf,GAAe,KAAA,CAAf,GAAe,EAAA,CAAE,EAA7C,CAAzB;AACA,QAAM,SAAS,GAAI,gBAAgB,GAAG,MAAA,CAAA,IAAA,CAAK,KAAK,CAAC,QAAD,CAAV,EAAuB,CAAC,IAAD,CAAvB,CAAH,GAAoC,KAAK,CAAC,QAAD,CAA5E;AAEA,SAAO,CAAC,IAAD,EAAO,SAAP,CAAP;AACD","sourceRoot":""}
@@ -79,7 +79,7 @@ export declare type ComponentProps<Shorthands extends ObjectShorthandPropsRecord
79
79
  [Key in keyof Shorthands]?: ShorthandProps<NonNullable<Shorthands[Key]>>;
80
80
  }, Primary & 'root'> & PropsWithoutRef<Shorthands[Primary]>;
81
81
  export declare type ComponentState<Shorthands extends ObjectShorthandPropsRecord> = {
82
- components?: {
82
+ components: {
83
83
  [Key in keyof Shorthands]-?: React.ComponentType<NonNullable<Shorthands[Key]> extends ObjectShorthandProps<infer P> ? P : NonNullable<Shorthands[Key]>> | (NonNullable<Shorthands[Key]> extends AsIntrinsicElement<infer As> ? As : keyof JSX.IntrinsicElements);
84
84
  };
85
85
  } & Shorthands;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-utilities",
3
- "version": "0.0.0-nightly65dd5f749420211213.1",
3
+ "version": "0.0.0-nightly8dfa71215620220118.1",
4
4
  "description": "A set of general React-specific utilities.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,7 +18,7 @@
18
18
  "code-style": "just-scripts code-style",
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
- "test": "jest",
21
+ "test": "jest --passWithNoTests",
22
22
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
23
23
  "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-utilities/src && yarn docs",
24
24
  "start": "yarn storybook",
@@ -27,17 +27,13 @@
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/scripts": "^1.0.0",
30
- "@types/enzyme": "3.10.3",
31
- "@types/enzyme-adapter-react-16": "1.0.3",
32
30
  "@types/react": "16.9.42",
33
31
  "@types/react-test-renderer": "^16.0.0",
34
- "enzyme": "~3.10.0",
35
- "enzyme-adapter-react-16": "^1.15.0",
36
32
  "react": "16.8.6",
37
33
  "react-test-renderer": "^16.3.0"
38
34
  },
39
35
  "dependencies": {
40
- "@fluentui/keyboard-keys": "0.0.0-nightly65dd5f749420211213.1",
36
+ "@fluentui/keyboard-keys": "0.0.0-nightly8dfa71215620220118.1",
41
37
  "tslib": "^2.1.0"
42
38
  },
43
39
  "peerDependencies": {