@julseb-lib/react 1.0.22 → 1.0.23
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/{global-CBkNxrmY.d.cts → global-DrPydXbS.d.cts} +3 -3
- package/dist/{global-CBkNxrmY.d.ts → global-DrPydXbS.d.ts} +3 -3
- package/dist/index.cjs +13 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -9
- package/dist/index.js.map +1 -1
- package/dist/types/components-items-props.d.cts +1 -1
- package/dist/types/components-items-props.d.ts +1 -1
- package/dist/types/components-props.d.cts +1 -1
- package/dist/types/components-props.d.ts +1 -1
- package/dist/types/global.d.cts +1 -1
- package/dist/types/global.d.ts +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -493,9 +493,9 @@ declare const designTokens: {
|
|
|
493
493
|
readonly "border-bottom": "border-bottom";
|
|
494
494
|
};
|
|
495
495
|
readonly libMdEditorViews: {
|
|
496
|
-
readonly
|
|
497
|
-
readonly
|
|
498
|
-
readonly
|
|
496
|
+
readonly viewCode: "viewCode";
|
|
497
|
+
readonly viewLive: "viewLive";
|
|
498
|
+
readonly viewPreview: "viewPreview";
|
|
499
499
|
};
|
|
500
500
|
readonly libMdEditorButtons: {
|
|
501
501
|
readonly bold: "bold";
|
|
@@ -493,9 +493,9 @@ declare const designTokens: {
|
|
|
493
493
|
readonly "border-bottom": "border-bottom";
|
|
494
494
|
};
|
|
495
495
|
readonly libMdEditorViews: {
|
|
496
|
-
readonly
|
|
497
|
-
readonly
|
|
498
|
-
readonly
|
|
496
|
+
readonly viewCode: "viewCode";
|
|
497
|
+
readonly viewLive: "viewLive";
|
|
498
|
+
readonly viewPreview: "viewPreview";
|
|
499
499
|
};
|
|
500
500
|
readonly libMdEditorButtons: {
|
|
501
501
|
readonly bold: "bold";
|
package/dist/index.cjs
CHANGED
|
@@ -719,7 +719,11 @@ var designTokens = {
|
|
|
719
719
|
stripped: "stripped",
|
|
720
720
|
"border-bottom": "border-bottom"
|
|
721
721
|
},
|
|
722
|
-
libMdEditorViews: {
|
|
722
|
+
libMdEditorViews: {
|
|
723
|
+
viewCode: "viewCode",
|
|
724
|
+
viewLive: "viewLive",
|
|
725
|
+
viewPreview: "viewPreview"
|
|
726
|
+
},
|
|
723
727
|
libMdEditorButtons: {
|
|
724
728
|
bold: "bold",
|
|
725
729
|
italic: "italic",
|
|
@@ -68956,15 +68960,15 @@ var libMdButtons = [
|
|
|
68956
68960
|
];
|
|
68957
68961
|
var libMdViewButtons = [
|
|
68958
68962
|
{
|
|
68959
|
-
name: "
|
|
68963
|
+
name: "viewCode",
|
|
68960
68964
|
defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(IconCode, { size: DEFAULT_ICON_SIZE })
|
|
68961
68965
|
},
|
|
68962
68966
|
{
|
|
68963
|
-
name: "
|
|
68967
|
+
name: "viewLive",
|
|
68964
68968
|
defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(IconLive, { size: DEFAULT_ICON_SIZE })
|
|
68965
68969
|
},
|
|
68966
68970
|
{
|
|
68967
|
-
name: "
|
|
68971
|
+
name: "viewPreview",
|
|
68968
68972
|
defaultIcon: /* @__PURE__ */ (0, import_jsx_runtime357.jsx)(IconPreview, { size: DEFAULT_ICON_SIZE })
|
|
68969
68973
|
}
|
|
68970
68974
|
];
|
|
@@ -69161,7 +69165,7 @@ var MarkdownEditor = ({
|
|
|
69161
69165
|
validation,
|
|
69162
69166
|
inputBackground,
|
|
69163
69167
|
id,
|
|
69164
|
-
defaultView = "
|
|
69168
|
+
defaultView = "viewLive",
|
|
69165
69169
|
options,
|
|
69166
69170
|
textButtonTitles = "Titles",
|
|
69167
69171
|
icons,
|
|
@@ -69252,7 +69256,7 @@ var MarkdownEditor = ({
|
|
|
69252
69256
|
{
|
|
69253
69257
|
className: clsx(
|
|
69254
69258
|
"grid min-h-[150px]",
|
|
69255
|
-
view === "
|
|
69259
|
+
view === "viewLive" ? "grid-cols-[1fr_2px_1fr]" : "grid-cols-1",
|
|
69256
69260
|
"md-editor-content"
|
|
69257
69261
|
),
|
|
69258
69262
|
children: [
|
|
@@ -69262,7 +69266,7 @@ var MarkdownEditor = ({
|
|
|
69262
69266
|
ref: useMergeRefs([ref, el]),
|
|
69263
69267
|
className: clsx(
|
|
69264
69268
|
"p-2 outline-none h-fit field-sizing-content resize-none",
|
|
69265
|
-
view === "
|
|
69269
|
+
view === "viewPreview" && "hidden",
|
|
69266
69270
|
"md-editor-input",
|
|
69267
69271
|
className
|
|
69268
69272
|
),
|
|
@@ -69272,7 +69276,7 @@ var MarkdownEditor = ({
|
|
|
69272
69276
|
...rest
|
|
69273
69277
|
}
|
|
69274
69278
|
),
|
|
69275
|
-
view === "
|
|
69279
|
+
view === "viewLive" && /* @__PURE__ */ (0, import_jsx_runtime361.jsx)(
|
|
69276
69280
|
"span",
|
|
69277
69281
|
{
|
|
69278
69282
|
className: clsx(
|
|
@@ -69281,7 +69285,7 @@ var MarkdownEditor = ({
|
|
|
69281
69285
|
)
|
|
69282
69286
|
}
|
|
69283
69287
|
),
|
|
69284
|
-
(view === "
|
|
69288
|
+
(view === "viewLive" || view === "viewPreview") && /* @__PURE__ */ (0, import_jsx_runtime361.jsx)(
|
|
69285
69289
|
import_markdown_to_jsx.default,
|
|
69286
69290
|
{
|
|
69287
69291
|
options: libOptionsMarkdown,
|