@omnigrid/pro-license 0.1.0 → 0.1.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 (2) hide show
  1. package/README.md +5 -12
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,17 +1,10 @@
1
1
  # @omnigrid/pro-license
2
2
 
3
- Offline license verification and the demo watermark shared by all OmniGrid Pro plugins.
3
+ Offline license verification and demo watermark shared by all OmniGrid Pro plugins.
4
4
 
5
- - `verifyToken(key)` – checks the Ed25519 signature (public key embedded in `src/publicKey.ts`) and `expiresAt`. No network access.
6
- - `BaseProPlugin` – extend it in a Pro plugin and implement `onRegister(api)`. It reads `GridOptions.licenseKey` through `api.getLicenseKey()`; if the key is missing, invalid or expired the plugin still works and a dismissible watermark is mounted in the `bodyTop` slot (dismissal stored in `sessionStorage`).
5
+ ## Usage
7
6
 
8
- Token format: `base64url(payload JSON).base64url(signature)`; the signature covers the ASCII bytes of the first segment.
7
+ Pass your commercial license key via the global grid options:
9
8
 
10
- ## Issuing licenses (maintainers only)
11
-
12
- ```
13
- npm run generate-keys -w @omnigrid/pro-license -- <path-outside-repo>/private.key
14
- npm run generate-license -w @omnigrid/pro-license -- --private-key <path> --owner "Acme Corp" --email dev@acme.com --expires 2027-01-01
15
- ```
16
-
17
- Omit `--expires` for a perpetual license. Never commit the private key.
9
+ ```tsx
10
+ <OmniGrid "your_base64_encoded_license_key_here", ... // gridOptions="{{" licenseKey: }}/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnigrid/pro-license",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Offline license verification and demo watermark for OmniGrid Pro plugins",
5
5
  "keywords": [
6
6
  "omnigrid",