@madebywild/sanity-richtext-field 0.0.6 → 0.0.8
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.cjs +3 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -25
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
3
|
-
var jsxRuntime = require("react/jsx-runtime"), sanity = require("sanity"), sanityMediaField = require("@madebywild/sanity-media-field"), React = require("react"), styledComponents = require("styled-components");
|
|
3
|
+
var jsxRuntime = require("react/jsx-runtime"), sanity = require("sanity"), sanityMediaField = require("@madebywild/sanity-media-field"), icons = require("@sanity/icons"), React = require("react"), styledComponents = require("styled-components");
|
|
4
4
|
function _interopNamespaceCompat(e) {
|
|
5
5
|
if (e && typeof e == "object" && "default" in e) return e;
|
|
6
6
|
var n = /* @__PURE__ */ Object.create(null);
|
|
@@ -56,34 +56,11 @@ const mediaBlock = sanity.defineArrayMember({
|
|
|
56
56
|
}), blocks = [
|
|
57
57
|
mediaBlock
|
|
58
58
|
// Add block
|
|
59
|
-
],
|
|
60
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
-
"svg",
|
|
62
|
-
{
|
|
63
|
-
"data-sanity-icon": "link",
|
|
64
|
-
width: "1em",
|
|
65
|
-
height: "1em",
|
|
66
|
-
viewBox: "0 0 25 25",
|
|
67
|
-
fill: "none",
|
|
68
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
69
|
-
...props,
|
|
70
|
-
ref,
|
|
71
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
72
|
-
"path",
|
|
73
|
-
{
|
|
74
|
-
d: "M11 12.5L12.5 14C13.281 14.781 14.719 14.781 15.5 14L18.5 11C19.281 10.219 19.281 8.78105 18.5 8L18 7.5C17.2189 6.71895 15.781 6.71895 15 7.5L13 9.5M12 15.5L10 17.5C9.21895 18.281 7.78105 18.281 7 17.5L6.5 17C5.71895 16.219 5.71896 14.781 6.5 14L9.50001 11C10.2811 10.219 11.719 10.2189 12.5 11L14 12.5",
|
|
75
|
-
stroke: "currentColor",
|
|
76
|
-
strokeWidth: 1.2,
|
|
77
|
-
strokeLinejoin: "round"
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
}
|
|
81
|
-
);
|
|
82
|
-
}), linkField = sanity.defineField({
|
|
59
|
+
], linkField = sanity.defineField({
|
|
83
60
|
type: "wild.link",
|
|
84
61
|
name: "linkField",
|
|
85
62
|
title: "Link",
|
|
86
|
-
icon: LinkIcon,
|
|
63
|
+
icon: icons.LinkIcon,
|
|
87
64
|
options: {
|
|
88
65
|
noCustomText: !0,
|
|
89
66
|
collapsed: !1,
|