@nice2dev/licensing 1.2.0 → 1.2.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.
- package/CHANGELOG.md +103 -0
- package/dist/index.cjs +10 -6
- package/dist/index.mjs +11 -7
- package/dist/marks-CDyo3kiN.cjs +1462 -0
- package/dist/marks-CTwbg2ls.js +1463 -0
- package/dist/react.cjs +2 -2
- package/dist/react.mjs +3 -3
- package/package.json +3 -1
package/dist/react.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const marks = require("./marks-
|
|
6
|
-
const LicenseContext = React.createContext(null);
|
|
5
|
+
const marks = require("./marks-CDyo3kiN.cjs");
|
|
6
|
+
const LicenseContext = /* @__PURE__ */ React.createContext(null);
|
|
7
7
|
function LicenseProvider({
|
|
8
8
|
serverUrl = "https://license.nice2dev.com/api/v1",
|
|
9
9
|
apiKey,
|
package/dist/react.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { c as checkFeatureAccess, k as getAllPlans, C as CheckMark, L as LicenseValidator, E as normalizeLicenseKey, y as hasFeature, D as maskLicenseKey, M as ChevronMark, r as getMissingFeatures } from "./marks-
|
|
4
|
-
const LicenseContext = createContext(null);
|
|
2
|
+
import { useState, useCallback, useEffect, useContext, createContext } from "react";
|
|
3
|
+
import { c as checkFeatureAccess, k as getAllPlans, C as CheckMark, L as LicenseValidator, E as normalizeLicenseKey, y as hasFeature, D as maskLicenseKey, M as ChevronMark, r as getMissingFeatures } from "./marks-CTwbg2ls.js";
|
|
4
|
+
const LicenseContext = /* @__PURE__ */ createContext(null);
|
|
5
5
|
function LicenseProvider({
|
|
6
6
|
serverUrl = "https://license.nice2dev.com/api/v1",
|
|
7
7
|
apiKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/licensing",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Nice2Dev Enterprise Licensing System — license key generation, validation, hardware fingerprinting, seat management and feature gating",
|
|
5
5
|
"author": "NiceToDev <contact@nicetodev.com>",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"nicetodev"
|
|
58
58
|
],
|
|
59
59
|
"peerDependencies": {
|
|
60
|
+
"@nice2dev/icons": "^1.2.0",
|
|
60
61
|
"react": ">=17.0.0",
|
|
61
62
|
"react-dom": ">=17.0.0"
|
|
62
63
|
},
|
|
@@ -66,6 +67,7 @@
|
|
|
66
67
|
}
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
70
|
+
"@nice2dev/icons": "^1.2.1",
|
|
69
71
|
"@stripe/stripe-js": "^9.15.0",
|
|
70
72
|
"@types/node": "^22.10.0",
|
|
71
73
|
"@types/react": "^19.2.18",
|