dce-reactkit 3.7.38 → 3.8.1
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/cjs/index.js +17 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/stylesheets/shared.css.d.ts +1 -1
- package/dist/esm/index.js +17 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/stylesheets/shared.css.d.ts +1 -1
- package/package.json +1 -1
- package/src/helpers/visitServerEndpoint.tsx +15 -1
- package/src/stylesheets/shared.css.ts +5 -0
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Universal stylesheet
|
|
3
3
|
* @author Gabe Abrams
|
|
4
4
|
*/
|
|
5
|
-
declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n";
|
|
5
|
+
declare const shared = "\n/* Button with no style */\n.btn-nostyle {\n border: 0 !important;\n background: transparent !important;\n outline: 0 !important;\n font-size: inherit !important;\n color: inherit !important;\n padding: 0 !important;\n margin: 0 !important;\n}\n\n/* Tooltip on Very Top */\n.tooltip {\n z-index: 9000000000 !important;\n}\n";
|
|
6
6
|
export default shared;
|
package/package.json
CHANGED
|
@@ -129,12 +129,26 @@ const visitServerEndpoint = async (
|
|
|
129
129
|
params = Object.fromEntries(
|
|
130
130
|
Object
|
|
131
131
|
.entries(opts.params)
|
|
132
|
-
.filter(([
|
|
132
|
+
.filter(([, value]) => {
|
|
133
133
|
return value !== undefined;
|
|
134
134
|
}),
|
|
135
135
|
);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
// Automatically JSONify arrays and objects
|
|
139
|
+
if (params) {
|
|
140
|
+
params = Object.fromEntries(
|
|
141
|
+
Object
|
|
142
|
+
.entries(params)
|
|
143
|
+
.map(([key, value]) => {
|
|
144
|
+
if (Array.isArray(value) || typeof value === 'object') {
|
|
145
|
+
return [key, JSON.stringify(value)];
|
|
146
|
+
}
|
|
147
|
+
return [key, value];
|
|
148
|
+
}),
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
138
152
|
// Send the request
|
|
139
153
|
const sendRequest = await getSendRequest();
|
|
140
154
|
const response = await sendRequest({
|