@devvit/public-api 0.11.0-next-2024-08-28-c7054fdb3.0 → 0.11.0-next-2024-08-29-fd7c15444.0
Sign up to get free protection for your applications and to get access to all the features.
- package/devvit/internals/blocks/handler/RenderContext.d.ts.map +1 -1
- package/devvit/internals/blocks/handler/RenderContext.js +7 -1
- package/meta.json +5 -5
- package/meta.min.json +4 -4
- package/package.json +7 -7
- package/public-api.d.ts +0 -18
- package/public-api.iife.js +3 -32
- package/public-api.min.js +3 -3
- package/public-api.min.js.map +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../../../../src/devvit/internals/blocks/handler/RenderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACxF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAelE;;;;;;;;;GASG;AACH,qBAAa,aAAc,YAAW,aAAa;;IACjD,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAElC,SAAS,EAAE,CAAC,WAAW,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAM;IAEnD,UAAU,EAAE;QAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,CAAM;IAC5C,WAAW,EAAE,MAAM,CAAM;IACzB,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MA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,OAAO,EAAE,YAAY,GAAG,IAAI;IAI1E,sBAAsB,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC;IAUnE,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAInD;;OAEG;IACH,kBAAkB,CAAC,GAAG,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI;IAmB9C,IAAI,OAAO,IAAI,MAAM,EAAE,CAEtB;IAED,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM;CA0CzC"}
|
@@ -110,7 +110,13 @@ export class RenderContext {
|
|
110
110
|
// events. Remember that the BlocksHandler can do N number of passes before
|
111
111
|
// it determines it is time to send a response back to the client. _changed
|
112
112
|
// needs to encompass all of those changes.
|
113
|
-
|
113
|
+
// You may also be tempted to put `this._hooks = {}` here, please DON'T!
|
114
|
+
// Some hooks (useState) may rely on values held on the previous hook. If you
|
115
|
+
// set this._hooks = {} and then call #loadHooks from BlocksHandler, you will
|
116
|
+
// accidentally remove all state held in prevHooks since the first step of
|
117
|
+
// #loadHooks is to set hooks values to {}. Setting hooks to {} is a concern that
|
118
|
+
// should live outside of RenderContext and inside of BlocksHandler on a case
|
119
|
+
// by case basis.
|
114
120
|
__classPrivateFieldSet(this, _RenderContext_state, state, "f");
|
115
121
|
}
|
116
122
|
push(options) {
|
package/meta.json
CHANGED
@@ -7724,7 +7724,7 @@
|
|
7724
7724
|
"format": "esm"
|
7725
7725
|
},
|
7726
7726
|
"../protos/dist/types/devvit/ui/effects/v1alpha/show_form.js": {
|
7727
|
-
"bytes":
|
7727
|
+
"bytes": 7930,
|
7728
7728
|
"imports": [
|
7729
7729
|
{
|
7730
7730
|
"path": "../../node_modules/protobufjs/minimal.js",
|
@@ -12287,7 +12287,7 @@
|
|
12287
12287
|
"format": "esm"
|
12288
12288
|
},
|
12289
12289
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
12290
|
-
"bytes":
|
12290
|
+
"bytes": 8553,
|
12291
12291
|
"imports": [
|
12292
12292
|
{
|
12293
12293
|
"path": "<runtime>",
|
@@ -13961,7 +13961,7 @@
|
|
13961
13961
|
"bytesInOutput": 1813
|
13962
13962
|
},
|
13963
13963
|
"../protos/dist/types/devvit/ui/effects/v1alpha/show_form.js": {
|
13964
|
-
"bytesInOutput":
|
13964
|
+
"bytesInOutput": 7123
|
13965
13965
|
},
|
13966
13966
|
"../protos/dist/types/devvit/ui/form_builder/v1alpha/form.js": {
|
13967
13967
|
"bytesInOutput": 4435
|
@@ -14435,7 +14435,7 @@
|
|
14435
14435
|
"bytesInOutput": 5149
|
14436
14436
|
},
|
14437
14437
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
14438
|
-
"bytesInOutput":
|
14438
|
+
"bytesInOutput": 5820
|
14439
14439
|
},
|
14440
14440
|
"src/devvit/internals/blocks/handler/useInterval.ts": {
|
14441
14441
|
"bytesInOutput": 2447
|
@@ -14549,7 +14549,7 @@
|
|
14549
14549
|
"bytesInOutput": 370
|
14550
14550
|
}
|
14551
14551
|
},
|
14552
|
-
"bytes":
|
14552
|
+
"bytes": 14880126
|
14553
14553
|
}
|
14554
14554
|
}
|
14555
14555
|
}
|
package/meta.min.json
CHANGED
@@ -3616,7 +3616,7 @@
|
|
3616
3616
|
"format": "esm"
|
3617
3617
|
},
|
3618
3618
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
3619
|
-
"bytes":
|
3619
|
+
"bytes": 8553,
|
3620
3620
|
"imports": [
|
3621
3621
|
{
|
3622
3622
|
"path": "<runtime>",
|
@@ -4754,7 +4754,7 @@
|
|
4754
4754
|
"imports": [],
|
4755
4755
|
"exports": [],
|
4756
4756
|
"inputs": {},
|
4757
|
-
"bytes":
|
4757
|
+
"bytes": 1217211
|
4758
4758
|
},
|
4759
4759
|
"dist/public-api.min.js": {
|
4760
4760
|
"imports": [
|
@@ -5464,7 +5464,7 @@
|
|
5464
5464
|
"bytesInOutput": 1213
|
5465
5465
|
},
|
5466
5466
|
"src/devvit/internals/blocks/handler/RenderContext.ts": {
|
5467
|
-
"bytesInOutput":
|
5467
|
+
"bytesInOutput": 2460
|
5468
5468
|
},
|
5469
5469
|
"src/devvit/internals/blocks/handler/types.ts": {
|
5470
5470
|
"bytesInOutput": 29
|
@@ -5569,7 +5569,7 @@
|
|
5569
5569
|
"bytesInOutput": 178
|
5570
5570
|
}
|
5571
5571
|
},
|
5572
|
-
"bytes":
|
5572
|
+
"bytes": 261333
|
5573
5573
|
}
|
5574
5574
|
}
|
5575
5575
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@devvit/public-api",
|
3
|
-
"version": "0.11.0-next-2024-08-
|
3
|
+
"version": "0.11.0-next-2024-08-29-fd7c15444.0",
|
4
4
|
"license": "BSD-3-Clause",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"types": "./index.d.ts",
|
32
32
|
"dependencies": {
|
33
|
-
"@devvit/protos": "0.11.0-next-2024-08-
|
34
|
-
"@devvit/shared-types": "0.11.0-next-2024-08-
|
33
|
+
"@devvit/protos": "0.11.0-next-2024-08-29-fd7c15444.0",
|
34
|
+
"@devvit/shared-types": "0.11.0-next-2024-08-29-fd7c15444.0",
|
35
35
|
"base64-js": "1.5.1",
|
36
36
|
"clone-deep": "4.0.1",
|
37
37
|
"core-js": "3.27.2",
|
@@ -39,9 +39,9 @@
|
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@ampproject/filesize": "4.3.0",
|
42
|
-
"@devvit/eslint-config": "0.11.0-next-2024-08-
|
43
|
-
"@devvit/repo-tools": "0.11.0-next-2024-08-
|
44
|
-
"@devvit/tsconfig": "0.11.0-next-2024-08-
|
42
|
+
"@devvit/eslint-config": "0.11.0-next-2024-08-29-fd7c15444.0",
|
43
|
+
"@devvit/repo-tools": "0.11.0-next-2024-08-29-fd7c15444.0",
|
44
|
+
"@devvit/tsconfig": "0.11.0-next-2024-08-29-fd7c15444.0",
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
46
46
|
"@reddit/faceplate-ui": "16.1.0",
|
47
47
|
"@types/clone-deep": "4.0.1",
|
@@ -64,5 +64,5 @@
|
|
64
64
|
}
|
65
65
|
},
|
66
66
|
"source": "./src/index.ts",
|
67
|
-
"gitHead": "
|
67
|
+
"gitHead": "35ed922748de1657a137793076caa8a7b7fa9373"
|
68
68
|
}
|
package/public-api.d.ts
CHANGED
@@ -6940,8 +6940,6 @@ declare const CustomPostDefinition: {
|
|
6940
6940
|
} | undefined;
|
6941
6941
|
};
|
6942
6942
|
formId?: string | undefined;
|
6943
|
-
postId?: string | undefined;
|
6944
|
-
authorId?: string | undefined;
|
6945
6943
|
} | undefined;
|
6946
6944
|
orderResult?: {
|
6947
6945
|
errorMessage?: string | undefined;
|
@@ -7033,8 +7031,6 @@ declare const CustomPostDefinition: {
|
|
7033
7031
|
} | undefined;
|
7034
7032
|
};
|
7035
7033
|
formId?: string | undefined;
|
7036
|
-
postId?: string | undefined;
|
7037
|
-
authorId?: string | undefined;
|
7038
7034
|
} | undefined;
|
7039
7035
|
orderResult?: {
|
7040
7036
|
errorMessage?: string | undefined;
|
@@ -7252,8 +7248,6 @@ declare const CustomPostDefinition: {
|
|
7252
7248
|
} | undefined;
|
7253
7249
|
};
|
7254
7250
|
formId?: string | undefined;
|
7255
|
-
postId?: string | undefined;
|
7256
|
-
authorId?: string | undefined;
|
7257
7251
|
} | undefined;
|
7258
7252
|
orderResult?: {
|
7259
7253
|
errorMessage?: string | undefined;
|
@@ -7628,8 +7622,6 @@ declare const CustomPostDefinition: {
|
|
7628
7622
|
} | undefined;
|
7629
7623
|
};
|
7630
7624
|
formId?: string | undefined;
|
7631
|
-
postId?: string | undefined;
|
7632
|
-
authorId?: string | undefined;
|
7633
7625
|
} | undefined;
|
7634
7626
|
orderResult?: {
|
7635
7627
|
errorMessage?: string | undefined;
|
@@ -7898,8 +7890,6 @@ declare const CustomPostDefinition: {
|
|
7898
7890
|
} | undefined;
|
7899
7891
|
};
|
7900
7892
|
formId?: string | undefined;
|
7901
|
-
postId?: string | undefined;
|
7902
|
-
authorId?: string | undefined;
|
7903
7893
|
} | undefined;
|
7904
7894
|
orderResult?: {
|
7905
7895
|
errorMessage?: string | undefined;
|
@@ -7991,8 +7981,6 @@ declare const CustomPostDefinition: {
|
|
7991
7981
|
} | undefined;
|
7992
7982
|
};
|
7993
7983
|
formId?: string | undefined;
|
7994
|
-
postId?: string | undefined;
|
7995
|
-
authorId?: string | undefined;
|
7996
7984
|
} | undefined;
|
7997
7985
|
orderResult?: {
|
7998
7986
|
errorMessage?: string | undefined;
|
@@ -8210,8 +8198,6 @@ declare const CustomPostDefinition: {
|
|
8210
8198
|
} | undefined;
|
8211
8199
|
};
|
8212
8200
|
formId?: string | undefined;
|
8213
|
-
postId?: string | undefined;
|
8214
|
-
authorId?: string | undefined;
|
8215
8201
|
} | undefined;
|
8216
8202
|
orderResult?: {
|
8217
8203
|
errorMessage?: string | undefined;
|
@@ -8586,8 +8572,6 @@ declare const CustomPostDefinition: {
|
|
8586
8572
|
} | undefined;
|
8587
8573
|
};
|
8588
8574
|
formId?: string | undefined;
|
8589
|
-
postId?: string | undefined;
|
8590
|
-
authorId?: string | undefined;
|
8591
8575
|
} | undefined;
|
8592
8576
|
orderResult?: {
|
8593
8577
|
errorMessage?: string | undefined;
|
@@ -13201,8 +13185,6 @@ declare interface FormSubmittedEvent {
|
|
13201
13185
|
[key: string]: FormFieldValue;
|
13202
13186
|
};
|
13203
13187
|
formId?: string | undefined;
|
13204
|
-
postId?: string | undefined;
|
13205
|
-
authorId?: string | undefined;
|
13206
13188
|
}
|
13207
13189
|
|
13208
13190
|
declare const FormSubmittedEvent: {
|