@devvit/public-api 0.11.19-next-2025-07-23-15-39-09-193dcaf0f.0 → 0.11.19
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/apis/reddit/models/Post.d.ts +0 -17
- package/apis/reddit/models/Post.d.ts.map +1 -1
- package/apis/reddit/models/Post.js +0 -38
- package/devvit/Devvit.d.ts.map +1 -1
- package/devvit/Devvit.js +3 -2
- package/devvit/internals/blocks/handler/useWebView.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/useWebView.js +1 -8
- package/meta.min.json +11 -24
- package/package.json +8 -8
- package/public-api.min.js +5 -5
- package/public-api.min.js.map +4 -4
- package/types/configuration.d.ts +3 -5
- package/types/configuration.d.ts.map +1 -1
- package/types/form.d.ts +2 -3
- 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/types/configuration.d.ts
CHANGED
|
@@ -20,12 +20,10 @@ export type Configuration = {
|
|
|
20
20
|
modLog?: PluginSettings | boolean;
|
|
21
21
|
/** Allows your app to use the Realtime Plugin */
|
|
22
22
|
realtime?: PluginSettings | boolean;
|
|
23
|
-
/** Allows your app to call Reddit APIs on behalf of the User. Passing a boolean
|
|
23
|
+
/** Allows your app to call Reddit APIs on behalf of the User. Passing a boolean is deprecated and defaults to SUBMIT_POST and SUBMIT_COMMENT. */
|
|
24
24
|
userActions?: boolean | {
|
|
25
|
-
/** Defaults to SUBMIT_POST and SUBMIT_COMMENT. */ enabled: boolean;
|
|
26
|
-
}
|
|
27
|
-
/** @deprecated Scopes */
|
|
28
|
-
| {
|
|
25
|
+
/** Defaults to SUBMIT_POST and SUBMIT_COMMENT. @deprecated Use scopes. */ enabled: boolean;
|
|
26
|
+
} | {
|
|
29
27
|
scopes: Scope[];
|
|
30
28
|
};
|
|
31
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/types/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,gDAAgD;IAChD,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACxD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACrC,iDAAiD;IACjD,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACnC,8CAA8C;IAC9C,KAAK,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACjC,qCAAqC;IACrC,KAAK,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACjC,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IAClC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACpC,
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/types/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG;IAC3B,oCAAoC;IACpC,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,gDAAgD;IAChD,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,GAAG;QAAE,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACxD,4CAA4C;IAC5C,SAAS,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACrC,iDAAiD;IACjD,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACnC,8CAA8C;IAC9C,KAAK,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACjC,qCAAqC;IACrC,KAAK,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACjC,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IAClC,iDAAiD;IACjD,QAAQ,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC;IACpC,iJAAiJ;IACjJ,WAAW,CAAC,EACR,OAAO,GACP;QACE,0EAA0E,CAAC,OAAO,EAAE,OAAO,CAAC;KAC7F,GACD;QAAE,MAAM,EAAE,KAAK,EAAE,CAAA;KAAE,CAAC;CAMzB,CAAC"}
|
package/types/form.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormValues
|
|
1
|
+
import type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormValues, 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
|
-
type
|
|
8
|
-
export type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormKey, UntypedFormValues as FormValues, ImageField, NumberField, ParagraphField, SelectField, SettingScopeType, StringField, };
|
|
7
|
+
export type { BaseField, BooleanField, Form, FormField, FormFieldGroup, FormKey, FormValues, ImageField, NumberField, ParagraphField, SelectField, SettingScopeType, StringField, };
|
|
9
8
|
export { SettingScope as SettingScope };
|
|
10
9
|
export type FormOnSubmitEvent<T extends Partial<JSONObject>> = {
|
|
11
10
|
/** 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,EACV,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,YAAY,EACV,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,cAAc,EACd,OAAO,EACP,UAAU,EACV,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, MenuItemOnPressEvent } from '@devvit/shared/types/menu-item.js';
|
|
2
2
|
import type { Devvit } from '../devvit/Devvit.js';
|
|
3
|
-
export type { MenuItemLocation,
|
|
3
|
+
export type { MenuItemLocation, 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: MenuItemOnPressEvent, 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,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEhG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,YAAY,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;AAEvD,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,oBAAoB,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzF,CAAC"}
|