@redocly/reference-docs 2.43.2 → 2.43.4

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.
Files changed (38) hide show
  1. package/bin/cli/commands/redocly-docs-cli.min.js +4 -4
  2. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +1 -1
  3. package/dist/console.redocly-reference-docs.min.js +1 -1
  4. package/dist/oauth2-redirect.js +1 -1
  5. package/dist/redocly-reference-docs.min.js +529 -528
  6. package/lib/redoc-lib/src/utils/helpers.d.ts +2 -0
  7. package/lib/redoc-lib/src/utils/helpers.js +1 -1
  8. package/lib/redoc-lib/src/utils/object.d.ts +3 -0
  9. package/lib/redoc-lib/src/utils/object.js +2 -0
  10. package/lib/services/code-samples/generator.js +1 -1
  11. package/lib/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  12. package/lib/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  13. package/lib/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  14. package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  15. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  16. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  17. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  18. package/lib/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  19. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  20. package/lib/services/code-samples/httpsnippet/targets/index.js +1 -1
  21. package/lib/services/code-samples/types.d.ts +5 -2
  22. package/lib-esm/redoc-lib/src/utils/helpers.d.ts +2 -0
  23. package/lib-esm/redoc-lib/src/utils/helpers.js +1 -1
  24. package/lib-esm/redoc-lib/src/utils/object.d.ts +3 -0
  25. package/lib-esm/redoc-lib/src/utils/object.js +2 -0
  26. package/lib-esm/services/code-samples/generator.js +1 -1
  27. package/lib-esm/services/code-samples/httpsnippet/helpers/code-builder.js +1 -1
  28. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.d.ts +1 -0
  29. package/lib-esm/services/code-samples/httpsnippet/helpers/constants.js +1 -1
  30. package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
  31. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.d.ts +10 -0
  32. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/httpclient.js +2 -0
  33. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.d.ts +10 -0
  34. package/lib-esm/services/code-samples/httpsnippet/targets/csharpNewtonsoft/index.js +2 -0
  35. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +9 -0
  36. package/lib-esm/services/code-samples/httpsnippet/targets/index.js +1 -1
  37. package/lib-esm/services/code-samples/types.d.ts +5 -2
  38. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export declare type Languages = 'JavaScript' | 'Node.js' | 'curl' | 'Java8+Apache' | 'Java' | 'Python' | 'Go' | 'PHP' | 'C#' | 'Ruby' | 'R';
1
+ export declare type Languages = 'JavaScript' | 'Node.js' | 'curl' | 'Java8+Apache' | 'Java' | 'Python' | 'Go' | 'PHP' | 'C#' | 'C#+Newtonsoft' | 'Ruby' | 'R';
2
2
  export interface BasicLanguageOptions {
3
3
  indent?: string;
4
4
  withImports?: boolean;
@@ -39,6 +39,9 @@ export interface JavaCodeSampleConfig extends CodeSampleBasicConfig {
39
39
  export interface CSharpCodeSampleConfig extends CodeSampleBasicConfig {
40
40
  lang: 'C#';
41
41
  }
42
+ export interface CSharpNewtonsoftCodeSampleConfig extends CodeSampleBasicConfig {
43
+ lang: 'C#+Newtonsoft';
44
+ }
42
45
  export interface PHPCodeSampleConfig extends CodeSampleBasicConfig {
43
46
  lang: 'PHP';
44
47
  }
@@ -48,7 +51,7 @@ export interface RubyCodeSampleConfig extends CodeSampleBasicConfig {
48
51
  export interface RCodeSampleConfig extends CodeSampleBasicConfig {
49
52
  lang: 'R';
50
53
  }
51
- export declare type CodeSampleConfig = cURULCodeSampleConfig | JavaScriptCodeSampleConfig | NodeJsCodeSampleConfig | PythonCodeSampleConfig | Java8CodeSampleConfig | JavaCodeSampleConfig | CSharpCodeSampleConfig | PHPCodeSampleConfig | GoCodeSampleConfig | RubyCodeSampleConfig | RCodeSampleConfig;
54
+ export declare type CodeSampleConfig = cURULCodeSampleConfig | JavaScriptCodeSampleConfig | NodeJsCodeSampleConfig | PythonCodeSampleConfig | Java8CodeSampleConfig | JavaCodeSampleConfig | CSharpCodeSampleConfig | CSharpNewtonsoftCodeSampleConfig | PHPCodeSampleConfig | GoCodeSampleConfig | RubyCodeSampleConfig | RCodeSampleConfig;
52
55
  /**
53
56
  * Code Samples Generator rules
54
57
  * - Reference docs always displays all user custom x-code-samples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/reference-docs",
3
- "version": "2.43.2",
3
+ "version": "2.43.4",
4
4
  "description": "Redocly Reference Docs",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib-esm/index.js",