@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.
@@ -6178,7 +6178,7 @@ function VariableIcon(props) {
6178
6178
  "div",
6179
6179
  {
6180
6180
  className: cn(
6181
- "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border",
6181
+ "mly-flex mly-size-5 mly-items-center mly-justify-center mly-rounded-md mly-border mly-border-gray-200",
6182
6182
  className
6183
6183
  ),
6184
6184
  children
@@ -6199,6 +6199,10 @@ function VariableView(props) {
6199
6199
  const variableRender = (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.renderVariable) != null ? _b : DEFAULT_RENDER_VARIABLE_FUNCTION;
6200
6200
  return variableRender;
6201
6201
  }, [editor]);
6202
+ const disableInput = (0, import_react19.useMemo)(() => {
6203
+ var _a, _b;
6204
+ return (_b = (_a = getNodeOptions(editor, "variable")) == null ? void 0 : _a.disableInput) != null ? _b : false;
6205
+ }, [editor]);
6202
6206
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6203
6207
  import_react18.NodeViewWrapper,
6204
6208
  {
@@ -6232,6 +6236,7 @@ function VariableView(props) {
6232
6236
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
6233
6237
  "input",
6234
6238
  __spreadProps(__spreadValues({}, AUTOCOMPLETE_PASSWORD_MANAGERS_OFF), {
6239
+ disabled: disableInput,
6235
6240
  value: id != null ? id : "",
6236
6241
  onChange: (e) => {
6237
6242
  updateAttributes2({
@@ -6239,7 +6244,7 @@ function VariableView(props) {
6239
6244
  });
6240
6245
  },
6241
6246
  placeholder: "ie. name...",
6242
- 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"
6247
+ 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"
6243
6248
  })
6244
6249
  )
6245
6250
  ] }),
@@ -6330,6 +6335,7 @@ var VariableExtension = import_core11.Node.create({
6330
6335
  variables: DEFAULT_VARIABLES,
6331
6336
  variableSuggestionsPopover: DEFAULT_VARIABLE_SUGGESTION_POPOVER,
6332
6337
  renderVariable: DEFAULT_RENDER_VARIABLE_FUNCTION,
6338
+ disableInput: false,
6333
6339
  renderLabel(props) {
6334
6340
  var _a;
6335
6341
  const { node } = props;