@fluentui/react-portal 0.0.0-nightlyf3ce1fbe1d20211110.1 → 0.0.0-nightlyf6116328d620220124.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/CHANGELOG.json +151 -21
  2. package/CHANGELOG.md +38 -10
  3. package/lib/components/Portal/Portal.js +3 -2
  4. package/lib/components/Portal/Portal.js.map +1 -1
  5. package/lib/components/Portal/renderPortal.js +6 -2
  6. package/lib/components/Portal/renderPortal.js.map +1 -1
  7. package/lib/components/Portal/usePortal.js +22 -16
  8. package/lib/components/Portal/usePortal.js.map +1 -1
  9. package/lib/components/Portal/usePortalMountNode.js +27 -21
  10. package/lib/components/Portal/usePortalMountNode.js.map +1 -1
  11. package/lib/virtualParent/elementContains.js +18 -14
  12. package/lib/virtualParent/elementContains.js.map +1 -1
  13. package/lib/virtualParent/getParent.js +2 -1
  14. package/lib/virtualParent/getParent.js.map +1 -1
  15. package/lib/virtualParent/getVirtualParent.js +8 -5
  16. package/lib/virtualParent/getVirtualParent.js.map +1 -1
  17. package/lib/virtualParent/isVirtualElement.js +1 -1
  18. package/lib/virtualParent/isVirtualElement.js.map +1 -1
  19. package/lib/virtualParent/setVirtualParent.js +11 -8
  20. package/lib/virtualParent/setVirtualParent.js.map +1 -1
  21. package/lib-commonjs/Portal.js +7 -2
  22. package/lib-commonjs/Portal.js.map +1 -1
  23. package/lib-commonjs/components/Portal/Portal.js +13 -5
  24. package/lib-commonjs/components/Portal/Portal.js.map +1 -1
  25. package/lib-commonjs/components/Portal/Portal.types.js +4 -1
  26. package/lib-commonjs/components/Portal/Portal.types.js.map +1 -1
  27. package/lib-commonjs/components/Portal/index.js +10 -2
  28. package/lib-commonjs/components/Portal/index.js.map +1 -1
  29. package/lib-commonjs/components/Portal/renderPortal.js +16 -5
  30. package/lib-commonjs/components/Portal/renderPortal.js.map +1 -1
  31. package/lib-commonjs/components/Portal/usePortal.js +36 -21
  32. package/lib-commonjs/components/Portal/usePortal.js.map +1 -1
  33. package/lib-commonjs/components/Portal/usePortalMountNode.js +41 -26
  34. package/lib-commonjs/components/Portal/usePortalMountNode.js.map +1 -1
  35. package/lib-commonjs/index.js +22 -5
  36. package/lib-commonjs/index.js.map +1 -1
  37. package/lib-commonjs/virtualParent/elementContains.js +26 -16
  38. package/lib-commonjs/virtualParent/elementContains.js.map +1 -1
  39. package/lib-commonjs/virtualParent/getParent.js +10 -3
  40. package/lib-commonjs/virtualParent/getParent.js.map +1 -1
  41. package/lib-commonjs/virtualParent/getVirtualParent.js +16 -7
  42. package/lib-commonjs/virtualParent/getVirtualParent.js.map +1 -1
  43. package/lib-commonjs/virtualParent/index.js +11 -2
  44. package/lib-commonjs/virtualParent/index.js.map +1 -1
  45. package/lib-commonjs/virtualParent/isVirtualElement.js +7 -2
  46. package/lib-commonjs/virtualParent/isVirtualElement.js.map +1 -1
  47. package/lib-commonjs/virtualParent/setVirtualParent.js +17 -9
  48. package/lib-commonjs/virtualParent/setVirtualParent.js.map +1 -1
  49. package/lib-commonjs/virtualParent/types.js +4 -1
  50. package/lib-commonjs/virtualParent/types.js.map +1 -1
  51. package/package.json +12 -11
  52. package/lib/common/isConformant.d.ts +0 -4
  53. package/lib/common/isConformant.js +0 -9
  54. package/lib/common/isConformant.js.map +0 -1
  55. package/lib-commonjs/common/isConformant.d.ts +0 -4
  56. package/lib-commonjs/common/isConformant.js +0 -13
  57. package/lib-commonjs/common/isConformant.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-portal",
3
- "version": "0.0.0-nightlyf3ce1fbe1d20211110.1",
3
+ "version": "0.0.0-nightlyf6116328d620220124.1",
4
4
  "description": "A utility component that creates portals compatible with Fluent UI",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -19,14 +19,15 @@
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
- "test": "jest",
22
+ "test": "jest --passWithNoTests",
23
23
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-portal/src && yarn docs",
25
- "storybook": "start-storybook"
24
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-portal/src && yarn docs",
25
+ "storybook": "node ../../scripts/storybook/runner",
26
+ "type-check": "tsc -b tsconfig.json"
26
27
  },
27
28
  "devDependencies": {
28
29
  "@fluentui/eslint-plugin": "*",
29
- "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyf3ce1fbe1d20211110.1",
30
+ "@fluentui/jest-serializer-make-styles": "0.0.0-nightlyf6116328d620220124.1",
30
31
  "@fluentui/react-conformance": "*",
31
32
  "@fluentui/scripts": "^1.0.0",
32
33
  "@types/enzyme": "3.10.3",
@@ -38,13 +39,14 @@
38
39
  "enzyme-adapter-react-16": "^1.15.0",
39
40
  "react": "16.8.6",
40
41
  "react-dom": "16.8.6",
41
- "react-test-renderer": "^16.3.0"
42
+ "react-test-renderer": "^16.3.0",
43
+ "@fluentui/babel-make-styles": "0.0.0-nightlyf6116328d620220124.1"
42
44
  },
43
45
  "dependencies": {
44
- "@fluentui/react-make-styles": "0.0.0-nightlyf3ce1fbe1d20211110.1",
45
- "@fluentui/react-shared-contexts": "0.0.0-nightlyf3ce1fbe1d20211110.1",
46
- "@fluentui/react-tabster": "0.0.0-nightlyf3ce1fbe1d20211110.1",
47
- "@fluentui/react-utilities": "0.0.0-nightlyf3ce1fbe1d20211110.1",
46
+ "@fluentui/react-make-styles": "0.0.0-nightlyf6116328d620220124.1",
47
+ "@fluentui/react-shared-contexts": "0.0.0-nightlyf6116328d620220124.1",
48
+ "@fluentui/react-tabster": "0.0.0-nightlyf6116328d620220124.1",
49
+ "@fluentui/react-utilities": "0.0.0-nightlyf6116328d620220124.1",
48
50
  "tslib": "^2.1.0"
49
51
  },
50
52
  "peerDependencies": {
@@ -54,7 +56,6 @@
54
56
  "react-dom": ">=16.8.0 <18.0.0"
55
57
  },
56
58
  "beachball": {
57
- "tag": "beta",
58
59
  "disallowedChangeTypes": [
59
60
  "major",
60
61
  "minor",
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,9 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- export function isConformant(testInfo) {
3
- const defaultOptions = {
4
- asPropHandlesRef: true,
5
- componentPath: module.parent.filename.replace('.test', ''),
6
- };
7
- baseIsConformant(defaultOptions, testInfo);
8
- }
9
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isConformant.js","sourceRoot":"","sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/E,MAAM,UAAU,YAAY,CAC1B,QAAyF;IAEzF,MAAM,cAAc,GAAyC;QAC3D,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,MAAO,CAAC,MAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KAC7D,CAAC;IAEF,gBAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC"}
@@ -1,4 +0,0 @@
1
- import type { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isConformant = void 0;
4
- const react_conformance_1 = require("@fluentui/react-conformance");
5
- function isConformant(testInfo) {
6
- const defaultOptions = {
7
- asPropHandlesRef: true,
8
- componentPath: module.parent.filename.replace('.test', ''),
9
- };
10
- react_conformance_1.isConformant(defaultOptions, testInfo);
11
- }
12
- exports.isConformant = isConformant;
13
- //# sourceMappingURL=isConformant.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isConformant.js","sourceRoot":"","sources":["../../src/common/isConformant.ts"],"names":[],"mappings":";;;AAAA,mEAA+E;AAG/E,SAAgB,YAAY,CAC1B,QAAyF;IAEzF,MAAM,cAAc,GAAyC;QAC3D,gBAAgB,EAAE,IAAI;QACtB,aAAa,EAAE,MAAO,CAAC,MAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KAC7D,CAAC;IAEF,gCAAgB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;AAC7C,CAAC;AATD,oCASC"}