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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.7.38",
3
+ "version": "3.8.1",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -129,12 +129,26 @@ const visitServerEndpoint = async (
129
129
  params = Object.fromEntries(
130
130
  Object
131
131
  .entries(opts.params)
132
- .filter(([key, value]) => {
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({
@@ -13,6 +13,11 @@ const shared = `
13
13
  padding: 0 !important;
14
14
  margin: 0 !important;
15
15
  }
16
+
17
+ /* Tooltip on Very Top */
18
+ .tooltip {
19
+ z-index: 9000000000 !important;
20
+ }
16
21
  `;
17
22
 
18
23
  export default shared;