@stainless-api/docs-ui 0.1.0-beta.52 → 0.1.0-beta.54
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/dist/{breadcrumbs-CI98FNF5.d.ts → breadcrumbs-CysDvz5L.d.ts} +8 -3
- package/dist/{breadcrumbs-nSFZO5Gf.js → breadcrumbs-DgN-xdoA.js} +4 -4
- package/dist/{breadcrumbs-DEyC9k79.d.ts → breadcrumbs-Dr94uqc3.d.ts} +8 -3
- package/dist/{chunk-DRcLgZ1e.js → chunk-CAbhIZi1.js} +2 -2
- package/dist/component-CjLDkCLe.js +23 -0
- package/dist/{component-generics-aCdP-C69.d.ts → component-generics-DBrwfCEE.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +2 -2
- package/dist/components/breadcrumbs.js +4 -4
- package/dist/components/icons.d.ts +11 -11
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +12 -12
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +4 -4
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +5 -5
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +2 -2
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +3 -3
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +3 -3
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +5 -5
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +3 -3
- package/dist/{components-D7M-BwNI.js → components-oq97SH1A.js} +11 -10
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +20 -20
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +22 -16
- package/dist/contexts/index.js +1 -1
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/contexts/use-components.js +1 -1
- package/dist/{contexts-p3rRZDlM.js → contexts-CLpvBI91.js} +2 -2
- package/dist/{csharp-CDSxfCZE.js → csharp-E3FbT47c.js} +5 -5
- package/dist/{docs-SeQmavpx.d.ts → docs-AUJrRqst.d.ts} +2 -2
- package/dist/{docs-CmJkvs5K.d.ts → docs-CTY2OmmX.d.ts} +3 -3
- package/dist/{go-1c3S5ETL.js → go-DNSFGJle.js} +5 -5
- package/dist/{http-2QNWXH9t.js → http-DXRdcllM.js} +6 -6
- package/dist/{index-CzDV0BnQ.d.ts → index-B5r4ELg6.d.ts} +53 -53
- package/dist/{index-CErkkMkL.d.ts → index-BouuY88M.d.ts} +53 -53
- package/dist/{index-BzTFhFWf.d.ts → index-Cr9OL_Cp.d.ts} +9 -9
- package/dist/{index-ReQTPmXD.d.ts → index-I43iZfIE.d.ts} +9 -9
- package/dist/index.d.ts +18 -18
- package/dist/index.js +22 -22
- package/dist/{java-BbjF_oUI.js → java-X1yS0K52.js} +5 -5
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +3 -3
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +3 -3
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +12 -12
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/index.js +19 -19
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +3 -3
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +3 -3
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +3 -3
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +3 -3
- package/dist/languages-Ir9QQoCT.js +26 -0
- package/dist/markdown/index.d.ts +3 -3
- package/dist/markdown/index.js +23 -23
- package/dist/markdown/md.js +39 -1
- package/dist/markdown/printer.d.ts +13 -2
- package/dist/markdown/printer.js +91 -23
- package/dist/markdown/utils.d.ts +20 -2
- package/dist/markdown/utils.js +29 -1
- package/dist/{markdown-BGCM0OeE.d.ts → markdown-D5IxykeS.d.ts} +2 -2
- package/dist/{markdown-CiFjFgOF.d.ts → markdown-V_bNKjle.d.ts} +2 -2
- package/dist/{method-B6eAtYl2.d.ts → method-BDSi2Xo0.d.ts} +7 -7
- package/dist/{method-CE08mUME.js → method-nEcioXL5.js} +3 -3
- package/dist/{method-BLlsdXBF.d.ts → method-yQoZRX6j.d.ts} +7 -7
- package/dist/{navigation-BLGsIR9F.d.ts → navigation-Cy3fvjdT.d.ts} +3 -3
- package/dist/{navigation-yYOrOKD9.d.ts → navigation-DbIx-eWp.d.ts} +3 -3
- package/dist/{overview-S2hUqPXA.js → overview-BQk6WvtS.js} +7 -7
- package/dist/{overview-FMVqthvd.d.ts → overview-Bq6DqXr2.d.ts} +6 -6
- package/dist/{overview-CTlpyjbv.d.ts → overview-YYFEHa8T.d.ts} +6 -6
- package/dist/{primitives-BIWfwN5L.js → primitives-1WQd5NT-.js} +3 -3
- package/dist/{primitives-Epom-ge3.d.ts → primitives-BgkRZCRD.d.ts} +9 -9
- package/dist/{primitives-Yt5_6f07.d.ts → primitives-CXBFkjk0.d.ts} +9 -9
- package/dist/{properties-jlGW3USi.js → properties-BTdEzx5f.js} +2 -2
- package/dist/{properties-e7mCw5QL.d.ts → properties-BrJy8EG2.d.ts} +5 -5
- package/dist/{python-CHG2jGvC.js → python-DqdvqQ9I.js} +5 -5
- package/dist/{routing-Wbb7YECB.js → routing-Dl0FprK1.js} +2 -2
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-CSvGbSLe.js → ruby-CHeld1ey.js} +5 -5
- package/dist/{sdk-C_2E2iNT.d.ts → sdk-BQEqCwI6.d.ts} +14 -14
- package/dist/{sdk-P5DGFIUC.d.ts → sdk-CpRaFmFQ.d.ts} +2 -2
- package/dist/{sdk-CSCbbn3O.js → sdk-DEoUlY8I.js} +4 -4
- package/dist/{sidebar-CbCLUteD.d.ts → sidebar-CgBa9Ckc.d.ts} +5 -5
- package/dist/{sidebar-rOXMRjUW.d.ts → sidebar-DImBt9YH.d.ts} +5 -5
- package/dist/{sidebar-CWyvCrJ0.js → sidebar-D_cK7JN_.js} +4 -4
- package/dist/{snippets-BQLXEIf6.js → snippets-BiXJx1BL.js} +2 -2
- package/dist/{snippets-BK_yl-X-.d.ts → snippets-Cemr-6OZ.d.ts} +8 -8
- package/dist/{snippets-C8xhXoaB.d.ts → snippets-DCiTB0N4.d.ts} +8 -8
- package/dist/spec.d.ts +1 -1
- package/dist/spec.js +2 -2
- package/dist/{style-gnVEeXFj.js → style-cJZFOvnF.js} +3 -0
- package/dist/style.d.ts +170 -1
- package/dist/style.js +1 -1
- package/dist/styles/primitives.css +11 -6
- package/dist/styles/search.css +51 -32
- package/dist/styles.css +124 -38
- package/dist/{typescript-DXG9psK3.js → typescript-C--P_L-R.js} +5 -5
- package/dist/use-components-DBx5LZk0.js +7 -0
- package/dist/{utils-D_1AWSRX.js → utils-C12Fme2N.js} +3 -3
- package/dist/utils.d.ts +14 -2
- package/dist/utils.js +1 -1
- package/package.json +5 -5
- package/dist/component-CjONRbeK.js +0 -23
- package/dist/index-CebZpsfQ.d.ts +0 -13
- package/dist/index-DGag9-aC.d.ts +0 -13
- package/dist/languages-BqGqTy14.js +0 -26
- package/dist/md-oM2tUaCA.js +0 -41
- package/dist/printer-DBw4S_Jn.d.ts +0 -13
- package/dist/printer-DVZVkqAr.d.ts +0 -13
- package/dist/printer-Y_ONp3hs.js +0 -74
- package/dist/routing-Dhmv52Fd.d.ts +0 -54
- package/dist/style-D7RO5ymE.d.ts +0 -168
- package/dist/use-components-RWQbviGq.js +0 -7
- package/dist/utils-CqnL9Fc3.js +0 -31
- package/dist/utils-DBenMgxx.d.ts +0 -21
- package/dist/utils-DLRASeee.d.ts +0 -21
- package/dist/utils-d8paVwKN.d.ts +0 -14
- /package/dist/{component-generics-COP53CRn.d.ts → component-generics-XM4u-Dns.d.ts} +0 -0
- /package/dist/{properties-DQTdO9Cq.d.ts → properties-sqAOq5FR.d.ts} +0 -0
- /package/dist/{routing-CMqh1cTZ.d.ts → routing-CUnVDpU-.d.ts} +0 -0
package/dist/style-D7RO5ymE.d.ts
DELETED
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
//#region src/style.d.ts
|
|
2
|
-
declare const _default: {
|
|
3
|
-
readonly TextIdentifier: "stldocs-text-identifier";
|
|
4
|
-
readonly TextOperator: "stldocs-text-operator";
|
|
5
|
-
readonly TextPunctuation: "stldocs-text-punctuation";
|
|
6
|
-
readonly TextKeyword: "stldocs-text-keyword";
|
|
7
|
-
readonly ContentArea: "stldocs-content-area";
|
|
8
|
-
readonly Markdown: "stldocs-markdown";
|
|
9
|
-
readonly Content: "stldocs-content";
|
|
10
|
-
readonly Truncation: "stldocs-truncation";
|
|
11
|
-
readonly Expander: "stldocs-expander";
|
|
12
|
-
readonly ExpanderContent: "stldocs-expander-content";
|
|
13
|
-
readonly ExpanderSummary: "stldocs-expander-summary";
|
|
14
|
-
readonly ExpanderSummaryIcon: "stldocs-expander-summary-icon";
|
|
15
|
-
readonly ExpanderSummaryContent: "stldocs-expander-summary-content";
|
|
16
|
-
readonly ExpanderIndent: "stldocs-expander-indent";
|
|
17
|
-
readonly Badge: "stldocs-badge";
|
|
18
|
-
readonly Icon: "stldocs-icon";
|
|
19
|
-
readonly Tooltip: "stldocs-tooltip";
|
|
20
|
-
readonly TooltipHost: "stldocs-tooltip-host";
|
|
21
|
-
readonly TooltipContent: "stldocs-tooltip-content";
|
|
22
|
-
readonly Input: "stldocs-input";
|
|
23
|
-
readonly InputTextField: "stldocs-input-textfield";
|
|
24
|
-
readonly MaskedInputWrapper: "stldocs-masked-input-wrapper";
|
|
25
|
-
readonly MaskedInputDisplay: "stldocs-masked-input-display";
|
|
26
|
-
readonly MaskedInputObscured: "stldocs-masked-input-obscured";
|
|
27
|
-
readonly ToggleButton: "stldocs-togglebutton";
|
|
28
|
-
readonly ListView: "stldocs-listview";
|
|
29
|
-
readonly ListViewItem: "stldocs-listview-item";
|
|
30
|
-
readonly ExpandToggle: "stldocs-expand-toggle";
|
|
31
|
-
readonly ExpandToggleContent: "stldocs-expand-toggle-content";
|
|
32
|
-
readonly LoadingSpinner: "stldocs-loading-spinner";
|
|
33
|
-
readonly Type: "stldocs-type";
|
|
34
|
-
readonly TypeName: "stldocs-typename";
|
|
35
|
-
readonly TypeKeyword: "stldocs-type-keyword";
|
|
36
|
-
readonly TypeString: "stldocs-type-string";
|
|
37
|
-
readonly TypeArray: "stldocs-type-array";
|
|
38
|
-
readonly TypeReference: "stldocs-type-reference";
|
|
39
|
-
readonly TypeBracket: "stldocs-type-bracket";
|
|
40
|
-
readonly TypeBrace: "stldocs-type-brace";
|
|
41
|
-
readonly TypePropertyName: "stldocs-type-propertyname";
|
|
42
|
-
readonly TypePlain: "stldocs-type-plain";
|
|
43
|
-
readonly TypePreview: "stldocs-type-preview";
|
|
44
|
-
readonly TypePreviewContent: "stldocs-type-preview-content";
|
|
45
|
-
readonly LiteralString: "stldocs-literal-string";
|
|
46
|
-
readonly LiteralNumeric: "stldocs-literal-numeric";
|
|
47
|
-
readonly LiteralBoolean: "stldocs-literal-boolean";
|
|
48
|
-
readonly Snippet: "stldocs-snippet";
|
|
49
|
-
readonly SnippetCode: "stldocs-snippet-code";
|
|
50
|
-
readonly SnippetCodeContent: "stldocs-snippet-code-content";
|
|
51
|
-
readonly SnippetRequest: "stldocs-snippet-request";
|
|
52
|
-
readonly SnippetRequestTitle: "stldocs-snippet-request-title";
|
|
53
|
-
readonly SnippetRequestTitleContent: "stldocs-snippet-request-title-content";
|
|
54
|
-
readonly SnippetRequestTitleLabel: "stldocs-snippet-request-title-label";
|
|
55
|
-
readonly SnippetRequestTitleLanguage: "stldocs-snippet-request-title-language";
|
|
56
|
-
readonly SnippetRequestTitleMethod: "stldocs-snippet-request-title-method";
|
|
57
|
-
readonly SnippetResponse: "stldocs-snippet-response";
|
|
58
|
-
readonly SnippetMultiResponse: "stldocs-snippet-multi-response";
|
|
59
|
-
readonly SnippetResponseOpen: "stldocs-snippet-response-opened";
|
|
60
|
-
readonly SnippetResponseTab: "stldocs-snippet-response-tab";
|
|
61
|
-
readonly SnippetResponseTabItem: "stldocs-snippet-response-tab-item";
|
|
62
|
-
readonly SnippetResponseTabItemActive: "stldocs-snippet-response-tab-item-active";
|
|
63
|
-
readonly SnippetResponseTabSingleReturn: "stldocs-snippet-response-tab-single-return";
|
|
64
|
-
readonly SnippetResponsePane: "stldocs-snippet-response-pane";
|
|
65
|
-
readonly SnippetResponsePaneActive: "stldocs-snippet-response-pane-active";
|
|
66
|
-
readonly Method: "stldocs-method";
|
|
67
|
-
readonly MethodHeader: "stldocs-method-header";
|
|
68
|
-
readonly MethodBody: "stldocs-method-body";
|
|
69
|
-
readonly MethodInfo: "stldocs-method-info";
|
|
70
|
-
readonly MethodInfoSection: "stldocs-method-info-section";
|
|
71
|
-
readonly MethodExample: "stldocs-method-example";
|
|
72
|
-
readonly MethodResponseColumn: "stldocs-method-response-column";
|
|
73
|
-
readonly MethodTitle: "stldocs-method-title";
|
|
74
|
-
readonly MethodBadges: "stldocs-method-badges";
|
|
75
|
-
readonly MethodSignature: "stldocs-method-signature";
|
|
76
|
-
readonly MethodDescription: "stldocs-method-description";
|
|
77
|
-
readonly MethodParameters: "stldocs-method-parameters";
|
|
78
|
-
readonly MethodReturns: "stldocs-method-returns";
|
|
79
|
-
readonly MethodContent: "stldocs-method-content";
|
|
80
|
-
readonly MethodContentColumn: "stldocs-method-content-column";
|
|
81
|
-
readonly MethodRouteHttpMethod: "stldocs-method-route-httpmethod";
|
|
82
|
-
readonly MethodRouteHttpMethodIconOnly: "stldocs-method-route-httpmethod-icon-only";
|
|
83
|
-
readonly MethodRouteEndpoint: "stldocs-method-route-endpoint";
|
|
84
|
-
readonly MethodRoute: "stldocs-method-route";
|
|
85
|
-
readonly MethodSummary: "stldocs-method-summary";
|
|
86
|
-
readonly MethodSinglePane: "stldocs-method-single-pane";
|
|
87
|
-
readonly MethodDoublePane: "stldocs-method-double-pane";
|
|
88
|
-
readonly SignatureTitle: "stldocs-signature-title";
|
|
89
|
-
readonly SignatureName: "stldocs-signature-name";
|
|
90
|
-
readonly SignatureQualified: "stldocs-signature-qualified";
|
|
91
|
-
readonly SignatureParams: "stldoc-signature-params";
|
|
92
|
-
readonly SignatureParen: "stldocs-signature-paren";
|
|
93
|
-
readonly SignatureReturns: "stldocs-signature-returns";
|
|
94
|
-
readonly Property: "stldocs-property";
|
|
95
|
-
readonly Properties: "stldocs-properties";
|
|
96
|
-
readonly PropertyHeader: "stldocs-property-header";
|
|
97
|
-
readonly PropertyInfo: "stldocs-property-info";
|
|
98
|
-
readonly PropertyDeclaration: "stldocs-property-declaration";
|
|
99
|
-
readonly PropertyDeprecated: "stldocs-property-deprecated";
|
|
100
|
-
readonly PropertyDeprecatedMessage: "stldocs-property-deprecated-message";
|
|
101
|
-
readonly PropertyContent: "stldocs-property-content";
|
|
102
|
-
readonly PropertyChildren: "stldocs-property-children";
|
|
103
|
-
readonly PropertyConstraints: "stldocs-property-constraints";
|
|
104
|
-
readonly PropertyConstraint: "stldocs-property-constraint";
|
|
105
|
-
readonly PropertyConstraintName: "stldocs-property-constraint-name";
|
|
106
|
-
readonly PropertyConstraintValue: "stldocs-property-constraint-value";
|
|
107
|
-
readonly PropertyDefault: "stldocs-property-default";
|
|
108
|
-
readonly PropertyDescription: "stldocs-property-description";
|
|
109
|
-
readonly PropertyTitle: "stldocs-property-title";
|
|
110
|
-
readonly PropertyAnnotation: "stldocs-property-annotation";
|
|
111
|
-
readonly PropertyName: "stldocs-property-name";
|
|
112
|
-
readonly PropertyBadges: "stldocs-property-badges";
|
|
113
|
-
readonly PropertyTypeName: "stldocs-property-typename";
|
|
114
|
-
readonly PropertyType: "stldocs-property-type";
|
|
115
|
-
readonly Overview: "stldocs-overview";
|
|
116
|
-
readonly OverviewHeader: "stldocs-overview-header";
|
|
117
|
-
readonly OverviewHeaderInfo: "stldocs-overview-header-info";
|
|
118
|
-
readonly OverviewHeaderInfoTimestamp: "stldocs-overview-header-info-timestamp";
|
|
119
|
-
readonly Resource: "stldocs-resource";
|
|
120
|
-
readonly ResourceContent: "stldocs-resource-content";
|
|
121
|
-
readonly ResourceContentProperties: "stldocs-resource-content-properties";
|
|
122
|
-
readonly ResourceContentGroup: "stldocs-resource-content-group";
|
|
123
|
-
readonly ResourceContentGroupName: "stldocs-resource-content-group-name";
|
|
124
|
-
readonly ResourceContentGroupModelTitle: "stldocs-resource-content-group-model-title";
|
|
125
|
-
readonly ResourceHeader: "stldocs-resource-header";
|
|
126
|
-
readonly ResourceTitle: "stldocs-resource-title";
|
|
127
|
-
readonly ResourceTitleSegment: "stldocs-resource-title-segment";
|
|
128
|
-
readonly ResourceDescription: "stldocs-resource-description";
|
|
129
|
-
readonly ResourceName: "stldocs-resource-name";
|
|
130
|
-
readonly Model: "stldocs-model";
|
|
131
|
-
readonly Root: "stldocs-root";
|
|
132
|
-
readonly Sidebar: "stldocs-sidebar";
|
|
133
|
-
readonly SidebarResource: "stldocs-sidebar-resource";
|
|
134
|
-
readonly SidebarResourceTitle: "stldocs-sidebar-resource-title";
|
|
135
|
-
readonly SidebarMethod: "stldocs-sidebar-method";
|
|
136
|
-
readonly SidebarItemTitle: "stldocs-sidebar-resource-title";
|
|
137
|
-
readonly SidebarExpander: "stldocs-sidebar-expander";
|
|
138
|
-
readonly SidebarExpanderSummary: "stldocs-sidebar-expander-summary";
|
|
139
|
-
readonly SidebarExpanderContent: "stldocs-sidebar-expander-content";
|
|
140
|
-
readonly SearchForm: "stldocs-search-form";
|
|
141
|
-
readonly SearchModal: "stldocs-search-modal";
|
|
142
|
-
readonly SearchFilter: "stldocs-search-filter";
|
|
143
|
-
readonly SearchFilterLabel: "stldocs-search-filter-label";
|
|
144
|
-
readonly SearchFilterCount: "stldocs-search-filter-count";
|
|
145
|
-
readonly SearchBreadcrumb: "stldocs-search-breadcrumb";
|
|
146
|
-
readonly SearchBreadcrumbItem: "stldocs-search-breadcrumb-item";
|
|
147
|
-
readonly SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider";
|
|
148
|
-
readonly SearchResult: "stldocs-search-result";
|
|
149
|
-
readonly SearchResultResourceInfo: "stldocs-search-result-resource-info";
|
|
150
|
-
readonly SearchResultResourceTitle: "stldocs-search-result-resource-title";
|
|
151
|
-
readonly SearchResultResourcePath: "stldocs-search-result-resource-path";
|
|
152
|
-
readonly SearchResultGuideTitle: "stldocs-search-result-guide-title";
|
|
153
|
-
readonly SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt";
|
|
154
|
-
readonly LanguageBlock: "stldocs-language-block";
|
|
155
|
-
readonly LanguageBlockContent: "stldocs-language-block-content";
|
|
156
|
-
readonly LanguageBlockContentIcon: "stldocs-language-block-content-icon";
|
|
157
|
-
readonly LanguageBlockContentInfo: "stldocs-language-block-content-info";
|
|
158
|
-
readonly LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language";
|
|
159
|
-
readonly LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version";
|
|
160
|
-
readonly LanguageBlockLinks: "stldocs-language-block-links";
|
|
161
|
-
readonly LanguageBlockInstall: "stldocs-language-block-install";
|
|
162
|
-
readonly Breadcrumbs: "stldocs-breadcrumbs";
|
|
163
|
-
readonly BreadcrumbsItem: "stldocs-breadcrumbs-item";
|
|
164
|
-
readonly BreadcrumbsLink: "stldocs-breadcrumbs-link";
|
|
165
|
-
readonly BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link";
|
|
166
|
-
};
|
|
167
|
-
//#endregion
|
|
168
|
-
export { _default as t };
|
package/dist/utils-CqnL9Fc3.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Parser } from "htmlparser2";
|
|
2
|
-
|
|
3
|
-
//#region src/markdown/utils.ts
|
|
4
|
-
function getDecl(env, path) {
|
|
5
|
-
const decl = env.spec?.decls?.[env.language]?.[path];
|
|
6
|
-
if (decl?.kind?.endsWith("Reference")) {
|
|
7
|
-
const refId = "type" in decl && typeof decl["type"] === "object" && "$ref" in decl["type"] ? decl["type"]["$ref"] : null;
|
|
8
|
-
if (refId === path) return decl;
|
|
9
|
-
if (refId) return getDecl(env, refId);
|
|
10
|
-
}
|
|
11
|
-
return decl;
|
|
12
|
-
}
|
|
13
|
-
function getSnippet(env, path) {
|
|
14
|
-
const lang = env.language === "http" ? "http.curl" : `${env.language}.default`;
|
|
15
|
-
let snippet = env.spec?.snippets?.[lang]?.[path];
|
|
16
|
-
if (typeof snippet === "string" && env.transforms?.transformRequestSnippet) snippet = env.transforms.transformRequestSnippet({
|
|
17
|
-
snippet,
|
|
18
|
-
language: env.language
|
|
19
|
-
});
|
|
20
|
-
return snippet;
|
|
21
|
-
}
|
|
22
|
-
function stripMarkup(content) {
|
|
23
|
-
let output = "";
|
|
24
|
-
new Parser({ ontext(content$1) {
|
|
25
|
-
output += content$1;
|
|
26
|
-
} }).parseComplete(content);
|
|
27
|
-
return output;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { getSnippet as n, stripMarkup as r, getDecl as t };
|
package/dist/utils-DBenMgxx.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
|
-
import { C as TransformRequestSnippetFn } from "./sdk-C_2E2iNT.js";
|
|
3
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/utils.d.ts
|
|
6
|
-
type EnvironmentType = {
|
|
7
|
-
spec: SDKJSON.Spec;
|
|
8
|
-
language: DocsLanguage;
|
|
9
|
-
transforms?: {
|
|
10
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
11
|
-
};
|
|
12
|
-
options: {
|
|
13
|
-
renderNestedResources?: boolean;
|
|
14
|
-
includeModelProperties?: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
|
|
18
|
-
declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
|
|
19
|
-
declare function stripMarkup(content: string): string;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { stripMarkup as i, getDecl as n, getSnippet as r, EnvironmentType as t };
|
package/dist/utils-DLRASeee.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-Dhmv52Fd.js";
|
|
2
|
-
import { C as TransformRequestSnippetFn } from "./sdk-P5DGFIUC.js";
|
|
3
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
|
-
|
|
5
|
-
//#region src/markdown/utils.d.ts
|
|
6
|
-
type EnvironmentType = {
|
|
7
|
-
spec: SDKJSON.Spec;
|
|
8
|
-
language: DocsLanguage;
|
|
9
|
-
transforms?: {
|
|
10
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
11
|
-
};
|
|
12
|
-
options: {
|
|
13
|
-
renderNestedResources?: boolean;
|
|
14
|
-
includeModelProperties?: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
|
|
18
|
-
declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
|
|
19
|
-
declare function stripMarkup(content: string): string;
|
|
20
|
-
//#endregion
|
|
21
|
-
export { stripMarkup as i, getDecl as n, getSnippet as r, EnvironmentType as t };
|
package/dist/utils-d8paVwKN.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
2
|
-
|
|
3
|
-
//#region src/utils.d.ts
|
|
4
|
-
declare namespace utils_d_exports {
|
|
5
|
-
export { flatResources, getResourceFromSpec, isResourceEmpty };
|
|
6
|
-
}
|
|
7
|
-
declare function flatResources(resources: Record<string, SDKJSON.Resource> | undefined, parents: SDKJSON.Resource[]): {
|
|
8
|
-
resource: SDKJSON.Resource;
|
|
9
|
-
parents: SDKJSON.Resource[];
|
|
10
|
-
}[];
|
|
11
|
-
declare function getResourceFromSpec(stainlessPath: string | string[], spec: SDKJSON.Spec): SDKJSON.Resource | null;
|
|
12
|
-
declare function isResourceEmpty(resource: SDKJSON.Resource): boolean;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { utils_d_exports as i, getResourceFromSpec as n, isResourceEmpty as r, flatResources as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|