@devvit/public-api 0.11.0-next-2024-07-22-0a49bf500.0 → 0.11.0-next-2024-07-23-33f5f2eff.0

Sign up to get free protection for your applications and to get access to all the features.
package/meta.json CHANGED
@@ -8547,7 +8547,7 @@
8547
8547
  "format": "esm"
8548
8548
  },
8549
8549
  "../protos/dist/types/devvit/payments/v1alpha/product.js": {
8550
- "bytes": 10214,
8550
+ "bytes": 11309,
8551
8551
  "imports": [
8552
8552
  {
8553
8553
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -11856,11 +11856,6 @@
11856
11856
  ],
11857
11857
  "format": "esm"
11858
11858
  },
11859
- "../shared-types/dist/dimensions.js": {
11860
- "bytes": 108,
11861
- "imports": [],
11862
- "format": "esm"
11863
- },
11864
11859
  "src/apis/ui/helpers/getEffectsFromUIClient.ts": {
11865
11860
  "bytes": 368,
11866
11861
  "imports": [],
@@ -11888,7 +11883,18 @@
11888
11883
  "format": "esm"
11889
11884
  },
11890
11885
  "src/devvit/internals/blocks/transformContext.ts": {
11891
- "bytes": 4619,
11886
+ "bytes": 3966,
11887
+ "imports": [
11888
+ {
11889
+ "path": "../protos/dist/index.js",
11890
+ "kind": "import-statement",
11891
+ "original": "@devvit/protos"
11892
+ }
11893
+ ],
11894
+ "format": "esm"
11895
+ },
11896
+ "src/devvit/internals/blocks/transformerUtils.ts": {
11897
+ "bytes": 3170,
11892
11898
  "imports": [
11893
11899
  {
11894
11900
  "path": "../protos/dist/index.js",
@@ -11899,7 +11905,7 @@
11899
11905
  "format": "esm"
11900
11906
  },
11901
11907
  "src/devvit/internals/blocks/BlocksTransformer.ts": {
11902
- "bytes": 28949,
11908
+ "bytes": 27586,
11903
11909
  "imports": [
11904
11910
  {
11905
11911
  "path": "../protos/dist/index.js",
@@ -11921,6 +11927,11 @@
11921
11927
  "kind": "import-statement",
11922
11928
  "original": "./transformContext.js"
11923
11929
  },
11930
+ {
11931
+ "path": "src/devvit/internals/blocks/transformerUtils.ts",
11932
+ "kind": "import-statement",
11933
+ "original": "./transformerUtils.js"
11934
+ },
11924
11935
  {
11925
11936
  "path": "<runtime>",
11926
11937
  "kind": "import-statement",
@@ -11930,18 +11941,13 @@
11930
11941
  "format": "esm"
11931
11942
  },
11932
11943
  "src/devvit/internals/blocks/BlocksReconciler.ts": {
11933
- "bytes": 19878,
11944
+ "bytes": 19367,
11934
11945
  "imports": [
11935
11946
  {
11936
11947
  "path": "../protos/dist/index.js",
11937
11948
  "kind": "import-statement",
11938
11949
  "original": "@devvit/protos"
11939
11950
  },
11940
- {
11941
- "path": "../shared-types/dist/dimensions.js",
11942
- "kind": "import-statement",
11943
- "original": "@devvit/shared-types/dimensions.js"
11944
- },
11945
11951
  {
11946
11952
  "path": "../shared-types/dist/Header.js",
11947
11953
  "kind": "import-statement",
@@ -12564,18 +12570,13 @@
12564
12570
  "format": "esm"
12565
12571
  },
12566
12572
  "src/devvit/internals/blocks/handler/BlocksHandler.ts": {
12567
- "bytes": 18665,
12573
+ "bytes": 18262,
12568
12574
  "imports": [
12569
12575
  {
12570
12576
  "path": "@devvit/protos",
12571
12577
  "kind": "import-statement",
12572
12578
  "external": true
12573
12579
  },
12574
- {
12575
- "path": "../shared-types/dist/dimensions.js",
12576
- "kind": "import-statement",
12577
- "original": "@devvit/shared-types/dimensions.js"
12578
- },
12579
12580
  {
12580
12581
  "path": "../../node_modules/lodash.isequal/index.js",
12581
12582
  "kind": "import-statement",
@@ -14154,7 +14155,7 @@
14154
14155
  "bytesInOutput": 29854
14155
14156
  },
14156
14157
  "../protos/dist/types/devvit/payments/v1alpha/product.js": {
14157
- "bytesInOutput": 9207
14158
+ "bytesInOutput": 10166
14158
14159
  },
14159
14160
  "../protos/dist/types/devvit/payments/v1alpha/common.js": {
14160
14161
  "bytesInOutput": 1229
@@ -14471,9 +14472,6 @@
14471
14472
  "src/devvit/internals/app-settings.ts": {
14472
14473
  "bytesInOutput": 614
14473
14474
  },
14474
- "../shared-types/dist/dimensions.js": {
14475
- "bytesInOutput": 98
14476
- },
14477
14475
  "src/apis/ui/helpers/getEffectsFromUIClient.ts": {
14478
14476
  "bytesInOutput": 69
14479
14477
  },
@@ -14487,13 +14485,16 @@
14487
14485
  "bytesInOutput": 5194
14488
14486
  },
14489
14487
  "src/devvit/internals/blocks/transformContext.ts": {
14490
- "bytesInOutput": 3618
14488
+ "bytesInOutput": 2493
14489
+ },
14490
+ "src/devvit/internals/blocks/transformerUtils.ts": {
14491
+ "bytesInOutput": 2225
14491
14492
  },
14492
14493
  "src/devvit/internals/blocks/BlocksTransformer.ts": {
14493
- "bytesInOutput": 23029
14494
+ "bytesInOutput": 21993
14494
14495
  },
14495
14496
  "src/devvit/internals/blocks/BlocksReconciler.ts": {
14496
- "bytesInOutput": 14530
14497
+ "bytesInOutput": 14179
14497
14498
  },
14498
14499
  "src/devvit/internals/custom-post.ts": {
14499
14500
  "bytesInOutput": 697
@@ -14520,7 +14521,7 @@
14520
14521
  "bytesInOutput": 3085
14521
14522
  },
14522
14523
  "src/devvit/internals/blocks/handler/BlocksHandler.ts": {
14523
- "bytesInOutput": 15750
14524
+ "bytesInOutput": 15311
14524
14525
  },
14525
14526
  "../shared-types/dist/useForm.js": {
14526
14527
  "bytesInOutput": 162
@@ -14643,7 +14644,7 @@
14643
14644
  "bytesInOutput": 4358
14644
14645
  }
14645
14646
  },
14646
- "bytes": 15178845
14647
+ "bytes": 15180729
14647
14648
  }
14648
14649
  }
14649
14650
  }
package/meta.min.json CHANGED
@@ -3071,11 +3071,6 @@
3071
3071
  ],
3072
3072
  "format": "esm"
3073
3073
  },
3074
- "../shared-types/dist/dimensions.js": {
3075
- "bytes": 108,
3076
- "imports": [],
3077
- "format": "esm"
3078
- },
3079
3074
  "src/apis/ui/helpers/getEffectsFromUIClient.ts": {
3080
3075
  "bytes": 368,
3081
3076
  "imports": [],
@@ -3103,7 +3098,18 @@
3103
3098
  "format": "esm"
3104
3099
  },
3105
3100
  "src/devvit/internals/blocks/transformContext.ts": {
3106
- "bytes": 4619,
3101
+ "bytes": 3966,
3102
+ "imports": [
3103
+ {
3104
+ "path": "@devvit/protos",
3105
+ "kind": "import-statement",
3106
+ "external": true
3107
+ }
3108
+ ],
3109
+ "format": "esm"
3110
+ },
3111
+ "src/devvit/internals/blocks/transformerUtils.ts": {
3112
+ "bytes": 3170,
3107
3113
  "imports": [
3108
3114
  {
3109
3115
  "path": "@devvit/protos",
@@ -3114,7 +3120,7 @@
3114
3120
  "format": "esm"
3115
3121
  },
3116
3122
  "src/devvit/internals/blocks/BlocksTransformer.ts": {
3117
- "bytes": 28949,
3123
+ "bytes": 27586,
3118
3124
  "imports": [
3119
3125
  {
3120
3126
  "path": "@devvit/protos",
@@ -3136,6 +3142,11 @@
3136
3142
  "kind": "import-statement",
3137
3143
  "original": "./transformContext.js"
3138
3144
  },
3145
+ {
3146
+ "path": "src/devvit/internals/blocks/transformerUtils.ts",
3147
+ "kind": "import-statement",
3148
+ "original": "./transformerUtils.js"
3149
+ },
3139
3150
  {
3140
3151
  "path": "<runtime>",
3141
3152
  "kind": "import-statement",
@@ -3145,18 +3156,13 @@
3145
3156
  "format": "esm"
3146
3157
  },
3147
3158
  "src/devvit/internals/blocks/BlocksReconciler.ts": {
3148
- "bytes": 19878,
3159
+ "bytes": 19367,
3149
3160
  "imports": [
3150
3161
  {
3151
3162
  "path": "@devvit/protos",
3152
3163
  "kind": "import-statement",
3153
3164
  "external": true
3154
3165
  },
3155
- {
3156
- "path": "../shared-types/dist/dimensions.js",
3157
- "kind": "import-statement",
3158
- "original": "@devvit/shared-types/dimensions.js"
3159
- },
3160
3166
  {
3161
3167
  "path": "../shared-types/dist/Header.js",
3162
3168
  "kind": "import-statement",
@@ -3779,18 +3785,13 @@
3779
3785
  "format": "esm"
3780
3786
  },
3781
3787
  "src/devvit/internals/blocks/handler/BlocksHandler.ts": {
3782
- "bytes": 18665,
3788
+ "bytes": 18262,
3783
3789
  "imports": [
3784
3790
  {
3785
3791
  "path": "@devvit/protos",
3786
3792
  "kind": "import-statement",
3787
3793
  "external": true
3788
3794
  },
3789
- {
3790
- "path": "../shared-types/dist/dimensions.js",
3791
- "kind": "import-statement",
3792
- "original": "@devvit/shared-types/dimensions.js"
3793
- },
3794
3795
  {
3795
3796
  "path": "../../node_modules/lodash.isequal/index.js",
3796
3797
  "kind": "import-statement",
@@ -4725,7 +4726,7 @@
4725
4726
  "imports": [],
4726
4727
  "exports": [],
4727
4728
  "inputs": {},
4728
- "bytes": 1181716
4729
+ "bytes": 1181084
4729
4730
  },
4730
4731
  "dist/public-api.min.js": {
4731
4732
  "imports": [
@@ -4844,6 +4845,11 @@
4844
4845
  "kind": "import-statement",
4845
4846
  "external": true
4846
4847
  },
4848
+ {
4849
+ "path": "@devvit/protos",
4850
+ "kind": "import-statement",
4851
+ "external": true
4852
+ },
4847
4853
  {
4848
4854
  "path": "@devvit/protos",
4849
4855
  "kind": "import-statement",
@@ -5372,10 +5378,7 @@
5372
5378
  "bytesInOutput": 350
5373
5379
  },
5374
5380
  "src/devvit/internals/blocks/BlocksReconciler.ts": {
5375
- "bytesInOutput": 7323
5376
- },
5377
- "../shared-types/dist/dimensions.js": {
5378
- "bytesInOutput": 50
5381
+ "bytesInOutput": 7153
5379
5382
  },
5380
5383
  "src/apis/ui/helpers/getEffectsFromUIClient.ts": {
5381
5384
  "bytesInOutput": 34
@@ -5384,7 +5387,7 @@
5384
5387
  "bytesInOutput": 101
5385
5388
  },
5386
5389
  "src/devvit/internals/blocks/BlocksTransformer.ts": {
5387
- "bytesInOutput": 11875
5390
+ "bytesInOutput": 11489
5388
5391
  },
5389
5392
  "src/devvit/internals/semanticColors.ts": {
5390
5393
  "bytesInOutput": 11055
@@ -5393,7 +5396,10 @@
5393
5396
  "bytesInOutput": 3463
5394
5397
  },
5395
5398
  "src/devvit/internals/blocks/transformContext.ts": {
5396
- "bytesInOutput": 1319
5399
+ "bytesInOutput": 787
5400
+ },
5401
+ "src/devvit/internals/blocks/transformerUtils.ts": {
5402
+ "bytesInOutput": 1072
5397
5403
  },
5398
5404
  "src/devvit/internals/installation-settings.ts": {
5399
5405
  "bytesInOutput": 401
@@ -5420,7 +5426,7 @@
5420
5426
  "bytesInOutput": 260
5421
5427
  },
5422
5428
  "src/devvit/internals/blocks/handler/BlocksHandler.ts": {
5423
- "bytesInOutput": 7130
5429
+ "bytesInOutput": 6990
5424
5430
  },
5425
5431
  "src/devvit/internals/blocks/handler/UIClient.ts": {
5426
5432
  "bytesInOutput": 974
@@ -5537,7 +5543,7 @@
5537
5543
  "bytesInOutput": 2083
5538
5544
  }
5539
5545
  },
5540
- "bytes": 251491
5546
+ "bytes": 251285
5541
5547
  }
5542
5548
  }
5543
5549
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.0-next-2024-07-22-0a49bf500.0",
3
+ "version": "0.11.0-next-2024-07-23-33f5f2eff.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-07-22-0a49bf500.0",
34
- "@devvit/shared-types": "0.11.0-next-2024-07-22-0a49bf500.0",
33
+ "@devvit/protos": "0.11.0-next-2024-07-23-33f5f2eff.0",
34
+ "@devvit/shared-types": "0.11.0-next-2024-07-23-33f5f2eff.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-07-22-0a49bf500.0",
43
- "@devvit/repo-tools": "0.11.0-next-2024-07-22-0a49bf500.0",
44
- "@devvit/tsconfig": "0.11.0-next-2024-07-22-0a49bf500.0",
42
+ "@devvit/eslint-config": "0.11.0-next-2024-07-23-33f5f2eff.0",
43
+ "@devvit/repo-tools": "0.11.0-next-2024-07-23-33f5f2eff.0",
44
+ "@devvit/tsconfig": "0.11.0-next-2024-07-23-33f5f2eff.0",
45
45
  "@microsoft/api-extractor": "7.41.0",
46
46
  "@reddit/faceplate-ui": "11.3.3",
47
47
  "@types/clone-deep": "4.0.1",
@@ -64,5 +64,5 @@
64
64
  }
65
65
  },
66
66
  "source": "./src/index.ts",
67
- "gitHead": "af71abf36a0a6c56d9a0db3622d799328e2859c5"
67
+ "gitHead": "e8f759ad82be4490bcdfac73b4ce3d3944bb1fe1"
68
68
  }
package/public-api.d.ts CHANGED
@@ -3400,11 +3400,13 @@ declare const BuildPackDefinition: {
3400
3400
  products?: {
3401
3401
  [x: string]: {
3402
3402
  sku?: string;
3403
+ name?: string;
3403
3404
  price?: {
3404
3405
  amount?: number;
3405
3406
  currency?: Currency_2;
3406
3407
  } | undefined;
3407
3408
  environment?: Environment_2;
3409
+ description?: string;
3408
3410
  productMetadata?: {
3409
3411
  [x: string]: string | undefined;
3410
3412
  };
@@ -3500,11 +3502,13 @@ declare const BuildPackDefinition: {
3500
3502
  products?: {
3501
3503
  [x: string]: {
3502
3504
  sku?: string;
3505
+ name?: string;
3503
3506
  price?: {
3504
3507
  amount?: number;
3505
3508
  currency?: Currency_2;
3506
3509
  } | undefined;
3507
3510
  environment?: Environment_2;
3511
+ description?: string;
3508
3512
  productMetadata?: {
3509
3513
  [x: string]: string | undefined;
3510
3514
  };
@@ -3657,11 +3661,13 @@ declare const BuildPackDefinition: {
3657
3661
  products?: {
3658
3662
  [x: string]: {
3659
3663
  sku?: string;
3664
+ name?: string;
3660
3665
  price?: {
3661
3666
  amount?: number;
3662
3667
  currency?: Currency_2;
3663
3668
  } | undefined;
3664
3669
  environment?: Environment_2;
3670
+ description?: string;
3665
3671
  productMetadata?: {
3666
3672
  [x: string]: string | undefined;
3667
3673
  };
@@ -3757,11 +3763,13 @@ declare const BuildPackDefinition: {
3757
3763
  products?: {
3758
3764
  [x: string]: {
3759
3765
  sku?: string;
3766
+ name?: string;
3760
3767
  price?: {
3761
3768
  amount?: number;
3762
3769
  currency?: Currency_2;
3763
3770
  } | undefined;
3764
3771
  environment?: Environment_2;
3772
+ description?: string;
3765
3773
  productMetadata?: {
3766
3774
  [x: string]: string | undefined;
3767
3775
  };
@@ -17398,11 +17406,13 @@ declare const LinkerDefinition: {
17398
17406
  products?: {
17399
17407
  [x: string]: {
17400
17408
  sku?: string;
17409
+ name?: string;
17401
17410
  price?: {
17402
17411
  amount?: number;
17403
17412
  currency?: Currency_2;
17404
17413
  } | undefined;
17405
17414
  environment?: Environment_2;
17415
+ description?: string;
17406
17416
  productMetadata?: {
17407
17417
  [x: string]: string | undefined;
17408
17418
  };
@@ -17476,11 +17486,13 @@ declare const LinkerDefinition: {
17476
17486
  products?: {
17477
17487
  [x: string]: {
17478
17488
  sku?: string;
17489
+ name?: string;
17479
17490
  price?: {
17480
17491
  amount?: number;
17481
17492
  currency?: Currency_2;
17482
17493
  } | undefined;
17483
17494
  environment?: Environment_2;
17495
+ description?: string;
17484
17496
  productMetadata?: {
17485
17497
  [x: string]: string | undefined;
17486
17498
  };
@@ -41965,10 +41977,14 @@ declare const ProducerServiceName = "devvit.actor.producer.Producer";
41965
41977
  declare interface Product {
41966
41978
  /** the developer defined identifer for the product */
41967
41979
  sku: string;
41980
+ /** Human-readable name of the product */
41981
+ name: string;
41968
41982
  /** the price of the product */
41969
41983
  price?: ProductPrice | undefined;
41970
41984
  /** whether or not this product is defined for sandbox or production purchases */
41971
41985
  environment: Environment;
41986
+ /** Human-readable description of the product */
41987
+ description: string;
41972
41988
  /** tags associated with the product */
41973
41989
  productMetadata: {
41974
41990
  [key: string]: string;
@@ -47604,11 +47620,13 @@ declare const ResolverDefinition: {
47604
47620
  products?: {
47605
47621
  [x: string]: {
47606
47622
  sku?: string;
47623
+ name?: string;
47607
47624
  price?: {
47608
47625
  amount?: number;
47609
47626
  currency?: Currency_2;
47610
47627
  } | undefined;
47611
47628
  environment?: Environment_2;
47629
+ description?: string;
47612
47630
  productMetadata?: {
47613
47631
  [x: string]: string | undefined;
47614
47632
  };
@@ -47682,11 +47700,13 @@ declare const ResolverDefinition: {
47682
47700
  products?: {
47683
47701
  [x: string]: {
47684
47702
  sku?: string;
47703
+ name?: string;
47685
47704
  price?: {
47686
47705
  amount?: number;
47687
47706
  currency?: Currency_2;
47688
47707
  } | undefined;
47689
47708
  environment?: Environment_2;
47709
+ description?: string;
47690
47710
  productMetadata?: {
47691
47711
  [x: string]: string | undefined;
47692
47712
  };