@mui/x-license 7.14.0 → 7.16.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +167 -1
  2. package/Unstable_LicenseInfoProvider/LicenseInfoProvider.js +1 -1
  3. package/Unstable_LicenseInfoProvider/index.js +1 -1
  4. package/Watermark/Watermark.js +2 -2
  5. package/Watermark/index.js +1 -1
  6. package/generateLicense/generateLicense.d.ts +4 -2
  7. package/generateLicense/generateLicense.js +15 -7
  8. package/generateLicense/index.js +1 -1
  9. package/index.js +7 -7
  10. package/modern/Unstable_LicenseInfoProvider/LicenseInfoProvider.js +1 -1
  11. package/modern/Unstable_LicenseInfoProvider/index.js +1 -1
  12. package/modern/Watermark/Watermark.js +2 -2
  13. package/modern/Watermark/index.js +1 -1
  14. package/modern/generateLicense/generateLicense.js +15 -7
  15. package/modern/generateLicense/index.js +1 -1
  16. package/modern/index.js +7 -7
  17. package/modern/useLicenseVerifier/index.js +1 -1
  18. package/modern/useLicenseVerifier/useLicenseVerifier.js +5 -5
  19. package/modern/utils/index.js +3 -3
  20. package/modern/verifyLicense/index.js +1 -1
  21. package/modern/verifyLicense/verifyLicense.js +5 -5
  22. package/node/Unstable_LicenseInfoProvider/LicenseInfoProvider.js +2 -3
  23. package/node/Unstable_LicenseInfoProvider/MuiLicenseInfoContext.js +1 -2
  24. package/node/Watermark/Watermark.js +1 -2
  25. package/node/generateLicense/generateLicense.js +11 -3
  26. package/node/index.js +1 -1
  27. package/node/useLicenseVerifier/useLicenseVerifier.js +2 -3
  28. package/package.json +2 -2
  29. package/useLicenseVerifier/index.js +1 -1
  30. package/useLicenseVerifier/useLicenseVerifier.js +5 -5
  31. package/utils/index.js +3 -3
  32. package/verifyLicense/index.js +1 -1
  33. package/verifyLicense/verifyLicense.js +5 -5
package/CHANGELOG.md CHANGED
@@ -1,8 +1,174 @@
1
- # Change Log
1
+ # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.16.0
7
+
8
+ _Sep 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎨 Update the design of Data Grid column headers (#14293)
13
+ - 🧠 Add the `slots` concept introduction documentation page (#13881)
14
+ - 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
15
+ - 🐞 Bugfixes
16
+ - 📚 Documentation improvements
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.16.0`
23
+
24
+ - [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
25
+ - [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
26
+ - [DataGrid] Column header design updates (#14293) @KenanYusuf
27
+ - [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
28
+ - [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
29
+ - [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
30
+ - [DataGrid] Restore reselect behavior (#14410) @romgrk
31
+ - [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
32
+ - [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
33
+
34
+ #### `@mui/x-data-grid-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
35
+
36
+ Same changes as in `@mui/x-data-grid@7.16.0`, plus:
37
+
38
+ - [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
39
+
40
+ #### `@mui/x-data-grid-premium@7.16.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.16.0`.
43
+
44
+ ### Date and Time Pickers
45
+
46
+ #### `@mui/x-date-pickers@7.16.0`
47
+
48
+ - [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
49
+ - [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
50
+ - [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
51
+
52
+ #### `@mui/x-date-pickers-pro@7.16.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@7.16.0`.
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.16.0`
59
+
60
+ - [charts] Fix JSDoc typos (#14497) @alexfauquette
61
+ - [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
62
+ - [charts] Fix theme augmentation (#14372) @alexfauquette
63
+ - [charts] Pass all props to legend (#14392) @JCQuintas
64
+ - [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
65
+ - [charts] Update `package.json` for vendor package (#14465) @alexfauquette
66
+
67
+ #### `@mui/x-charts-pro@7.0.0-beta.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
68
+
69
+ Same changes as in `@mui/x-charts@7.16.0`, plus:
70
+
71
+ - [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
72
+
73
+ ### Tree View
74
+
75
+ #### `@mui/x-tree-view@7.16.0`
76
+
77
+ - [TreeView] Clean label editing code (#14264) @flaviendelangle
78
+
79
+ ### `@mui/x-codemod@7.16.0`
80
+
81
+ - [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
82
+
83
+ ### Docs
84
+
85
+ - [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
86
+ - [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
87
+ - [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
88
+ - [docs] Remove notion of seats (#14351) @oliviertassinari
89
+ - [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
90
+
91
+ ### Core
92
+
93
+ - [core] Fix changelog spelling @oliviertassinari
94
+ - [core] Fix failing tests on the pickers (#14457) @flaviendelangle
95
+ - [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
96
+ - [code-infra] Add babel runtime version check (#14483) @Janpot
97
+ - [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
98
+ - [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
99
+ - [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
100
+ - [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
101
+ - [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
102
+
103
+ ## 7.15.0
104
+
105
+ _Aug 29, 2024_
106
+
107
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
108
+
109
+ - 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
110
+
111
+ You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
112
+
113
+ - 🐞 Bugfixes
114
+
115
+ ### Data Grid
116
+
117
+ #### `@mui/x-data-grid-pro@7.15.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
118
+
119
+ - [DataGridPro] Export `GridRowReorderCell` component (#14079) @genepaul
120
+
121
+ #### `@mui/x-data-grid-premium@7.15.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
122
+
123
+ Same changes as in `@mui/x-data-grid-pro@7.15.0`.
124
+
125
+ ### Date and Time Pickers
126
+
127
+ #### `@mui/x-date-pickers@7.15.0`
128
+
129
+ - [pickers] Add `onTouchStart` handler for `TimeClock` (#14305) @arthurbalduini
130
+
131
+ #### `@mui/x-date-pickers-pro@7.15.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
132
+
133
+ Same changes as in `@mui/x-date-pickers@7.15.0`, plus:
134
+
135
+ - [DateTimeRangePicker] Fix date format resolving from views on 24hr locales (#14341) @arthurbalduini
136
+
137
+ ### Charts
138
+
139
+ #### `@mui/x-charts@7.15.0`
140
+
141
+ - [charts] Add missing `themeAugmentation` in pro plan (#14313) @lhilgert9
142
+ - [charts] Fix `LineChart` transition stopping before completion (#14366) @JCQuintas
143
+ - [charts] Fix tooltip with horizontal layout (#14337) @alexfauquette
144
+ - [charts] Keep axis root classe usage explicit (#14378) @alexfauquette
145
+
146
+ #### `@mui/x-charts-pro@7.0.0-alpha.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
147
+
148
+ Same changes as in `@mui/x-charts@7.15.0`, plus:
149
+
150
+ - [charts pro] Avoid relative reference to `@mui/x-charts` package (#14335) @LukasTy
151
+
152
+ ### Docs
153
+
154
+ - [docs] Fix sentence case `h2` @oliviertassinari
155
+ - [docs] Clarify contribution guide references @oliviertassinari
156
+ - [docs] Fix Stack Overflow issue canned response @oliviertassinari
157
+ - [docs] Fix outdated link to support page @oliviertassinari
158
+ - [docs] Fix use of Material UI @oliviertassinari
159
+ - [docs] Update deprecated props in docs (#14295) @JCQuintas
160
+
161
+ ### Core
162
+
163
+ - [core] Allow only v5.x for `MUI Core` renovate group (#14382) @LukasTy
164
+ - [core] Avoid visual regression when using `@mui/material@6` (#14357) @cherniavskii
165
+ - [core] Remove renovate rule targeting only `next` releases of `@mui/docs` (#14364) @LukasTy
166
+ - [core] Support `@mui/material@6` peer dependency (#14142) @cherniavskii
167
+ - [core] Use `useRtl` instead of `useTheme` to access direction (#14359) @LukasTy
168
+ - [code-infra] Typecheck nested folders in playground (#14352) @JCQuintas
169
+ - [infra] Fix Issue cleanup action @oliviertassinari
170
+ - [license] Prepare renaming of argument names @oliviertassinari
171
+
6
172
  ## 7.14.0
7
173
 
8
174
  _Aug 23, 2024_
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import MuiLicenseInfoContext from './MuiLicenseInfoContext';
2
+ import MuiLicenseInfoContext from "./MuiLicenseInfoContext.js";
3
3
 
4
4
  /**
5
5
  * @ignore - do not document.
@@ -1 +1 @@
1
- export { LicenseInfoProvider as Unstable_LicenseInfoProvider } from './LicenseInfoProvider';
1
+ export { LicenseInfoProvider as Unstable_LicenseInfoProvider } from "./LicenseInfoProvider.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { useLicenseVerifier } from '../useLicenseVerifier';
3
- import { LICENSE_STATUS } from '../utils/licenseStatus';
2
+ import { useLicenseVerifier } from "../useLicenseVerifier/index.js";
3
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  function getLicenseErrorMessage(licenseStatus) {
6
6
  switch (licenseStatus) {
@@ -1 +1 @@
1
- export * from './Watermark';
1
+ export * from "./Watermark.js";
@@ -3,8 +3,10 @@ import { LicensingModel } from '../utils/licensingModel';
3
3
  export interface LicenseDetails {
4
4
  orderNumber: string;
5
5
  expiryDate: Date;
6
- scope: LicenseScope;
7
- licensingModel: LicensingModel;
6
+ scope?: LicenseScope;
7
+ planScope?: LicenseScope;
8
+ licenseModel?: LicensingModel;
9
+ licensingModel?: LicensingModel;
8
10
  planVersion: PlanVersion;
9
11
  }
10
12
  export declare function generateLicense(details: LicenseDetails): string;
@@ -1,16 +1,24 @@
1
- import { md5 } from '../encoding/md5';
2
- import { base64Encode } from '../encoding/base64';
3
- import { LICENSE_SCOPES } from '../utils/licenseScope';
4
- import { LICENSING_MODELS } from '../utils/licensingModel';
1
+ import { md5 } from "../encoding/md5.js";
2
+ import { base64Encode } from "../encoding/base64.js";
3
+ import { LICENSE_SCOPES } from "../utils/licenseScope.js";
4
+ import { LICENSING_MODELS } from "../utils/licensingModel.js";
5
5
  const licenseVersion = '2';
6
6
  function getClearLicenseString(details) {
7
- if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {
7
+ // TODO remove
8
+ if (details.licensingModel) {
9
+ details.licenseModel = details.licensingModel;
10
+ }
11
+ // TODO remove
12
+ if (details.scope) {
13
+ details.planScope = details.scope;
14
+ }
15
+ if (details.planScope && !LICENSE_SCOPES.includes(details.planScope)) {
8
16
  throw new Error('MUI X: Invalid scope');
9
17
  }
10
- if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {
18
+ if (details.licenseModel && !LICENSING_MODELS.includes(details.licenseModel)) {
11
19
  throw new Error('MUI X: Invalid licensing model');
12
20
  }
13
- const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.scope}`, `LM=${details.licensingModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
21
+ const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.planScope}`, `LM=${details.licenseModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
14
22
  return keyParts.join(',');
15
23
  }
16
24
  export function generateLicense(details) {
@@ -1 +1 @@
1
- export * from './generateLicense';
1
+ export * from "./generateLicense.js";
package/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @mui/x-license v7.14.0
2
+ * @mui/x-license v7.16.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- export * from './generateLicense';
9
- export * from './utils';
10
- export * from './verifyLicense';
11
- export * from './useLicenseVerifier';
12
- export * from './Watermark';
13
- export * from './Unstable_LicenseInfoProvider';
8
+ export * from "./generateLicense/index.js";
9
+ export * from "./utils/index.js";
10
+ export * from "./verifyLicense/index.js";
11
+ export * from "./useLicenseVerifier/index.js";
12
+ export * from "./Watermark/index.js";
13
+ export * from "./Unstable_LicenseInfoProvider/index.js";
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import MuiLicenseInfoContext from './MuiLicenseInfoContext';
2
+ import MuiLicenseInfoContext from "./MuiLicenseInfoContext.js";
3
3
 
4
4
  /**
5
5
  * @ignore - do not document.
@@ -1 +1 @@
1
- export { LicenseInfoProvider as Unstable_LicenseInfoProvider } from './LicenseInfoProvider';
1
+ export { LicenseInfoProvider as Unstable_LicenseInfoProvider } from "./LicenseInfoProvider.js";
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { useLicenseVerifier } from '../useLicenseVerifier';
3
- import { LICENSE_STATUS } from '../utils/licenseStatus';
2
+ import { useLicenseVerifier } from "../useLicenseVerifier/index.js";
3
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  function getLicenseErrorMessage(licenseStatus) {
6
6
  switch (licenseStatus) {
@@ -1 +1 @@
1
- export * from './Watermark';
1
+ export * from "./Watermark.js";
@@ -1,16 +1,24 @@
1
- import { md5 } from '../encoding/md5';
2
- import { base64Encode } from '../encoding/base64';
3
- import { LICENSE_SCOPES } from '../utils/licenseScope';
4
- import { LICENSING_MODELS } from '../utils/licensingModel';
1
+ import { md5 } from "../encoding/md5.js";
2
+ import { base64Encode } from "../encoding/base64.js";
3
+ import { LICENSE_SCOPES } from "../utils/licenseScope.js";
4
+ import { LICENSING_MODELS } from "../utils/licensingModel.js";
5
5
  const licenseVersion = '2';
6
6
  function getClearLicenseString(details) {
7
- if (details.scope && !LICENSE_SCOPES.includes(details.scope)) {
7
+ // TODO remove
8
+ if (details.licensingModel) {
9
+ details.licenseModel = details.licensingModel;
10
+ }
11
+ // TODO remove
12
+ if (details.scope) {
13
+ details.planScope = details.scope;
14
+ }
15
+ if (details.planScope && !LICENSE_SCOPES.includes(details.planScope)) {
8
16
  throw new Error('MUI X: Invalid scope');
9
17
  }
10
- if (details.licensingModel && !LICENSING_MODELS.includes(details.licensingModel)) {
18
+ if (details.licenseModel && !LICENSING_MODELS.includes(details.licenseModel)) {
11
19
  throw new Error('MUI X: Invalid licensing model');
12
20
  }
13
- const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.scope}`, `LM=${details.licensingModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
21
+ const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.planScope}`, `LM=${details.licenseModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
14
22
  return keyParts.join(',');
15
23
  }
16
24
  export function generateLicense(details) {
@@ -1 +1 @@
1
- export * from './generateLicense';
1
+ export * from "./generateLicense.js";
package/modern/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @mui/x-license v7.14.0
2
+ * @mui/x-license v7.16.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- export * from './generateLicense';
9
- export * from './utils';
10
- export * from './verifyLicense';
11
- export * from './useLicenseVerifier';
12
- export * from './Watermark';
13
- export * from './Unstable_LicenseInfoProvider';
8
+ export * from "./generateLicense/index.js";
9
+ export * from "./utils/index.js";
10
+ export * from "./verifyLicense/index.js";
11
+ export * from "./useLicenseVerifier/index.js";
12
+ export * from "./Watermark/index.js";
13
+ export * from "./Unstable_LicenseInfoProvider/index.js";
@@ -1 +1 @@
1
- export { useLicenseVerifier } from './useLicenseVerifier';
1
+ export { useLicenseVerifier } from "./useLicenseVerifier.js";
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { verifyLicense } from '../verifyLicense/verifyLicense';
4
- import { LicenseInfo } from '../utils/licenseInfo';
5
- import { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError, showNotAvailableInInitialProPlanError } from '../utils/licenseErrorMessageUtils';
6
- import { LICENSE_STATUS } from '../utils/licenseStatus';
7
- import MuiLicenseInfoContext from '../Unstable_LicenseInfoProvider/MuiLicenseInfoContext';
3
+ import { verifyLicense } from "../verifyLicense/verifyLicense.js";
4
+ import { LicenseInfo } from "../utils/licenseInfo.js";
5
+ import { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError, showNotAvailableInInitialProPlanError } from "../utils/licenseErrorMessageUtils.js";
6
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
7
+ import MuiLicenseInfoContext from "../Unstable_LicenseInfoProvider/MuiLicenseInfoContext.js";
8
8
  export const sharedLicenseStatuses = {};
9
9
  export function useLicenseVerifier(packageName, releaseInfo) {
10
10
  const {
@@ -1,4 +1,4 @@
1
- export * from './licenseErrorMessageUtils';
2
- export * from './licenseInfo';
3
- export * from './licenseStatus';
1
+ export * from "./licenseErrorMessageUtils.js";
2
+ export * from "./licenseInfo.js";
3
+ export * from "./licenseStatus.js";
4
4
  export {};
@@ -1 +1 @@
1
- export * from './verifyLicense';
1
+ export * from "./verifyLicense.js";
@@ -1,8 +1,8 @@
1
- import { base64Decode, base64Encode } from '../encoding/base64';
2
- import { md5 } from '../encoding/md5';
3
- import { LICENSE_STATUS } from '../utils/licenseStatus';
4
- import { LICENSE_SCOPES } from '../utils/licenseScope';
5
- import { LICENSING_MODELS } from '../utils/licensingModel';
1
+ import { base64Decode, base64Encode } from "../encoding/base64.js";
2
+ import { md5 } from "../encoding/md5.js";
3
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
4
+ import { LICENSE_SCOPES } from "../utils/licenseScope.js";
5
+ import { LICENSING_MODELS } from "../utils/licensingModel.js";
6
6
  const getDefaultReleaseDate = () => {
7
7
  const today = new Date();
8
8
  today.setHours(0, 0, 0, 0);
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -8,8 +9,6 @@ exports.LicenseInfoProvider = LicenseInfoProvider;
8
9
  var React = _interopRequireWildcard(require("react"));
9
10
  var _MuiLicenseInfoContext = _interopRequireDefault(require("./MuiLicenseInfoContext"));
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
12
  /**
14
13
  * @ignore - do not document.
15
14
  */
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
7
8
  var React = _interopRequireWildcard(require("react"));
8
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
9
  const MuiLicenseInfoContext = /*#__PURE__*/React.createContext({
11
10
  key: undefined
12
11
  });
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
@@ -8,8 +9,6 @@ var React = _interopRequireWildcard(require("react"));
8
9
  var _useLicenseVerifier = require("../useLicenseVerifier");
9
10
  var _licenseStatus = require("../utils/licenseStatus");
10
11
  var _jsxRuntime = require("react/jsx-runtime");
11
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
12
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
12
  function getLicenseErrorMessage(licenseStatus) {
14
13
  switch (licenseStatus) {
15
14
  case _licenseStatus.LICENSE_STATUS.ExpiredAnnualGrace:
@@ -10,13 +10,21 @@ var _licenseScope = require("../utils/licenseScope");
10
10
  var _licensingModel = require("../utils/licensingModel");
11
11
  const licenseVersion = '2';
12
12
  function getClearLicenseString(details) {
13
- if (details.scope && !_licenseScope.LICENSE_SCOPES.includes(details.scope)) {
13
+ // TODO remove
14
+ if (details.licensingModel) {
15
+ details.licenseModel = details.licensingModel;
16
+ }
17
+ // TODO remove
18
+ if (details.scope) {
19
+ details.planScope = details.scope;
20
+ }
21
+ if (details.planScope && !_licenseScope.LICENSE_SCOPES.includes(details.planScope)) {
14
22
  throw new Error('MUI X: Invalid scope');
15
23
  }
16
- if (details.licensingModel && !_licensingModel.LICENSING_MODELS.includes(details.licensingModel)) {
24
+ if (details.licenseModel && !_licensingModel.LICENSING_MODELS.includes(details.licenseModel)) {
17
25
  throw new Error('MUI X: Invalid licensing model');
18
26
  }
19
- const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.scope}`, `LM=${details.licensingModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
27
+ const keyParts = [`O=${details.orderNumber}`, `E=${details.expiryDate.getTime()}`, `S=${details.planScope}`, `LM=${details.licenseModel}`, `PV=${details.planVersion}`, `KV=${licenseVersion}`];
20
28
  return keyParts.join(',');
21
29
  }
22
30
  function generateLicense(details) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-license v7.14.0
2
+ * @mui/x-license v7.16.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
@@ -13,8 +14,6 @@ var _licenseInfo = require("../utils/licenseInfo");
13
14
  var _licenseErrorMessageUtils = require("../utils/licenseErrorMessageUtils");
14
15
  var _licenseStatus = require("../utils/licenseStatus");
15
16
  var _MuiLicenseInfoContext = _interopRequireDefault(require("../Unstable_LicenseInfoProvider/MuiLicenseInfoContext"));
16
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
17
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
17
  const sharedLicenseStatuses = exports.sharedLicenseStatuses = {};
19
18
  function useLicenseVerifier(packageName, releaseInfo) {
20
19
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-license",
3
- "version": "7.14.0",
3
+ "version": "7.16.0",
4
4
  "description": "MUI X License verification",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -24,7 +24,7 @@
24
24
  "directory": "packages/x-license"
25
25
  },
26
26
  "dependencies": {
27
- "@babel/runtime": "^7.25.0",
27
+ "@babel/runtime": "^7.25.6",
28
28
  "@mui/utils": "^5.16.6"
29
29
  },
30
30
  "peerDependencies": {
@@ -1 +1 @@
1
- export { useLicenseVerifier } from './useLicenseVerifier';
1
+ export { useLicenseVerifier } from "./useLicenseVerifier.js";
@@ -1,10 +1,10 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
- import { verifyLicense } from '../verifyLicense/verifyLicense';
4
- import { LicenseInfo } from '../utils/licenseInfo';
5
- import { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError, showNotAvailableInInitialProPlanError } from '../utils/licenseErrorMessageUtils';
6
- import { LICENSE_STATUS } from '../utils/licenseStatus';
7
- import MuiLicenseInfoContext from '../Unstable_LicenseInfoProvider/MuiLicenseInfoContext';
3
+ import { verifyLicense } from "../verifyLicense/verifyLicense.js";
4
+ import { LicenseInfo } from "../utils/licenseInfo.js";
5
+ import { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError, showNotAvailableInInitialProPlanError } from "../utils/licenseErrorMessageUtils.js";
6
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
7
+ import MuiLicenseInfoContext from "../Unstable_LicenseInfoProvider/MuiLicenseInfoContext.js";
8
8
  export const sharedLicenseStatuses = {};
9
9
  export function useLicenseVerifier(packageName, releaseInfo) {
10
10
  const {
package/utils/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from './licenseErrorMessageUtils';
2
- export * from './licenseInfo';
3
- export * from './licenseStatus';
1
+ export * from "./licenseErrorMessageUtils.js";
2
+ export * from "./licenseInfo.js";
3
+ export * from "./licenseStatus.js";
4
4
  export {};
@@ -1 +1 @@
1
- export * from './verifyLicense';
1
+ export * from "./verifyLicense.js";
@@ -1,8 +1,8 @@
1
- import { base64Decode, base64Encode } from '../encoding/base64';
2
- import { md5 } from '../encoding/md5';
3
- import { LICENSE_STATUS } from '../utils/licenseStatus';
4
- import { LICENSE_SCOPES } from '../utils/licenseScope';
5
- import { LICENSING_MODELS } from '../utils/licensingModel';
1
+ import { base64Decode, base64Encode } from "../encoding/base64.js";
2
+ import { md5 } from "../encoding/md5.js";
3
+ import { LICENSE_STATUS } from "../utils/licenseStatus.js";
4
+ import { LICENSE_SCOPES } from "../utils/licenseScope.js";
5
+ import { LICENSING_MODELS } from "../utils/licensingModel.js";
6
6
  const getDefaultReleaseDate = () => {
7
7
  const today = new Date();
8
8
  today.setHours(0, 0, 0, 0);