@sanity/code-input 2.29.5-purple-unicorn-remix.873 → 2.29.5-purple-unicorn-remix.962
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/lib/CodeInput.cjs +1 -1
- package/lib/CodeInput.js +1 -1
- package/lib/_CodeInput-595aecc0.cjs +860 -0
- package/lib/_CodeInput-595aecc0.cjs.map +1 -0
- package/lib/_CodeInput-af3045a8.js +849 -0
- package/lib/_CodeInput-af3045a8.js.map +1 -0
- package/lib/dts/src/CodeInput.d.ts.map +1 -1
- package/lib/dts/src/CodeInput.js +4 -4
- package/lib/dts/src/CodeInput.js.map +1 -1
- package/lib/dts/tsconfig.tsbuildinfo +1 -1
- package/lib/index.cjs +1 -1
- package/lib/index.js +1 -1
- package/lib/schema.cjs +1 -1
- package/lib/schema.js +1 -1
- package/package.json +6 -6
- package/src/CodeInput.tsx +4 -0
package/lib/index.cjs
CHANGED
|
@@ -4,7 +4,7 @@ var base = require('@sanity/base');
|
|
|
4
4
|
var schema = require('./schema.cjs');
|
|
5
5
|
require('react');
|
|
6
6
|
require('@sanity/icons');
|
|
7
|
-
require('./_CodeInput-
|
|
7
|
+
require('./_CodeInput-595aecc0.cjs');
|
|
8
8
|
require('@sanity/base/form');
|
|
9
9
|
require('@sanity/ui');
|
|
10
10
|
require('react-ace');
|
package/lib/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createPlugin } from '@sanity/base';
|
|
|
2
2
|
import schema from './schema.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@sanity/icons';
|
|
5
|
-
import './_CodeInput-
|
|
5
|
+
import './_CodeInput-af3045a8.js';
|
|
6
6
|
import '@sanity/base/form';
|
|
7
7
|
import '@sanity/ui';
|
|
8
8
|
import 'react-ace';
|
package/lib/schema.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var icons = require('@sanity/icons');
|
|
5
|
-
var CodeInput = require('./_CodeInput-
|
|
5
|
+
var CodeInput = require('./_CodeInput-595aecc0.cjs');
|
|
6
6
|
var AceEditor = require('react-ace');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
8
|
var ui = require('@sanity/ui');
|
package/lib/schema.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useRef, useEffect, useCallback } from 'react';
|
|
2
2
|
import { CodeBlockIcon } from '@sanity/icons';
|
|
3
|
-
import { c as createHighlightMarkers, A as ACE_SET_OPTIONS, a as ACE_EDITOR_PROPS, C as CodeInput } from './_CodeInput-
|
|
3
|
+
import { c as createHighlightMarkers, A as ACE_SET_OPTIONS, a as ACE_EDITOR_PROPS, C as CodeInput } from './_CodeInput-af3045a8.js';
|
|
4
4
|
import AceEditor from 'react-ace';
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import { Box } from '@sanity/ui';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/code-input",
|
|
3
|
-
"version": "2.29.5-purple-unicorn-remix.
|
|
3
|
+
"version": "2.29.5-purple-unicorn-remix.962+3b861ed9e",
|
|
4
4
|
"description": "Ace editor for editing code",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/index.cjs",
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@sanity/icons": "^1.3.0",
|
|
68
68
|
"@sanity/ui": "^0.37.11",
|
|
69
|
-
"@sanity/util": "2.29.5-purple-unicorn-remix.
|
|
69
|
+
"@sanity/util": "2.29.5-purple-unicorn-remix.962+3b861ed9e",
|
|
70
70
|
"ace-builds": "^1.4.13",
|
|
71
71
|
"react-ace": "^9.5.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@sanity/base": "2.29.5-purple-unicorn-remix.
|
|
74
|
+
"@sanity/base": "2.29.5-purple-unicorn-remix.962+3b861ed9e",
|
|
75
75
|
"@sanity/form-builder": "2.30.0",
|
|
76
|
-
"@sanity/types": "2.29.5-purple-unicorn-remix.
|
|
76
|
+
"@sanity/types": "2.29.5-purple-unicorn-remix.962+3b861ed9e",
|
|
77
77
|
"@sanity/ui-workshop": "^0.4.3",
|
|
78
78
|
"react": "17.0.2",
|
|
79
79
|
"rimraf": "^3.0.2",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"@sanity/types": "^2.14",
|
|
86
86
|
"@sanity/util": "2.27",
|
|
87
87
|
"prop-types": "^15.6 || ^16",
|
|
88
|
-
"react": "^16.9 || ^17",
|
|
88
|
+
"react": "^16.9 || ^17 || ^18",
|
|
89
89
|
"styled-components": "^5.2.0"
|
|
90
90
|
},
|
|
91
91
|
"bugs": {
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"url": "git+https://github.com/sanity-io/sanity.git",
|
|
98
98
|
"directory": "packages/@sanity/code-input"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "3b861ed9e9c24f2672cb42f0e9def3f0ab95dee2"
|
|
101
101
|
}
|
package/src/CodeInput.tsx
CHANGED
|
@@ -95,6 +95,7 @@ export function CodeInput(props: CodeInputProps) {
|
|
|
95
95
|
renderField,
|
|
96
96
|
renderInput,
|
|
97
97
|
renderItem,
|
|
98
|
+
renderPreview,
|
|
98
99
|
schemaType: type,
|
|
99
100
|
value,
|
|
100
101
|
} = props
|
|
@@ -308,6 +309,7 @@ export function CodeInput(props: CodeInputProps) {
|
|
|
308
309
|
renderItem={renderItem}
|
|
309
310
|
renderField={renderField}
|
|
310
311
|
renderInput={renderLanguageInput}
|
|
312
|
+
renderPreview={renderPreview}
|
|
311
313
|
/>
|
|
312
314
|
)}
|
|
313
315
|
|
|
@@ -317,6 +319,7 @@ export function CodeInput(props: CodeInputProps) {
|
|
|
317
319
|
renderItem={renderItem}
|
|
318
320
|
renderField={renderField}
|
|
319
321
|
renderInput={renderInput}
|
|
322
|
+
renderPreview={renderPreview}
|
|
320
323
|
/>
|
|
321
324
|
)}
|
|
322
325
|
|
|
@@ -326,6 +329,7 @@ export function CodeInput(props: CodeInputProps) {
|
|
|
326
329
|
renderInput={renderCodeInput}
|
|
327
330
|
renderItem={renderItem}
|
|
328
331
|
renderField={renderField}
|
|
332
|
+
renderPreview={renderPreview}
|
|
329
333
|
/>
|
|
330
334
|
)}
|
|
331
335
|
</Stack>
|