@uniformdev/mesh-sdk-react 20.74.6-alpha.5 → 20.74.6-alpha.7.sha-23d7a1d929
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 +218 -125
- package/dist/index.d.ts +218 -125
- package/dist/index.esm.js +25 -28
- package/dist/index.js +23 -26
- package/dist/index.mjs +25 -28
- package/package.json +11 -11
package/dist/index.esm.js
CHANGED
|
@@ -504,7 +504,7 @@ function serializeRecursive(node, buffer) {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
507
|
-
import { emptyRichTextValue } from "@uniformdev/richtext";
|
|
507
|
+
import { emptyRichTextValue, rehydrateDefaultRichTextProperties } from "@uniformdev/richtext";
|
|
508
508
|
|
|
509
509
|
// src/components/Variables/util/deserializeVariablesEditorState.ts
|
|
510
510
|
import { parseVariableExpression } from "@uniformdev/canvas";
|
|
@@ -576,7 +576,7 @@ function setVariablesEditorValue(editor, newValue, tag) {
|
|
|
576
576
|
});
|
|
577
577
|
} else {
|
|
578
578
|
try {
|
|
579
|
-
const parsedState = editor.parseEditorState(newValue);
|
|
579
|
+
const parsedState = editor.parseEditorState(rehydrateDefaultRichTextProperties(newValue));
|
|
580
580
|
editor.setEditorState(parsedState.clone(null), {
|
|
581
581
|
tag
|
|
582
582
|
});
|
|
@@ -1907,7 +1907,7 @@ function PasteTransformerPlugin({ transformPaste }) {
|
|
|
1907
1907
|
(event) => {
|
|
1908
1908
|
var _a;
|
|
1909
1909
|
const selection = $getSelection3();
|
|
1910
|
-
const pastedText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
1910
|
+
const pastedText = event instanceof ClipboardEvent ? (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain") : void 0;
|
|
1911
1911
|
if (pastedText && transformPaste && $isRangeSelection2(selection)) {
|
|
1912
1912
|
const result = transformPaste(pastedText);
|
|
1913
1913
|
if (result !== void 0) {
|
|
@@ -6426,6 +6426,10 @@ var ConditionalInputRow = css22`
|
|
|
6426
6426
|
var ConditionalInputRowEmpty = css22`
|
|
6427
6427
|
flex-wrap: nowrap;
|
|
6428
6428
|
`;
|
|
6429
|
+
var FilterOptionSecondaryLabel = css22`
|
|
6430
|
+
color: var(--gray-600);
|
|
6431
|
+
font-size: var(--fs-xs);
|
|
6432
|
+
`;
|
|
6429
6433
|
var SearchInput = css22`
|
|
6430
6434
|
&& {
|
|
6431
6435
|
max-height: 40px;
|
|
@@ -7101,6 +7105,10 @@ var FilterItem = ({
|
|
|
7101
7105
|
var _a2;
|
|
7102
7106
|
onFilterOptionChange((_a2 = e == null ? void 0 : e.value) != null ? _a2 : "");
|
|
7103
7107
|
},
|
|
7108
|
+
formatOptionLabel: (option, { context }) => /* @__PURE__ */ jsxs34("div", { children: [
|
|
7109
|
+
/* @__PURE__ */ jsx77("div", { children: option.label }),
|
|
7110
|
+
context === "menu" && "secondaryLabel" in option && option.secondaryLabel ? /* @__PURE__ */ jsx77("div", { css: FilterOptionSecondaryLabel, children: option.secondaryLabel }) : null
|
|
7111
|
+
] }),
|
|
7104
7112
|
isOptionDisabled: (option) => {
|
|
7105
7113
|
var _a2;
|
|
7106
7114
|
return (_a2 = option == null ? void 0 : option.disabled) != null ? _a2 : false;
|
|
@@ -7430,11 +7438,10 @@ var FilterItems = ({
|
|
|
7430
7438
|
import { VerticalRhythm as VerticalRhythm7 } from "@uniformdev/design-system";
|
|
7431
7439
|
|
|
7432
7440
|
// src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
|
|
7433
|
-
import { Button as Button5, Callout as Callout5,
|
|
7441
|
+
import { Button as Button5, Callout as Callout5, Paragraph } from "@uniformdev/design-system";
|
|
7434
7442
|
import { Fragment as Fragment15, jsx as jsx80, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
7435
7443
|
var SearchAndFilterResultContainer = ({
|
|
7436
7444
|
buttonText,
|
|
7437
|
-
clearButtonLabel = "clear",
|
|
7438
7445
|
calloutTitle,
|
|
7439
7446
|
calloutText,
|
|
7440
7447
|
onHandleClear,
|
|
@@ -7482,29 +7489,19 @@ var SearchAndFilterResultContainer = ({
|
|
|
7482
7489
|
handleResetFilters();
|
|
7483
7490
|
}
|
|
7484
7491
|
};
|
|
7485
|
-
return /* @__PURE__ */
|
|
7486
|
-
/* @__PURE__ */
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
{
|
|
7499
|
-
buttonType: "tertiaryOutline",
|
|
7500
|
-
size: "xs",
|
|
7501
|
-
onClick: handleClearSearch,
|
|
7502
|
-
"data-testid": "clear-search",
|
|
7503
|
-
children: clearButtonText
|
|
7504
|
-
}
|
|
7505
|
-
)
|
|
7506
|
-
] }) : null
|
|
7507
|
-
] });
|
|
7492
|
+
return /* @__PURE__ */ jsx80(Fragment15, { children: totalResults === 0 ? /* @__PURE__ */ jsxs37(Callout5, { title: automateCalloutTitle, type: "note", children: [
|
|
7493
|
+
calloutText ? /* @__PURE__ */ jsx80(Paragraph, { children: calloutText }) : null,
|
|
7494
|
+
hideClearButton ? null : /* @__PURE__ */ jsx80(
|
|
7495
|
+
Button5,
|
|
7496
|
+
{
|
|
7497
|
+
buttonType: "tertiaryOutline",
|
|
7498
|
+
size: "xs",
|
|
7499
|
+
onClick: handleClearSearch,
|
|
7500
|
+
"data-testid": "clear-search",
|
|
7501
|
+
children: clearButtonText
|
|
7502
|
+
}
|
|
7503
|
+
)
|
|
7504
|
+
] }) : null });
|
|
7508
7505
|
};
|
|
7509
7506
|
|
|
7510
7507
|
// src/components/SearchAndFilter/SearchAndFilter.tsx
|
package/dist/index.js
CHANGED
|
@@ -759,7 +759,7 @@ function setVariablesEditorValue(editor, newValue, tag) {
|
|
|
759
759
|
});
|
|
760
760
|
} else {
|
|
761
761
|
try {
|
|
762
|
-
const parsedState = editor.parseEditorState(newValue);
|
|
762
|
+
const parsedState = editor.parseEditorState((0, import_richtext.rehydrateDefaultRichTextProperties)(newValue));
|
|
763
763
|
editor.setEditorState(parsedState.clone(null), {
|
|
764
764
|
tag
|
|
765
765
|
});
|
|
@@ -2054,7 +2054,7 @@ function PasteTransformerPlugin({ transformPaste }) {
|
|
|
2054
2054
|
(event) => {
|
|
2055
2055
|
var _a;
|
|
2056
2056
|
const selection = (0, import_lexical6.$getSelection)();
|
|
2057
|
-
const pastedText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
2057
|
+
const pastedText = event instanceof ClipboardEvent ? (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain") : void 0;
|
|
2058
2058
|
if (pastedText && transformPaste && (0, import_lexical6.$isRangeSelection)(selection)) {
|
|
2059
2059
|
const result = transformPaste(pastedText);
|
|
2060
2060
|
if (result !== void 0) {
|
|
@@ -6503,6 +6503,10 @@ var ConditionalInputRow = import_react70.css`
|
|
|
6503
6503
|
var ConditionalInputRowEmpty = import_react70.css`
|
|
6504
6504
|
flex-wrap: nowrap;
|
|
6505
6505
|
`;
|
|
6506
|
+
var FilterOptionSecondaryLabel = import_react70.css`
|
|
6507
|
+
color: var(--gray-600);
|
|
6508
|
+
font-size: var(--fs-xs);
|
|
6509
|
+
`;
|
|
6506
6510
|
var SearchInput = import_react70.css`
|
|
6507
6511
|
&& {
|
|
6508
6512
|
max-height: 40px;
|
|
@@ -7164,6 +7168,10 @@ var FilterItem = ({
|
|
|
7164
7168
|
var _a2;
|
|
7165
7169
|
onFilterOptionChange((_a2 = e == null ? void 0 : e.value) != null ? _a2 : "");
|
|
7166
7170
|
},
|
|
7171
|
+
formatOptionLabel: (option, { context }) => /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)("div", { children: [
|
|
7172
|
+
/* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { children: option.label }),
|
|
7173
|
+
context === "menu" && "secondaryLabel" in option && option.secondaryLabel ? /* @__PURE__ */ (0, import_jsx_runtime76.jsx)("div", { css: FilterOptionSecondaryLabel, children: option.secondaryLabel }) : null
|
|
7174
|
+
] }),
|
|
7167
7175
|
isOptionDisabled: (option) => {
|
|
7168
7176
|
var _a2;
|
|
7169
7177
|
return (_a2 = option == null ? void 0 : option.disabled) != null ? _a2 : false;
|
|
@@ -7497,7 +7505,6 @@ var import_design_system49 = require("@uniformdev/design-system");
|
|
|
7497
7505
|
var import_jsx_runtime79 = require("@emotion/react/jsx-runtime");
|
|
7498
7506
|
var SearchAndFilterResultContainer = ({
|
|
7499
7507
|
buttonText,
|
|
7500
|
-
clearButtonLabel = "clear",
|
|
7501
7508
|
calloutTitle,
|
|
7502
7509
|
calloutText,
|
|
7503
7510
|
onHandleClear,
|
|
@@ -7545,29 +7552,19 @@ var SearchAndFilterResultContainer = ({
|
|
|
7545
7552
|
handleResetFilters();
|
|
7546
7553
|
}
|
|
7547
7554
|
};
|
|
7548
|
-
return /* @__PURE__ */ (0, import_jsx_runtime79.
|
|
7549
|
-
/* @__PURE__ */ (0, import_jsx_runtime79.
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
{
|
|
7562
|
-
buttonType: "tertiaryOutline",
|
|
7563
|
-
size: "xs",
|
|
7564
|
-
onClick: handleClearSearch,
|
|
7565
|
-
"data-testid": "clear-search",
|
|
7566
|
-
children: clearButtonText
|
|
7567
|
-
}
|
|
7568
|
-
)
|
|
7569
|
-
] }) : null
|
|
7570
|
-
] });
|
|
7555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_jsx_runtime79.Fragment, { children: totalResults === 0 ? /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_design_system49.Callout, { title: automateCalloutTitle, type: "note", children: [
|
|
7556
|
+
calloutText ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_design_system49.Paragraph, { children: calloutText }) : null,
|
|
7557
|
+
hideClearButton ? null : /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
7558
|
+
import_design_system49.Button,
|
|
7559
|
+
{
|
|
7560
|
+
buttonType: "tertiaryOutline",
|
|
7561
|
+
size: "xs",
|
|
7562
|
+
onClick: handleClearSearch,
|
|
7563
|
+
"data-testid": "clear-search",
|
|
7564
|
+
children: clearButtonText
|
|
7565
|
+
}
|
|
7566
|
+
)
|
|
7567
|
+
] }) : null });
|
|
7571
7568
|
};
|
|
7572
7569
|
|
|
7573
7570
|
// src/components/SearchAndFilter/SearchAndFilter.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -504,7 +504,7 @@ function serializeRecursive(node, buffer) {
|
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
// src/components/Variables/util/setVariablesEditorValue.ts
|
|
507
|
-
import { emptyRichTextValue } from "@uniformdev/richtext";
|
|
507
|
+
import { emptyRichTextValue, rehydrateDefaultRichTextProperties } from "@uniformdev/richtext";
|
|
508
508
|
|
|
509
509
|
// src/components/Variables/util/deserializeVariablesEditorState.ts
|
|
510
510
|
import { parseVariableExpression } from "@uniformdev/canvas";
|
|
@@ -576,7 +576,7 @@ function setVariablesEditorValue(editor, newValue, tag) {
|
|
|
576
576
|
});
|
|
577
577
|
} else {
|
|
578
578
|
try {
|
|
579
|
-
const parsedState = editor.parseEditorState(newValue);
|
|
579
|
+
const parsedState = editor.parseEditorState(rehydrateDefaultRichTextProperties(newValue));
|
|
580
580
|
editor.setEditorState(parsedState.clone(null), {
|
|
581
581
|
tag
|
|
582
582
|
});
|
|
@@ -1907,7 +1907,7 @@ function PasteTransformerPlugin({ transformPaste }) {
|
|
|
1907
1907
|
(event) => {
|
|
1908
1908
|
var _a;
|
|
1909
1909
|
const selection = $getSelection3();
|
|
1910
|
-
const pastedText = (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
1910
|
+
const pastedText = event instanceof ClipboardEvent ? (_a = event.clipboardData) == null ? void 0 : _a.getData("text/plain") : void 0;
|
|
1911
1911
|
if (pastedText && transformPaste && $isRangeSelection2(selection)) {
|
|
1912
1912
|
const result = transformPaste(pastedText);
|
|
1913
1913
|
if (result !== void 0) {
|
|
@@ -6426,6 +6426,10 @@ var ConditionalInputRow = css22`
|
|
|
6426
6426
|
var ConditionalInputRowEmpty = css22`
|
|
6427
6427
|
flex-wrap: nowrap;
|
|
6428
6428
|
`;
|
|
6429
|
+
var FilterOptionSecondaryLabel = css22`
|
|
6430
|
+
color: var(--gray-600);
|
|
6431
|
+
font-size: var(--fs-xs);
|
|
6432
|
+
`;
|
|
6429
6433
|
var SearchInput = css22`
|
|
6430
6434
|
&& {
|
|
6431
6435
|
max-height: 40px;
|
|
@@ -7101,6 +7105,10 @@ var FilterItem = ({
|
|
|
7101
7105
|
var _a2;
|
|
7102
7106
|
onFilterOptionChange((_a2 = e == null ? void 0 : e.value) != null ? _a2 : "");
|
|
7103
7107
|
},
|
|
7108
|
+
formatOptionLabel: (option, { context }) => /* @__PURE__ */ jsxs34("div", { children: [
|
|
7109
|
+
/* @__PURE__ */ jsx77("div", { children: option.label }),
|
|
7110
|
+
context === "menu" && "secondaryLabel" in option && option.secondaryLabel ? /* @__PURE__ */ jsx77("div", { css: FilterOptionSecondaryLabel, children: option.secondaryLabel }) : null
|
|
7111
|
+
] }),
|
|
7104
7112
|
isOptionDisabled: (option) => {
|
|
7105
7113
|
var _a2;
|
|
7106
7114
|
return (_a2 = option == null ? void 0 : option.disabled) != null ? _a2 : false;
|
|
@@ -7430,11 +7438,10 @@ var FilterItems = ({
|
|
|
7430
7438
|
import { VerticalRhythm as VerticalRhythm7 } from "@uniformdev/design-system";
|
|
7431
7439
|
|
|
7432
7440
|
// src/components/SearchAndFilter/SearchAndFilterResultContainer.tsx
|
|
7433
|
-
import { Button as Button5, Callout as Callout5,
|
|
7441
|
+
import { Button as Button5, Callout as Callout5, Paragraph } from "@uniformdev/design-system";
|
|
7434
7442
|
import { Fragment as Fragment15, jsx as jsx80, jsxs as jsxs37 } from "@emotion/react/jsx-runtime";
|
|
7435
7443
|
var SearchAndFilterResultContainer = ({
|
|
7436
7444
|
buttonText,
|
|
7437
|
-
clearButtonLabel = "clear",
|
|
7438
7445
|
calloutTitle,
|
|
7439
7446
|
calloutText,
|
|
7440
7447
|
onHandleClear,
|
|
@@ -7482,29 +7489,19 @@ var SearchAndFilterResultContainer = ({
|
|
|
7482
7489
|
handleResetFilters();
|
|
7483
7490
|
}
|
|
7484
7491
|
};
|
|
7485
|
-
return /* @__PURE__ */
|
|
7486
|
-
/* @__PURE__ */
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
{
|
|
7499
|
-
buttonType: "tertiaryOutline",
|
|
7500
|
-
size: "xs",
|
|
7501
|
-
onClick: handleClearSearch,
|
|
7502
|
-
"data-testid": "clear-search",
|
|
7503
|
-
children: clearButtonText
|
|
7504
|
-
}
|
|
7505
|
-
)
|
|
7506
|
-
] }) : null
|
|
7507
|
-
] });
|
|
7492
|
+
return /* @__PURE__ */ jsx80(Fragment15, { children: totalResults === 0 ? /* @__PURE__ */ jsxs37(Callout5, { title: automateCalloutTitle, type: "note", children: [
|
|
7493
|
+
calloutText ? /* @__PURE__ */ jsx80(Paragraph, { children: calloutText }) : null,
|
|
7494
|
+
hideClearButton ? null : /* @__PURE__ */ jsx80(
|
|
7495
|
+
Button5,
|
|
7496
|
+
{
|
|
7497
|
+
buttonType: "tertiaryOutline",
|
|
7498
|
+
size: "xs",
|
|
7499
|
+
onClick: handleClearSearch,
|
|
7500
|
+
"data-testid": "clear-search",
|
|
7501
|
+
children: clearButtonText
|
|
7502
|
+
}
|
|
7503
|
+
)
|
|
7504
|
+
] }) : null });
|
|
7508
7505
|
};
|
|
7509
7506
|
|
|
7510
7507
|
// src/components/SearchAndFilter/SearchAndFilter.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/mesh-sdk-react",
|
|
3
|
-
"version": "20.74.6-alpha.
|
|
3
|
+
"version": "20.74.6-alpha.7.sha-23d7a1d929",
|
|
4
4
|
"description": "Uniform Mesh Framework SDK for React",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@hello-pangea/dnd": "18.0.1",
|
|
47
47
|
"@hookform/resolvers": "^5.4.0",
|
|
48
|
-
"@lexical/clipboard": "0.
|
|
49
|
-
"@lexical/react": "0.
|
|
50
|
-
"@lexical/selection": "0.
|
|
51
|
-
"@lexical/utils": "0.
|
|
48
|
+
"@lexical/clipboard": "0.49.0",
|
|
49
|
+
"@lexical/react": "0.49.0",
|
|
50
|
+
"@lexical/selection": "0.49.0",
|
|
51
|
+
"@lexical/utils": "0.49.0",
|
|
52
52
|
"@react-icons/all-files": "https://github.com/react-icons/react-icons/releases/download/v5.5.0/react-icons-all-files-5.5.0.tgz",
|
|
53
|
-
"@uniformdev/canvas": "20.74.6-alpha.
|
|
54
|
-
"@uniformdev/design-system": "20.74.6-alpha.
|
|
55
|
-
"@uniformdev/mesh-sdk": "20.74.6-alpha.
|
|
56
|
-
"@uniformdev/richtext": "20.74.6-alpha.
|
|
53
|
+
"@uniformdev/canvas": "20.74.6-alpha.7.sha-23d7a1d929",
|
|
54
|
+
"@uniformdev/design-system": "20.74.6-alpha.7.sha-23d7a1d929",
|
|
55
|
+
"@uniformdev/mesh-sdk": "20.74.6-alpha.7.sha-23d7a1d929",
|
|
56
|
+
"@uniformdev/richtext": "20.74.6-alpha.7.sha-23d7a1d929",
|
|
57
57
|
"dequal": "^2.0.3",
|
|
58
|
-
"lexical": "0.
|
|
58
|
+
"lexical": "0.49.0",
|
|
59
59
|
"mitt": "3.0.1",
|
|
60
60
|
"react-hook-form": "7.80.0",
|
|
61
61
|
"react-use": "17.6.1",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"publishConfig": {
|
|
86
86
|
"access": "public"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "23d7a1d929f2626dc09db5965d8aa6d25588d67c"
|
|
89
89
|
}
|