@tenorlab/react-dashboard 1.5.44 → 1.5.45
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/LICENSE +43 -0
- package/README.md +23 -15
- package/package.json +5 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
TENORLAB DASHBOARD FRAMEWORK LICENSE
|
|
2
|
+
Version 1.0.0
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Tenorlab. All rights reserved.
|
|
5
|
+
|
|
6
|
+
1. DUAL-LICENSE MODEL
|
|
7
|
+
This Software is licensed under a dual-license model. By accessing or using the
|
|
8
|
+
source code, you agree to be bound by one of the following licenses:
|
|
9
|
+
|
|
10
|
+
(a) NON-COMMERCIAL USE: If your use is Non-Commercial (as defined by the
|
|
11
|
+
Polyform Non-Commercial License 1.0.0), your use is governed by that license.
|
|
12
|
+
A copy can be found at: https://polyformproject.org/licenses/non-commercial/1.0.0/
|
|
13
|
+
|
|
14
|
+
(b) COMMERCIAL USE: If your use is Commercial, you must obtain a valid
|
|
15
|
+
Tenorlab Commercial License. Commercial use includes, but is not limited to:
|
|
16
|
+
building for a client, use within a for-profit entity (internal or external),
|
|
17
|
+
or use in any revenue-generating product. Licenses are available at:
|
|
18
|
+
https://www.tenorlab.com
|
|
19
|
+
|
|
20
|
+
2. REDISTRIBUTION RESTRICTIONS
|
|
21
|
+
Notwithstanding the terms of any sub-license mentioned above, the
|
|
22
|
+
redistribution of the Software's source code—whether in its original form
|
|
23
|
+
or as a modified derivative work—is STRICTLY PROHIBITED.
|
|
24
|
+
|
|
25
|
+
You may not include this Software, or any portion thereof, in any:
|
|
26
|
+
- Software Development Kit (SDK)
|
|
27
|
+
- UI Component Library or Framework
|
|
28
|
+
- Website/Dashboard Starter Template or Boilerplate
|
|
29
|
+
- "Dashboard Builder" or similar tool intended for use by other developers.
|
|
30
|
+
|
|
31
|
+
3. DERIVATIVE WORKS & MODIFICATIONS
|
|
32
|
+
You are permitted to modify and extend the Software for the sole purpose of
|
|
33
|
+
building a specific "End Product" application. Modifying the code does not
|
|
34
|
+
transfer ownership of the underlying logic, nor does it grant permission
|
|
35
|
+
to bypass the Commercial License requirement or the Redistribution Restrictions.
|
|
36
|
+
|
|
37
|
+
4. TERMINATION
|
|
38
|
+
Failure to comply with these terms automatically terminates your right to
|
|
39
|
+
use the Software. Tenorlab reserves all rights not expressly granted herein.
|
|
40
|
+
|
|
41
|
+
5. CONTACT & INQUIRIES
|
|
42
|
+
For licensing questions or professional inquiries, please visit:
|
|
43
|
+
https://www.tenorlab.com
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# @tenorlab/react-dashboard
|
|
2
2
|
|
|
3
|
+
[](https://polyformproject.org/licenses/non-commercial/1.0.0/)
|
|
4
|
+
[](https://payhip.com/b/gPBpo)
|
|
5
|
+
[](#-distribution-restrictions)
|
|
6
|
+
|
|
3
7
|
Foundation components for creating user-configurable, high-performance dashboards in React. Built on top of **@tenorlab/dashboard-core**.
|
|
4
8
|
|
|
5
9
|
## 🏗 Relationship to Core
|
|
@@ -17,7 +21,7 @@ This package extends **@tenorlab/dashboard-core**. It provides the React impleme
|
|
|
17
21
|
## ✨ Features
|
|
18
22
|
|
|
19
23
|
- **Type-Safe:** Deep integration with TypeScript 5.8+ for full IDE support.
|
|
20
|
-
- **State Management:** Built-in `useDashboardStore`
|
|
24
|
+
- **State Management:** Built-in `useDashboardStore` and `useDashboardUndoService`.
|
|
21
25
|
- **User Configurable:** Ready-to-use components for adding, removing, and dragging widgets.
|
|
22
26
|
- **Themeable:** Native support for CSS Variables and Tailwind CSS.
|
|
23
27
|
- **Vite Optimized:** Full ESM support and tree-shakeable.
|
|
@@ -73,19 +77,12 @@ import {
|
|
|
73
77
|
WrapperColumnContent
|
|
74
78
|
} from '@tenorlab/react-dashboard'
|
|
75
79
|
|
|
76
|
-
const WidgetKey: TDashboardWidgetKey = 'WidgetTotalOrders'
|
|
77
|
-
|
|
78
80
|
export function WidgetTotalOrders(props: IDashboardWidgetProps): IDashboardWidget {
|
|
79
81
|
return (
|
|
80
82
|
<DashboardWidgetBase
|
|
81
|
-
widgetKey=
|
|
83
|
+
widgetKey="WidgetTotalOrders"
|
|
82
84
|
title="Total Orders"
|
|
83
|
-
|
|
84
|
-
index={props.index}
|
|
85
|
-
maxIndex={props.maxIndex}
|
|
86
|
-
isEditing={props.isEditing}
|
|
87
|
-
onRemoveClick={props.onRemoveClick}
|
|
88
|
-
onMoveClick={props.onMoveClick}
|
|
85
|
+
{...props}
|
|
89
86
|
>
|
|
90
87
|
<WrapperColumnContent>
|
|
91
88
|
<div className="dashboard-number number-xl text-primary">1,250</div>
|
|
@@ -386,12 +383,23 @@ For a complete example including **Undo/Redo**, **Zooming**, **Catalog Flyouts**
|
|
|
386
383
|
------
|
|
387
384
|
|
|
388
385
|
|
|
389
|
-
## ⚖️ Licensing
|
|
386
|
+
## ⚖️ Licensing & Usage
|
|
387
|
+
|
|
388
|
+
This project is **Source-Available**. You are free to view, learn from, and experiment with the source code. However, use in professional or revenue-generating settings requires a license.
|
|
390
389
|
|
|
391
|
-
|
|
390
|
+
### 🏠 Non-Commercial Use (Free)
|
|
391
|
+
If you are a student, hobbyist, or working on a non-profit open-source project, you may use this library for free under the terms of the **Polyform Non-Commercial 1.0.0** license.
|
|
392
392
|
|
|
393
|
-
|
|
394
|
-
|
|
393
|
+
### 💼 Commercial Use (Requires License)
|
|
394
|
+
A **Tenorlab Commercial License** is required if you are:
|
|
395
|
+
* Building a dashboard for company internal or external use, including all company websites and applications.
|
|
396
|
+
* Building a dashboard for a paying client.
|
|
397
|
+
* Using the library within a for-profit company or startup.
|
|
398
|
+
* Including the library in a product that is sold or requires a subscription.
|
|
395
399
|
|
|
396
|
-
|
|
400
|
+
**Purchase a Commercial License here:** [https://www.tenorlab.com](https://www.tenorlab.com)
|
|
397
401
|
|
|
402
|
+
### 🚫 Distribution Restrictions
|
|
403
|
+
To protect the integrity of this framework, **redistribution of the source code is strictly prohibited**.
|
|
404
|
+
* You **may** use and modify the code to build an "End Product" (e.g., a dashboard for a specific app).
|
|
405
|
+
* You **may NOT** redistribute the source code (original or modified) as a standalone library, UI kit, starter template, or "dashboard builder" for other developers to use.
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenorlab/react-dashboard",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.45",
|
|
4
4
|
"description": "Foundation components for creating user-configurable dashboards in React",
|
|
5
5
|
"author": "Damiano Fusco",
|
|
6
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
@@ -32,7 +33,9 @@
|
|
|
32
33
|
"push": "npm run pretty; git add .; git commit -m \"Latest\"; git push"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
|
-
"dist"
|
|
36
|
+
"dist",
|
|
37
|
+
"LICENSE",
|
|
38
|
+
"README.md"
|
|
36
39
|
],
|
|
37
40
|
"exports": {
|
|
38
41
|
".": {
|