@sanity/code-input 2.29.5-get-started-template.14 → 2.29.5-purple-unicorn.806
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/CodeInput.js +7 -0
- package/deprecatedSchema.js +7 -0
- package/lib/CodeInput.cjs +39 -0
- package/lib/CodeInput.cjs.map +1 -0
- package/lib/CodeInput.js +33 -333
- package/lib/CodeInput.js.map +1 -0
- package/lib/_CodeInput-d6f5810b.js +846 -0
- package/lib/_CodeInput-d6f5810b.js.map +1 -0
- package/lib/_CodeInput-f70e9606.cjs +857 -0
- package/lib/_CodeInput-f70e9606.cjs.map +1 -0
- package/lib/_reExport.js +19 -0
- package/lib/deprecatedSchema.cjs +23 -0
- package/lib/deprecatedSchema.cjs.map +1 -0
- package/lib/deprecatedSchema.js +19 -24
- package/lib/deprecatedSchema.js.map +1 -0
- package/lib/dts/src/CodeInput.d.ts +17 -0
- package/lib/dts/src/CodeInput.d.ts.map +1 -0
- package/lib/dts/src/CodeInput.js +155 -0
- package/lib/dts/src/CodeInput.js.map +1 -0
- package/{dist/dts → lib/dts/src}/PreviewCode.d.ts +8 -8
- package/lib/dts/src/PreviewCode.d.ts.map +1 -0
- package/lib/dts/src/PreviewCode.js +50 -0
- package/lib/dts/src/PreviewCode.js.map +1 -0
- package/lib/dts/src/__workshop__/dev.d.ts +3 -0
- package/lib/dts/src/__workshop__/dev.d.ts.map +1 -0
- package/lib/dts/src/__workshop__/dev.js +18 -0
- package/lib/dts/src/__workshop__/dev.js.map +1 -0
- package/lib/dts/src/__workshop__/index.d.ts +3 -0
- package/lib/dts/src/__workshop__/index.d.ts.map +1 -0
- package/lib/dts/src/__workshop__/index.js +10 -0
- package/lib/dts/src/__workshop__/index.js.map +1 -0
- package/{dist/dts → lib/dts/src}/config.d.ts +15 -15
- package/lib/dts/src/config.d.ts.map +1 -0
- package/lib/dts/src/config.js +38 -0
- package/lib/dts/src/config.js.map +1 -0
- package/{dist/dts → lib/dts/src}/createHighlightMarkers.d.ts +3 -3
- package/lib/dts/src/createHighlightMarkers.d.ts.map +1 -0
- package/lib/dts/src/createHighlightMarkers.js +22 -0
- package/lib/dts/src/createHighlightMarkers.js.map +1 -0
- package/{dist/dts → lib/dts/src}/deprecatedSchema.d.ts +11 -11
- package/lib/dts/src/deprecatedSchema.d.ts.map +1 -0
- package/lib/dts/src/deprecatedSchema.js +19 -0
- package/lib/dts/src/deprecatedSchema.js.map +1 -0
- package/{dist/dts → lib/dts/src}/editorSupport.d.ts +27 -27
- package/lib/dts/src/editorSupport.d.ts.map +1 -0
- package/lib/dts/src/editorSupport.js +32 -0
- package/lib/dts/src/editorSupport.js.map +1 -0
- package/{dist/dts → lib/dts/src}/getMedia.d.ts +2 -2
- package/lib/dts/src/getMedia.d.ts.map +1 -0
- package/lib/dts/src/getMedia.js +35 -0
- package/lib/dts/src/getMedia.js.map +1 -0
- package/lib/dts/src/groq.d.ts +2 -0
- package/lib/dts/src/groq.d.ts.map +1 -0
- package/lib/dts/src/groq.js +612 -0
- package/lib/dts/src/groq.js.map +1 -0
- package/lib/dts/src/index.d.ts +4 -0
- package/lib/dts/src/index.d.ts.map +1 -0
- package/lib/dts/src/index.js +7 -0
- package/lib/dts/src/index.js.map +1 -0
- package/lib/dts/src/schema.d.ts +47 -0
- package/lib/dts/src/schema.d.ts.map +1 -0
- package/lib/dts/src/schema.js +59 -0
- package/lib/dts/src/schema.js.map +1 -0
- package/{dist/dts → lib/dts/src}/types.d.ts +28 -28
- package/lib/dts/src/types.d.ts.map +1 -0
- package/lib/dts/src/types.js +2 -0
- package/lib/dts/src/types.js.map +1 -0
- package/lib/dts/tsconfig.tsbuildinfo +1 -0
- package/lib/index.cjs +45 -0
- package/lib/index.cjs.map +1 -0
- package/lib/index.js +43 -0
- package/lib/index.js.map +1 -0
- package/lib/schema.cjs +174 -0
- package/lib/schema.cjs.map +1 -0
- package/lib/schema.js +159 -62
- package/lib/schema.js.map +1 -0
- package/package.json +63 -12
- package/schema.js +7 -0
- package/src/CodeInput.tsx +327 -0
- package/src/PreviewCode.tsx +89 -0
- package/src/__workshop__/dev.tsx +35 -0
- package/src/__workshop__/index.ts +10 -0
- package/src/config.ts +45 -0
- package/src/createHighlightMarkers.ts +24 -0
- package/src/deprecatedSchema.ts +19 -0
- package/src/editorSupport.ts +33 -0
- package/src/getMedia.tsx +95 -0
- package/src/groq.ts +630 -0
- package/src/index.ts +11 -0
- package/src/schema.tsx +69 -0
- package/src/types.ts +26 -0
- package/dist/dts/CodeInput.d.ts +0 -23
- package/dist/dts/CodeInput.d.ts.map +0 -1
- package/dist/dts/PreviewCode.d.ts.map +0 -1
- package/dist/dts/config.d.ts.map +0 -1
- package/dist/dts/createHighlightMarkers.d.ts.map +0 -1
- package/dist/dts/deprecatedSchema.d.ts.map +0 -1
- package/dist/dts/editorSupport.d.ts.map +0 -1
- package/dist/dts/getMedia.d.ts.map +0 -1
- package/dist/dts/groq.d.ts +0 -376
- package/dist/dts/groq.d.ts.map +0 -1
- package/dist/dts/schema.d.ts +0 -44
- package/dist/dts/schema.d.ts.map +0 -1
- package/dist/dts/types.d.ts.map +0 -1
- package/lib/@types/css.d.js +0 -1
- package/lib/PreviewCode.js +0 -79
- package/lib/config.js +0 -103
- package/lib/createHighlightMarkers.js +0 -31
- package/lib/editorSupport.js +0 -55
- package/lib/getMedia.js +0 -110
- package/lib/groq.js +0 -414
- package/lib/types.js +0 -5
- package/tsconfig.json +0 -26
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CodeInput } from './CodeInput';
|
|
3
|
+
export type { CodeInputProps, CodeSchemaType } from './CodeInput';
|
|
4
|
+
export type { CodeInputLanguage, CodeInputValue } from './types';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
name: string;
|
|
7
|
+
type: string;
|
|
8
|
+
title: string;
|
|
9
|
+
components: {
|
|
10
|
+
input: typeof CodeInput;
|
|
11
|
+
};
|
|
12
|
+
icon: React.ForwardRefExoticComponent<Pick<React.SVGProps<SVGSVGElement>, "string" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "style" | "target" | "type" | "width" | "role" | "tabIndex" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPath" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fill" | "fillOpacity" | "fillRule" | "filter" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "horizAdvX" | "horizOriginX" | "href" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "mask" | "maskContentUnits" | "maskUnits" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "path" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "seed" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "values" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<SVGSVGElement>>;
|
|
13
|
+
fields: ({
|
|
14
|
+
name: string;
|
|
15
|
+
title: string;
|
|
16
|
+
type: string;
|
|
17
|
+
of?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
title: string;
|
|
20
|
+
name: string;
|
|
21
|
+
type: string;
|
|
22
|
+
of: {
|
|
23
|
+
type: string;
|
|
24
|
+
title: string;
|
|
25
|
+
}[];
|
|
26
|
+
})[];
|
|
27
|
+
preview: {
|
|
28
|
+
select: {
|
|
29
|
+
language: string;
|
|
30
|
+
code: string;
|
|
31
|
+
filename: string;
|
|
32
|
+
highlightedLines: string;
|
|
33
|
+
};
|
|
34
|
+
prepare: (value: {
|
|
35
|
+
language?: string;
|
|
36
|
+
code?: string;
|
|
37
|
+
filename?: string;
|
|
38
|
+
highlightedLines?: number[];
|
|
39
|
+
}) => {
|
|
40
|
+
title: string;
|
|
41
|
+
media: JSX.Element | undefined;
|
|
42
|
+
extendedPreview: JSX.Element;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
47
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/schema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AAIrC,YAAY,EAAC,cAAc,EAAE,cAAc,EAAC,MAAM,aAAa,CAAA;AAE/D,YAAY,EAAC,iBAAiB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA+CzC;YACf,QAAQ,CAAC,EAAE,MAAM,CAAA;YACjB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,QAAQ,CAAC,EAAE,MAAM,CAAA;YACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;SAC5B;;;;;;;AA9CL,wBAsDC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CodeBlockIcon } from '@sanity/icons';
|
|
3
|
+
import { CodeInput } from './CodeInput';
|
|
4
|
+
import PreviewCode from './PreviewCode';
|
|
5
|
+
import { getMedia } from './getMedia';
|
|
6
|
+
const Preview = (props) => {
|
|
7
|
+
return React.createElement(PreviewCode, { ...props });
|
|
8
|
+
};
|
|
9
|
+
export default {
|
|
10
|
+
name: 'code',
|
|
11
|
+
type: 'object',
|
|
12
|
+
title: 'Code',
|
|
13
|
+
components: { input: CodeInput },
|
|
14
|
+
icon: CodeBlockIcon,
|
|
15
|
+
fields: [
|
|
16
|
+
{
|
|
17
|
+
name: 'language',
|
|
18
|
+
title: 'Language',
|
|
19
|
+
type: 'string',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'filename',
|
|
23
|
+
title: 'Filename',
|
|
24
|
+
type: 'string',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: 'Code',
|
|
28
|
+
name: 'code',
|
|
29
|
+
type: 'text',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'Highlighted lines',
|
|
33
|
+
name: 'highlightedLines',
|
|
34
|
+
type: 'array',
|
|
35
|
+
of: [
|
|
36
|
+
{
|
|
37
|
+
type: 'number',
|
|
38
|
+
title: 'Highlighted line',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
preview: {
|
|
44
|
+
select: {
|
|
45
|
+
language: 'language',
|
|
46
|
+
code: 'code',
|
|
47
|
+
filename: 'filename',
|
|
48
|
+
highlightedLines: 'highlightedLines',
|
|
49
|
+
},
|
|
50
|
+
prepare: (value) => {
|
|
51
|
+
return {
|
|
52
|
+
title: value.filename || (value.language || 'unknown').toUpperCase(),
|
|
53
|
+
media: getMedia(value?.language),
|
|
54
|
+
extendedPreview: React.createElement(Preview, { value: value }),
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAA;AACrC,OAAO,WAA+B,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AAMnC,MAAM,OAAO,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC1C,OAAO,oBAAC,WAAW,OAAK,KAAK,GAAI,CAAA;AACnC,CAAC,CAAA;AAED,eAAe;IACb,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,MAAM;IACb,UAAU,EAAE,EAAC,KAAK,EAAE,SAAS,EAAC;IAC9B,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE;QACN;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;SACf;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,QAAQ;SACf;QACD;YACE,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;SACb;QACD;YACE,KAAK,EAAE,mBAAmB;YAC1B,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,OAAO;YACb,EAAE,EAAE;gBACF;oBACE,IAAI,EAAE,QAAQ;oBACd,KAAK,EAAE,kBAAkB;iBAC1B;aACF;SACF;KACF;IACD,OAAO,EAAE;QACP,MAAM,EAAE;YACN,QAAQ,EAAE,UAAU;YACpB,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,UAAU;YACpB,gBAAgB,EAAE,kBAAkB;SACrC;QACD,OAAO,EAAE,CAAC,KAKT,EAAE,EAAE;YACH,OAAO;gBACL,KAAK,EAAE,KAAK,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,SAAS,CAAC,CAAC,WAAW,EAAE;gBACpE,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;gBAChC,eAAe,EAAE,oBAAC,OAAO,IAAC,KAAK,EAAE,KAAK,GAAI;aAC3C,CAAA;QACH,CAAC;KACF;CACF,CAAA"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export interface CodeInputLanguage {
|
|
2
|
-
title: string;
|
|
3
|
-
value: string;
|
|
4
|
-
mode?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface CodeInputType {
|
|
7
|
-
name?: string;
|
|
8
|
-
title?: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
fields: {
|
|
11
|
-
name: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
}[];
|
|
15
|
-
options?: {
|
|
16
|
-
theme?: string;
|
|
17
|
-
languageAlternatives: CodeInputLanguage[];
|
|
18
|
-
language: string;
|
|
19
|
-
withFilename?: boolean;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface CodeInputValue {
|
|
23
|
-
_type?: 'code';
|
|
24
|
-
code?: string;
|
|
25
|
-
filename?: string;
|
|
26
|
-
language?: string;
|
|
27
|
-
highlightedLines?: number[];
|
|
28
|
-
}
|
|
1
|
+
export interface CodeInputLanguage {
|
|
2
|
+
title: string;
|
|
3
|
+
value: string;
|
|
4
|
+
mode?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface CodeInputType {
|
|
7
|
+
name?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
fields: {
|
|
11
|
+
name: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}[];
|
|
15
|
+
options?: {
|
|
16
|
+
theme?: string;
|
|
17
|
+
languageAlternatives: CodeInputLanguage[];
|
|
18
|
+
language: string;
|
|
19
|
+
withFilename?: boolean;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface CodeInputValue {
|
|
23
|
+
_type?: 'code';
|
|
24
|
+
code?: string;
|
|
25
|
+
filename?: string;
|
|
26
|
+
language?: string;
|
|
27
|
+
highlightedLines?: number[];
|
|
28
|
+
}
|
|
29
29
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAA;IAC9D,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,oBAAoB,EAAE,iBAAiB,EAAE,CAAA;QACzC,QAAQ,EAAE,MAAM,CAAA;QAChB,YAAY,CAAC,EAAE,OAAO,CAAA;KACvB,CAAA;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":""}
|