@torpor/view 0.3.0 → 0.3.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/CHANGELOG.md +6 -0
- package/dist/Component-C6Y3UwGs.d.cts +11 -0
- package/dist/Component-C6Y3UwGs.d.cts.map +1 -0
- package/dist/ServerSlotRender-COS6H8Yk.d.cts +41 -0
- package/dist/ServerSlotRender-COS6H8Yk.d.cts.map +1 -0
- package/dist/compile.cjs +3683 -0
- package/dist/compile.cjs.map +1 -0
- package/dist/compile.d.cts +210 -0
- package/dist/compile.d.cts.map +1 -0
- package/dist/formatText-DufG5l83.cjs +500 -0
- package/dist/formatText-DufG5l83.cjs.map +1 -0
- package/dist/index.cjs +906 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +411 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/ssr.cjs +40 -0
- package/dist/ssr.cjs.map +1 -0
- package/dist/ssr.d.cts +19 -0
- package/dist/ssr.d.cts.map +1 -0
- package/package.json +7 -4
- package/tsdown.config.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/types/SlotRender.d.ts
|
|
2
|
+
type SlotRender = (parent: ParentNode, anchor: Node | null, $sprops?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => void;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/types/Component.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* A component that can be mounted or hydrated
|
|
7
|
+
*/
|
|
8
|
+
type Component = ($parent: ParentNode, $anchor: Node | null, $props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>, $slots?: Record<string, SlotRender>) => void;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { Component, SlotRender };
|
|
11
|
+
//# sourceMappingURL=Component-C6Y3UwGs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component-C6Y3UwGs.d.cts","names":[],"sources":["../src/types/SlotRender.ts","../src/types/Component.ts"],"sourcesContent":[],"mappings":";KAAK,UAAA,YACI,oBACA,uBACE,OAAO,8BACN,OAAO;;;;;;KCCd,SAAA,GDHI,CAAA,OAAA,ECIC,UDJD,EAAA,OAAA,ECKC,IDLD,GAAA,IAAA,EAAA,MAAA,CAAA,ECMC,MDND,CCMQ,WDNR,EAAA,GAAA,CAAA,EAAA,QAAA,CAAA,ECOG,MDPH,CCOU,WDPV,EAAA,GAAA,CAAA,EAAA,MAAA,CAAA,ECQC,MDRD,CAAA,MAAA,ECQgB,UDRhB,CAAA,EAAA,GAAA,IAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//#region src/render/$batch.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Runs updates to proxy values in a batch, where the updates are stored in
|
|
4
|
+
* context, and dependent effects are run all at once at the end.
|
|
5
|
+
*
|
|
6
|
+
* @param fn The function containing the batched updates to run.
|
|
7
|
+
*/
|
|
8
|
+
declare function $batch<T>(fn: () => T): T;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/render/$cache.d.ts
|
|
11
|
+
/**
|
|
12
|
+
* Caches a computed value from signals accessed in a property getter.
|
|
13
|
+
*
|
|
14
|
+
* @param fn The function containing the signals to compute and cache.
|
|
15
|
+
*/
|
|
16
|
+
declare function $cache<T>(fn: () => T): T;
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/types/Cleanup.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* A function that may be returned from an effect, and is run before the effect
|
|
21
|
+
* is run or destroyed
|
|
22
|
+
*/
|
|
23
|
+
type Cleanup = () => void;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/render/$peek.d.ts
|
|
26
|
+
declare function $peek<T>(fn: () => T): T;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/render/buildClasses.d.ts
|
|
29
|
+
declare function buildClasses(value: unknown, styleHash?: string): string;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/render/buildStyles.d.ts
|
|
32
|
+
declare function buildStyles(value: unknown): string;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/render/formatText.d.ts
|
|
35
|
+
declare function formatText(value: any): string;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/types/ServerSlotRender.d.ts
|
|
38
|
+
type ServerSlotRender = ($props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => void;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { $batch, $cache, $peek, Cleanup, ServerSlotRender, buildClasses, buildStyles, formatText };
|
|
41
|
+
//# sourceMappingURL=ServerSlotRender-COS6H8Yk.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ServerSlotRender-COS6H8Yk.d.cts","names":[],"sources":["../src/render/$batch.ts","../src/render/$cache.ts","../src/types/Cleanup.ts","../src/render/$peek.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts","../src/types/ServerSlotRender.ts"],"sourcesContent":[],"mappings":";;;;;;;iBAUwB,oBAAoB,IAAI;;;;;;;;AAAA,iBCAxB,MDAwB,CAAA,CAAA,CAAA,CAAA,EAAA,EAAA,GAAA,GCAJ,CDAI,CAAA,ECAA,CDAA;;;;;;;KEN3C,OAAA,GFM2C,GAAA,GAAA,IAAA;;;iBGNxB,mBAAmB,IAAI;;;iBCJvB,YAAA;;;iBCAA,WAAA;;;iBCAA,UAAA;;;KCAnB,gBAAA,aACK,OAAO,8BACL,OAAO"}
|