sanity 6.2.0-next.120 → 6.2.0-next.122
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.
|
@@ -11300,6 +11300,10 @@ interface PortableTextPluginsProps {
|
|
|
11300
11300
|
* @deprecated - add the configuration directly to `markdown` instead
|
|
11301
11301
|
*/
|
|
11302
11302
|
config: MarkdownConfig;
|
|
11303
|
+
/**
|
|
11304
|
+
* @defaultValue true
|
|
11305
|
+
*/
|
|
11306
|
+
enabled?: boolean;
|
|
11303
11307
|
} | (MarkdownShortcutsPluginProps & {
|
|
11304
11308
|
config?: undefined;
|
|
11305
11309
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "6.2.0-next.
|
|
1
|
+
var version = "6.2.0-next.122+b639a12755";
|
|
2
2
|
let buildVersion;
|
|
3
3
|
try {
|
|
4
4
|
buildVersion = process.env.PKG_BUILD_VERSION;
|
|
@@ -7,7 +7,7 @@ try {
|
|
|
7
7
|
try {
|
|
8
8
|
buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
|
|
9
9
|
// and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
|
|
10
|
-
"6.2.0-next.
|
|
10
|
+
"6.2.0-next.122+b639a12755";
|
|
11
11
|
} catch {
|
|
12
12
|
}
|
|
13
13
|
const SANITY_VERSION = buildVersion || `${version}-dev`;
|
package/lib/index.js
CHANGED
|
@@ -34888,37 +34888,37 @@ function DefaultPortableTextEditorPlugins(props2) {
|
|
|
34888
34888
|
] }), $[6] = t0, $[7] = t1, $[8] = t2, $[9] = t3) : t3 = $[9], t3;
|
|
34889
34889
|
}
|
|
34890
34890
|
function DefaultMarkdownShortcutsPlugin(incomingProps) {
|
|
34891
|
-
const $ = c(
|
|
34891
|
+
const $ = c(16);
|
|
34892
34892
|
let t0;
|
|
34893
34893
|
$[0] !== incomingProps ? (t0 = incomingProps ?? {}, $[0] = incomingProps, $[1] = t0) : t0 = $[1];
|
|
34894
34894
|
const props2 = t0;
|
|
34895
|
+
if (props2.enabled === !1)
|
|
34896
|
+
return null;
|
|
34895
34897
|
if (!props2.config) {
|
|
34896
|
-
let
|
|
34898
|
+
let markdownShortcutsPluginProps;
|
|
34897
34899
|
if ($[2] !== props2) {
|
|
34898
34900
|
const {
|
|
34899
|
-
enabled:
|
|
34900
|
-
config,
|
|
34901
|
-
...
|
|
34901
|
+
enabled: _enabled,
|
|
34902
|
+
config: _config,
|
|
34903
|
+
...t13
|
|
34902
34904
|
} = props2;
|
|
34903
|
-
|
|
34905
|
+
markdownShortcutsPluginProps = t13, $[2] = props2, $[3] = markdownShortcutsPluginProps;
|
|
34904
34906
|
} else
|
|
34905
|
-
|
|
34906
|
-
if (enabled === !1)
|
|
34907
|
-
return null;
|
|
34907
|
+
markdownShortcutsPluginProps = $[3];
|
|
34908
34908
|
let t12;
|
|
34909
|
-
return $[
|
|
34909
|
+
return $[4] !== markdownShortcutsPluginProps ? (t12 = /* @__PURE__ */ jsx(MarkdownShortcutsPlugin, { ...markdownShortcutsPluginProps }), $[4] = markdownShortcutsPluginProps, $[5] = t12) : t12 = $[5], t12;
|
|
34910
34910
|
}
|
|
34911
34911
|
let orderedList, orderedListStyle, restMarkdownConfig, unorderedList, unorderedListStyle;
|
|
34912
|
-
$[
|
|
34912
|
+
$[6] !== props2.config ? ({
|
|
34913
34913
|
orderedList,
|
|
34914
34914
|
orderedListStyle,
|
|
34915
34915
|
unorderedList,
|
|
34916
34916
|
unorderedListStyle,
|
|
34917
34917
|
...restMarkdownConfig
|
|
34918
|
-
} = props2.config, $[
|
|
34918
|
+
} = props2.config, $[6] = props2.config, $[7] = orderedList, $[8] = orderedListStyle, $[9] = restMarkdownConfig, $[10] = unorderedList, $[11] = unorderedListStyle) : (orderedList = $[7], orderedListStyle = $[8], restMarkdownConfig = $[9], unorderedList = $[10], unorderedListStyle = $[11]);
|
|
34919
34919
|
const t1 = orderedList ?? orderedListStyle, t2 = unorderedList ?? unorderedListStyle;
|
|
34920
34920
|
let t3;
|
|
34921
|
-
return $[
|
|
34921
|
+
return $[12] !== restMarkdownConfig || $[13] !== t1 || $[14] !== t2 ? (t3 = /* @__PURE__ */ jsx(MarkdownShortcutsPlugin, { orderedList: t1, unorderedList: t2, ...restMarkdownConfig }), $[12] = restMarkdownConfig, $[13] = t1, $[14] = t2, $[15] = t3) : t3 = $[15], t3;
|
|
34922
34922
|
}
|
|
34923
34923
|
function DefaultPasteLinkPlugin(props2) {
|
|
34924
34924
|
const $ = c(7);
|