rspress-plugin-api-extractor 0.19.5 → 0.19.7
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/BuildEnv.js +1 -2
- package/build-program.js +1 -2
- package/build-stages.js +1 -2
- package/category-resolver.js +1 -2
- package/config-helpers.js +1 -2
- package/config-utils.js +1 -2
- package/emit/mdx.js +1 -2
- package/emit/meta.js +1 -2
- package/errors.js +1 -2
- package/hide-cut-transformer.js +1 -2
- package/index.d.ts +0 -10
- package/layers/AppLayer.js +1 -2
- package/layers/api-results.js +1 -2
- package/layers/build-metrics.js +1 -2
- package/layers/config-resolution.js +1 -2
- package/layers/external-types.js +1 -2
- package/layers/observability.js +1 -2
- package/layers/type-environment.js +1 -2
- package/layers/xdg.js +1 -2
- package/llms-program.js +1 -2
- package/markdown/helpers.js +1 -2
- package/markdown/shiki-utils.js +1 -2
- package/model-loader.js +1 -2
- package/observability/EventBus.js +1 -2
- package/observability/events.js +1 -2
- package/observability/heartbeat.js +1 -2
- package/observability/metric-report.js +1 -2
- package/observability/sinks/console-sink.js +1 -2
- package/observability/sinks/issues-sink.js +1 -2
- package/observability/sinks/metrics-sink.js +1 -2
- package/observability/sinks/render-sink.js +1 -2
- package/observability/sinks/trace-sink.js +1 -2
- package/observability/spans.js +1 -2
- package/observability/sync-emitter.js +1 -2
- package/package.json +27 -27
- package/path-derivation.js +1 -2
- package/plugin.js +1 -2
- package/prettier-formatter.js +1 -2
- package/remark-api-codeblocks.js +1 -2
- package/remark-with-api.js +1 -2
- package/runtime/components/ApiExample/index.js +1 -2
- package/runtime/components/ApiLlmsPackageActions/index.js +1 -2
- package/runtime/components/ApiLlmsViewOptions/index.js +1 -2
- package/runtime/components/ApiMember/index.js +1 -2
- package/runtime/components/ApiSignature/index.js +1 -2
- package/runtime/components/EnumMembersTable/index.js +1 -2
- package/runtime/components/EnumMembersTable/index.module.js +1 -2
- package/runtime/components/ExampleBlock/index.js +1 -2
- package/runtime/components/ExampleBlock/index.module.js +1 -2
- package/runtime/components/MarkdownContent/index.js +1 -2
- package/runtime/components/MemberSignature/index.js +1 -2
- package/runtime/components/MemberSignature/index.module.js +1 -2
- package/runtime/components/ParametersTable/index.js +1 -2
- package/runtime/components/ParametersTable/index.module.js +1 -2
- package/runtime/components/SignatureBlock/index.js +1 -2
- package/runtime/components/SignatureBlock/index.module.js +1 -2
- package/runtime/components/SignatureCode/index.js +1 -2
- package/runtime/components/SignatureCode/index.module.js +1 -2
- package/runtime/components/SignatureToolbar/index.js +1 -2
- package/runtime/components/SignatureToolbar/index.module.js +1 -2
- package/runtime/components/buttons/ButtonGroup.js +1 -2
- package/runtime/components/buttons/CopyCodeButton.js +1 -2
- package/runtime/components/buttons/WrapSignatureButton.js +1 -2
- package/runtime/components/buttons/index.module.js +1 -2
- package/runtime/components/icons/CheckIcon/index.js +1 -2
- package/runtime/components/icons/CopyIcon/index.js +1 -2
- package/runtime/components/icons/UnwrapIcon/index.js +1 -2
- package/runtime/components/icons/WrapIcon/index.js +1 -2
- package/runtime/hooks/useWrapToggle.js +1 -2
- package/runtime/index.d.ts +0 -10
- package/runtime/utils/decode-hast.js +1 -2
- package/runtime/utils/hast-renderer.js +1 -2
- package/runtime/utils/strip-tags.js +1 -2
- package/schemas/config.js +1 -2
- package/schemas/observability.js +1 -2
- package/schemas/performance.js +1 -2
- package/serve.js +1 -2
- package/services/ConfigService.js +1 -2
- package/services/HighlighterService.js +1 -2
- package/services/OgService.js +1 -2
- package/services/PluginConfig.js +1 -2
- package/services/TwoslashCacheService.js +1 -2
- package/services/TwoslashEnvironments.js +1 -2
- package/services/TypeRegistryService.js +1 -2
- package/shiki-transformer.js +1 -2
- package/twoslash-access.js +1 -2
- package/twoslash-timing-wrapper.js +1 -2
- package/twoslash-transformer.js +1 -2
- package/vfs-registry.js +1 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { makeConfigService } from "../layers/config-resolution.js";
|
|
2
2
|
import { Context, Effect, Layer } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/services/ConfigService.ts
|
|
5
5
|
var ConfigService = class ConfigService extends Context.Service()("rspress-plugin-api-extractor/ConfigService") {
|
|
6
6
|
/**
|
|
7
7
|
* Config resolution over the plugin options and the RSPress config.
|
|
@@ -38,5 +38,4 @@ const unstubbed = (member) => {
|
|
|
38
38
|
throw new Error(`ConfigService.makeTest: ${member}() was called but not stubbed — pass an override.`);
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { ConfigService };
|
|
@@ -4,7 +4,7 @@ import { SHIKI_LANGS } from "../markdown/shiki-utils.js";
|
|
|
4
4
|
import { Context, Effect, Layer } from "effect";
|
|
5
5
|
import { createHighlighter } from "shiki";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/services/HighlighterService.ts
|
|
8
8
|
/**
|
|
9
9
|
* The build's single Shiki highlighter.
|
|
10
10
|
*
|
|
@@ -71,5 +71,4 @@ const make = (themes) => Effect.gen(function* () {
|
|
|
71
71
|
return { highlighter };
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
//#endregion
|
|
75
74
|
export { HighlighterService };
|
package/services/OgService.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Context, Data, Effect, FileSystem, Layer, Option, Path } from "effect";
|
|
|
4
4
|
import { resolveUrl } from "@tsdoctor/seo";
|
|
5
5
|
import { ImageFacts } from "@effected/images";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/services/OgService.ts
|
|
8
8
|
/**
|
|
9
9
|
* Resolving an API's configured Open Graph image into page metadata.
|
|
10
10
|
*
|
|
@@ -187,5 +187,4 @@ const make = () => Effect.gen(function* () {
|
|
|
187
187
|
} };
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
//#endregion
|
|
191
190
|
export { OgImageError, OgService };
|
package/services/PluginConfig.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Context } from "effect";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/services/PluginConfig.ts
|
|
4
4
|
/**
|
|
5
5
|
* The decoded plugin options, as a service.
|
|
6
6
|
*
|
|
@@ -22,5 +22,4 @@ import { Context } from "effect";
|
|
|
22
22
|
*/
|
|
23
23
|
var PluginConfig = class extends Context.Service()("rspress-plugin-api-extractor/PluginConfig") {};
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
25
|
export { PluginConfig };
|
|
@@ -4,7 +4,7 @@ import { decodeTwoslashCache, encodeTwoslashCache, makeTwoslashCache, twoslashBl
|
|
|
4
4
|
import { Cache } from "@effected/store";
|
|
5
5
|
import { AppDirs } from "@effected/xdg";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/services/TwoslashCacheService.ts
|
|
8
8
|
/**
|
|
9
9
|
* Persistence for the Twoslash result cache.
|
|
10
10
|
*
|
|
@@ -141,5 +141,4 @@ const CacheBackedLive = Layer.effect(TwoslashCacheService, Effect.gen(function*
|
|
|
141
141
|
* before this cache existed: type-check everything, persist nothing.
|
|
142
142
|
*/
|
|
143
143
|
|
|
144
|
-
//#endregion
|
|
145
144
|
export { TwoslashCacheService };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TwoslashEnvironmentRegistry } from "../twoslash-transformer.js";
|
|
2
2
|
import { Context, Layer } from "effect";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/services/TwoslashEnvironments.ts
|
|
5
5
|
var TwoslashEnvironments = class extends Context.Service()("rspress-plugin-api-extractor/TwoslashEnvironments") {
|
|
6
6
|
/**
|
|
7
7
|
* One environment registry per runtime.
|
|
@@ -31,5 +31,4 @@ const make = () => {
|
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
export { TwoslashEnvironments };
|
|
@@ -9,7 +9,7 @@ import { Cache } from "@effected/store";
|
|
|
9
9
|
import { AppDirs } from "@effected/xdg";
|
|
10
10
|
import { PackageFetcher, PackageSpec, RegistryObserver, TypeCache, TypeRegistry } from "@tsdoctor/registry";
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
// src/services/TypeRegistryService.ts
|
|
13
13
|
var TypeRegistryService = class TypeRegistryService extends Context.Service()("rspress-plugin-api-extractor/TypeRegistryService") {
|
|
14
14
|
/**
|
|
15
15
|
* The `@tsdoctor/registry` stack, acquired once.
|
|
@@ -179,5 +179,4 @@ const DegradedLive = Layer.succeed(TypeRegistryService, {
|
|
|
179
179
|
}))
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
//#endregion
|
|
183
182
|
export { TypeRegistryService };
|
package/shiki-transformer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/shiki-transformer.ts
|
|
2
2
|
/**
|
|
3
3
|
* A Shiki transformer that adds cross-links to type references in code blocks.
|
|
4
4
|
*
|
|
@@ -514,5 +514,4 @@ var ShikiCrossLinker = class ShikiCrossLinker {
|
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
516
|
|
|
517
|
-
//#endregion
|
|
518
517
|
export { ShikiCrossLinker };
|
package/twoslash-access.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/twoslash-access.ts
|
|
2
2
|
/** The uninstalled state: no environments, so nothing to hand out. */
|
|
3
3
|
const NOT_INSTALLED = {
|
|
4
4
|
transformerFor: () => null,
|
|
@@ -44,5 +44,4 @@ function setTwoslashFile(path) {
|
|
|
44
44
|
current.setCurrentFile(path);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
//#endregion
|
|
48
47
|
export { clearTwoslashAccess, installTwoslashAccess, setTwoslashFile, twoslashTransformerFor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/twoslash-timing-wrapper.ts
|
|
2
2
|
/**
|
|
3
3
|
* Wraps a Twoslash transformer to measure execution time
|
|
4
4
|
*/
|
|
@@ -19,5 +19,4 @@ function createTwoslashTimingWrapper(twoslashTransformer, onTiming) {
|
|
|
19
19
|
return wrapper;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
export { createTwoslashTimingWrapper };
|
package/twoslash-transformer.js
CHANGED
|
@@ -6,7 +6,7 @@ import { rendererRich, transformerTwoslash } from "@shikijs/twoslash";
|
|
|
6
6
|
import { DEFAULT_COMPILER_OPTIONS, toProgrammaticCompilerOptions } from "@tsdoctor/vfs";
|
|
7
7
|
import { toHast } from "mdast-util-to-hast";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/twoslash-transformer.ts
|
|
10
10
|
/* v8 ignore start -- Shiki/Twoslash integration, requires full highlighter setup for testing */
|
|
11
11
|
/**
|
|
12
12
|
* Module-level type routes map for resolving link references.
|
|
@@ -429,5 +429,4 @@ function clearTypeRoutes() {
|
|
|
429
429
|
typeRoutes.clear();
|
|
430
430
|
}
|
|
431
431
|
|
|
432
|
-
//#endregion
|
|
433
432
|
export { TwoslashEnvironmentRegistry, addTypeRoutes, clearTypeRoutes };
|
package/vfs-registry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/vfs-registry.ts
|
|
2
2
|
/**
|
|
3
3
|
* Module-scoped registry for VFS configurations.
|
|
4
4
|
*
|
|
@@ -87,5 +87,4 @@ var VfsRegistryImpl = class {
|
|
|
87
87
|
*/
|
|
88
88
|
const VfsRegistry = new VfsRegistryImpl();
|
|
89
89
|
|
|
90
|
-
//#endregion
|
|
91
90
|
export { VfsRegistry };
|