@devvit/public-api 0.11.14-next-2025-04-24-2e64fc4fa.0 → 0.11.14-next-2025-04-24-16fa79821.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.json +14 -9
- package/package.json +7 -7
- package/public-api.d.ts +40 -0
- package/public-api.iife.js +166 -3
package/meta.json
CHANGED
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
"format": "esm"
|
|
874
874
|
},
|
|
875
875
|
"../protos/dist/types/devvit/ui/effects/web_view/v1alpha/post_message.js": {
|
|
876
|
-
"bytes":
|
|
876
|
+
"bytes": 15241,
|
|
877
877
|
"imports": [
|
|
878
878
|
{
|
|
879
879
|
"path": "../../node_modules/protobufjs/minimal.js",
|
|
@@ -5430,7 +5430,7 @@
|
|
|
5430
5430
|
"format": "esm"
|
|
5431
5431
|
},
|
|
5432
5432
|
"../protos/dist/types/devvit/ui/effects/v1alpha/show_form.js": {
|
|
5433
|
-
"bytes":
|
|
5433
|
+
"bytes": 9636,
|
|
5434
5434
|
"imports": [
|
|
5435
5435
|
{
|
|
5436
5436
|
"path": "../../node_modules/protobufjs/minimal.js",
|
|
@@ -6752,7 +6752,7 @@
|
|
|
6752
6752
|
"format": "esm"
|
|
6753
6753
|
},
|
|
6754
6754
|
"../protos/dist/types/devvit/ui/events/v1alpha/web_view.js": {
|
|
6755
|
-
"bytes":
|
|
6755
|
+
"bytes": 12002,
|
|
6756
6756
|
"imports": [
|
|
6757
6757
|
{
|
|
6758
6758
|
"path": "../../node_modules/protobufjs/minimal.js",
|
|
@@ -6768,12 +6768,17 @@
|
|
|
6768
6768
|
"path": "../protos/dist/types/typeRegistry.js",
|
|
6769
6769
|
"kind": "import-statement",
|
|
6770
6770
|
"original": "../../../../typeRegistry.js"
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
"path": "../protos/dist/types/devvit/ui/effects/v1alpha/show_form.js",
|
|
6774
|
+
"kind": "import-statement",
|
|
6775
|
+
"original": "../../effects/v1alpha/show_form.js"
|
|
6771
6776
|
}
|
|
6772
6777
|
],
|
|
6773
6778
|
"format": "esm"
|
|
6774
6779
|
},
|
|
6775
6780
|
"../protos/dist/types/devvit/ui/events/v1alpha/event.js": {
|
|
6776
|
-
"bytes":
|
|
6781
|
+
"bytes": 28769,
|
|
6777
6782
|
"imports": [
|
|
6778
6783
|
{
|
|
6779
6784
|
"path": "../../node_modules/protobufjs/minimal.js",
|
|
@@ -9902,7 +9907,7 @@
|
|
|
9902
9907
|
"bytesInOutput": 2720
|
|
9903
9908
|
},
|
|
9904
9909
|
"../protos/dist/types/devvit/ui/effects/web_view/v1alpha/post_message.js": {
|
|
9905
|
-
"bytesInOutput":
|
|
9910
|
+
"bytesInOutput": 13880
|
|
9906
9911
|
},
|
|
9907
9912
|
"../protos/dist/types/devvit/ui/effects/v1alpha/create_order.js": {
|
|
9908
9913
|
"bytesInOutput": 10718
|
|
@@ -9929,7 +9934,7 @@
|
|
|
9929
9934
|
"bytesInOutput": 1813
|
|
9930
9935
|
},
|
|
9931
9936
|
"../protos/dist/types/devvit/ui/effects/v1alpha/show_form.js": {
|
|
9932
|
-
"bytesInOutput":
|
|
9937
|
+
"bytesInOutput": 8754
|
|
9933
9938
|
},
|
|
9934
9939
|
"../protos/dist/types/devvit/ui/effects/v1alpha/show_toast.js": {
|
|
9935
9940
|
"bytesInOutput": 2993
|
|
@@ -10091,10 +10096,10 @@
|
|
|
10091
10096
|
"bytesInOutput": 3131
|
|
10092
10097
|
},
|
|
10093
10098
|
"../protos/dist/types/devvit/ui/events/v1alpha/event.js": {
|
|
10094
|
-
"bytesInOutput":
|
|
10099
|
+
"bytesInOutput": 25442
|
|
10095
10100
|
},
|
|
10096
10101
|
"../protos/dist/types/devvit/ui/events/v1alpha/web_view.js": {
|
|
10097
|
-
"bytesInOutput":
|
|
10102
|
+
"bytesInOutput": 10955
|
|
10098
10103
|
},
|
|
10099
10104
|
"../protos/dist/types/devvit/ui/events/v1alpha/handle_ui.js": {
|
|
10100
10105
|
"bytesInOutput": 5254
|
|
@@ -10382,7 +10387,7 @@
|
|
|
10382
10387
|
"bytesInOutput": 4013
|
|
10383
10388
|
}
|
|
10384
10389
|
},
|
|
10385
|
-
"bytes":
|
|
10390
|
+
"bytes": 12521507
|
|
10386
10391
|
}
|
|
10387
10392
|
}
|
|
10388
10393
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/public-api",
|
|
3
|
-
"version": "0.11.14-next-2025-04-24-
|
|
3
|
+
"version": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
},
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@devvit/metrics": "0.11.14-next-2025-04-24-
|
|
34
|
-
"@devvit/protos": "0.11.14-next-2025-04-24-
|
|
35
|
-
"@devvit/shared-types": "0.11.14-next-2025-04-24-
|
|
33
|
+
"@devvit/metrics": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
34
|
+
"@devvit/protos": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
35
|
+
"@devvit/shared-types": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
36
36
|
"base64-js": "1.5.1",
|
|
37
37
|
"clone-deep": "4.0.1",
|
|
38
38
|
"moderndash": "4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
|
42
|
-
"@devvit/repo-tools": "0.11.14-next-2025-04-24-
|
|
43
|
-
"@devvit/tsconfig": "0.11.14-next-2025-04-24-
|
|
42
|
+
"@devvit/repo-tools": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
43
|
+
"@devvit/tsconfig": "0.11.14-next-2025-04-24-16fa79821.0",
|
|
44
44
|
"@microsoft/api-extractor": "7.41.0",
|
|
45
45
|
"@reddit/faceplate-ui": "18.0.1",
|
|
46
46
|
"@types/clone-deep": "4.0.1",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
"source": "./src/index.ts",
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "23b669ff989255ebedbac0c420b3c94705cdcc1e"
|
|
65
65
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -5003,6 +5003,9 @@ declare const CustomPostDefinition: {
|
|
|
5003
5003
|
visibility?: WebViewVisibility_2;
|
|
5004
5004
|
} | undefined;
|
|
5005
5005
|
} | undefined;
|
|
5006
|
+
formCanceled?: {
|
|
5007
|
+
formId?: string | undefined;
|
|
5008
|
+
} | undefined;
|
|
5006
5009
|
async?: boolean | undefined;
|
|
5007
5010
|
hook?: string | undefined;
|
|
5008
5011
|
retry?: boolean | undefined;
|
|
@@ -5105,6 +5108,9 @@ declare const CustomPostDefinition: {
|
|
|
5105
5108
|
visibility?: WebViewVisibility_2;
|
|
5106
5109
|
} | undefined;
|
|
5107
5110
|
} | undefined;
|
|
5111
|
+
formCanceled?: {
|
|
5112
|
+
formId?: string | undefined;
|
|
5113
|
+
} | undefined;
|
|
5108
5114
|
async?: boolean | undefined;
|
|
5109
5115
|
hook?: string | undefined;
|
|
5110
5116
|
retry?: boolean | undefined;
|
|
@@ -5352,6 +5358,9 @@ declare const CustomPostDefinition: {
|
|
|
5352
5358
|
visibility?: WebViewVisibility_2;
|
|
5353
5359
|
} | undefined;
|
|
5354
5360
|
} | undefined;
|
|
5361
|
+
formCanceled?: {
|
|
5362
|
+
formId?: string | undefined;
|
|
5363
|
+
} | undefined;
|
|
5355
5364
|
async?: boolean | undefined;
|
|
5356
5365
|
hook?: string | undefined;
|
|
5357
5366
|
retry?: boolean | undefined;
|
|
@@ -5756,6 +5765,9 @@ declare const CustomPostDefinition: {
|
|
|
5756
5765
|
visibility?: WebViewVisibility_2;
|
|
5757
5766
|
} | undefined;
|
|
5758
5767
|
} | undefined;
|
|
5768
|
+
formCanceled?: {
|
|
5769
|
+
formId?: string | undefined;
|
|
5770
|
+
} | undefined;
|
|
5759
5771
|
async?: boolean | undefined;
|
|
5760
5772
|
hook?: string | undefined;
|
|
5761
5773
|
retry?: boolean | undefined;
|
|
@@ -6035,6 +6047,9 @@ declare const CustomPostDefinition: {
|
|
|
6035
6047
|
visibility?: WebViewVisibility_2;
|
|
6036
6048
|
} | undefined;
|
|
6037
6049
|
} | undefined;
|
|
6050
|
+
formCanceled?: {
|
|
6051
|
+
formId?: string | undefined;
|
|
6052
|
+
} | undefined;
|
|
6038
6053
|
async?: boolean | undefined;
|
|
6039
6054
|
hook?: string | undefined;
|
|
6040
6055
|
retry?: boolean | undefined;
|
|
@@ -6137,6 +6152,9 @@ declare const CustomPostDefinition: {
|
|
|
6137
6152
|
visibility?: WebViewVisibility_2;
|
|
6138
6153
|
} | undefined;
|
|
6139
6154
|
} | undefined;
|
|
6155
|
+
formCanceled?: {
|
|
6156
|
+
formId?: string | undefined;
|
|
6157
|
+
} | undefined;
|
|
6140
6158
|
async?: boolean | undefined;
|
|
6141
6159
|
hook?: string | undefined;
|
|
6142
6160
|
retry?: boolean | undefined;
|
|
@@ -6384,6 +6402,9 @@ declare const CustomPostDefinition: {
|
|
|
6384
6402
|
visibility?: WebViewVisibility_2;
|
|
6385
6403
|
} | undefined;
|
|
6386
6404
|
} | undefined;
|
|
6405
|
+
formCanceled?: {
|
|
6406
|
+
formId?: string | undefined;
|
|
6407
|
+
} | undefined;
|
|
6387
6408
|
async?: boolean | undefined;
|
|
6388
6409
|
hook?: string | undefined;
|
|
6389
6410
|
retry?: boolean | undefined;
|
|
@@ -6788,6 +6809,9 @@ declare const CustomPostDefinition: {
|
|
|
6788
6809
|
visibility?: WebViewVisibility_2;
|
|
6789
6810
|
} | undefined;
|
|
6790
6811
|
} | undefined;
|
|
6812
|
+
formCanceled?: {
|
|
6813
|
+
formId?: string | undefined;
|
|
6814
|
+
} | undefined;
|
|
6791
6815
|
async?: boolean | undefined;
|
|
6792
6816
|
hook?: string | undefined;
|
|
6793
6817
|
retry?: boolean | undefined;
|
|
@@ -9903,6 +9927,21 @@ number
|
|
|
9903
9927
|
|
|
9904
9928
|
declare type FormattingSpecification = number;
|
|
9905
9929
|
|
|
9930
|
+
/** Form canceled */
|
|
9931
|
+
declare interface FormCanceledEvent {
|
|
9932
|
+
formId?: string | undefined;
|
|
9933
|
+
}
|
|
9934
|
+
|
|
9935
|
+
declare const FormCanceledEvent: {
|
|
9936
|
+
$type: "devvit.ui.effects.v1alpha.FormCanceledEvent";
|
|
9937
|
+
encode(message: FormCanceledEvent, writer?: _m0.Writer): _m0.Writer;
|
|
9938
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FormCanceledEvent;
|
|
9939
|
+
fromJSON(object: any): FormCanceledEvent;
|
|
9940
|
+
toJSON(message: FormCanceledEvent): unknown;
|
|
9941
|
+
create(base?: DeepPartial_36<FormCanceledEvent>): FormCanceledEvent;
|
|
9942
|
+
fromPartial(object: DeepPartial_36<FormCanceledEvent>): FormCanceledEvent;
|
|
9943
|
+
};
|
|
9944
|
+
|
|
9906
9945
|
export declare type FormDefinition<T extends Form | FormFunction = Form | FormFunction> = {
|
|
9907
9946
|
/** A form or a function that returns a form */
|
|
9908
9947
|
form: T;
|
|
@@ -50460,6 +50499,7 @@ declare interface UIEvent {
|
|
|
50460
50499
|
blocking?: BlockingRenderEvent | undefined;
|
|
50461
50500
|
resize?: ResizeEvent | undefined;
|
|
50462
50501
|
webView?: WebViewEvent | undefined;
|
|
50502
|
+
formCanceled?: FormCanceledEvent | undefined;
|
|
50463
50503
|
/**
|
|
50464
50504
|
* If an event is async, it can be fired in parallel with other events. Async events
|
|
50465
50505
|
* are not allowed to mutate state. Any state mutations they attempt would be ignored.
|