@elara-services/packages 5.2.0 → 5.3.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/index.d.ts CHANGED
@@ -164,6 +164,7 @@ declare module "@elara-services/packages" {
164
164
  min_values: number;
165
165
  max_values: number;
166
166
  type: number;
167
+ disabled: boolean;
167
168
  options: {
168
169
  label: string;
169
170
  value: string;
@@ -180,7 +181,8 @@ declare module "@elara-services/packages" {
180
181
  min?: Select['min_values'];
181
182
  max?: Select['max_values'];
182
183
  type?: Select['type'];
183
- options: Select['options']
184
+ options: Select['options'];
185
+ disabled?: Select['disabled'];
184
186
  }
185
187
 
186
188
  export type Modal = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elara-services/packages",
3
- "version": "5.2.0",
3
+ "version": "5.3.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -30,6 +30,7 @@ module.exports = class Interactions extends null {
30
30
  max_values: options?.max ?? 1,
31
31
  options: options?.options,
32
32
  type: options?.type ?? 3,
33
+ disabled: typeof options?.disabled === "boolean" ? options.disabled : false
33
34
  }
34
35
  }
35
36
 
package/packages/fetch.js CHANGED
@@ -2,6 +2,9 @@ let fetch;
2
2
 
3
3
  try {
4
4
  fetch = require("@elara-services/fetch");
5
+ if ("fetch" in fetch) {
6
+ fetch = fetch.fetch;
7
+ }
5
8
  } catch {
6
9
 
7
10
  }