@availity/mui-snackbar 2.0.2 → 3.0.0
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.md +30 -0
- package/dist/index.js +5 -58
- package/package.json +17 -18
- package/project.json +5 -6
- package/src/lib/Snackbar.tsx +1 -3
- package/dist/index.d.mts +0 -7
- package/dist/index.mjs +0 -26
- package/jest.config.js +0 -7
- package/tsconfig.spec.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [3.0.0](https://github.com/Availity/element/compare/@availity/mui-snackbar@2.0.2...@availity/mui-snackbar@3.0.0) (2026-06-16)
|
|
6
|
+
|
|
7
|
+
### Dependency Updates
|
|
8
|
+
|
|
9
|
+
* `mui-alert` updated to version `2.0.2`
|
|
10
|
+
* `mui-button` updated to version `2.0.2`
|
|
11
|
+
* `mui-layout` updated to version `2.0.2`
|
|
12
|
+
* `mui-transitions` updated to version `2.0.2`
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* CJS builds removed, packages are ESM-only.
|
|
17
|
+
|
|
18
|
+
- Convert all packages to ESM (type: module)
|
|
19
|
+
- Replace Jest with Vitest for all test targets
|
|
20
|
+
- Migrate ESLint to v9 flat config (eslint.config.js)
|
|
21
|
+
- Build output ESM-only (removed CJS dist/index.js require path)
|
|
22
|
+
- Upgrade @tanstack/react-query from v4 to v5
|
|
23
|
+
- Upgrade @availity/api-axios to v13
|
|
24
|
+
- Drop Node 20 support (engines: ^22.0.0 || ^24.0.0)
|
|
25
|
+
- Bump React to 19.2.7, MUI to 7.3.11, TypeScript to 5.9.3
|
|
26
|
+
- Simplify CI caching with built-in yarn cache action + Nx cache
|
|
27
|
+
- Modernize nx.json configuration
|
|
28
|
+
- Update husky hooks to use yarn directly
|
|
29
|
+
- Replace lint-staged nx affected with direct eslint
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* migrate to ESM, Vitest, and ESLint 9 flat config ([cc22bb4](https://github.com/Availity/element/commit/cc22bb4a230bc1f3b190f187c4e61249d015b25b))
|
|
34
|
+
|
|
5
35
|
## [2.0.2](https://github.com/Availity/element/compare/@availity/mui-snackbar@2.0.1...@availity/mui-snackbar@2.0.2) (2026-02-02)
|
|
6
36
|
|
|
7
37
|
### Dependency Updates
|
package/dist/index.js
CHANGED
|
@@ -1,60 +1,7 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
if (__hasOwnProp.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
if (__getOwnPropSymbols)
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __export = (target, all) => {
|
|
23
|
-
for (var name in all)
|
|
24
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
25
|
-
};
|
|
26
|
-
var __copyProps = (to, from, except, desc) => {
|
|
27
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
28
|
-
for (let key of __getOwnPropNames(from))
|
|
29
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
30
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
35
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
36
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
37
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
38
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
39
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
40
|
-
mod
|
|
41
|
-
));
|
|
42
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
43
|
-
|
|
44
|
-
// src/index.ts
|
|
45
|
-
var index_exports = {};
|
|
46
|
-
__export(index_exports, {
|
|
47
|
-
Snackbar: () => Snackbar
|
|
48
|
-
});
|
|
49
|
-
module.exports = __toCommonJS(index_exports);
|
|
50
|
-
|
|
51
1
|
// src/lib/Snackbar.tsx
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
var Snackbar = (props) => {
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
2
|
+
import MuiSnackbar from "@mui/material/Snackbar";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var Snackbar = (props) => /* @__PURE__ */ jsx(MuiSnackbar, { ...props });
|
|
5
|
+
export {
|
|
59
6
|
Snackbar
|
|
60
|
-
}
|
|
7
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@availity/mui-snackbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Availity MUI Snackbar Component - part of the @availity/element design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -21,34 +21,32 @@
|
|
|
21
21
|
"author": "Availity Developers <AVOSS@availity.com>",
|
|
22
22
|
"browser": "./dist/index.js",
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
|
-
"module": "./dist/index.mjs",
|
|
25
24
|
"types": "./dist/index.d.ts",
|
|
26
25
|
"exports": {
|
|
27
|
-
"./package.json": "./package.json",
|
|
28
26
|
".": {
|
|
29
27
|
"types": "./dist/index.d.ts",
|
|
30
|
-
"import": "./dist/index.
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
"import": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./package.json": "./package.json"
|
|
33
31
|
},
|
|
34
32
|
"scripts": {
|
|
35
|
-
"build": "tsup src/index.ts --format esm
|
|
36
|
-
"dev": "tsup src/index.ts --format esm
|
|
33
|
+
"build": "tsup src/index.ts --format esm --dts",
|
|
34
|
+
"dev": "tsup src/index.ts --format esm --watch --dts",
|
|
37
35
|
"clean": "rm -rf dist",
|
|
38
36
|
"clean:nm": "rm -rf node_modules",
|
|
39
37
|
"publish": "yarn npm publish --tolerate-republish --access public",
|
|
40
38
|
"publish:canary": "yarn npm publish --access public --tag canary"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
43
|
-
"@availity/mui-alert": "
|
|
44
|
-
"@availity/mui-button": "
|
|
45
|
-
"@availity/mui-layout": "
|
|
46
|
-
"@availity/mui-transitions": "
|
|
47
|
-
"@mui/material": "^7.3.
|
|
48
|
-
"react": "19.2.
|
|
49
|
-
"react-dom": "19.2.
|
|
50
|
-
"tsup": "^8.
|
|
51
|
-
"typescript": "^5.
|
|
41
|
+
"@availity/mui-alert": "3.0.0",
|
|
42
|
+
"@availity/mui-button": "3.0.0",
|
|
43
|
+
"@availity/mui-layout": "3.0.0",
|
|
44
|
+
"@availity/mui-transitions": "3.0.0",
|
|
45
|
+
"@mui/material": "^7.3.11",
|
|
46
|
+
"react": "19.2.7",
|
|
47
|
+
"react-dom": "19.2.7",
|
|
48
|
+
"tsup": "^8.5.1",
|
|
49
|
+
"typescript": "^5.9.3"
|
|
52
50
|
},
|
|
53
51
|
"peerDependencies": {
|
|
54
52
|
"@mui/material": "^7.0.0",
|
|
@@ -57,5 +55,6 @@
|
|
|
57
55
|
"publishConfig": {
|
|
58
56
|
"access": "public"
|
|
59
57
|
},
|
|
60
|
-
"sideEffects": false
|
|
58
|
+
"sideEffects": false,
|
|
59
|
+
"type": "module"
|
|
61
60
|
}
|
package/project.json
CHANGED
|
@@ -8,23 +8,20 @@
|
|
|
8
8
|
"lint": {
|
|
9
9
|
"executor": "@nx/eslint:lint",
|
|
10
10
|
"options": {
|
|
11
|
-
"eslintConfig": ".eslintrc.json",
|
|
12
11
|
"silent": false,
|
|
13
12
|
"fix": false,
|
|
14
13
|
"cache": true,
|
|
15
14
|
"cacheLocation": "./node_modules/.cache/snackbar/.eslintcache",
|
|
16
15
|
"maxWarnings": -1,
|
|
17
16
|
"quiet": false,
|
|
18
|
-
"noEslintrc": false,
|
|
19
17
|
"hasTypeAwareRules": true,
|
|
20
18
|
"cacheStrategy": "metadata"
|
|
21
19
|
}
|
|
22
20
|
},
|
|
23
21
|
"test": {
|
|
24
|
-
"executor": "
|
|
25
|
-
"outputs": ["{workspaceRoot}/coverage/snackbar"],
|
|
22
|
+
"executor": "nx:run-commands",
|
|
26
23
|
"options": {
|
|
27
|
-
"
|
|
24
|
+
"command": "vitest run packages/snackbar"
|
|
28
25
|
}
|
|
29
26
|
},
|
|
30
27
|
"version": {
|
|
@@ -34,7 +31,9 @@
|
|
|
34
31
|
"commitMessageFormat": "chore({projectName}): release version ${version} [skip ci]",
|
|
35
32
|
"tagPrefix": "@availity/{projectName}@",
|
|
36
33
|
"trackDeps": true,
|
|
37
|
-
"skipCommitTypes": [
|
|
34
|
+
"skipCommitTypes": [
|
|
35
|
+
"docs"
|
|
36
|
+
]
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
package/src/lib/Snackbar.tsx
CHANGED
|
@@ -5,6 +5,4 @@ export type SnackbarProps = Omit<MuiSnackbarProps, 'action' | 'ContentProps' | '
|
|
|
5
5
|
|
|
6
6
|
export type SnackbarCloseReason = MuiSnackbarCloseReason;
|
|
7
7
|
|
|
8
|
-
export const Snackbar = (props: SnackbarProps): React.JSX.Element => {
|
|
9
|
-
return <MuiSnackbar {...props}/>;
|
|
10
|
-
};
|
|
8
|
+
export const Snackbar = (props: SnackbarProps): React.JSX.Element => <MuiSnackbar {...props}/>;
|
package/dist/index.d.mts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SnackbarProps as SnackbarProps$1, SnackbarCloseReason as SnackbarCloseReason$1 } from '@mui/material/Snackbar';
|
|
2
|
-
|
|
3
|
-
type SnackbarProps = Omit<SnackbarProps$1, 'action' | 'ContentProps' | 'message' | 'TransitionComponent' | 'transitionDuration'>;
|
|
4
|
-
type SnackbarCloseReason = SnackbarCloseReason$1;
|
|
5
|
-
declare const Snackbar: (props: SnackbarProps) => React.JSX.Element;
|
|
6
|
-
|
|
7
|
-
export { Snackbar, type SnackbarCloseReason, type SnackbarProps };
|
package/dist/index.mjs
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
-
var __spreadValues = (a, b) => {
|
|
7
|
-
for (var prop in b || (b = {}))
|
|
8
|
-
if (__hasOwnProp.call(b, prop))
|
|
9
|
-
__defNormalProp(a, prop, b[prop]);
|
|
10
|
-
if (__getOwnPropSymbols)
|
|
11
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
12
|
-
if (__propIsEnum.call(b, prop))
|
|
13
|
-
__defNormalProp(a, prop, b[prop]);
|
|
14
|
-
}
|
|
15
|
-
return a;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/lib/Snackbar.tsx
|
|
19
|
-
import MuiSnackbar from "@mui/material/Snackbar";
|
|
20
|
-
import { jsx } from "react/jsx-runtime";
|
|
21
|
-
var Snackbar = (props) => {
|
|
22
|
-
return /* @__PURE__ */ jsx(MuiSnackbar, __spreadValues({}, props));
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
Snackbar
|
|
26
|
-
};
|
package/jest.config.js
DELETED
package/tsconfig.spec.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"types": ["jest", "node", "@testing-library/jest-dom"],
|
|
7
|
-
"allowJs": true
|
|
8
|
-
},
|
|
9
|
-
"include": ["jest.config.ts", "**/*.test.js", "**/*.test.ts", "**/*.test.tsx", "**/*.d.ts"]
|
|
10
|
-
}
|