@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.
- package/dist/extensions/index.d.mts +3 -2
- package/dist/extensions/index.d.ts +3 -2
- package/dist/extensions/index.js +3 -4
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/index.mjs +3 -4
- package/dist/extensions/index.mjs.map +1 -1
- package/dist/index.js +18 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/readme.md +2 -1
package/dist/index.mjs
CHANGED
|
@@ -6233,9 +6233,8 @@ function TextBubbleMenu(props) {
|
|
|
6233
6233
|
|
|
6234
6234
|
// src/editor/nodes/variable/variable-suggestions.tsx
|
|
6235
6235
|
import { ReactRenderer } from "@tiptap/react";
|
|
6236
|
-
import { forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle2 } from "react";
|
|
6236
|
+
import { useRef as useRef10, forwardRef as forwardRef8, useImperativeHandle as useImperativeHandle2 } from "react";
|
|
6237
6237
|
import tippy2 from "tippy.js";
|
|
6238
|
-
import { useRef as useRef10 } from "react";
|
|
6239
6238
|
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
6240
6239
|
var VariableList = forwardRef8((props, ref) => {
|
|
6241
6240
|
const { items = [] } = props;
|
|
@@ -6279,7 +6278,7 @@ var VariableList = forwardRef8((props, ref) => {
|
|
|
6279
6278
|
);
|
|
6280
6279
|
});
|
|
6281
6280
|
VariableList.displayName = "VariableList";
|
|
6282
|
-
function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VARIABLE_TRIGGER_CHAR) {
|
|
6281
|
+
function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VARIABLE_TRIGGER_CHAR, variableListComponent = VariableList) {
|
|
6283
6282
|
return {
|
|
6284
6283
|
char,
|
|
6285
6284
|
items: ({ query, editor }) => {
|
|
@@ -6294,7 +6293,7 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
6294
6293
|
let popup = null;
|
|
6295
6294
|
return {
|
|
6296
6295
|
onStart: (props) => {
|
|
6297
|
-
component = new ReactRenderer(
|
|
6296
|
+
component = new ReactRenderer(variableListComponent, {
|
|
6298
6297
|
props,
|
|
6299
6298
|
editor: props.editor
|
|
6300
6299
|
});
|
|
@@ -6643,13 +6642,13 @@ import {
|
|
|
6643
6642
|
useEffect as useEffect7,
|
|
6644
6643
|
useLayoutEffect as useLayoutEffect2,
|
|
6645
6644
|
useRef as useRef11,
|
|
6646
|
-
useState as
|
|
6645
|
+
useState as useState11
|
|
6647
6646
|
} from "react";
|
|
6648
6647
|
import tippy3 from "tippy.js";
|
|
6649
6648
|
import { jsx as jsx46, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
6650
6649
|
function CommandList(props) {
|
|
6651
6650
|
const { items, command, editor } = props;
|
|
6652
|
-
const [selectedIndex, setSelectedIndex] =
|
|
6651
|
+
const [selectedIndex, setSelectedIndex] = useState11(0);
|
|
6653
6652
|
const selectItem = useCallback7(
|
|
6654
6653
|
(index) => {
|
|
6655
6654
|
const item = items[index];
|