polen 0.11.0-next.25 → 0.11.0-next.26
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/build/api/config/input.d.ts +183 -0
- package/build/api/config/input.d.ts.map +1 -1
- package/build/api/config/input.js +2 -0
- package/build/api/config/input.js.map +1 -1
- package/build/api/config/normalized.d.ts +297 -0
- package/build/api/config/normalized.d.ts.map +1 -1
- package/build/api/config/normalized.js +47 -0
- package/build/api/config/normalized.js.map +1 -1
- package/build/api/config-template/template.d.ts +81 -0
- package/build/api/config-template/template.d.ts.map +1 -1
- package/build/api/config-template/template.js +18 -1
- package/build/api/config-template/template.js.map +1 -1
- package/build/api/examples/scanner.d.ts.map +1 -1
- package/build/api/examples/scanner.js +11 -0
- package/build/api/examples/scanner.js.map +1 -1
- package/build/api/examples/schemas/catalog.d.ts +36 -0
- package/build/api/examples/schemas/catalog.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.d.ts +37 -0
- package/build/api/examples/schemas/example/example.d.ts.map +1 -1
- package/build/api/examples/schemas/example/example.js +5 -0
- package/build/api/examples/schemas/example/example.js.map +1 -1
- package/build/api/reference/$.d.ts +4 -0
- package/build/api/reference/$.d.ts.map +1 -0
- package/build/api/reference/$.js +4 -0
- package/build/api/reference/$.js.map +1 -0
- package/build/api/reference/catalog.d.ts +69 -0
- package/build/api/reference/catalog.d.ts.map +1 -0
- package/build/api/reference/catalog.js +44 -0
- package/build/api/reference/catalog.js.map +1 -0
- package/build/api/reference/config.d.ts +616 -0
- package/build/api/reference/config.d.ts.map +1 -0
- package/build/api/reference/config.js +162 -0
- package/build/api/reference/config.js.map +1 -0
- package/build/api/reference/scanner.d.ts +26 -0
- package/build/api/reference/scanner.d.ts.map +1 -0
- package/build/api/reference/scanner.js +27 -0
- package/build/api/reference/scanner.js.map +1 -0
- package/build/lib/grafaid/schema/format-default-value.d.ts +11 -0
- package/build/lib/grafaid/schema/format-default-value.d.ts.map +1 -0
- package/build/lib/grafaid/schema/format-default-value.js +20 -0
- package/build/lib/grafaid/schema/format-default-value.js.map +1 -0
- package/build/lib/grafaid/schema/schema.d.ts +1 -0
- package/build/lib/grafaid/schema/schema.d.ts.map +1 -1
- package/build/lib/grafaid/schema/schema.js +1 -0
- package/build/lib/grafaid/schema/schema.js.map +1 -1
- package/build/template/components/ArgumentAnnotation.d.ts +2 -1
- package/build/template/components/ArgumentAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentAnnotation.js +14 -4
- package/build/template/components/ArgumentAnnotation.js.map +1 -1
- package/build/template/components/ArgumentListAnnotation.d.ts +1 -0
- package/build/template/components/ArgumentListAnnotation.d.ts.map +1 -1
- package/build/template/components/ArgumentListAnnotation.js +21 -8
- package/build/template/components/ArgumentListAnnotation.js.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.d.ts.map +1 -1
- package/build/template/components/Changelog/groups/FieldArgument.js +0 -1
- package/build/template/components/Changelog/groups/FieldArgument.js.map +1 -1
- package/build/template/components/CodeBlock.d.ts.map +1 -1
- package/build/template/components/CodeBlock.js +1 -1
- package/build/template/components/CodeBlock.js.map +1 -1
- package/build/template/components/Description.js +1 -1
- package/build/template/components/Description.js.map +1 -1
- package/build/template/components/ExampleLink.d.ts.map +1 -1
- package/build/template/components/ExampleLink.js +2 -1
- package/build/template/components/ExampleLink.js.map +1 -1
- package/build/template/components/Field.d.ts +2 -0
- package/build/template/components/Field.d.ts.map +1 -1
- package/build/template/components/Field.js +42 -4
- package/build/template/components/Field.js.map +1 -1
- package/build/template/components/FieldList.d.ts +2 -1
- package/build/template/components/FieldList.d.ts.map +1 -1
- package/build/template/components/FieldList.js +14 -3
- package/build/template/components/FieldList.js.map +1 -1
- package/build/template/components/FieldListSection.d.ts.map +1 -1
- package/build/template/components/FieldListSection.js +6 -1
- package/build/template/components/FieldListSection.js.map +1 -1
- package/build/template/components/GraphQLDocument.d.ts.map +1 -1
- package/build/template/components/GraphQLDocument.js +2 -1
- package/build/template/components/GraphQLDocument.js.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts +2 -0
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js +4 -3
- package/build/template/components/GraphQLInteractive/GraphQLInteractive.js.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts +2 -2
- package/build/template/components/GraphQLInteractive/lib/parser.d.ts.map +1 -1
- package/build/template/components/GraphQLInteractive/lib/parser.js +17 -12
- package/build/template/components/GraphQLInteractive/lib/parser.js.map +1 -1
- package/build/template/components/IAPIndicator.d.ts +12 -0
- package/build/template/components/IAPIndicator.d.ts.map +1 -0
- package/build/template/components/IAPIndicator.js +21 -0
- package/build/template/components/IAPIndicator.js.map +1 -0
- package/build/template/components/Link.d.ts +1 -2
- package/build/template/components/Link.d.ts.map +1 -1
- package/build/template/components/Link.js +5 -2
- package/build/template/components/Link.js.map +1 -1
- package/build/template/components/NamedType.d.ts.map +1 -1
- package/build/template/components/NamedType.js +9 -5
- package/build/template/components/NamedType.js.map +1 -1
- package/build/template/components/ReferenceLink.d.ts +2 -2
- package/build/template/components/ReferenceLink.d.ts.map +1 -1
- package/build/template/components/ReferenceLink.js +5 -3
- package/build/template/components/ReferenceLink.js.map +1 -1
- package/build/template/components/TypeAnnotation.d.ts +2 -0
- package/build/template/components/TypeAnnotation.d.ts.map +1 -1
- package/build/template/components/TypeAnnotation.js +4 -4
- package/build/template/components/TypeAnnotation.js.map +1 -1
- package/build/template/components/ViewModeToggle.d.ts +3 -0
- package/build/template/components/ViewModeToggle.d.ts.map +1 -0
- package/build/template/components/ViewModeToggle.js +9 -0
- package/build/template/components/ViewModeToggle.js.map +1 -0
- package/build/template/components/graphql/type-link.d.ts +2 -0
- package/build/template/components/graphql/type-link.d.ts.map +1 -1
- package/build/template/components/graphql/type-link.js +15 -3
- package/build/template/components/graphql/type-link.js.map +1 -1
- package/build/template/components/home/PlaygroundPreview.d.ts.map +1 -1
- package/build/template/components/home/PlaygroundPreview.js +3 -2
- package/build/template/components/home/PlaygroundPreview.js.map +1 -1
- package/build/template/components/sidebar/SidebarItem.d.ts.map +1 -1
- package/build/template/components/sidebar/SidebarItem.js +18 -5
- package/build/template/components/sidebar/SidebarItem.js.map +1 -1
- package/build/template/contexts/ReferenceConfigContext.d.ts +16 -0
- package/build/template/contexts/ReferenceConfigContext.d.ts.map +1 -0
- package/build/template/contexts/ReferenceConfigContext.js +14 -0
- package/build/template/contexts/ReferenceConfigContext.js.map +1 -0
- package/build/template/contexts/ViewModeContext.d.ts +14 -0
- package/build/template/contexts/ViewModeContext.d.ts.map +1 -0
- package/build/template/contexts/ViewModeContext.js +40 -0
- package/build/template/contexts/ViewModeContext.js.map +1 -0
- package/build/template/hooks/use-examples.d.ts +3 -0
- package/build/template/hooks/use-examples.d.ts.map +1 -1
- package/build/template/hooks/useAlignedColumns.d.ts +10 -0
- package/build/template/hooks/useAlignedColumns.d.ts.map +1 -0
- package/build/template/hooks/useAlignedColumns.js +17 -0
- package/build/template/hooks/useAlignedColumns.js.map +1 -0
- package/build/template/routes/examples/_.d.ts +9 -0
- package/build/template/routes/examples/_.d.ts.map +1 -1
- package/build/template/routes/examples/_index.d.ts +6 -0
- package/build/template/routes/examples/_index.d.ts.map +1 -1
- package/build/template/routes/examples/name.d.ts +9 -0
- package/build/template/routes/examples/name.d.ts.map +1 -1
- package/build/template/routes/examples/name.js +6 -2
- package/build/template/routes/examples/name.js.map +1 -1
- package/build/template/routes/reference.d.ts.map +1 -1
- package/build/template/routes/reference.js +37 -10
- package/build/template/routes/reference.js.map +1 -1
- package/build/vite/plugins/core.d.ts.map +1 -1
- package/build/vite/plugins/core.js +6 -0
- package/build/vite/plugins/core.js.map +1 -1
- package/build/vite/plugins/examples.d.ts.map +1 -1
- package/build/vite/plugins/examples.js +10 -1
- package/build/vite/plugins/examples.js.map +1 -1
- package/build/vite/plugins/index.d.ts +1 -0
- package/build/vite/plugins/index.d.ts.map +1 -1
- package/build/vite/plugins/index.js +1 -0
- package/build/vite/plugins/index.js.map +1 -1
- package/build/vite/plugins/navbar.d.ts.map +1 -1
- package/build/vite/plugins/navbar.js +3 -1
- package/build/vite/plugins/navbar.js.map +1 -1
- package/build/vite/plugins/reference.d.ts +19 -0
- package/build/vite/plugins/reference.d.ts.map +1 -0
- package/build/vite/plugins/reference.js +96 -0
- package/build/vite/plugins/reference.js.map +1 -0
- package/package.json +1 -1
- package/src/api/config/input.ts +2 -0
- package/src/api/config/normalized.ts +54 -0
- package/src/api/config-template/template.ts +18 -1
- package/src/api/examples/scanner.ts +14 -0
- package/src/api/examples/schemas/example/example.ts +6 -0
- package/src/api/reference/$.ts +3 -0
- package/src/api/reference/catalog.ts +55 -0
- package/src/api/reference/config.ts +193 -0
- package/src/api/reference/scanner.ts +53 -0
- package/src/lib/grafaid/schema/format-default-value.ts +22 -0
- package/src/lib/grafaid/schema/schema.ts +2 -0
- package/src/template/components/ArgumentAnnotation.tsx +58 -9
- package/src/template/components/ArgumentListAnnotation.tsx +50 -17
- package/src/template/components/Changelog/groups/FieldArgument.tsx +0 -1
- package/src/template/components/CodeBlock.tsx +1 -0
- package/src/template/components/Description.tsx +1 -1
- package/src/template/components/ExampleLink.tsx +2 -1
- package/src/template/components/Field.tsx +148 -20
- package/src/template/components/FieldList.tsx +28 -13
- package/src/template/components/FieldListSection.tsx +12 -2
- package/src/template/components/GraphQLDocument.tsx +2 -0
- package/src/template/components/GraphQLInteractive/GraphQLInteractive.tsx +6 -1
- package/src/template/components/GraphQLInteractive/lib/parser.ts +16 -3
- package/src/template/components/IAPIndicator.tsx +73 -0
- package/src/template/components/Link.tsx +9 -3
- package/src/template/components/NamedType.tsx +54 -28
- package/src/template/components/ReferenceLink.tsx +16 -10
- package/src/template/components/TypeAnnotation.tsx +17 -5
- package/src/template/components/ViewModeToggle.tsx +27 -0
- package/src/template/components/graphql/type-link.tsx +34 -3
- package/src/template/components/home/PlaygroundPreview.tsx +3 -0
- package/src/template/components/sidebar/SidebarItem.tsx +21 -5
- package/src/template/contexts/ReferenceConfigContext.tsx +37 -0
- package/src/template/contexts/ViewModeContext.tsx +64 -0
- package/src/template/hooks/useAlignedColumns.ts +19 -0
- package/src/template/routes/examples/name.tsx +13 -1
- package/src/template/routes/reference.tsx +67 -23
- package/src/types/virtual-modules.d.ts +5 -0
- package/src/vite/plugins/core.ts +6 -0
- package/src/vite/plugins/examples.ts +12 -0
- package/src/vite/plugins/index.ts +1 -0
- package/src/vite/plugins/navbar.ts +4 -1
- package/src/vite/plugins/reference.ts +130 -0
- package/build/template/components/ArgumentList.d.ts +0 -6
- package/build/template/components/ArgumentList.d.ts.map +0 -1
- package/build/template/components/ArgumentList.js +0 -9
- package/build/template/components/ArgumentList.js.map +0 -1
- package/src/template/components/ArgumentList.tsx +0 -22
@@ -22,9 +22,19 @@ export declare const Example: S.Struct<{
|
|
22
22
|
}>, S.TaggedStruct<"DocumentVersioned", {
|
23
23
|
versionDocuments: S.HashMap<S.Union<[typeof import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned, S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>, S.HashSet<S.transformOrFail<S.Union<[typeof S.String, typeof S.Number]>, S.Union<[typeof import("../../../../lib/version/integer.js").Integer, typeof import("../../../../lib/version/semver.js").Semver, typeof import("../../../../lib/version/date.js").Date, typeof import("../../../../lib/version/custom.js").Custom]>, never>>]>, typeof S.String>;
|
24
24
|
}>]>;
|
25
|
+
/**
|
26
|
+
* Optional description file for this example.
|
27
|
+
* Points to a markdown/MDX file that describes the example.
|
28
|
+
*/
|
29
|
+
description: S.optional<S.Struct<{
|
30
|
+
path: typeof S.String;
|
31
|
+
}>>;
|
25
32
|
}>;
|
26
33
|
export type Example = S.Schema.Type<typeof Example>;
|
27
34
|
export declare const make: (props: {
|
35
|
+
readonly description?: {
|
36
|
+
readonly path: string;
|
37
|
+
} | undefined;
|
28
38
|
readonly path: string;
|
29
39
|
readonly name: string;
|
30
40
|
readonly document: {
|
@@ -35,6 +45,9 @@ export declare const make: (props: {
|
|
35
45
|
readonly versionDocuments: import("effect/HashMap").HashMap<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver | import("../../../../lib/version-coverage/version-coverage.js").VersionCoverageUnversioned | import("effect/HashSet").HashSet<import("../../../../lib/version/custom.js").Custom | import("../../../../lib/version/date.js").Date | import("../../../../lib/version/integer.js").Integer | import("../../../../lib/version/semver.js").Semver>, string>;
|
36
46
|
};
|
37
47
|
}, options?: S.MakeOptions) => {
|
48
|
+
readonly description?: {
|
49
|
+
readonly path: string;
|
50
|
+
} | undefined;
|
38
51
|
readonly path: string;
|
39
52
|
readonly name: string;
|
40
53
|
readonly document: {
|
@@ -47,6 +60,9 @@ export declare const make: (props: {
|
|
47
60
|
};
|
48
61
|
export declare const order: Order.Order<Example>;
|
49
62
|
export declare const equivalent: import("effect/Equivalence").Equivalence<{
|
63
|
+
readonly description?: {
|
64
|
+
readonly path: string;
|
65
|
+
} | undefined;
|
50
66
|
readonly path: string;
|
51
67
|
readonly name: string;
|
52
68
|
readonly document: {
|
@@ -58,6 +74,9 @@ export declare const equivalent: import("effect/Equivalence").Equivalence<{
|
|
58
74
|
};
|
59
75
|
}>;
|
60
76
|
export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
|
77
|
+
readonly description?: {
|
78
|
+
readonly path: string;
|
79
|
+
} | undefined;
|
61
80
|
readonly path: string;
|
62
81
|
readonly name: string;
|
63
82
|
readonly document: {
|
@@ -80,7 +99,13 @@ export declare const decode: (i: {
|
|
80
99
|
readonly _tag: "VersionCoverageUnversioned";
|
81
100
|
}, string])[];
|
82
101
|
};
|
102
|
+
readonly description?: {
|
103
|
+
readonly path: string;
|
104
|
+
} | undefined;
|
83
105
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
106
|
+
readonly description?: {
|
107
|
+
readonly path: string;
|
108
|
+
} | undefined;
|
84
109
|
readonly path: string;
|
85
110
|
readonly name: string;
|
86
111
|
readonly document: {
|
@@ -103,7 +128,13 @@ export declare const decodeSync: (i: {
|
|
103
128
|
readonly _tag: "VersionCoverageUnversioned";
|
104
129
|
}, string])[];
|
105
130
|
};
|
131
|
+
readonly description?: {
|
132
|
+
readonly path: string;
|
133
|
+
} | undefined;
|
106
134
|
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
135
|
+
readonly description?: {
|
136
|
+
readonly path: string;
|
137
|
+
} | undefined;
|
107
138
|
readonly path: string;
|
108
139
|
readonly name: string;
|
109
140
|
readonly document: {
|
@@ -115,6 +146,9 @@ export declare const decodeSync: (i: {
|
|
115
146
|
};
|
116
147
|
};
|
117
148
|
export declare const encode: (a: {
|
149
|
+
readonly description?: {
|
150
|
+
readonly path: string;
|
151
|
+
} | undefined;
|
118
152
|
readonly path: string;
|
119
153
|
readonly name: string;
|
120
154
|
readonly document: {
|
@@ -136,5 +170,8 @@ export declare const encode: (a: {
|
|
136
170
|
readonly _tag: "VersionCoverageUnversioned";
|
137
171
|
}, string])[];
|
138
172
|
};
|
173
|
+
readonly description?: {
|
174
|
+
readonly path: string;
|
175
|
+
} | undefined;
|
139
176
|
}, import("effect/ParseResult").ParseError, never>;
|
140
177
|
//# sourceMappingURL=example.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;EAKH,CAAA;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI
|
1
|
+
{"version":3,"file":"example.d.ts","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAM9B;;;GAGG;AACH,eAAO,MAAM,OAAO;IAClB;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;;;;IAGH;;;OAGG;;;;EAKH,CAAA;AAMF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAA;AAMhC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,OAAO,CAGtC,CAAA;AAMD,eAAO,MAAM,UAAU;;;;;;;;;;;;;EAAyB,CAAA;AAMhD,eAAO,MAAM,EAAE;;;;;;;;;;;;;CAAgB,CAAA;AAM/B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAoB,CAAA"}
|
@@ -22,6 +22,11 @@ export const Example = S.Struct({
|
|
22
22
|
* The document content, which can be unversioned, versioned, or partially versioned.
|
23
23
|
*/
|
24
24
|
document: Document.Document,
|
25
|
+
/**
|
26
|
+
* Optional description file for this example.
|
27
|
+
* Points to a markdown/MDX file that describes the example.
|
28
|
+
*/
|
29
|
+
description: S.optional(S.Struct({ path: S.String })),
|
25
30
|
}).annotations({
|
26
31
|
identifier: 'Example',
|
27
32
|
description: 'A GraphQL example that contains a document with optional versioning support',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,QAAQ;
|
1
|
+
{"version":3,"file":"example.js","sourceRoot":"","sources":["../../../../../src/api/examples/schemas/example/example.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B;;OAEG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;;OAGG;IACH,IAAI,EAAE,CAAC,CAAC,MAAM;IAEd;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,QAAQ;IAE3B;;;OAGG;IACH,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,E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oot":"","sources":["../../../src/api/reference/$.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAA;AACvC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAA;AACrC,cAAc,cAAc,CAAA"}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
export declare const Catalog: S.Struct<{
|
3
|
+
/**
|
4
|
+
* Optional index file metadata for custom reference landing page.
|
5
|
+
* If not provided, the app will redirect to the Query type.
|
6
|
+
*/
|
7
|
+
index: S.optional<S.Struct<{
|
8
|
+
/**
|
9
|
+
* Path to the index.md or index.mdx file
|
10
|
+
*/
|
11
|
+
path: typeof S.String;
|
12
|
+
}>>;
|
13
|
+
}>;
|
14
|
+
export type Catalog = S.Schema.Type<typeof Catalog>;
|
15
|
+
export declare const make: (props: void | {
|
16
|
+
readonly index?: {
|
17
|
+
readonly path: string;
|
18
|
+
} | undefined;
|
19
|
+
}, options?: S.MakeOptions) => {
|
20
|
+
readonly index?: {
|
21
|
+
readonly path: string;
|
22
|
+
} | undefined;
|
23
|
+
};
|
24
|
+
export declare const is: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions | number) => u is {
|
25
|
+
readonly index?: {
|
26
|
+
readonly path: string;
|
27
|
+
} | undefined;
|
28
|
+
};
|
29
|
+
/**
|
30
|
+
* Check if the catalog has a custom index page
|
31
|
+
*/
|
32
|
+
export declare const hasIndex: (catalog: Catalog) => boolean;
|
33
|
+
export declare const decode: (i: {
|
34
|
+
readonly index?: {
|
35
|
+
readonly path: string;
|
36
|
+
} | undefined;
|
37
|
+
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
38
|
+
readonly index?: {
|
39
|
+
readonly path: string;
|
40
|
+
} | undefined;
|
41
|
+
}, import("effect/ParseResult").ParseError, never>;
|
42
|
+
export declare const decodeSync: (i: {
|
43
|
+
readonly index?: {
|
44
|
+
readonly path: string;
|
45
|
+
} | undefined;
|
46
|
+
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
47
|
+
readonly index?: {
|
48
|
+
readonly path: string;
|
49
|
+
} | undefined;
|
50
|
+
};
|
51
|
+
export declare const encode: (a: {
|
52
|
+
readonly index?: {
|
53
|
+
readonly path: string;
|
54
|
+
} | undefined;
|
55
|
+
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
56
|
+
readonly index?: {
|
57
|
+
readonly path: string;
|
58
|
+
} | undefined;
|
59
|
+
}, import("effect/ParseResult").ParseError, never>;
|
60
|
+
export declare const encodeSync: (a: {
|
61
|
+
readonly index?: {
|
62
|
+
readonly path: string;
|
63
|
+
} | undefined;
|
64
|
+
}, overrideOptions?: import("effect/SchemaAST").ParseOptions) => {
|
65
|
+
readonly index?: {
|
66
|
+
readonly path: string;
|
67
|
+
} | undefined;
|
68
|
+
};
|
69
|
+
//# sourceMappingURL=catalog.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/api/reference/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAMxC,eAAO,MAAM,OAAO;IAClB;;;OAGG;;QAED;;WAEG;;;EAML,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAMnD,eAAO,MAAM,IAAI;;;;;;;;CAAe,CAAA;AAMhC,eAAO,MAAM,EAAE;;;;CAAgB,CAAA;AAM/B;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,SAAS,OAAO,KAAG,OAE3C,CAAA;AAMD,eAAO,MAAM,MAAM;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;CAAwB,CAAA;AAC/C,eAAO,MAAM,MAAM;;;;;;;;kDAAoB,CAAA;AACvC,eAAO,MAAM,UAAU;;;;;;;;CAAwB,CAAA"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { S } from '#lib/kit-temp/effect';
|
2
|
+
// ============================================================================
|
3
|
+
// Schema and Type
|
4
|
+
// ============================================================================
|
5
|
+
export const Catalog = S.Struct({
|
6
|
+
/**
|
7
|
+
* Optional index file metadata for custom reference landing page.
|
8
|
+
* If not provided, the app will redirect to the Query type.
|
9
|
+
*/
|
10
|
+
index: S.optional(S.Struct({
|
11
|
+
/**
|
12
|
+
* Path to the index.md or index.mdx file
|
13
|
+
*/
|
14
|
+
path: S.String,
|
15
|
+
})),
|
16
|
+
}).annotations({
|
17
|
+
identifier: 'ReferenceCatalog',
|
18
|
+
description: 'A catalog of reference documentation metadata',
|
19
|
+
});
|
20
|
+
// ============================================================================
|
21
|
+
// Constructors
|
22
|
+
// ============================================================================
|
23
|
+
export const make = Catalog.make;
|
24
|
+
// ============================================================================
|
25
|
+
// Type Guards
|
26
|
+
// ============================================================================
|
27
|
+
export const is = S.is(Catalog);
|
28
|
+
// ============================================================================
|
29
|
+
// State Predicates
|
30
|
+
// ============================================================================
|
31
|
+
/**
|
32
|
+
* Check if the catalog has a custom index page
|
33
|
+
*/
|
34
|
+
export const hasIndex = (catalog) => {
|
35
|
+
return catalog.index !== undefined;
|
36
|
+
};
|
37
|
+
// ============================================================================
|
38
|
+
// Codec
|
39
|
+
// ============================================================================
|
40
|
+
export const decode = S.decode(Catalog);
|
41
|
+
export const decodeSync = S.decodeSync(Catalog);
|
42
|
+
export const encode = S.encode(Catalog);
|
43
|
+
export const encodeSync = S.encodeSync(Catalog);
|
44
|
+
//# sourceMappingURL=catalog.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../../src/api/reference/catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,sBAAsB,CAAA;AAExC,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAE/E,MA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