@ancientpantheon/khronoton-core 0.2.0 → 0.4.0
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 +19 -0
- package/README.md +15 -1
- package/dist/PactCodeMirror-HQTGE2K3.js +64 -0
- package/dist/blockchain/stoachain.d.ts +48 -0
- package/dist/blockchain/stoachain.js +27 -0
- package/dist/chunk-DK4CDPXH.js +379 -0
- package/dist/chunk-U3F5HEHO.js +1639 -0
- package/dist/context-BKtdrA2B.d.ts +363 -0
- package/dist/handlers/batch.d.ts +21 -0
- package/dist/handlers/batch.js +57 -0
- package/dist/handlers/context.d.ts +94 -0
- package/dist/handlers/context.js +75 -0
- package/dist/handlers/cronoton.d.ts +70 -0
- package/dist/handlers/cronoton.js +165 -0
- package/dist/handlers/execute.d.ts +30 -0
- package/dist/handlers/execute.js +227 -0
- package/dist/handlers/http.d.ts +85 -0
- package/dist/handlers/http.js +84 -0
- package/dist/handlers/index.d.ts +27 -0
- package/dist/handlers/index.js +34 -0
- package/dist/handlers/read.d.ts +29 -0
- package/dist/handlers/read.js +94 -0
- package/dist/hooks/index.d.ts +143 -0
- package/dist/hooks/index.js +2 -0
- package/dist/provider/index.d.ts +220 -0
- package/dist/provider/index.js +675 -0
- package/dist/seams-BvPnTSmg.d.ts +203 -0
- package/dist/types-u_nUX1Bg.d.ts +222 -0
- package/dist/ui/index.d.ts +235 -0
- package/dist/ui/index.js +3646 -0
- package/dist/ui.css +35 -0
- package/package.json +72 -4
package/dist/ui.css
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
@ancientpantheon/khronoton-core/ui.css — the themeable token base.
|
|
3
|
+
Every Khronoton UI component styles ONLY via var(--khr-*). To reskin,
|
|
4
|
+
a consumer overrides any --khr-* on `body .khronoton-ui` (specificity
|
|
5
|
+
(0,1,1) beats this (0,1,0) block regardless of stylesheet load order);
|
|
6
|
+
overriding a subset leaves the rest inherited. Base palette = the
|
|
7
|
+
AncientHoldings Hub codex-cronoton palette.
|
|
8
|
+
============================================================ */
|
|
9
|
+
:root,
|
|
10
|
+
.khronoton-ui {
|
|
11
|
+
--khr-bg: #0a0a0f;
|
|
12
|
+
--khr-panel: #0a0a0a;
|
|
13
|
+
--khr-inset: #111111;
|
|
14
|
+
--khr-border: #262626;
|
|
15
|
+
--khr-text: #e5e7eb;
|
|
16
|
+
--khr-text-dim: #8a8f98;
|
|
17
|
+
--khr-text-dim2: #6b7280;
|
|
18
|
+
--khr-mono: #d2d3d4;
|
|
19
|
+
--khr-accent: #f0a500;
|
|
20
|
+
--khr-accent-tint: #1a1500;
|
|
21
|
+
--khr-blue: #60a5fa;
|
|
22
|
+
--khr-blue-bg: #1e3a5f;
|
|
23
|
+
--khr-amber: #fbbf24;
|
|
24
|
+
--khr-amber-bg: #422006;
|
|
25
|
+
--khr-success: #4ade80;
|
|
26
|
+
--khr-success-bg: rgba(20, 83, 45, 0.4);
|
|
27
|
+
--khr-error: #f87171;
|
|
28
|
+
--khr-error-bg: rgba(127, 29, 29, 0.4);
|
|
29
|
+
--khr-nothing: #fdba74;
|
|
30
|
+
--khr-nothing-bg: rgba(124, 45, 18, 0.4);
|
|
31
|
+
--khr-radius: 8px;
|
|
32
|
+
--khr-radius-lg: 14px;
|
|
33
|
+
--khr-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
34
|
+
--khr-mono-font: ui-monospace, "SFMono-Regular", "Geist Mono", Menlo, Consolas, monospace;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ancientpantheon/khronoton-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Headless framework-agnostic scheduler engine: pure schedule math plus an injectable tick engine. No database, no job queue, no framework — hosts inject storage and firing via hooks.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,6 +15,32 @@
|
|
|
15
15
|
"types": "./dist/server/index.d.ts",
|
|
16
16
|
"import": "./dist/server/index.js",
|
|
17
17
|
"require": "./dist/server/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./handlers": {
|
|
20
|
+
"types": "./dist/handlers/index.d.ts",
|
|
21
|
+
"import": "./dist/handlers/index.js",
|
|
22
|
+
"require": "./dist/handlers/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./provider": {
|
|
25
|
+
"types": "./dist/provider/index.d.ts",
|
|
26
|
+
"import": "./dist/provider/index.js",
|
|
27
|
+
"require": "./dist/provider/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./hooks": {
|
|
30
|
+
"types": "./dist/hooks/index.d.ts",
|
|
31
|
+
"import": "./dist/hooks/index.js",
|
|
32
|
+
"require": "./dist/hooks/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./ui": {
|
|
35
|
+
"types": "./dist/ui/index.d.ts",
|
|
36
|
+
"import": "./dist/ui/index.js",
|
|
37
|
+
"require": "./dist/ui/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./ui.css": "./dist/ui.css",
|
|
40
|
+
"./blockchain/stoachain": {
|
|
41
|
+
"types": "./dist/blockchain/stoachain.d.ts",
|
|
42
|
+
"import": "./dist/blockchain/stoachain.js",
|
|
43
|
+
"require": "./dist/blockchain/stoachain.js"
|
|
18
44
|
}
|
|
19
45
|
},
|
|
20
46
|
"files": [
|
|
@@ -23,14 +49,17 @@
|
|
|
23
49
|
"README.md",
|
|
24
50
|
"LICENSE"
|
|
25
51
|
],
|
|
26
|
-
"sideEffects":
|
|
52
|
+
"sideEffects": [
|
|
53
|
+
"**/*.css"
|
|
54
|
+
],
|
|
27
55
|
"engines": {
|
|
28
56
|
"node": ">=20"
|
|
29
57
|
},
|
|
30
58
|
"scripts": {
|
|
31
|
-
"build": "tsc -p tsconfig.build.json",
|
|
59
|
+
"build": "tsc -p tsconfig.build.json && tsup && node scripts/bundle-css.mjs",
|
|
32
60
|
"typecheck": "tsc --noEmit",
|
|
33
61
|
"test": "vitest run --passWithNoTests",
|
|
62
|
+
"test:integration": "vitest run --config vitest.integration.config.ts",
|
|
34
63
|
"test:watch": "vitest",
|
|
35
64
|
"clean": "rimraf dist"
|
|
36
65
|
},
|
|
@@ -44,11 +73,50 @@
|
|
|
44
73
|
"access": "public"
|
|
45
74
|
},
|
|
46
75
|
"license": "UNLICENSED",
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"react": "^18 || ^19",
|
|
78
|
+
"react-dom": "^18 || ^19",
|
|
79
|
+
"@stoachain/kadena-stoic-legacy": "^4.3.6",
|
|
80
|
+
"@stoachain/stoa-core": "^4.3.6",
|
|
81
|
+
"@stoachain/ouronet-core": "^4.3.6"
|
|
82
|
+
},
|
|
83
|
+
"peerDependenciesMeta": {
|
|
84
|
+
"react": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
87
|
+
"react-dom": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@stoachain/kadena-stoic-legacy": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
93
|
+
"@stoachain/stoa-core": {
|
|
94
|
+
"optional": true
|
|
95
|
+
},
|
|
96
|
+
"@stoachain/ouronet-core": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
47
100
|
"optionalDependencies": {
|
|
48
101
|
"better-sqlite3": "^12.11.1"
|
|
49
102
|
},
|
|
50
103
|
"devDependencies": {
|
|
104
|
+
"@codemirror/state": "^6.5.2",
|
|
105
|
+
"@stoachain/kadena-stoic-legacy": "^4.3.6",
|
|
106
|
+
"@stoachain/ouronet-core": "^4.3.6",
|
|
107
|
+
"@stoachain/stoa-core": "^4.3.6",
|
|
108
|
+
"@codemirror/view": "^6.36.4",
|
|
109
|
+
"@testing-library/dom": "^10.4.1",
|
|
110
|
+
"@testing-library/react": "^16.3.2",
|
|
51
111
|
"@types/better-sqlite3": "^7.6.13",
|
|
52
|
-
"
|
|
112
|
+
"@types/react": "^19.0.10",
|
|
113
|
+
"@types/react-dom": "^19.0.4",
|
|
114
|
+
"@uiw/react-codemirror": "^4.23.10",
|
|
115
|
+
"better-sqlite3": "^12.11.1",
|
|
116
|
+
"jsdom": "^29.1.1",
|
|
117
|
+
"lucide-react": "^0.475.0",
|
|
118
|
+
"react": "^19.2.0",
|
|
119
|
+
"react-dom": "^19.2.0",
|
|
120
|
+
"tsup": "^8.4.0"
|
|
53
121
|
}
|
|
54
122
|
}
|