@quan-erp/shared-frontend-core 1.0.0 → 1.0.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/LICENSE.md ADDED
@@ -0,0 +1,49 @@
1
+ # QuarkERP License
2
+
3
+ **Copyright (c) 2026 The Paradance. All rights reserved.**
4
+
5
+ This software is owned by **The Paradance** and is actively maintained and developed by **Jian Shang Quan**.
6
+
7
+ This QuarkERP License (the "License") governs use of this software and its associated source code, binaries, types, documentation, and assets (the "Software").
8
+
9
+ By installing, importing, or otherwise using the Software, you agree to this License.
10
+
11
+ ---
12
+
13
+ ## 1. Permitted use — Quark ERP plugins only
14
+
15
+ You may use the Software **only** to develop, build, test, and run **plugins for Quark ERP** (also known as Quan ERP), including:
16
+
17
+ - Importing the published npm packages as dependencies of a Quark ERP plugin
18
+ - Calling the public APIs, types, and UI components exposed by those packages
19
+ - Shipping a plugin that runs on a licensed Quark ERP host
20
+
21
+ Your plugin's own original code remains yours. This License does not transfer ownership of the Software.
22
+
23
+ ---
24
+
25
+ ## 2. Prohibited use
26
+
27
+ You may **not**:
28
+
29
+ - Copy, fork, or redistribute the Software (source or compiled) except as an npm dependency of a Quark ERP plugin
30
+ - Use the Software as the core, framework, or design system of any product that is not a Quark ERP plugin
31
+ - Reuse, rebrand, sublicense, or sell the Software for any other purpose
32
+ - Create a competing ERP, plugin platform, UI kit, or backend framework from the Software
33
+ - Remove or obscure copyright, license, or proprietary notices
34
+
35
+ ---
36
+
37
+ ## 3. No transfer of ownership
38
+
39
+ The Software is licensed, not sold. Copyright, title, and all intellectual property rights remain with **The Paradance**. The Software is actively maintained and developed by **Jian Shang Quan**.
40
+
41
+ ---
42
+
43
+ ## 4. No warranty
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE PARADANCE OR JIAN SHANG QUAN BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM USE OF THE SOFTWARE.
46
+
47
+ ---
48
+
49
+ *QuarkERP License — The Paradance. For inquiries, contact Jian Shang Quan.*
package/README.md CHANGED
@@ -90,3 +90,8 @@ For dynamic frontend plugins, the library exposes a `PluginAPI` that bridges the
90
90
 
91
91
  > [!IMPORTANT]
92
92
  > This library is a peer dependency for all `@quan-erp-plugins/*-frontend` packages. Always verify compatibility with the core version before upgrading native plugins.
93
+
94
+ ## License
95
+
96
+ [QuarkERP License](./LICENSE.md) — owned by The Paradance, actively maintained and developed by Jian Shang Quan. You may use this package to build Quark ERP plugins. Copying or reuse for any other purpose is not permitted.
97
+
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@quan-erp/shared-frontend-core",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "publish:registry": "npm run build && npm publish --tag beta",
7
- "publish:npm-registry": "npm run build && npm publish --access public --registry https://registry.npmjs.org/ --@quan-erp:registry=https://registry.npmjs.org/",
7
+ "publish:npm-registry": "rm -rf dist && npm run build && npm publish --access public --registry https://registry.npmjs.org/ --@quan-erp:registry=https://registry.npmjs.org/",
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
9
  "build": "rollup -c",
10
10
  "dev": "rollup -c -w"
11
11
  },
12
12
  "keywords": [],
13
13
  "author": "jianshangquan",
14
- "license": "UNLICENSED",
14
+ "license": "SEE LICENSE IN LICENSE.md",
15
15
  "type": "module",
16
16
  "files": [
17
17
  "dist",
18
18
  "./external-global-rollup-config.json",
19
+ "LICENSE.md",
19
20
  "!**/*.map"
20
21
  ],
21
22
  "exports": {
@@ -1,14 +0,0 @@
1
- export interface IOrientation {
2
- getOrientation(): "portrait" | "landscape";
3
- onChange(callback: (orientation: "portrait" | "landscape") => void): void;
4
- offChange(callback: (orientation: "portrait" | "landscape") => void): void;
5
- }
6
- export declare class Orientation implements IOrientation {
7
- private static _instance;
8
- private impl;
9
- private constructor();
10
- static get instance(): Orientation;
11
- getOrientation(): "portrait" | "landscape";
12
- onChange(callback: (orientation: "portrait" | "landscape") => void): void;
13
- offChange(callback: (orientation: "portrait" | "landscape") => void): void;
14
- }
@@ -1,24 +0,0 @@
1
- type HandType = "left" | "right" | "unknown";
2
- interface IHandDetector {
3
- start(): void;
4
- stop(): void;
5
- getHand(): HandType;
6
- onChange?: (hand: HandType) => void;
7
- }
8
- export declare class UserHandBehaviorDetector implements IHandDetector {
9
- private hand;
10
- private started;
11
- private samples;
12
- private readonly SAMPLE_SIZE;
13
- private readonly TILT_THRESHOLD;
14
- private lastReportedHand;
15
- private motionsOrientation;
16
- onChange?: (hand: HandType) => void;
17
- private constructor();
18
- static getNewInstance(): UserHandBehaviorDetector;
19
- start(): void;
20
- stop(): void;
21
- getHand(): HandType;
22
- private handleOrientation;
23
- }
24
- export {};
@@ -1,5 +0,0 @@
1
- export declare class PluginAPI {
2
- static expose<T>(pluginName: string, apiName: string, value: T): void;
3
- static use<T>(pluginName: string, apiName: string): T;
4
- static debug(): string[];
5
- }