@evoke-platform/context 1.0.0-dev.122 → 1.0.0-dev.124

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.
@@ -1,7 +1,16 @@
1
1
  export function paramsSerializer(params, options) {
2
2
  const searchParams = new URLSearchParams();
3
3
  for (const [key, value] of Object.entries(params)) {
4
+ if (!validateParamKey(key) || !validateParamValue(value)) {
5
+ continue;
6
+ }
4
7
  searchParams.append(key, typeof value !== 'string' ? JSON.stringify(value) : value);
5
8
  }
6
9
  return searchParams.toString();
7
10
  }
11
+ function validateParamKey(item) {
12
+ return item.length;
13
+ }
14
+ function validateParamValue(item) {
15
+ return item !== undefined;
16
+ }
@@ -158,6 +158,10 @@ export type DisplayConfiguration = {
158
158
  relatedObjectDisplay?: 'dropdown' | 'dialogBox';
159
159
  visibility?: VisibilityConfiguration | string;
160
160
  viewLayout?: ViewLayoutEntityReference;
161
+ choicesDisplay?: {
162
+ type: 'dropdown' | 'radioButton';
163
+ sortBy?: 'ASC' | 'DESC' | 'NONE';
164
+ };
161
165
  };
162
166
  export type InputParameterReference = {
163
167
  type: 'input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.0.0-dev.122",
3
+ "version": "1.0.0-dev.124",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",