simple-table-core 1.5.0 → 1.5.2

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/EULA.txt ADDED
@@ -0,0 +1,52 @@
1
+ End-User License Agreement (EULA) for Simple TableEffective Date: October 19, 2025This End-User License Agreement ("Agreement") is a legal contract between you ("Licensee," "you," or "your") and Simple Table Software ("Licensor," "we," "us," or "our"), the developer and owner of Simple Table ("Software"). By downloading, installing, copying, accessing, or using the Software (including updates or modifications), you agree to be bound by this Agreement. If you do not agree, do not use the Software.1. DefinitionsFree License: The no-cost license under the "FREE" tier at https://www.simple-table.com/pricing.
2
+ Pro License: The paid subscription license under the "PRO" tier at https://www.simple-table.com/pricing.
3
+ Product: A single software application, website, or service developed by you that incorporates the Software.
4
+ Users: Individuals accessing or using the Product, including employees, contractors, or end-users.
5
+
6
+ 2. Grant of LicenseSubject to compliance with this Agreement and payment of applicable fees, Licensor grants you a non-exclusive, non-transferable, revocable license to use the Software:2.1 Free License Scope: Use in one (1) Product for non-commercial purposes or commercial purposes if your company has no revenue (pre-revenue). Unlimited Users per Product.
7
+ Permissions: Full access to the Simple Table library (sorting, filtering, editing), themes, and TypeScript support. Governed by the MIT License (see LICENSE file in repository), allowing modification and distribution subject to MIT terms.
8
+ Support: Community support only (e.g., GitHub issues).
9
+ Limitations: No access to Pro features (e.g., priority support, early access). Commercial use is permitted only for pre-revenue companies.
10
+
11
+ 2.2 Pro License Scope: Use in one (1) Product for commercial or non-commercial purposes. Unlimited Users per Product.
12
+ Permissions: All Free License features, plus priority email/Discord support, direct developer access, feature request prioritization, early access to new features, and custom implementation guidance.
13
+ License Type: Proprietary license under this Agreement, supplementing MIT License for core features.
14
+ Fees: $85/month (or annual equivalent) per Product. First 50 customers receive 50% off ($42.50/month) with code "first_50" (limited time). Fees are non-refundable except as per Section 7.
15
+ Support: Priority support (24-48 hour response), up to 4 hours/month custom guidance (additional hours at $100/hour).
16
+ Limitations: Additional Products require separate licenses. You may not redistribute the Software or make it available as a standalone product or service.
17
+
18
+ General Restrictions: You may not: (i) reverse engineer, decompile, or disassemble the Software beyond MIT License permissions; (ii) remove proprietary notices; (iii) sublicense, rent, or lease the Software outside your Product; (iv) violate laws; or (v) create competing products.
19
+ Licensor retains all intellectual property rights.
20
+
21
+ 3. Pricing and PaymentPricing is fixed per Product, regardless of revenue or team size. See https://www.simple-table.com/pricing for details.
22
+ Pro License fees recur automatically. Manage billing at https://www.simple-table.com/pricing.
23
+ Payments in USD. Late payments may suspend Pro features. Taxes are your responsibility.
24
+
25
+ 4. UpdatesFree Licensees receive updates via the MIT-licensed repository. Pro Licensees get early access to new features.
26
+ Continued use after updates accepts any revised terms.
27
+
28
+ 5. SupportFree License: Community forums only.
29
+ Pro License: Priority email/Discord support, direct developer access, and custom guidance.
30
+ Contact: peter@peteryng.com.
31
+
32
+ 6. Intellectual PropertyThe Software is protected by copyright and other laws. Feedback you provide becomes Licensor’s property without compensation.
33
+
34
+ 7. Money-Back GuaranteePro License offers a 30-day refund for the initial subscription fee. Contact peter@peteryng.com within 30 days.
35
+
36
+ 8. TerminationBreaches or non-payment terminate this Agreement. You must cease use and destroy copies.
37
+ Sections 2 (restrictions), 6, 9, 10, and 12 survive termination.
38
+
39
+ 9. WarrantiesSoftware is "as is." Licensor warrants ownership and basic functionality for 30 days.
40
+ NO OTHER WARRANTIES, INCLUDING MERCHANTABILITY OR FITNESS FOR PURPOSE, ARE PROVIDED.
41
+
42
+ 10. LiabilityLICENSOR’S LIABILITY IS LIMITED TO FEES PAID IN THE PRIOR 12 MONTHS ($0 FOR FREE LICENSE). NO LIABILITY FOR INDIRECT OR CONSEQUENTIAL DAMAGES.
43
+
44
+ 11. IndemnificationYou indemnify Licensor against claims from your use of the Software.
45
+
46
+ 12. GeneralGoverning Law: Laws of British Columbia, Canada, with disputes in Vancouver courts.
47
+ Entire Agreement: This Agreement supersedes prior agreements.
48
+ Changes: Updates posted at https://www.simple-table.com/eula or in the repository.
49
+ Contact: peter@peteryng.com.
50
+
51
+ Licensor: Simple Table Software, c/o peter@peteryng.com
52
+
package/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Simple Table Software
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ ADDITIONAL TERMS: For commercial use by revenue-generating companies and
26
+ additional Pro features, see EULA.txt for complete licensing terms.
27
+
package/README.md CHANGED
@@ -153,4 +153,11 @@ Join our growing community to ask questions or share feedback:
153
153
 
154
154
  ## License
155
155
 
156
- This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
156
+ **Dual Licensed:**
157
+
158
+ - **Free Tier**: MIT License for individuals, startups, and pre-revenue companies - see [LICENSE](LICENSE) file
159
+ - **Pro Tier**: Proprietary license for commercial use by revenue-generating companies - see [EULA.txt](EULA.txt) for complete terms
160
+
161
+ By using Simple Table, you agree to the terms in [EULA.txt](EULA.txt).
162
+
163
+ **[View Detailed Pricing & Licensing](https://www.simple-table.com/pricing)**
@@ -3,12 +3,15 @@ import { Row, TableRefType } from "..";
3
3
  import { CellRegistryEntry, HeaderRegistryEntry } from "../context/TableContext";
4
4
  import { Accessor } from "../types/HeaderObject";
5
5
  import TableRow from "../types/TableRow";
6
- declare const useTableAPI: ({ tableRef, rows, rowIdAccessor, cellRegistryRef, headerRegistryRef, visibleRows, }: {
7
- tableRef?: MutableRefObject<TableRefType | null> | undefined;
8
- rows: Row[];
9
- rowIdAccessor: Accessor;
6
+ import HeaderObject from "../types/HeaderObject";
7
+ declare const useTableAPI: ({ cellRegistryRef, currentTableRows, headerRegistryRef, headers, rowIdAccessor, rows, tableRef, visibleRows, }: {
10
8
  cellRegistryRef: MutableRefObject<Map<string, CellRegistryEntry>>;
9
+ currentTableRows: TableRow[];
11
10
  headerRegistryRef: MutableRefObject<Map<string, HeaderRegistryEntry>>;
11
+ headers: HeaderObject[];
12
+ rowIdAccessor: Accessor;
13
+ rows: Row[];
14
+ tableRef?: MutableRefObject<TableRefType | null> | undefined;
12
15
  visibleRows: TableRow[];
13
16
  }) => void;
14
17
  export default useTableAPI;
package/dist/index.d.ts CHANGED
@@ -14,7 +14,7 @@ import SharedTableProps from "./types/SharedTableProps";
14
14
  import SortColumn from "./types/SortColumn";
15
15
  import TableCellProps from "./types/TableCellProps";
16
16
  import TableHeaderProps from "./types/TableHeaderProps";
17
- import TableRefType, { SetHeaderRenameProps } from "./types/TableRefType";
17
+ import TableRefType, { SetHeaderRenameProps, ExportToCSVProps } from "./types/TableRefType";
18
18
  import TableRowProps from "./types/TableRowProps";
19
19
  import Theme from "./types/Theme";
20
20
  import UpdateDataProps from "./types/UpdateCellProps";
@@ -26,4 +26,4 @@ import HeaderRendererProps, { HeaderRenderer } from "./types/HeaderRendererProps
26
26
  import HeaderDropdownProps, { HeaderDropdown } from "./types/HeaderDropdownProps";
27
27
  import { RowButtonProps } from "./types/RowButton";
28
28
  export { SimpleTable };
29
- export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ColumnEditorPosition, ColumnType, DragHandlerProps, EnumOption, FilterCondition, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, OnSortProps, Row, RowButtonProps, RowSelectionChangeProps, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, };
29
+ export type { Accessor, AggregationConfig, AggregationType, BoundingBox, Cell, CellChangeProps, CellClickProps, CellRenderer, CellRendererProps, CellValue, ColumnEditorPosition, ColumnType, DragHandlerProps, EnumOption, ExportToCSVProps, FilterCondition, HeaderDropdown, HeaderDropdownProps, HeaderObject, HeaderRenderer, HeaderRendererProps, OnSortProps, Row, RowButtonProps, RowSelectionChangeProps, SetHeaderRenameProps, SharedTableProps, ShowWhen, SortColumn, TableCellProps, TableFilterState, TableHeaderProps, TableRefType, TableRowProps, Theme, UpdateDataProps, };