@maily-to/core 0.0.19 → 0.0.20
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -21,7 +21,7 @@ type Variable = {
|
|
|
21
21
|
};
|
|
22
22
|
type VariableFunctionOptions = {
|
|
23
23
|
query: string;
|
|
24
|
-
from: 'variable' | 'for';
|
|
24
|
+
from: 'content-variable' | 'bubble-variable' | 'for-variable';
|
|
25
25
|
editor: Editor$1;
|
|
26
26
|
};
|
|
27
27
|
type VariablesFunction = (opts: VariableFunctionOptions) => Array<Variable>;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ type Variable = {
|
|
|
21
21
|
};
|
|
22
22
|
type VariableFunctionOptions = {
|
|
23
23
|
query: string;
|
|
24
|
-
from: 'variable' | 'for';
|
|
24
|
+
from: 'content-variable' | 'bubble-variable' | 'for-variable';
|
|
25
25
|
editor: Editor$1;
|
|
26
26
|
};
|
|
27
27
|
type VariablesFunction = (opts: VariableFunctionOptions) => Array<Variable>;
|
package/dist/index.js
CHANGED
|
@@ -1217,7 +1217,7 @@ function _ShowPopover(props) {
|
|
|
1217
1217
|
const autoCompleteOptions = (0, import_react9.useMemo)(() => {
|
|
1218
1218
|
return processVariables(variables, {
|
|
1219
1219
|
query: showIfKey || "",
|
|
1220
|
-
from: "variable",
|
|
1220
|
+
from: "bubble-variable",
|
|
1221
1221
|
editor
|
|
1222
1222
|
}).map((variable) => variable.name);
|
|
1223
1223
|
}, [variables, showIfKey, editor]);
|
|
@@ -2015,7 +2015,7 @@ function ForBubbleMenu(props) {
|
|
|
2015
2015
|
return processVariables(variables, {
|
|
2016
2016
|
query: eachKey || "",
|
|
2017
2017
|
editor,
|
|
2018
|
-
from: "for"
|
|
2018
|
+
from: "for-variable"
|
|
2019
2019
|
}).map((variable) => variable.name);
|
|
2020
2020
|
}, [variables, eachKey, editor]);
|
|
2021
2021
|
const isValidEachKey = eachKey || autoCompleteOptions.includes(eachKey);
|
|
@@ -2177,7 +2177,7 @@ function LinkInputPopover(props) {
|
|
|
2177
2177
|
);
|
|
2178
2178
|
return processVariables(variables, {
|
|
2179
2179
|
query: withoutTrigger || "",
|
|
2180
|
-
from: "variable",
|
|
2180
|
+
from: "bubble-variable",
|
|
2181
2181
|
editor
|
|
2182
2182
|
}).map((variable) => variable.name);
|
|
2183
2183
|
}, [variables, defaultUrlWithoutProtocol, editor]);
|
|
@@ -4201,7 +4201,7 @@ function ButtonLabelInput(props) {
|
|
|
4201
4201
|
);
|
|
4202
4202
|
return processVariables(variables, {
|
|
4203
4203
|
query: withoutTrigger || "",
|
|
4204
|
-
from: "variable",
|
|
4204
|
+
from: "bubble-variable",
|
|
4205
4205
|
editor
|
|
4206
4206
|
}).map((variable) => variable.name);
|
|
4207
4207
|
}, [variables, value, editor]);
|
|
@@ -5471,7 +5471,7 @@ function getVariableSuggestions(variables = DEFAULT_VARIABLES, char = DEFAULT_VA
|
|
|
5471
5471
|
return processVariables(variables, {
|
|
5472
5472
|
query,
|
|
5473
5473
|
editor,
|
|
5474
|
-
from: "variable"
|
|
5474
|
+
from: "content-variable"
|
|
5475
5475
|
});
|
|
5476
5476
|
},
|
|
5477
5477
|
render: () => {
|