@fileverse-dev/fortune-react 1.0.2-mod-28-patch-2 → 1.0.2-mod-28-patch-3
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.esm.js +7 -8
- package/dist/index.js +7 -8
- package/dist/index.umd.js +7 -8
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -894,7 +894,10 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
894
894
|
className: "fa fa-angle-up",
|
|
895
895
|
"aria-hidden": "true"
|
|
896
896
|
})), /*#__PURE__*/React.createElement("div", {
|
|
897
|
-
|
|
897
|
+
onClick: function onClick() {
|
|
898
|
+
setShouldShowFunctionBody(!showFunctionBody);
|
|
899
|
+
},
|
|
900
|
+
className: "flex cursor-pointer items-center justify-between",
|
|
898
901
|
style: {
|
|
899
902
|
backgroundColor: "".concat(fn.BRAND_COLOR ? fn.BRAND_COLOR : "#F8F9FA"),
|
|
900
903
|
padding: "10px",
|
|
@@ -956,12 +959,8 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
956
959
|
width: "12px",
|
|
957
960
|
height: "12px"
|
|
958
961
|
}
|
|
959
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
960
|
-
|
|
961
|
-
setShouldShowFunctionBody(!showFunctionBody);
|
|
962
|
-
}
|
|
963
|
-
}, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
964
|
-
name: "ChevronDown",
|
|
962
|
+
}))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LucideIcon, {
|
|
963
|
+
name: showFunctionBody ? "ChevronUp" : "ChevronDown",
|
|
965
964
|
width: 16,
|
|
966
965
|
height: 16
|
|
967
966
|
})))), showFunctionBody && (/*#__PURE__*/React.createElement("div", {
|
|
@@ -992,7 +991,7 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
992
991
|
},
|
|
993
992
|
className: "text-heading-xsm color-text-default"
|
|
994
993
|
}, isKeyAdded ? "API key provided" : "API key is required"), /*#__PURE__*/React.createElement(LucideIcon, {
|
|
995
|
-
name: "ChevronDown",
|
|
994
|
+
name: showAPInput ? "ChevronUp" : "ChevronDown",
|
|
996
995
|
width: 24,
|
|
997
996
|
height: 24
|
|
998
997
|
})), showAPInput && (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
|
package/dist/index.js
CHANGED
|
@@ -906,7 +906,10 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
906
906
|
className: "fa fa-angle-up",
|
|
907
907
|
"aria-hidden": "true"
|
|
908
908
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
909
|
-
|
|
909
|
+
onClick: function onClick() {
|
|
910
|
+
setShouldShowFunctionBody(!showFunctionBody);
|
|
911
|
+
},
|
|
912
|
+
className: "flex cursor-pointer items-center justify-between",
|
|
910
913
|
style: {
|
|
911
914
|
backgroundColor: "".concat(fn.BRAND_COLOR ? fn.BRAND_COLOR : "#F8F9FA"),
|
|
912
915
|
padding: "10px",
|
|
@@ -968,12 +971,8 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
968
971
|
width: "12px",
|
|
969
972
|
height: "12px"
|
|
970
973
|
}
|
|
971
|
-
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
972
|
-
|
|
973
|
-
setShouldShowFunctionBody(!showFunctionBody);
|
|
974
|
-
}
|
|
975
|
-
}, /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
976
|
-
name: "ChevronDown",
|
|
974
|
+
}))), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
975
|
+
name: showFunctionBody ? "ChevronUp" : "ChevronDown",
|
|
977
976
|
width: 16,
|
|
978
977
|
height: 16
|
|
979
978
|
})))), showFunctionBody && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -1004,7 +1003,7 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
1004
1003
|
},
|
|
1005
1004
|
className: "text-heading-xsm color-text-default"
|
|
1006
1005
|
}, isKeyAdded ? "API key provided" : "API key is required"), /*#__PURE__*/React__default['default'].createElement(ui.LucideIcon, {
|
|
1007
|
-
name: "ChevronDown",
|
|
1006
|
+
name: showAPInput ? "ChevronUp" : "ChevronDown",
|
|
1008
1007
|
width: 24,
|
|
1009
1008
|
height: 24
|
|
1010
1009
|
})), showAPInput && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|
package/dist/index.umd.js
CHANGED
|
@@ -102208,7 +102208,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
102208
102208
|
className: "fa fa-angle-up",
|
|
102209
102209
|
"aria-hidden": "true"
|
|
102210
102210
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
102211
|
-
|
|
102211
|
+
onClick: function onClick() {
|
|
102212
|
+
setShouldShowFunctionBody(!showFunctionBody);
|
|
102213
|
+
},
|
|
102214
|
+
className: "flex cursor-pointer items-center justify-between",
|
|
102212
102215
|
style: {
|
|
102213
102216
|
backgroundColor: "".concat(fn.BRAND_COLOR ? fn.BRAND_COLOR : "#F8F9FA"),
|
|
102214
102217
|
padding: "10px",
|
|
@@ -102270,12 +102273,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
102270
102273
|
width: "12px",
|
|
102271
102274
|
height: "12px"
|
|
102272
102275
|
}
|
|
102273
|
-
}))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
102274
|
-
|
|
102275
|
-
setShouldShowFunctionBody(!showFunctionBody);
|
|
102276
|
-
}
|
|
102277
|
-
}, /*#__PURE__*/React__default['default'].createElement(be, {
|
|
102278
|
-
name: "ChevronDown",
|
|
102276
|
+
}))), /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(be, {
|
|
102277
|
+
name: showFunctionBody ? "ChevronUp" : "ChevronDown",
|
|
102279
102278
|
width: 16,
|
|
102280
102279
|
height: 16
|
|
102281
102280
|
})))), showFunctionBody && (/*#__PURE__*/React__default['default'].createElement("div", {
|
|
@@ -102306,7 +102305,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
102306
102305
|
},
|
|
102307
102306
|
className: "text-heading-xsm color-text-default"
|
|
102308
102307
|
}, isKeyAdded ? "API key provided" : "API key is required"), /*#__PURE__*/React__default['default'].createElement(be, {
|
|
102309
|
-
name: "ChevronDown",
|
|
102308
|
+
name: showAPInput ? "ChevronUp" : "ChevronDown",
|
|
102310
102309
|
width: 24,
|
|
102311
102310
|
height: 24
|
|
102312
102311
|
})), showAPInput && (/*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement("p", {
|