@maily-to/core 0.0.26 → 0.0.27

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.
@@ -4202,9 +4202,8 @@ var VariableExtension = Node10.create({
4202
4202
 
4203
4203
  // src/editor/nodes/variable/variable-suggestions.tsx
4204
4204
  import { ReactRenderer as ReactRenderer2 } from "@tiptap/react";
4205
- import { forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle2 } from "react";
4205
+ import { useRef as useRef9, forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle2 } from "react";
4206
4206
  import tippy2 from "tippy.js";
4207
- import { useRef as useRef9 } from "react";
4208
4207
  import { jsx as jsx29 } from "react/jsx-runtime";
4209
4208
  var VariableList = forwardRef8((props, ref) => {
4210
4209
  const { items = [] } = props;
@@ -4248,7 +4247,7 @@ var VariableList = forwardRef8((props, ref) => {
4248
4247
  );
4249
4248
  });
4250
4249
  VariableList.displayName = "VariableList";
4251
- function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VARIABLE_TRIGGER_CHAR) {
4250
+ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VARIABLE_TRIGGER_CHAR, variableListComponent = VariableList) {
4252
4251
  return {
4253
4252
  char,
4254
4253
  items: ({ query, editor }) => {
@@ -4263,7 +4262,7 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
4263
4262
  let popup = null;
4264
4263
  return {
4265
4264
  onStart: (props) => {
4266
- component = new ReactRenderer2(VariableList, {
4265
+ component = new ReactRenderer2(variableListComponent, {
4267
4266
  props,
4268
4267
  editor: props.editor
4269
4268
  });