@sorrell/code-hike 1.0.7 → 1.0.8
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/Distribution/Source/CodePresentation/CodePresentation.Internal.Types.d.ts +30 -0
- package/Distribution/Source/CodePresentation/CodePresentation.Internal.Types.d.ts.map +1 -0
- package/Distribution/Source/CodePresentation/CodePresentation.Internal.d.ts +165 -0
- package/Distribution/Source/CodePresentation/CodePresentation.Internal.d.ts.map +1 -0
- package/Distribution/Source/CodePresentation/CodePresentation.Types.d.ts +55 -0
- package/Distribution/Source/CodePresentation/CodePresentation.Types.d.ts.map +1 -0
- package/Distribution/Source/CodePresentation/CodePresentation.d.ts +21 -0
- package/Distribution/Source/CodePresentation/CodePresentation.d.ts.map +1 -0
- package/Distribution/Source/CodePresentation/TokenTransitions.d.ts +11 -0
- package/Distribution/Source/CodePresentation/TokenTransitions.d.ts.map +1 -0
- package/Distribution/Source/CodePresentation/index.d.ts +10 -0
- package/Distribution/Source/CodePresentation/index.d.ts.map +1 -0
- package/Distribution/Source/ReactiveEventIntro/index.d.ts +8 -0
- package/Distribution/Source/ReactiveEventIntro/index.d.ts.map +1 -0
- package/Distribution/Source/index.d.ts +16 -0
- package/Distribution/Source/index.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file CodePresentation.Internal.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { AnnotationHandler, HighlightedCode } from "codehike/code";
|
|
8
|
+
import type { FSteps, FTokenTransitionsHook, PCodePresentation } from "./CodePresentation.Types";
|
|
9
|
+
import type { MarkdownSchema } from "./CodePresentation.Internal";
|
|
10
|
+
import type { ReactNode } from "react";
|
|
11
|
+
import type { z } from "zod";
|
|
12
|
+
export type PVideo = Required<Pick<PCodePresentation, "Duration" | "FrameRate" | "Resolution" | "Hook" | "Handlers" | "style">> & {
|
|
13
|
+
Steps: FSteps;
|
|
14
|
+
};
|
|
15
|
+
export type FMarkdownSteps = z.infer<typeof MarkdownSchema>;
|
|
16
|
+
export type FStepsInternal = FMarkdownSteps["steps"];
|
|
17
|
+
export type FStepInternal = FStepsInternal[number];
|
|
18
|
+
export type PVideoStep = FVideoStepInherited & {
|
|
19
|
+
Index: number;
|
|
20
|
+
};
|
|
21
|
+
export type FVideoStepInherited = Pick<PVideo, "Duration" | "FrameRate" | "Handlers" | "Hook" | "Resolution" | "Steps" | "style">;
|
|
22
|
+
export type FToVideoStep = (Step: FStepInternal, Index: number) => ReactNode;
|
|
23
|
+
export type PCode = Required<Pick<PCodePresentation, "FrameRate" | "Resolution" | "style">> & {
|
|
24
|
+
OldCode?: HighlightedCode | undefined;
|
|
25
|
+
NewCode: HighlightedCode;
|
|
26
|
+
Handlers: FHandlers;
|
|
27
|
+
Hook: FTokenTransitionsHook;
|
|
28
|
+
};
|
|
29
|
+
export type FHandlers = ReadonlyArray<AnnotationHandler>;
|
|
30
|
+
//# sourceMappingURL=CodePresentation.Internal.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePresentation.Internal.Types.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/CodePresentation.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AACjG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B,MAAM,MAAM,MAAM,GACd,QAAQ,CAAC,IAAI,CACT,iBAAiB,EACf,UAAU,GACV,WAAW,GACX,YAAY,GACZ,MAAM,GACN,UAAU,GACV,OAAO,CACZ,CAAC,GACF;IACI,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnD,MAAM,MAAM,UAAU,GAClB,mBAAmB,GACnB;IACI,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,mBAAmB,GAC3B,IAAI,CACA,MAAM,EACJ,UAAU,GACV,WAAW,GACX,UAAU,GACV,MAAM,GACN,YAAY,GACZ,OAAO,GACP,OAAO,CACZ,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;AAE7E,MAAM,MAAM,KAAK,GACb,QAAQ,CAAC,IAAI,CACT,iBAAiB,EACf,WAAW,GACX,YAAY,GACZ,OAAO,CACZ,CAAC,GACF;IACI,OAAO,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACtC,OAAO,EAAE,eAAe,CAAC;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,EAAE,qBAAqB,CAAC;CAC/B,CAAC;AAEN,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file CodePresentation.Internal.tsx
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
8
|
+
import type { PVideo } from "./CodePresentation.Internal.Types";
|
|
9
|
+
import { z } from "zod";
|
|
10
|
+
export declare const StepSchema: z.ZodObject<{
|
|
11
|
+
title: z.ZodOptional<z.ZodString>;
|
|
12
|
+
children: z.ZodType<import("react").ReactNode, z.ZodTypeDef, import("react").ReactNode>;
|
|
13
|
+
code: z.ZodObject<{
|
|
14
|
+
meta: z.ZodString;
|
|
15
|
+
value: z.ZodString;
|
|
16
|
+
lang: z.ZodString;
|
|
17
|
+
code: z.ZodString;
|
|
18
|
+
tokens: z.ZodType<(string | import("codehike/code").Token)[], z.ZodTypeDef, (string | import("codehike/code").Token)[]>;
|
|
19
|
+
annotations: z.ZodType<import("codehike/code").CodeAnnotation[], z.ZodTypeDef, import("codehike/code").CodeAnnotation[]>;
|
|
20
|
+
themeName: z.ZodString;
|
|
21
|
+
style: z.ZodType<import("react").CSSProperties, z.ZodTypeDef, import("react").CSSProperties>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
code: string;
|
|
24
|
+
meta: string;
|
|
25
|
+
style: import("react").CSSProperties;
|
|
26
|
+
value: string;
|
|
27
|
+
lang: string;
|
|
28
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
29
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
30
|
+
themeName: string;
|
|
31
|
+
}, {
|
|
32
|
+
code: string;
|
|
33
|
+
meta: string;
|
|
34
|
+
style: import("react").CSSProperties;
|
|
35
|
+
value: string;
|
|
36
|
+
lang: string;
|
|
37
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
38
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
39
|
+
themeName: string;
|
|
40
|
+
}>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
code: {
|
|
43
|
+
code: string;
|
|
44
|
+
meta: string;
|
|
45
|
+
style: import("react").CSSProperties;
|
|
46
|
+
value: string;
|
|
47
|
+
lang: string;
|
|
48
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
49
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
50
|
+
themeName: string;
|
|
51
|
+
};
|
|
52
|
+
title?: string | undefined;
|
|
53
|
+
children?: ReactNode;
|
|
54
|
+
}, {
|
|
55
|
+
code: {
|
|
56
|
+
code: string;
|
|
57
|
+
meta: string;
|
|
58
|
+
style: import("react").CSSProperties;
|
|
59
|
+
value: string;
|
|
60
|
+
lang: string;
|
|
61
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
62
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
63
|
+
themeName: string;
|
|
64
|
+
};
|
|
65
|
+
title?: string | undefined;
|
|
66
|
+
children?: ReactNode;
|
|
67
|
+
}>;
|
|
68
|
+
export declare const MarkdownSchema: z.ZodObject<{
|
|
69
|
+
title: z.ZodOptional<z.ZodString>;
|
|
70
|
+
children: z.ZodType<import("react").ReactNode, z.ZodTypeDef, import("react").ReactNode>;
|
|
71
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
72
|
+
title: z.ZodOptional<z.ZodString>;
|
|
73
|
+
children: z.ZodType<import("react").ReactNode, z.ZodTypeDef, import("react").ReactNode>;
|
|
74
|
+
code: z.ZodObject<{
|
|
75
|
+
meta: z.ZodString;
|
|
76
|
+
value: z.ZodString;
|
|
77
|
+
lang: z.ZodString;
|
|
78
|
+
code: z.ZodString;
|
|
79
|
+
tokens: z.ZodType<(string | import("codehike/code").Token)[], z.ZodTypeDef, (string | import("codehike/code").Token)[]>;
|
|
80
|
+
annotations: z.ZodType<import("codehike/code").CodeAnnotation[], z.ZodTypeDef, import("codehike/code").CodeAnnotation[]>;
|
|
81
|
+
themeName: z.ZodString;
|
|
82
|
+
style: z.ZodType<import("react").CSSProperties, z.ZodTypeDef, import("react").CSSProperties>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
code: string;
|
|
85
|
+
meta: string;
|
|
86
|
+
style: import("react").CSSProperties;
|
|
87
|
+
value: string;
|
|
88
|
+
lang: string;
|
|
89
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
90
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
91
|
+
themeName: string;
|
|
92
|
+
}, {
|
|
93
|
+
code: string;
|
|
94
|
+
meta: string;
|
|
95
|
+
style: import("react").CSSProperties;
|
|
96
|
+
value: string;
|
|
97
|
+
lang: string;
|
|
98
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
99
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
100
|
+
themeName: string;
|
|
101
|
+
}>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
code: {
|
|
104
|
+
code: string;
|
|
105
|
+
meta: string;
|
|
106
|
+
style: import("react").CSSProperties;
|
|
107
|
+
value: string;
|
|
108
|
+
lang: string;
|
|
109
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
110
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
111
|
+
themeName: string;
|
|
112
|
+
};
|
|
113
|
+
title?: string | undefined;
|
|
114
|
+
children?: ReactNode;
|
|
115
|
+
}, {
|
|
116
|
+
code: {
|
|
117
|
+
code: string;
|
|
118
|
+
meta: string;
|
|
119
|
+
style: import("react").CSSProperties;
|
|
120
|
+
value: string;
|
|
121
|
+
lang: string;
|
|
122
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
123
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
124
|
+
themeName: string;
|
|
125
|
+
};
|
|
126
|
+
title?: string | undefined;
|
|
127
|
+
children?: ReactNode;
|
|
128
|
+
}>, "many">;
|
|
129
|
+
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
steps: {
|
|
131
|
+
code: {
|
|
132
|
+
code: string;
|
|
133
|
+
meta: string;
|
|
134
|
+
style: import("react").CSSProperties;
|
|
135
|
+
value: string;
|
|
136
|
+
lang: string;
|
|
137
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
138
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
139
|
+
themeName: string;
|
|
140
|
+
};
|
|
141
|
+
title?: string | undefined;
|
|
142
|
+
children?: ReactNode;
|
|
143
|
+
}[];
|
|
144
|
+
title?: string | undefined;
|
|
145
|
+
children?: ReactNode;
|
|
146
|
+
}, {
|
|
147
|
+
steps: {
|
|
148
|
+
code: {
|
|
149
|
+
code: string;
|
|
150
|
+
meta: string;
|
|
151
|
+
style: import("react").CSSProperties;
|
|
152
|
+
value: string;
|
|
153
|
+
lang: string;
|
|
154
|
+
tokens: (string | import("codehike/code").Token)[];
|
|
155
|
+
annotations: import("codehike/code").CodeAnnotation[];
|
|
156
|
+
themeName: string;
|
|
157
|
+
};
|
|
158
|
+
title?: string | undefined;
|
|
159
|
+
children?: ReactNode;
|
|
160
|
+
}[];
|
|
161
|
+
title?: string | undefined;
|
|
162
|
+
children?: ReactNode;
|
|
163
|
+
}>;
|
|
164
|
+
export declare function Video(Props: PVideo): ReactNode;
|
|
165
|
+
//# sourceMappingURL=CodePresentation.Internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePresentation.Internal.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/CodePresentation.Internal.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,KAAK,EAKR,MAAM,EACM,MAAM,mCAAmC,CAAC;AAE1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AACvE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA+C,CAAC;AA4E3E,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAY9C"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file CodePresentation.Types.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { BlockAnnotation, HighlightedCode } from "codehike/code";
|
|
8
|
+
import type { CSSProperties, PropsWithChildren } from "react";
|
|
9
|
+
import type { FHandlers, FStepInternal } from "./CodePresentation.Internal.Types";
|
|
10
|
+
/** The object such that a sequence of these objects define an animation. */
|
|
11
|
+
export type FStep = FStepInternal;
|
|
12
|
+
/** An array whose elements are of type {@link FStep}. */
|
|
13
|
+
export type FSteps = ReadonlyArray<FStep>;
|
|
14
|
+
/** The possible frame rates for animations. */
|
|
15
|
+
export type FFrameRate = 30 | 90;
|
|
16
|
+
/** The possible resolutions for animations. */
|
|
17
|
+
export type FResolution =
|
|
18
|
+
/** The *small* resolution. */
|
|
19
|
+
"1296x864"
|
|
20
|
+
/** The *medium* (default) resolution. */
|
|
21
|
+
| "1920x1280"
|
|
22
|
+
/** The *large* resolution. */
|
|
23
|
+
| "2400x1600";
|
|
24
|
+
/**
|
|
25
|
+
* The props type of the {@link CodePresentation} component.
|
|
26
|
+
*
|
|
27
|
+
* @property {FSteps} Steps - The steps that define a {@link CodePresentation}.
|
|
28
|
+
* @property {FMarkdownSteps} Content - The default import of the Markdown file that defines the animation.
|
|
29
|
+
*/
|
|
30
|
+
export type PCodePresentation = {
|
|
31
|
+
Content: unknown;
|
|
32
|
+
Duration: number;
|
|
33
|
+
FrameRate?: FFrameRate;
|
|
34
|
+
Handlers?: FHandlers;
|
|
35
|
+
Hook?: FTokenTransitionsHook;
|
|
36
|
+
Name: string;
|
|
37
|
+
Resolution?: FResolution;
|
|
38
|
+
style?: CSSProperties;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The hook that processes token transitions.
|
|
42
|
+
*
|
|
43
|
+
* @param OldCode - The content of the previous step.
|
|
44
|
+
* @param NewCode - The content of the current step.
|
|
45
|
+
* @param Duration - The duration of the given step.
|
|
46
|
+
*/
|
|
47
|
+
export type FTokenTransitionsHook = (OldCode: HighlightedCode | undefined, NewCode: HighlightedCode, Duration: number) => {
|
|
48
|
+
Code: HighlightedCode;
|
|
49
|
+
Ref: React.RefObject<HTMLPreElement>;
|
|
50
|
+
};
|
|
51
|
+
/** The props type for defining {@link AnnotationHandler | AnnotationHandlers}. */
|
|
52
|
+
export type PBlock = PropsWithChildren & {
|
|
53
|
+
annotation: BlockAnnotation;
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=CodePresentation.Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePresentation.Types.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/CodePresentation.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAKlF,4EAA4E;AAC5E,MAAM,MAAM,KAAK,GAAG,aAAa,CAAC;AAElC,yDAAyD;AACzD,MAAM,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,MAAM,UAAU,GAChB,EAAE,GACF,EAAE,CAAC;AAET,+CAA+C;AAC/C,MAAM,MAAM,WAAW;AACnB,8BAA8B;AAC5B,UAAU;AAEZ,yCAAyC;GACvC,WAAW;AAEb,8BAA8B;GAC5B,WAAW,CAAC;AAElB;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GACzB;IACI,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,KAAK,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEN;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAChC,OAAO,EAAE,eAAe,GAAG,SAAS,EACpC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,MAAM,KACf;IACD,IAAI,EAAE,eAAe,CAAC;IACtB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACxC,CAAC;AAEF,kFAAkF;AAClF,MAAM,MAAM,MAAM,GACd,iBAAiB,GACjB;IACI,UAAU,EAAE,eAAe,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file CodePresentation.tsx
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { PCodePresentation } from "./CodePresentation.Types";
|
|
8
|
+
import { type ReactNode } from "react";
|
|
9
|
+
/**
|
|
10
|
+
* An animation, made up of {@link FStep | steps}, to explain code.
|
|
11
|
+
*
|
|
12
|
+
* @param Props - The sequence of {@link FStep | steps} that defines an animation.
|
|
13
|
+
*
|
|
14
|
+
* @throws {Error} If {@link PCodePresentation!Durations} is an {@link Array} and there is not
|
|
15
|
+
* precisely one duration assigned to every step, then this will throw.
|
|
16
|
+
*
|
|
17
|
+
* @returns {ReactPortal | null} A {@link Composition} with default values for
|
|
18
|
+
* important props, suitable for code animations.
|
|
19
|
+
*/
|
|
20
|
+
export declare function CodePresentation(Props: PCodePresentation): ReactNode;
|
|
21
|
+
//# sourceMappingURL=CodePresentation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePresentation.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/CodePresentation.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAe,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE/E,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAMhD;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAkEpE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file TokenTransitions.tsx
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import { type AnnotationHandler, type HighlightedCode } from "codehike/code";
|
|
8
|
+
import type { FTokenTransitionsHook } from "./CodePresentation.Types";
|
|
9
|
+
export declare function UseTokenTransitions(OldCode: HighlightedCode | undefined, NewCode: HighlightedCode, FrameRate: number): ReturnType<FTokenTransitionsHook>;
|
|
10
|
+
export declare const TokenTransitions: AnnotationHandler;
|
|
11
|
+
//# sourceMappingURL=TokenTransitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenTransitions.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/TokenTransitions.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EACH,KAAK,iBAAiB,EACtB,KAAK,eAAe,EAGvB,MAAM,eAAe,CAAC;AAiBvB,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEtE,wBAAgB,mBAAmB,CAC/B,OAAO,EAAE,eAAe,GAAG,SAAS,EACpC,OAAO,EAAE,eAAe,EACxB,SAAS,EAAE,MAAM,GAClB,UAAU,CAAC,qBAAqB,CAAC,CAyCnC;AAED,eAAO,MAAM,gBAAgB,EAAE,iBAe1B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.ts
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
export * from "./CodePresentation";
|
|
8
|
+
export * from "./CodePresentation.Types";
|
|
9
|
+
export * from "./TokenTransitions";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/CodePresentation/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../Source/ReactiveEventIntro/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsCH,wBAAgB,kBAAkB,4CASjC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file index.js
|
|
3
|
+
* @author Gage Sorrell <gage@sorrell.sh>
|
|
4
|
+
* @copyright (c) 2026 Gage Sorrell
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/
|
|
7
|
+
import type { FC } from "react";
|
|
8
|
+
/**
|
|
9
|
+
* This should be called in the Remotion entrypoint, so that Remotion Studio
|
|
10
|
+
* will open the given {@link CodePresentation} component.
|
|
11
|
+
*
|
|
12
|
+
* @param PresentationComponent - The component to open in Remotion Studio.
|
|
13
|
+
*/
|
|
14
|
+
export declare function RunStudio(PresentationComponent: FC): void;
|
|
15
|
+
export * from "./CodePresentation";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Source/index.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,qBAAqB,EAAE,EAAE,GAAG,IAAI,CAGzD;AAED,cAAc,oBAAoB,CAAC"}
|