@fluentui/react-alert 9.0.0-beta.12 → 9.0.0-beta.121

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 (43) hide show
  1. package/CHANGELOG.md +1337 -2
  2. package/README.md +5 -3
  3. package/dist/index.d.ts +11 -0
  4. package/lib/Alert.js +0 -1
  5. package/lib/Alert.js.map +1 -1
  6. package/lib/components/Alert/Alert.js +12 -8
  7. package/lib/components/Alert/Alert.js.map +1 -1
  8. package/lib/components/Alert/Alert.types.js +1 -2
  9. package/lib/components/Alert/Alert.types.js.map +1 -1
  10. package/lib/components/Alert/index.js +1 -2
  11. package/lib/components/Alert/index.js.map +1 -1
  12. package/lib/components/Alert/renderAlert.js +16 -13
  13. package/lib/components/Alert/renderAlert.js.map +1 -1
  14. package/lib/components/Alert/useAlert.js +64 -69
  15. package/lib/components/Alert/useAlert.js.map +1 -1
  16. package/lib/components/Alert/useAlertStyles.styles.js +139 -0
  17. package/lib/components/Alert/useAlertStyles.styles.js.map +1 -0
  18. package/lib/index.js +1 -1
  19. package/lib/index.js.map +1 -1
  20. package/lib-commonjs/Alert.js +3 -7
  21. package/lib-commonjs/Alert.js.map +1 -1
  22. package/lib-commonjs/components/Alert/Alert.js +22 -23
  23. package/lib-commonjs/components/Alert/Alert.js.map +1 -1
  24. package/lib-commonjs/components/Alert/Alert.types.js +1 -3
  25. package/lib-commonjs/components/Alert/Alert.types.js.map +1 -1
  26. package/lib-commonjs/components/Alert/index.js +7 -15
  27. package/lib-commonjs/components/Alert/index.js.map +1 -1
  28. package/lib-commonjs/components/Alert/renderAlert.js +20 -21
  29. package/lib-commonjs/components/Alert/renderAlert.js.map +1 -1
  30. package/lib-commonjs/components/Alert/useAlert.js +74 -92
  31. package/lib-commonjs/components/Alert/useAlert.js.map +1 -1
  32. package/lib-commonjs/components/Alert/useAlertStyles.styles.js +280 -0
  33. package/lib-commonjs/components/Alert/useAlertStyles.styles.js.map +1 -0
  34. package/lib-commonjs/index.js +25 -36
  35. package/lib-commonjs/index.js.map +1 -1
  36. package/package.json +38 -20
  37. package/CHANGELOG.json +0 -537
  38. package/Migration.md +0 -0
  39. package/Spec.md +0 -97
  40. package/lib/components/Alert/useAlertStyles.js +0 -112
  41. package/lib/components/Alert/useAlertStyles.js.map +0 -1
  42. package/lib-commonjs/components/Alert/useAlertStyles.js +0 -123
  43. package/lib-commonjs/components/Alert/useAlertStyles.js.map +0 -1
@@ -1,40 +1,29 @@
1
+ // eslint-disable-next-line deprecation/deprecation
1
2
  "use strict";
2
-
3
3
  Object.defineProperty(exports, "__esModule", {
4
- value: true
4
+ value: true
5
5
  });
6
- exports.useAlert_unstable = exports.useAlertStyles_unstable = exports.renderAlert_unstable = exports.alertClassNames = exports.Alert = void 0;
7
-
8
- var Alert_1 = /*#__PURE__*/require("./Alert");
9
-
10
- Object.defineProperty(exports, "Alert", {
11
- enumerable: true,
12
- get: function () {
13
- return Alert_1.Alert;
14
- }
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ Alert: function() {
14
+ return _Alert.Alert;
15
+ },
16
+ alertClassNames: function() {
17
+ return _Alert.alertClassNames;
18
+ },
19
+ renderAlert_unstable: function() {
20
+ return _Alert.renderAlert_unstable;
21
+ },
22
+ useAlertStyles_unstable: function() {
23
+ return _Alert.useAlertStyles_unstable;
24
+ },
25
+ useAlert_unstable: function() {
26
+ return _Alert.useAlert_unstable;
27
+ }
15
28
  });
16
- Object.defineProperty(exports, "alertClassNames", {
17
- enumerable: true,
18
- get: function () {
19
- return Alert_1.alertClassNames;
20
- }
21
- });
22
- Object.defineProperty(exports, "renderAlert_unstable", {
23
- enumerable: true,
24
- get: function () {
25
- return Alert_1.renderAlert_unstable;
26
- }
27
- });
28
- Object.defineProperty(exports, "useAlertStyles_unstable", {
29
- enumerable: true,
30
- get: function () {
31
- return Alert_1.useAlertStyles_unstable;
32
- }
33
- });
34
- Object.defineProperty(exports, "useAlert_unstable", {
35
- enumerable: true,
36
- get: function () {
37
- return Alert_1.useAlert_unstable;
38
- }
39
- });
40
- //# sourceMappingURL=index.js.map
29
+ const _Alert = require("./Alert");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,SAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,OAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,KAAA;EAAK;AAAL,CAAA;AAAO,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,iBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,eAAA;EAAe;AAAf,CAAA;AAAiB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,oBAAA;EAAoB;AAApB,CAAA;AAAsB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,yBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,uBAAA;EAAuB;AAAvB,CAAA;AAAyB,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;EAAA,UAAA,EAAA,IAAA;EAAA,GAAA,EAAA,YAAA;IAAA,OAAA,OAAA,CAAA,iBAAA;EAAiB;AAAjB,CAAA","sourcesContent":["export { Alert, alertClassNames, renderAlert_unstable, useAlertStyles_unstable, useAlert_unstable } from './Alert';\nexport type { AlertProps, AlertSlots, AlertState } from './Alert';\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["// eslint-disable-next-line deprecation/deprecation\nexport { Alert, alertClassNames, renderAlert_unstable, useAlertStyles_unstable, useAlert_unstable } from './Alert';\n"],"names":["Alert","alertClassNames","renderAlert_unstable","useAlertStyles_unstable","useAlert_unstable"],"mappings":"AAAA,mDAAmD;;;;;;;;;;;;IAC1CA,KAAK;eAALA,YAAK;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,uBAAuB;eAAvBA,8BAAuB;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;;uBAAQ"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-alert",
3
- "version": "9.0.0-beta.12",
3
+ "version": "9.0.0-beta.121",
4
4
  "description": "An alert component to display brief messages",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "dist/index.d.ts",
7
+ "typings": "./dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -13,38 +13,41 @@
13
13
  "license": "MIT",
14
14
  "scripts": {
15
15
  "build": "just-scripts build",
16
- "bundle-size": "bundle-size measure",
16
+ "bundle-size": "monosize measure",
17
17
  "clean": "just-scripts clean",
18
18
  "code-style": "just-scripts code-style",
19
19
  "just": "just-scripts",
20
20
  "lint": "just-scripts lint",
21
21
  "start": "yarn storybook",
22
22
  "test": "jest --passWithNoTests",
23
- "docs": "api-extractor run --config=config/api-extractor.local.json --local",
24
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/types/packages/react-components/react-alert/src && yarn docs",
25
23
  "storybook": "start-storybook",
26
- "type-check": "tsc -b tsconfig.json"
24
+ "type-check": "tsc -b tsconfig.json",
25
+ "generate-api": "just-scripts generate-api",
26
+ "test-ssr": "test-ssr \"./stories/**/*.stories.tsx\""
27
27
  },
28
28
  "devDependencies": {
29
29
  "@fluentui/eslint-plugin": "*",
30
30
  "@fluentui/react-conformance": "*",
31
- "@fluentui/react-conformance-griffel": "9.0.0-beta.15",
32
- "@fluentui/scripts": "^1.0.0"
31
+ "@fluentui/react-conformance-griffel": "*",
32
+ "@fluentui/scripts-api-extractor": "*",
33
+ "@fluentui/scripts-tasks": "*"
33
34
  },
34
35
  "dependencies": {
35
- "@fluentui/react-avatar": "^9.2.1",
36
- "@fluentui/react-button": "^9.1.4",
37
- "@fluentui/react-icons": "^2.0.175",
38
- "@fluentui/react-theme": "^9.1.0",
39
- "@fluentui/react-utilities": "^9.1.1",
40
- "@griffel/react": "^1.4.0",
41
- "tslib": "^2.1.0"
36
+ "@fluentui/react-avatar": "^9.6.26",
37
+ "@fluentui/react-button": "^9.3.80",
38
+ "@fluentui/react-icons": "^2.0.239",
39
+ "@fluentui/react-tabster": "^9.21.2",
40
+ "@fluentui/react-theme": "^9.1.19",
41
+ "@fluentui/react-utilities": "^9.18.8",
42
+ "@fluentui/react-jsx-runtime": "^9.0.37",
43
+ "@griffel/react": "^1.5.14",
44
+ "@swc/helpers": "^0.5.1"
42
45
  },
43
46
  "peerDependencies": {
44
- "@types/react": ">=16.8.0 <18.0.0",
45
- "@types/react-dom": ">=16.8.0 <18.0.0",
46
- "react": ">=16.8.0 <18.0.0",
47
- "react-dom": ">=16.8.0 <18.0.0"
47
+ "@types/react": ">=16.14.0 <19.0.0",
48
+ "@types/react-dom": ">=16.9.0 <19.0.0",
49
+ "react": ">=16.14.0 <19.0.0",
50
+ "react-dom": ">=16.14.0 <19.0.0"
48
51
  },
49
52
  "beachball": {
50
53
  "disallowedChangeTypes": [
@@ -52,5 +55,20 @@
52
55
  "minor",
53
56
  "patch"
54
57
  ]
55
- }
58
+ },
59
+ "exports": {
60
+ ".": {
61
+ "types": "./dist/index.d.ts",
62
+ "node": "./lib-commonjs/index.js",
63
+ "import": "./lib/index.js",
64
+ "require": "./lib-commonjs/index.js"
65
+ },
66
+ "./package.json": "./package.json"
67
+ },
68
+ "files": [
69
+ "*.md",
70
+ "dist/*.d.ts",
71
+ "lib",
72
+ "lib-commonjs"
73
+ ]
56
74
  }