@justai/core 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.
- package/package.json +5 -2
- package/src/index.d.ts +11 -0
- /package/src/{index.ts → index.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justai/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The framework-free heart of the persona shell — the load-bearing behaviour (auth capture, reveal, ready) as plain strings, so Astro and Next inject the SAME logic instead of each re-writing it.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
"src"
|
|
14
14
|
],
|
|
15
15
|
"exports": {
|
|
16
|
-
".":
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./src/index.d.ts",
|
|
18
|
+
"default": "./src/index.js"
|
|
19
|
+
}
|
|
17
20
|
},
|
|
18
21
|
"publishConfig": {
|
|
19
22
|
"access": "public"
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Capture the SSO token from the URL fragment, synchronously. MUST run first in the head — see index.js. */
|
|
2
|
+
export declare const AUTH_CAPTURE_JS: string;
|
|
3
|
+
|
|
4
|
+
/** Mark that JavaScript is running, so the reveal can hold paint only when JS can un-hold it. */
|
|
5
|
+
export declare const JS_CLASS_JS: string;
|
|
6
|
+
|
|
7
|
+
/** Hold paint until a page sets `body.ready`. A page with no kernel script must carry READY_JS. */
|
|
8
|
+
export declare const REVEAL_CSS: string;
|
|
9
|
+
|
|
10
|
+
/** Self-reveal for a page with no kernel script (a 404, a sub-persona like feed). */
|
|
11
|
+
export declare const READY_JS: string;
|
|
File without changes
|