@sanity/assist 6.0.2 → 6.0.3
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.js +15 -11
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -4024,12 +4024,24 @@ const PteMods = styled(Box).withConfig({
|
|
|
4024
4024
|
componentId: "sc-grsj10-0"
|
|
4025
4025
|
})`& [data-testid='pt-editor__toolbar-card'] > div > div:last-child{display:none;}& [data-testid='pt-editor']{min-height:300px;}& [data-testid='pt-editor'] .pt-inline-object *{max-width:400px;}`;
|
|
4026
4026
|
function PromptInput(props) {
|
|
4027
|
-
const $ = c(
|
|
4027
|
+
const $ = c(5);
|
|
4028
4028
|
useOnlyInlineBlocks(props);
|
|
4029
4029
|
let t0;
|
|
4030
|
-
$[0]
|
|
4030
|
+
$[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t0 = /* @__PURE__ */ jsx(Box, { paddingBottom: 1, children: /* @__PURE__ */ jsxs(Text, { size: 1, muted: !0, children: [
|
|
4031
|
+
"Learn from",
|
|
4032
|
+
" ",
|
|
4033
|
+
/* @__PURE__ */ jsxs("a", { href: instructionGuideUrl, target: "_blank", rel: "noreferrer", children: [
|
|
4034
|
+
"our instruction guide ",
|
|
4035
|
+
/* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
4036
|
+
] })
|
|
4037
|
+
] }) }), $[0] = t0) : t0 = $[0];
|
|
4031
4038
|
let t1;
|
|
4032
|
-
|
|
4039
|
+
$[1] !== props ? (t1 = props.renderDefault(props), $[1] = props, $[2] = t1) : t1 = $[2];
|
|
4040
|
+
let t2;
|
|
4041
|
+
return $[3] !== t1 ? (t2 = /* @__PURE__ */ jsx(PteMods, { children: /* @__PURE__ */ jsxs(Stack, { space: 3, children: [
|
|
4042
|
+
t0,
|
|
4043
|
+
t1
|
|
4044
|
+
] }) }), $[3] = t1, $[4] = t2) : t2 = $[4], t2;
|
|
4033
4045
|
}
|
|
4034
4046
|
function useOnlyInlineBlocks(props) {
|
|
4035
4047
|
const $ = c(3);
|
|
@@ -4374,14 +4386,6 @@ const contextDocumentSchema = defineType({
|
|
|
4374
4386
|
type: prompt.name,
|
|
4375
4387
|
name: "prompt",
|
|
4376
4388
|
title: "Instruction",
|
|
4377
|
-
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4378
|
-
"Learn from",
|
|
4379
|
-
" ",
|
|
4380
|
-
/* @__PURE__ */ jsxs("a", { href: instructionGuideUrl, target: "_blank", rel: "noreferrer", children: [
|
|
4381
|
-
"our instruction guide ",
|
|
4382
|
-
/* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
4383
|
-
] })
|
|
4384
|
-
] }),
|
|
4385
4389
|
components: {
|
|
4386
4390
|
input: PromptInput
|
|
4387
4391
|
}
|