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/dist/esm/index.js CHANGED
@@ -769,10 +769,21 @@ const visitServerEndpoint = (opts) => __awaiter(void 0, void 0, void 0, function
769
769
  if (opts.params) {
770
770
  params = Object.fromEntries(Object
771
771
  .entries(opts.params)
772
- .filter(([key, value]) => {
772
+ .filter(([, value]) => {
773
773
  return value !== undefined;
774
774
  }));
775
775
  }
776
+ // Automatically JSONify arrays and objects
777
+ if (params) {
778
+ params = Object.fromEntries(Object
779
+ .entries(params)
780
+ .map(([key, value]) => {
781
+ if (Array.isArray(value) || typeof value === 'object') {
782
+ return [key, JSON.stringify(value)];
783
+ }
784
+ return [key, value];
785
+ }));
786
+ }
776
787
  // Send the request
777
788
  const sendRequest = yield getSendRequest();
778
789
  const response = yield sendRequest({
@@ -882,6 +893,11 @@ const shared = `
882
893
  padding: 0 !important;
883
894
  margin: 0 !important;
884
895
  }
896
+
897
+ /* Tooltip on Very Top */
898
+ .tooltip {
899
+ z-index: 9000000000 !important;
900
+ }
885
901
  `;
886
902
 
887
903
  /**