@wise/dynamic-flow-types 2.9.1-short-962e290 → 2.11.0-experimental-ed080a1

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/build/main.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+
16
+ // src/index.ts
17
+ var src_exports = {};
18
+ module.exports = __toCommonJS(src_exports);
@@ -0,0 +1 @@
1
+ "use strict";var m=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var c=(r,o,t,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!a.call(r,e)&&e!==t&&m(r,e,{get:()=>o[e],enumerable:!(p=f(o,e))||p.enumerable});return r};var i=r=>c(m({},"__esModule",{value:!0}),r);var l={};module.exports=i(l);
package/build/main.mjs ADDED
File without changes
@@ -43,6 +43,11 @@ export type ArraySchemaList = {
43
43
  */
44
44
  maxItems?: number;
45
45
  /**
46
+ * A user-facing placeholder value to use for the field. This can be used to provide an example of the expected
47
+ * input.
48
+ */
49
+ placeholder?: string;
50
+ /**
46
51
  * A user-facing title for the schema.
47
52
  */
48
53
  title?: string;
@@ -101,4 +106,9 @@ export type ArraySchemaList = {
101
106
  * to the user-facing error message to display if the validation fails.
102
107
  */
103
108
  validationMessages?: Record<string, string>;
109
+ /**
110
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
111
+ * Defaults to false.
112
+ */
113
+ disabled?: boolean;
104
114
  };
@@ -15,11 +15,6 @@ export type BlobSchema = {
15
15
  */
16
16
  type: 'blob';
17
17
  /**
18
- * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
19
- * Defaults to false.
20
- */
21
- disabled?: boolean;
22
- /**
23
18
  * @deprecated Please use nested oneOf schemas instead.
24
19
  */
25
20
  promoted?: boolean;
@@ -101,4 +96,9 @@ export type BlobSchema = {
101
96
  * Valid sources for the file. If null, any source is permitted.
102
97
  */
103
98
  source?: UploadSource;
99
+ /**
100
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
101
+ * Defaults to false.
102
+ */
103
+ disabled?: boolean;
104
104
  };
@@ -12,11 +12,6 @@ import type { AutocompleteToken } from '../misc/AutocompleteToken';
12
12
  * or alternative sections of a form (e.g. when the user can complete either section A or section B).
13
13
  */
14
14
  export type OneOfSchema = {
15
- /**
16
- * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
17
- * Defaults to false.
18
- */
19
- disabled?: boolean;
20
15
  /**
21
16
  * @deprecated This property is deprecated
22
17
  */
@@ -144,4 +139,9 @@ export type OneOfSchema = {
144
139
  * to the user-facing error message to display if the validation fails.
145
140
  */
146
141
  validationMessages?: Record<string, string>;
142
+ /**
143
+ * If true, the UI for this schema will not accept input, but the corresponding data will still be submitted.
144
+ * Defaults to false.
145
+ */
146
+ disabled?: boolean;
147
147
  };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Unfortunately we need this because ts-to-zod can't generate a valid
3
+ * schema for our exported version of this type. So, we add this manually
4
+ * during the schema generation because it is equivalent, but can be converted
5
+ * by ts-to-zod. (We can't use this type anywhere else because we get infinitely
6
+ * nesting types.)
7
+ */
8
+ export type JsonElement = string | number | boolean | null | {
9
+ [x: string]: JsonElement;
10
+ } | JsonElement[];