@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.mjs CHANGED
@@ -6880,7 +6880,7 @@ function VariableIcon(props) {
6880
6880
  "div",
6881
6881
  {
6882
6882
  className: cn(
6883
- "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
6883
+ "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
6884
6884
  className
6885
6885
  ),
6886
6886
  children
@@ -6901,6 +6901,10 @@ function VariableView(props) {
6901
6901
  const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
6902
6902
  return variableRender;
6903
6903
  }, [editor]);
6904
+ const disableInput = useMemo5(() => {
6905
+ var _a, _b;
6906
+ return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
6907
+ }, [editor]);
6904
6908
  return /* @__PURE__ */ jsx34(
6905
6909
  NodeViewWrapper3,
6906
6910
  {
@@ -6934,6 +6938,7 @@ function VariableView(props) {
6934
6938
  /* @__PURE__ */ jsx34(
6935
6939
  "input",
6936
6940
  __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6941
+ disabled: disableInput,
6937
6942
  value: id != null ? id : "",
6938
6943
  onChange: (e) => {
6939
6944
  updateAttributes2({
@@ -6941,7 +6946,7 @@ function VariableView(props) {
6941
6946
  });
6942
6947
  },
6943
6948
  placeholder: "ie. name...",
6944
- 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"
6949
+ 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"
6945
6950
  })
6946
6951
  )
6947
6952
  ] }),
@@ -7032,6 +7037,7 @@ var VariableExtension = Node4.create({
7032
7037
  variables: DEFAULT_VARIABLES,
7033
7038
  variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
7034
7039
  renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
7040
+ disableInput: false,
7035
7041
  renderLabel(props) {
7036
7042
  var _a;
7037
7043
  const { node } = props;