@sanity/code-input 7.2.10 → 7.3.1

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/index.d.ts CHANGED
@@ -67,6 +67,8 @@ declare const codeSchema: {
67
67
  highlightedLines: string;
68
68
  }, Record<"code" | "filename" | "highlightedLines" | "language", any>> | undefined;
69
69
  };
70
+ declare const SUPPORTED_LANGUAGES: CodeInputLanguage[];
71
+ declare const LANGUAGE_ALIASES: Record<string, string | undefined>;
70
72
  /**
71
73
  * @public
72
74
  */
@@ -95,5 +97,5 @@ interface CodeInputConfig {
95
97
  * @public
96
98
  */
97
99
  declare const codeInput: Plugin<CodeInputConfig | void>;
98
- export { type CodeDefinition, type CodeInput, type CodeInputLanguage, type CodeInputProps, type CodeInputValue, type CodeOptions, type CodeSchemaType, PreviewCode, type PreviewCodeProps, codeInput, codeSchema, codeTypeName };
100
+ export { type CodeDefinition, type CodeInput, type CodeInputLanguage, type CodeInputProps, type CodeInputValue, type CodeOptions, type CodeSchemaType, LANGUAGE_ALIASES, PreviewCode, type PreviewCodeProps, SUPPORTED_LANGUAGES, codeInput, codeSchema, codeTypeName };
99
101
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/schema.tsx","../src/CodeInput.tsx","../src/PreviewCode.tsx","../src/codemirror/defaultCodeModes.ts","../src/plugin.tsx"],"mappings":";;UAEiB;EACf;EACA;EACA;;;;;UAMe;EACf;EACA;EACA;EACA;EACA;;;;;UAKe;EACf;EACA;EACA,uBAAuB;EACvB;EACA;;;;;;EAMA;;;;;UAMe,uBAAuB,KAAK;EAC3C,UAAU;;;;;cC5BC;;;;UAKI,uBAAuB,KAAK;EAC3C,aAAa;EACb,UAAU;;;YAKO;IACf,MAAM;;;;;;cAOG;;;;;;;;;;;;;;UCPI,uBAAuB,iBAAiB,gBAAgB;;iBAGzD,UAAU,OAAO,iBAAiB,MAAM,IAAI;;;;UCX3C,yBAAyB;EACxC,YAAY;;;;;iBAME,YAAY,OAAO,mBAAmB,MAAM,IAAI;UCpB/C;EACf;EACA,QAAQ;;KAEE,mBAAmB,QAAQ,yBAAyB;UCD/C;EACf,YAAY;;;;;cAMD,WAAW,OAAO"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/schema.tsx","../src/config.ts","../src/CodeInput.tsx","../src/PreviewCode.tsx","../src/codemirror/defaultCodeModes.ts","../src/plugin.tsx"],"mappings":";;UAEiB;EACf;EACA;EACA;;;;;UAMe;EACf;EACA;EACA;EACA;EACA;;;;;UAKe;EACf;EACA;EACA,uBAAuB;EACvB;EACA;;;;;;EAMA;;;;;UAMe,uBAAuB,KAAK;EAC3C,UAAU;;;;;cC5BC;;;;UAKI,uBAAuB,KAAK;EAC3C,aAAa;EACb,UAAU;;;YAKO;IACf,MAAM;;;;;;cAOG;;;;;;;;;;;cC5BA,qBAAqB;cA2BrB,kBAAkB;;;;UCNd,uBAAuB,iBAAiB,gBAAgB;;iBAGzD,UAAU,OAAO,iBAAiB,MAAM,IAAI;;;;UCX3C,yBAAyB;EACxC,YAAY;;;;;iBAME,YAAY,OAAO,mBAAmB,MAAM,IAAI;UCpB/C;EACf;EACA,QAAQ;;KAEE,mBAAmB,QAAQ,yBAAyB;UCD/C;EACf,YAAY;;;;;cAMD,WAAW,OAAO"}
package/dist/index.js CHANGED
@@ -660,6 +660,6 @@ const codeTypeName = "code", codeSchema = defineType({
660
660
  }) : props.renderDefault(props) } }
661
661
  } : basePlugin;
662
662
  });
663
- export { PreviewCode, codeInput, codeSchema, codeTypeName };
663
+ export { LANGUAGE_ALIASES, PreviewCode, SUPPORTED_LANGUAGES, codeInput, codeSchema, codeTypeName };
664
664
 
665
665
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/code-input",
3
- "version": "7.2.10",
3
+ "version": "7.3.1",
4
4
  "description": "Sanity input component for code, powered by CodeMirror",
5
5
  "keywords": [
6
6
  "cms",
@@ -45,22 +45,22 @@
45
45
  "@codemirror/state": "^6.7.1",
46
46
  "@codemirror/view": "^6.43.6",
47
47
  "@lezer/highlight": "^1.2.3",
48
- "@sanity/icons": "^5.1.0",
48
+ "@sanity/icons": "^5.2.0",
49
49
  "@sanity/lezer-groq": "^1.0.4",
50
- "@sanity/ui": "^3.3.5",
50
+ "@sanity/ui": "^3.4.0",
51
51
  "@uiw/codemirror-themes": "^4.25.11",
52
52
  "@uiw/react-codemirror": "^4.25.11"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@sanity/tsconfig": "^2.2.1",
56
- "@sanity/tsdown-config": "^0.19.3",
56
+ "@sanity/tsdown-config": "^0.19.6",
57
57
  "@types/node": "^24.13.3",
58
58
  "@types/react": "^19.2.17",
59
59
  "babel-plugin-react-compiler": "^1.0.0",
60
60
  "react": "^19.2.7",
61
61
  "sanity": "^6.5.0",
62
- "styled-components": "^6.4.3",
63
- "tsdown": "^0.22.9"
62
+ "styled-components": "^6.4.4",
63
+ "tsdown": "^0.22.12"
64
64
  },
65
65
  "peerDependencies": {
66
66
  "react": "^19.2",