@devvit/public-api 0.11.0-next-2024-07-24-f87f4c351.0 → 0.11.0-next-2024-07-24-1be38cc96.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"transformerUtils.d.ts","sourceRoot":"","sources":["../../../../src/devvit/internals/blocks/transformerUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,SAAS,GACzC,0BAA0B,GAAG,SAAS,CAoBxC;AAED;;;KAGK;AACL,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,UAAU,CAwBZ;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAC1C,gBAAgB,EAAE,gBAAgB,GACjC,UAAU,GAAG,SAAS,CA+BxB"}
1
+ {"version":3,"file":"transformerUtils.d.ts","sourceRoot":"","sources":["../../../../src/devvit/internals/blocks/transformerUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAE7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEjF,wBAAgB,SAAS,CACvB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,SAAS,GACzC,0BAA0B,GAAG,SAAS,CAoBxC;AAED;;;KAGK;AACL,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,UAAU,EACtB,iBAAiB,EAAE,iBAAiB,GACnC,UAAU,CA8BZ;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,SAAS,EAC1C,gBAAgB,EAAE,gBAAgB,GACjC,UAAU,GAAG,SAAS,CA+BxB"}
@@ -27,7 +27,8 @@ export function parseSize(size) {
27
27
  export function omitRelativeSizes(blockSizes, stackParentLayout) {
28
28
  if (blockSizes.width?.value?.unit === BlockSizeUnit.SIZE_UNIT_PERCENT ||
29
29
  blockSizes.width?.min?.unit === BlockSizeUnit.SIZE_UNIT_PERCENT) {
30
- if (stackParentLayout.direction === BlockStackDirection.STACK_HORIZONTAL) {
30
+ if (stackParentLayout.direction === BlockStackDirection.STACK_HORIZONTAL ||
31
+ stackParentLayout.direction === BlockStackDirection.STACK_DEPTH) {
31
32
  if (!stackParentLayout.hasWidth) {
32
33
  blockSizes.width = undefined;
33
34
  }
@@ -35,7 +36,8 @@ export function omitRelativeSizes(blockSizes, stackParentLayout) {
35
36
  }
36
37
  if (blockSizes.height?.value?.unit === BlockSizeUnit.SIZE_UNIT_PERCENT ||
37
38
  blockSizes.height?.min?.unit === BlockSizeUnit.SIZE_UNIT_PERCENT) {
38
- if (stackParentLayout.direction === BlockStackDirection.STACK_VERTICAL) {
39
+ if (stackParentLayout.direction === BlockStackDirection.STACK_VERTICAL ||
40
+ stackParentLayout.direction === BlockStackDirection.STACK_DEPTH) {
39
41
  if (!stackParentLayout.hasHeight) {
40
42
  blockSizes.height = undefined;
41
43
  }
package/meta.json CHANGED
@@ -11780,7 +11780,7 @@
11780
11780
  "format": "esm"
11781
11781
  },
11782
11782
  "src/devvit/internals/blocks/transformerUtils.ts": {
11783
- "bytes": 3170,
11783
+ "bytes": 3340,
11784
11784
  "imports": [
11785
11785
  {
11786
11786
  "path": "../protos/dist/index.js",
@@ -14352,7 +14352,7 @@
14352
14352
  "bytesInOutput": 2493
14353
14353
  },
14354
14354
  "src/devvit/internals/blocks/transformerUtils.ts": {
14355
- "bytesInOutput": 2225
14355
+ "bytesInOutput": 2359
14356
14356
  },
14357
14357
  "src/devvit/internals/blocks/BlocksTransformer.ts": {
14358
14358
  "bytesInOutput": 21993
@@ -14508,7 +14508,7 @@
14508
14508
  "bytesInOutput": 4358
14509
14509
  }
14510
14510
  },
14511
- "bytes": 15030190
14511
+ "bytes": 15030620
14512
14512
  }
14513
14513
  }
14514
14514
  }
package/meta.min.json CHANGED
@@ -3109,7 +3109,7 @@
3109
3109
  "format": "esm"
3110
3110
  },
3111
3111
  "src/devvit/internals/blocks/transformerUtils.ts": {
3112
- "bytes": 3170,
3112
+ "bytes": 3340,
3113
3113
  "imports": [
3114
3114
  {
3115
3115
  "path": "@devvit/protos",
@@ -4716,7 +4716,7 @@
4716
4716
  "imports": [],
4717
4717
  "exports": [],
4718
4718
  "inputs": {},
4719
- "bytes": 1181656
4719
+ "bytes": 1181882
4720
4720
  },
4721
4721
  "dist/public-api.min.js": {
4722
4722
  "imports": [
@@ -5383,7 +5383,7 @@
5383
5383
  "bytesInOutput": 787
5384
5384
  },
5385
5385
  "src/devvit/internals/blocks/transformerUtils.ts": {
5386
- "bytesInOutput": 1072
5386
+ "bytesInOutput": 1136
5387
5387
  },
5388
5388
  "src/devvit/internals/installation-settings.ts": {
5389
5389
  "bytesInOutput": 401
@@ -5527,7 +5527,7 @@
5527
5527
  "bytesInOutput": 2083
5528
5528
  }
5529
5529
  },
5530
- "bytes": 250898
5530
+ "bytes": 250962
5531
5531
  }
5532
5532
  }
5533
5533
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.0-next-2024-07-24-f87f4c351.0",
3
+ "version": "0.11.0-next-2024-07-24-1be38cc96.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-24-f87f4c351.0",
34
- "@devvit/shared-types": "0.11.0-next-2024-07-24-f87f4c351.0",
33
+ "@devvit/protos": "0.11.0-next-2024-07-24-1be38cc96.0",
34
+ "@devvit/shared-types": "0.11.0-next-2024-07-24-1be38cc96.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-24-f87f4c351.0",
43
- "@devvit/repo-tools": "0.11.0-next-2024-07-24-f87f4c351.0",
44
- "@devvit/tsconfig": "0.11.0-next-2024-07-24-f87f4c351.0",
42
+ "@devvit/eslint-config": "0.11.0-next-2024-07-24-1be38cc96.0",
43
+ "@devvit/repo-tools": "0.11.0-next-2024-07-24-1be38cc96.0",
44
+ "@devvit/tsconfig": "0.11.0-next-2024-07-24-1be38cc96.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": "a875e64e71dcd6c166132c6bb8293ba75fdd7beb"
67
+ "gitHead": "4d7b224d53e3bd9757b22fefb377d85f4242673a"
68
68
  }