@thangph2146/lexical-editor 0.0.7 → 0.0.11

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.
@@ -5083,19 +5083,7 @@ function ContentEditable({
5083
5083
  !isReadOnlyOrReview && "min-h-72 px-8 py-4",
5084
5084
  className
5085
5085
  ),
5086
- "aria-placeholder": placeholder,
5087
- "aria-label": placeholder || "Editor n\u1ED9i dung",
5088
- placeholder: /* @__PURE__ */ jsx(
5089
- "div",
5090
- {
5091
- className: cn(
5092
- placeholderClassName,
5093
- "text-muted-foreground pointer-events-none select-none",
5094
- placeholderDefaults && !isReadOnlyOrReview && "absolute top-0 left-0 overflow-hidden px-8 py-[18px] text-ellipsis"
5095
- ),
5096
- children: placeholder
5097
- }
5098
- )
5086
+ "aria-label": "Editor n\u1ED9i dung"
5099
5087
  }
5100
5088
  );
5101
5089
  }
@@ -9953,7 +9941,7 @@ function LayoutPlugin() {
9953
9941
  values: {
9954
9942
  template: parentContainer.getTemplateColumns(),
9955
9943
  itemBackgroundColor: extractStyleValue(style, "background-color") ?? "#ffffff",
9956
- itemPaddingXPx: paddingValues && paddingValues.length > 1 ? paddingValues[1] : paddingValues?.[0] ?? 12,
9944
+ itemPaddingXPx: paddingValues?.[1] ?? paddingValues?.[0] ?? 12,
9957
9945
  itemPaddingYPx: paddingValues?.[0] ?? 12,
9958
9946
  itemBorderRadiusPx: borderRadiusValues?.[0] ?? 8
9959
9947
  }
@@ -28768,10 +28756,16 @@ function FontColorModalContent({
28768
28756
  /* @__PURE__ */ jsx(ColorPickerRoot, { inline: true, value: color, onValueChange: setColor, children: /* @__PURE__ */ jsxs(ColorPickerContent, { className: "editor-w-full editor-border-0 editor-shadow-none editor-p-0", children: [
28769
28757
  /* @__PURE__ */ jsx(ColorPickerArea, { className: "editor-h-40 editor-w-full editor-rounded-md" }),
28770
28758
  /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, className: "editor-mt-3", children: [
28771
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
28772
- /* @__PURE__ */ jsx(ColorPickerHueSlider, { className: "editor-w-full" }),
28773
- /* @__PURE__ */ jsx(ColorPickerAlphaSlider, { className: "editor-w-full" }),
28774
- /* @__PURE__ */ jsx(ColorPickerInput, { className: "editor-w-full" })
28759
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
28760
+ /* @__PURE__ */ jsx(ColorPickerEyeDropper, {}),
28761
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, className: "editor-flex-1", children: [
28762
+ /* @__PURE__ */ jsx(ColorPickerHueSlider, { className: "editor-w-full" }),
28763
+ /* @__PURE__ */ jsx(ColorPickerAlphaSlider, { className: "editor-w-full" })
28764
+ ] })
28765
+ ] }),
28766
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
28767
+ /* @__PURE__ */ jsx(ColorPickerFormatSelect, {}),
28768
+ /* @__PURE__ */ jsx(ColorPickerInput, {})
28775
28769
  ] }),
28776
28770
  /* @__PURE__ */ jsx(ColorPickerPresets, {})
28777
28771
  ] })
@@ -28802,10 +28796,16 @@ function BgColorModalContent({
28802
28796
  /* @__PURE__ */ jsx(ColorPickerRoot, { inline: true, value: color, onValueChange: setColor, children: /* @__PURE__ */ jsxs(ColorPickerContent, { className: "editor-w-full editor-border-0 editor-shadow-none editor-p-0", children: [
28803
28797
  /* @__PURE__ */ jsx(ColorPickerArea, { className: "editor-h-40 editor-w-full editor-rounded-md" }),
28804
28798
  /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 3, className: "editor-mt-3", children: [
28805
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, children: [
28806
- /* @__PURE__ */ jsx(ColorPickerHueSlider, { className: "editor-w-full" }),
28807
- /* @__PURE__ */ jsx(ColorPickerAlphaSlider, { className: "editor-w-full" }),
28808
- /* @__PURE__ */ jsx(ColorPickerInput, { className: "editor-w-full" })
28799
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
28800
+ /* @__PURE__ */ jsx(ColorPickerEyeDropper, {}),
28801
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: 2, className: "editor-flex-1", children: [
28802
+ /* @__PURE__ */ jsx(ColorPickerHueSlider, { className: "editor-w-full" }),
28803
+ /* @__PURE__ */ jsx(ColorPickerAlphaSlider, { className: "editor-w-full" })
28804
+ ] })
28805
+ ] }),
28806
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: 2, children: [
28807
+ /* @__PURE__ */ jsx(ColorPickerFormatSelect, {}),
28808
+ /* @__PURE__ */ jsx(ColorPickerInput, {})
28809
28809
  ] }),
28810
28810
  /* @__PURE__ */ jsx(ColorPickerPresets, {})
28811
28811
  ] })
@@ -33049,11 +33049,13 @@ function Plugins({
33049
33049
  contentEditable: /* @__PURE__ */ jsx("div", { className: cn("editor-relative-full"), children: /* @__PURE__ */ jsx("div", { className: cn("editor-relative-full"), ref: onRef, children: /* @__PURE__ */ jsx(
33050
33050
  ContentEditable,
33051
33051
  {
33052
- placeholder: readOnly ? "" : placeholder,
33052
+ placeholder: "",
33053
33053
  className: cn(
33054
33054
  "editor-content-editable",
33055
33055
  readOnly && "editor-content-editable--readonly"
33056
- )
33056
+ ),
33057
+ placeholderClassName: "editor-placeholder",
33058
+ placeholderDefaults: false
33057
33059
  }
33058
33060
  ) }) }),
33059
33061
  ErrorBoundary: LexicalErrorBoundary,