@mintlify/common 1.0.539 → 1.0.540

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.
@@ -6,4 +6,3 @@ export * from './lib/index.js';
6
6
  export * from './getMDXOptions.js';
7
7
  export * from './astUtils.js';
8
8
  export * from './getS3ImageUri.js';
9
- export * from './getCodeStyling.js';
package/dist/mdx/index.js CHANGED
@@ -6,4 +6,3 @@ export * from './lib/index.js';
6
6
  export * from './getMDXOptions.js';
7
7
  export * from './astUtils.js';
8
8
  export * from './getS3ImageUri.js';
9
- export * from './getCodeStyling.js';
@@ -1,6 +1,6 @@
1
1
  import { type SerializeSuccess } from '@mintlify/mdx';
2
2
  import type { PageMetaTags, PageType } from '@mintlify/models';
3
- import { CodeStyling, DocsConfig } from '@mintlify/validation';
3
+ import { CodeStyling, DocsConfig } from '@mintlify/validation/dist/mint-config/schemas/v2/index.js';
4
4
  import { MdxExtracts } from '../../index.js';
5
5
  import { createSnippetTreeMap, type Snippet } from './getMdx/snippets.js';
6
6
  export type GetMdxType = {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  import { serialize } from '@mintlify/mdx';
11
11
  import { getTailwindSelectors } from '../../css/tailwind.js';
12
12
  import { getMDXOptions, remarkMdxRemoveJs, remarkExpandContent, remarkSplitCodeGroup, remarkSplitTabs, remarkValidateSteps, remarkValidateTabs, } from '../../index.js';
13
- import { codeStylingToSyntaxHighlightingOptions } from '../getCodeStyling.js';
14
13
  import { createSnippetTreeMap } from './getMdx/snippets.js';
15
14
  export function getMdx(_a) {
16
15
  return __awaiter(this, arguments, void 0, function* ({ path, content, metadata, snippets, subdomain, codeStyling, config, tailwindSelectors = undefined, pageType = 'default', }) {
@@ -71,13 +70,14 @@ function compileMdx(content, scope, mdxOptions, mdxOptionsNoJs, codeStyling, pat
71
70
  }
72
71
  function getCompiledMdxWithFallback(source, scope, mdxOptions, codeStyling, path) {
73
72
  return __awaiter(this, void 0, void 0, function* () {
74
- const codeStylingOrThemeOrThemes = codeStylingToSyntaxHighlightingOptions(codeStyling);
75
73
  try {
76
74
  const result = yield serialize({
77
75
  source,
78
76
  scope,
79
77
  mdxOptions,
80
- syntaxHighlightingOptions: Object.assign({}, codeStylingOrThemeOrThemes),
78
+ syntaxHighlightingOptions: {
79
+ codeStyling,
80
+ },
81
81
  });
82
82
  if ('error' in result) {
83
83
  throw result.error;