@devvit/public-api 0.11.19-next-2025-07-22-21-51-48-a55919b49.0 → 0.11.19-next-2025-07-22-23-31-05-5dbdec031.0
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/meta.min.json +2 -2
- package/package.json +8 -8
- package/types/form.d.ts +3 -2
- package/types/form.d.ts.map +1 -1
- package/types/menu-item.d.ts +3 -3
- package/types/menu-item.d.ts.map +1 -1
package/meta.min.json
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"format": "esm"
|
|
43
43
|
},
|
|
44
44
|
"src/types/form.ts": {
|
|
45
|
-
"bytes":
|
|
45
|
+
"bytes": 2122,
|
|
46
46
|
"imports": [
|
|
47
47
|
{
|
|
48
48
|
"path": "../shared/dist/types/form.js",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"format": "esm"
|
|
105
105
|
},
|
|
106
106
|
"src/types/menu-item.ts": {
|
|
107
|
-
"bytes":
|
|
107
|
+
"bytes": 1153,
|
|
108
108
|
"imports": [],
|
|
109
109
|
"format": "esm"
|
|
110
110
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/public-api",
|
|
3
|
-
"version": "0.11.19-next-2025-07-22-
|
|
3
|
+
"version": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,18 +28,18 @@
|
|
|
28
28
|
},
|
|
29
29
|
"types": "./index.d.ts",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@devvit/metrics": "0.11.19-next-2025-07-22-
|
|
32
|
-
"@devvit/protos": "0.11.19-next-2025-07-22-
|
|
33
|
-
"@devvit/shared": "0.11.19-next-2025-07-22-
|
|
34
|
-
"@devvit/shared-types": "0.11.19-next-2025-07-22-
|
|
31
|
+
"@devvit/metrics": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
32
|
+
"@devvit/protos": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
33
|
+
"@devvit/shared": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
34
|
+
"@devvit/shared-types": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
35
35
|
"base64-js": "1.5.1",
|
|
36
36
|
"clone-deep": "4.0.1",
|
|
37
37
|
"moderndash": "4.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@ampproject/filesize": "4.3.0",
|
|
41
|
-
"@devvit/repo-tools": "0.11.19-next-2025-07-22-
|
|
42
|
-
"@devvit/tsconfig": "0.11.19-next-2025-07-22-
|
|
41
|
+
"@devvit/repo-tools": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
42
|
+
"@devvit/tsconfig": "0.11.19-next-2025-07-22-23-31-05-5dbdec031.0",
|
|
43
43
|
"@reddit/faceplate-ui": "18.0.1",
|
|
44
44
|
"@types/clone-deep": "4.0.1",
|
|
45
45
|
"@vitest/coverage-c8": "0.32.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"source": "./src/index.ts",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "82291dc66b74ac3811ddbddd85cc42a9e1fe6442"
|
|
63
63
|
}
|
package/types/form.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormValues, ImageField, NumberField, ParagraphField, SelectField, SettingScopeType, StringField } from '@devvit/shared/types/form.js';
|
|
1
|
+
import type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormValues as FormValuesTyped, ImageField, NumberField, ParagraphField, SelectField, SettingScopeType, StringField } from '@devvit/shared/types/form.js';
|
|
2
2
|
import { SettingScope } from '@devvit/shared/types/form.js';
|
|
3
3
|
import type { JSONObject } from '@devvit/shared-types/json.js';
|
|
4
4
|
import type { FormKey } from '@devvit/shared-types/useForm.js';
|
|
5
5
|
import type { Devvit } from '../devvit/Devvit.js';
|
|
6
6
|
import type { FormToFormValues } from './index.js';
|
|
7
|
-
|
|
7
|
+
type UntypedFormValues = FormValuesTyped<JSONObject>;
|
|
8
|
+
export type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormKey, UntypedFormValues as FormValues, ImageField, NumberField, ParagraphField, SelectField, SettingScopeType, StringField, };
|
|
8
9
|
export { SettingScope as SettingScope };
|
|
9
10
|
export type FormOnSubmitEvent<T extends Partial<JSONObject>> = {
|
|
10
11
|
/** The form values that were submitted */
|
package/types/form.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,cAAc,EACd,UAAU,
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/types/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,cAAc,EACd,UAAU,IAAI,eAAe,EAC7B,UAAU,EACV,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,EACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,KAAK,iBAAiB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAC;AAErD,YAAY,EACV,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,cAAc,EACd,OAAO,EACP,iBAAiB,IAAI,UAAU,EAC/B,UAAU,EACV,WAAW,EACX,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,WAAW,GACZ,CAAC;AAEF,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,CAAC;AAExC,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,OAAO,CAAC,UAAU,CAAC,IAAI;IAC7D,0CAA0C;IAC1C,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,IAAI,SAAS,OAAO,CAAC,UAAU,CAAC,IAAI;AACvE,qEAAqE;AACrE,KAAK,EAAE,iBAAiB,CAAC,IAAI,CAAC;AAC9B,2DAA2D;AAC3D,OAAO,EAAE,MAAM,CAAC,OAAO,KACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE1B;;;;;;;;;;;;;;;;KAgBK;AAEL,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,IAAI,CACpF,IAAI,EAAE,CAAC,KACJ,IAAI,CAAC;AAEV,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,IAAI,GAAG,YAAY,GAAG,IAAI,GAAG,YAAY,IAAI;IAChF,+CAA+C;IAC/C,IAAI,EAAE,CAAC,CAAC;IACR,iEAAiE;IACjE,QAAQ,EAAE,wBAAwB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC"}
|
package/types/menu-item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { MenuItemLocation,
|
|
1
|
+
import type { MenuItemLocation, MenuItemRequest } from '@devvit/shared/types/menu-item.js';
|
|
2
2
|
import type { Devvit } from '../devvit/Devvit.js';
|
|
3
|
-
export type { MenuItemLocation, MenuItemOnPressEvent };
|
|
3
|
+
export type { MenuItemLocation, MenuItemRequest as MenuItemOnPressEvent };
|
|
4
4
|
export type MenuItemUserType = 'loggedOut' | 'moderator';
|
|
5
5
|
/**
|
|
6
6
|
* You can use the "currentApp" filter to only display the menu item on custom posts that were created by your app.
|
|
@@ -21,6 +21,6 @@ export type MenuItem = {
|
|
|
21
21
|
/** The user type(s) that the menu item should be displayed for */
|
|
22
22
|
forUserType?: MenuItemUserType | MenuItemUserType[];
|
|
23
23
|
/** A function that is called when the menu item is pressed */
|
|
24
|
-
onPress: (event:
|
|
24
|
+
onPress: (event: MenuItemRequest, context: Devvit.Context) => void | Promise<void>;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=menu-item.d.ts.map
|
package/types/menu-item.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/types/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../src/types/menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAE3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,YAAY,EAAE,gBAAgB,EAAE,eAAe,IAAI,oBAAoB,EAAE,CAAC;AAE1E,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG;IACrB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,QAAQ,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IAChD;;;SAGK;IACL,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,kEAAkE;IAClE,WAAW,CAAC,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAC;IACpD,8DAA8D;IAC9D,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpF,CAAC"}
|