@sorrell/code-hike 1.0.18 → 1.0.19
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/CodePresentation/CodePresentation.Internal.Types.d.ts +2 -3
- package/Distribution/CodePresentation/CodePresentation.Internal.Types.d.ts.map +1 -1
- package/Distribution/CodePresentation/CodePresentation.Types.d.ts +4 -2
- package/Distribution/CodePresentation/CodePresentation.Types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @copyright (c) 2026 Gage Sorrell
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
7
|
+
import type { FHandlers, FSteps, FTokenTransitionsHook, PCodePresentation } from "./CodePresentation.Types.js";
|
|
8
|
+
import type { HighlightedCode } from "codehike/code";
|
|
9
9
|
import type { MarkdownSchema } from "./CodePresentation.Internal.js";
|
|
10
10
|
import type { ReactNode } from "react";
|
|
11
11
|
import type { z } from "zod";
|
|
@@ -26,5 +26,4 @@ export type PCode = Required<Pick<PCodePresentation, "FrameRate" | "Resolution"
|
|
|
26
26
|
Handlers: FHandlers;
|
|
27
27
|
Hook: FTokenTransitionsHook;
|
|
28
28
|
};
|
|
29
|
-
export type FHandlers = ReadonlyArray<AnnotationHandler>;
|
|
30
29
|
//# sourceMappingURL=CodePresentation.Internal.Types.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"CodePresentation.Internal.Types.d.ts","sourceRoot":"","sources":["../../Source/CodePresentation/CodePresentation.Internal.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EACR,SAAS,EACT,MAAM,EACN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@@ -4,9 +4,9 @@
|
|
|
4
4
|
* @copyright (c) 2026 Gage Sorrell
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
import type { BlockAnnotation, HighlightedCode } from "codehike/code";
|
|
7
|
+
import type { AnnotationHandler, BlockAnnotation, HighlightedCode } from "codehike/code";
|
|
8
8
|
import type { CSSProperties, PropsWithChildren } from "react";
|
|
9
|
-
import type {
|
|
9
|
+
import type { FStepInternal } from "./CodePresentation.Internal.Types.js";
|
|
10
10
|
/** The object such that a sequence of these objects define an animation. */
|
|
11
11
|
export type FStep = FStepInternal;
|
|
12
12
|
/** An array whose elements are of type {@link FStep}. */
|
|
@@ -51,4 +51,6 @@ export type FTokenTransitionsHook = (OldCode: HighlightedCode | undefined, NewCo
|
|
|
51
51
|
export type PBlock = PropsWithChildren & {
|
|
52
52
|
annotation: BlockAnnotation;
|
|
53
53
|
};
|
|
54
|
+
/** The (optional) {@link AnnotationHandler | AnnotationHandlers} for your animation. */
|
|
55
|
+
export type FHandlers = ReadonlyArray<AnnotationHandler>;
|
|
54
56
|
//# sourceMappingURL=CodePresentation.Types.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"CodePresentation.Types.d.ts","sourceRoot":"","sources":["../../Source/CodePresentation/CodePresentation.Types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sCAAsC,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