@devvit/public-api 0.10.19-next-2024-04-10-1c552d072.0 → 0.10.19-next-2024-04-10-8ca84d48f.0

Sign up to get free protection for your applications and to get access to all the features.
package/meta.min.json CHANGED
@@ -2399,7 +2399,7 @@
2399
2399
  "format": "esm"
2400
2400
  },
2401
2401
  "src/types/form.ts": {
2402
- "bytes": 4551,
2402
+ "bytes": 4907,
2403
2403
  "imports": [],
2404
2404
  "format": "esm"
2405
2405
  },
@@ -2576,7 +2576,7 @@
2576
2576
  "format": "esm"
2577
2577
  },
2578
2578
  "src/apis/ui/helpers/transformForm.ts": {
2579
- "bytes": 3605,
2579
+ "bytes": 3970,
2580
2580
  "imports": [
2581
2581
  {
2582
2582
  "path": "@devvit/protos",
@@ -2733,7 +2733,7 @@
2733
2733
  "format": "esm"
2734
2734
  },
2735
2735
  "src/apis/ui/helpers/getFormValues.ts": {
2736
- "bytes": 970,
2736
+ "bytes": 1069,
2737
2737
  "imports": [
2738
2738
  {
2739
2739
  "path": "@devvit/protos",
@@ -4618,7 +4618,7 @@
4618
4618
  "imports": [],
4619
4619
  "exports": [],
4620
4620
  "inputs": {},
4621
- "bytes": 1217009
4621
+ "bytes": 1218109
4622
4622
  },
4623
4623
  "dist/public-api.min.js": {
4624
4624
  "imports": [
@@ -5182,7 +5182,7 @@
5182
5182
  "bytesInOutput": 362
5183
5183
  },
5184
5184
  "src/apis/ui/helpers/transformForm.ts": {
5185
- "bytesInOutput": 1783
5185
+ "bytesInOutput": 1956
5186
5186
  },
5187
5187
  "src/devvit/internals/helpers/extendDevvitPrototype.ts": {
5188
5188
  "bytesInOutput": 33
@@ -5212,7 +5212,7 @@
5212
5212
  "bytesInOutput": 345
5213
5213
  },
5214
5214
  "src/apis/ui/helpers/getFormValues.ts": {
5215
- "bytesInOutput": 372
5215
+ "bytesInOutput": 407
5216
5216
  },
5217
5217
  "src/devvit/internals/blocks/useForm.ts": {
5218
5218
  "bytesInOutput": 488
@@ -5407,7 +5407,7 @@
5407
5407
  "bytesInOutput": 178
5408
5408
  }
5409
5409
  },
5410
- "bytes": 260201
5410
+ "bytes": 260409
5411
5411
  }
5412
5412
  }
5413
5413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.10.19-next-2024-04-10-1c552d072.0",
3
+ "version": "0.10.19-next-2024-04-10-8ca84d48f.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "types": "./index.d.ts",
31
31
  "dependencies": {
32
- "@devvit/protos": "0.10.19-next-2024-04-10-1c552d072.0",
33
- "@devvit/runtimes": "0.10.19-next-2024-04-10-1c552d072.0",
34
- "@devvit/shared-types": "0.10.19-next-2024-04-10-1c552d072.0",
32
+ "@devvit/protos": "0.10.19-next-2024-04-10-8ca84d48f.0",
33
+ "@devvit/runtimes": "0.10.19-next-2024-04-10-8ca84d48f.0",
34
+ "@devvit/shared-types": "0.10.19-next-2024-04-10-8ca84d48f.0",
35
35
  "base64-js": "1.5.1",
36
36
  "clone-deep": "4.0.1",
37
37
  "core-js": "3.27.2",
@@ -41,7 +41,7 @@
41
41
  "@ampproject/filesize": "4.3.0",
42
42
  "@devvit/eslint-config": "0.10.18",
43
43
  "@devvit/repo-tools": "0.10.18",
44
- "@devvit/tsconfig": "0.10.19-next-2024-04-10-1c552d072.0",
44
+ "@devvit/tsconfig": "0.10.19-next-2024-04-10-8ca84d48f.0",
45
45
  "@microsoft/api-extractor": "7.41.0",
46
46
  "@reddit/faceplate-ui": "11.1.0",
47
47
  "@types/clone-deep": "4.0.1",
@@ -63,5 +63,5 @@
63
63
  }
64
64
  },
65
65
  "source": "./src/index.ts",
66
- "gitHead": "0fa725e43d481ac1454adbf49fe54760d2b577e5"
66
+ "gitHead": "9eae7e6e32b6b21f5dd0b5882d9b04f81ab65dd6"
67
67
  }
package/public-api.d.ts CHANGED
@@ -1328,7 +1328,7 @@ export declare type FormDefinition = {
1328
1328
  onSubmit: FormOnSubmitEventHandler;
1329
1329
  };
1330
1330
 
1331
- export declare type FormField = StringField | ParagraphField | NumberField | BooleanField | SelectField | FormFieldGroup;
1331
+ export declare type FormField = StringField | ImageField | ParagraphField | NumberField | BooleanField | SelectField | FormFieldGroup;
1332
1332
 
1333
1333
  /** A grouping of fields */
1334
1334
  export declare type FormFieldGroup = {
@@ -1607,6 +1607,15 @@ declare type ImageContainer<Context> = {
1607
1607
  animatedImage(opts: ImageOptions): Context;
1608
1608
  };
1609
1609
 
1610
+ /**
1611
+ * Allows a user to upload an image as part of submitting the form. The string value that's
1612
+ * given back is the URL of the image.
1613
+ * @experimental
1614
+ */
1615
+ export declare type ImageField = Omit<BaseField<string>, 'defaultValue'> & {
1616
+ type: 'image';
1617
+ };
1618
+
1610
1619
  /**
1611
1620
  * @borrows MediaOptions
1612
1621
  */