@maily-to/core 0.3.0 → 0.3.1

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 CHANGED
@@ -6855,7 +6855,7 @@ function VariableIcon(props) {
6855
6855
  "div",
6856
6856
  {
6857
6857
  className: cn(
6858
- "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
6858
+ "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
6859
6859
  className
6860
6860
  ),
6861
6861
  children
@@ -6876,6 +6876,10 @@ function VariableView(props) {
6876
6876
  const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
6877
6877
  return variableRender;
6878
6878
  }, [editor]);
6879
+ const disableInput = (0, import_react27.useMemo)(() => {
6880
+ var _a, _b;
6881
+ return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
6882
+ }, [editor]);
6879
6883
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
6880
6884
  import_react26.NodeViewWrapper,
6881
6885
  {
@@ -6909,6 +6913,7 @@ function VariableView(props) {
6909
6913
  /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
6910
6914
  "input",
6911
6915
  __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6916
+ disabled: disableInput,
6912
6917
  value: id != null ? id : "",
6913
6918
  onChange: (e) => {
6914
6919
  updateAttributes2({
@@ -6916,7 +6921,7 @@ function VariableView(props) {
6916
6921
  });
6917
6922
  },
6918
6923
  placeholder: "ie. name...",
6919
- className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none"
6924
+ className: "mly-h-7 mly-w-36 mly-rounded-md mly-bg-soft-gray mly-px-2 mly-text-sm mly-text-midnight-gray focus:mly-bg-soft-gray focus:mly-outline-none disabled:mly-cursor-not-allowed"
6920
6925
  })
6921
6926
  )
6922
6927
  ] }),
@@ -7007,6 +7012,7 @@ var VariableExtension = import_core7.Node.create({
7007
7012
  variables: DEFAULT_VARIABLES,
7008
7013
  variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
7009
7014
  renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
7015
+ disableInput: false,
7010
7016
  renderLabel(props) {
7011
7017
  var _a;
7012
7018
  const { node } = props;