@fluentui/react-persona 0.0.0-nightly-20230317-1454.1 → 0.0.0-nightly-20230321-0440.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.
Files changed (35) hide show
  1. package/CHANGELOG.json +15 -15
  2. package/CHANGELOG.md +10 -10
  3. package/lib/Persona.js +1 -1
  4. package/lib/Persona.js.map +1 -1
  5. package/lib/components/Persona/Persona.js +6 -6
  6. package/lib/components/Persona/Persona.js.map +1 -1
  7. package/lib/components/Persona/Persona.types.js.map +1 -1
  8. package/lib/components/Persona/index.js +5 -5
  9. package/lib/components/Persona/index.js.map +1 -1
  10. package/lib/components/Persona/renderPersona.js +18 -4
  11. package/lib/components/Persona/renderPersona.js.map +1 -1
  12. package/lib/components/Persona/usePersona.js +21 -22
  13. package/lib/components/Persona/usePersona.js.map +1 -1
  14. package/lib/components/Persona/usePersonaStyles.js +20 -20
  15. package/lib/components/Persona/usePersonaStyles.js.map +1 -1
  16. package/lib/index.js +1 -1
  17. package/lib/index.js.map +1 -1
  18. package/lib-commonjs/Persona.js +4 -5
  19. package/lib-commonjs/Persona.js.map +1 -1
  20. package/lib-commonjs/components/Persona/Persona.js +21 -19
  21. package/lib-commonjs/components/Persona/Persona.js.map +1 -1
  22. package/lib-commonjs/components/Persona/Persona.types.js +2 -3
  23. package/lib-commonjs/components/Persona/Persona.types.js.map +1 -1
  24. package/lib-commonjs/components/Persona/index.js +8 -9
  25. package/lib-commonjs/components/Persona/index.js.map +1 -1
  26. package/lib-commonjs/components/Persona/renderPersona.js +35 -15
  27. package/lib-commonjs/components/Persona/renderPersona.js.map +1 -1
  28. package/lib-commonjs/components/Persona/usePersona.js +84 -80
  29. package/lib-commonjs/components/Persona/usePersona.js.map +1 -1
  30. package/lib-commonjs/components/Persona/usePersonaStyles.js +208 -252
  31. package/lib-commonjs/components/Persona/usePersonaStyles.js.map +1 -1
  32. package/lib-commonjs/index.js +33 -16
  33. package/lib-commonjs/index.js.map +1 -1
  34. package/package.json +10 -9
  35. package/.swcrc +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-persona",
3
- "version": "0.0.0-nightly-20230317-1454.1",
3
+ "version": "0.0.0-nightly-20230321-0440.1",
4
4
  "description": "React components for building web experiences",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,23 +22,23 @@
22
22
  "type-check": "tsc -b tsconfig.json",
23
23
  "storybook": "start-storybook",
24
24
  "start": "yarn storybook",
25
- "generate-api": "just-scripts generate-api"
25
+ "generate-api": "tsc -p ./tsconfig.lib.json --emitDeclarationOnly && just-scripts api-extractor"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230317-1454.1",
30
+ "@fluentui/react-conformance-griffel": "0.0.0-nightly-20230321-0440.1",
31
31
  "@fluentui/scripts-api-extractor": "*",
32
32
  "@fluentui/scripts-tasks": "*"
33
33
  },
34
34
  "dependencies": {
35
- "@fluentui/react-avatar": "0.0.0-nightly-20230317-1454.1",
36
- "@fluentui/react-badge": "0.0.0-nightly-20230317-1454.1",
37
- "@fluentui/react-shared-contexts": "0.0.0-nightly-20230317-1454.1",
38
- "@fluentui/react-theme": "0.0.0-nightly-20230317-1454.1",
39
- "@fluentui/react-utilities": "0.0.0-nightly-20230317-1454.1",
35
+ "@fluentui/react-avatar": "0.0.0-nightly-20230321-0440.1",
36
+ "@fluentui/react-badge": "0.0.0-nightly-20230321-0440.1",
37
+ "@fluentui/react-shared-contexts": "0.0.0-nightly-20230321-0440.1",
38
+ "@fluentui/react-theme": "0.0.0-nightly-20230321-0440.1",
39
+ "@fluentui/react-utilities": "0.0.0-nightly-20230321-0440.1",
40
40
  "@griffel/react": "^1.5.2",
41
- "@swc/helpers": "^0.4.14"
41
+ "tslib": "^2.1.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@types/react": ">=16.8.0 <19.0.0",
@@ -50,6 +50,7 @@
50
50
  "exports": {
51
51
  ".": {
52
52
  "types": "./dist/index.d.ts",
53
+ "node": "./lib-commonjs/index.js",
53
54
  "import": "./lib/index.js",
54
55
  "require": "./lib-commonjs/index.js"
55
56
  },
package/.swcrc DELETED
@@ -1,39 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/swcrc",
3
- "env": {
4
- "targets": {
5
- "chrome": "84",
6
- "edge": "84",
7
- "firefox": "75",
8
- "opera": "73",
9
- "safari": "14.1"
10
- },
11
- "bugfixes": true
12
- },
13
- "exclude": [
14
- "/testing",
15
- "/**/*.cy.ts",
16
- "/**/*.cy.tsx",
17
- "/**/*.spec.ts",
18
- "/**/*.spec.tsx",
19
- "/**/*.test.ts",
20
- "/**/*.test.tsx"
21
- ],
22
- "jsc": {
23
- "parser": {
24
- "syntax": "typescript",
25
- "tsx": true,
26
- "decorators": false,
27
- "dynamicImport": false
28
- },
29
- "externalHelpers": true,
30
- "transform": {
31
- "react": {
32
- "runtime": "classic",
33
- "useSpread": true
34
- }
35
- }
36
- },
37
- "minify": false,
38
- "sourceMaps": true
39
- }