@devvit/ui-renderer 0.9.0 → 0.9.1
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/blocks/attributes.d.ts +3 -1
- package/blocks/attributes.d.ts.map +1 -1
- package/blocks/attributes.js +29 -17
- package/blocks/templates/index.d.ts +1 -1
- package/blocks/templates/index.d.ts.map +1 -1
- package/blocks/templates/index.js +5 -4
- package/blocks/templates/renderAnimationBlock.d.ts.map +1 -1
- package/blocks/templates/renderAnimationBlock.js +4 -1
- package/blocks/templates/renderAvatarBlock.d.ts.map +1 -1
- package/blocks/templates/renderAvatarBlock.js +4 -1
- package/blocks/templates/renderBlock.d.ts.map +1 -1
- package/blocks/templates/renderBlock.js +31 -10
- package/blocks/templates/renderButtonBlock.d.ts.map +1 -1
- package/blocks/templates/renderButtonBlock.js +11 -2
- package/blocks/templates/renderFullSnooBlock.d.ts.map +1 -1
- package/blocks/templates/renderFullSnooBlock.js +4 -1
- package/blocks/templates/renderIconBlock.d.ts.map +1 -1
- package/blocks/templates/renderIconBlock.js +6 -2
- package/blocks/templates/renderImageBlock.d.ts.map +1 -1
- package/blocks/templates/renderImageBlock.js +4 -1
- package/blocks/templates/renderSpacerBlock.d.ts.map +1 -1
- package/blocks/templates/renderSpacerBlock.js +8 -2
- package/blocks/templates/renderStackBlock.d.ts.map +1 -1
- package/blocks/templates/renderStackBlock.js +21 -2
- package/blocks/templates/renderTextBlock.d.ts.map +1 -1
- package/blocks/templates/renderTextBlock.js +4 -1
- package/blocks/templates/renderWebViewBlock.d.ts.map +1 -1
- package/blocks/templates/renderWebViewBlock.js +4 -1
- package/client/devvit-custom-post.js +2 -2
- package/package.json +27 -22
- package/styles.css +778 -51
- package/styles.d.ts +2 -0
- package/styles.d.ts.map +1 -0
- package/styles.js +3 -0
- package/tailwind.devvit.cjs +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,34 +9,36 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "./index.js",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "yarn build:typescript && yarn build:styles",
|
|
13
|
+
"build:styles": "postcss -c postcss.config.cjs styles.css -o dist/styles.css && yarn build:styles-dist",
|
|
14
|
+
"build:styles-dist": "node scripts/make-styles.js",
|
|
15
|
+
"build:typescript": "tsc",
|
|
13
16
|
"clean": "rm -rf .turbo coverage dist",
|
|
14
17
|
"clobber": "yarn clean && rm -rf node_modules",
|
|
15
|
-
"dev": "yarn styles:
|
|
18
|
+
"dev": "concurrently -n 'styles,styles-dist,typescript' 'yarn watch:styles' 'yarn watch:styles-dist' 'yarn watch:typescript'",
|
|
16
19
|
"lint": "redlint .",
|
|
17
20
|
"lint:fix": "yarn lint --fix",
|
|
18
21
|
"prepublishOnly": "publish-package-json",
|
|
19
|
-
"styles:clean": "rm -f dist/styles.css",
|
|
20
|
-
"styles:copy": "yarn styles:clean && cp styles.css dist/styles.css && cp tailwind.devvit.cjs dist/tailwind.devvit.cjs",
|
|
21
|
-
"styles:dev": "echo 'todo make a filewatcher for styles.css or build it in less and use the preprocessor watch mode'",
|
|
22
22
|
"test": "yarn test:unit && yarn test:types && yarn lint",
|
|
23
23
|
"test:types": "tsc --noEmit",
|
|
24
24
|
"test:unit": "vitest run",
|
|
25
|
-
"test:unit-with-coverage": "vitest run --coverage"
|
|
25
|
+
"test:unit-with-coverage": "vitest run --coverage",
|
|
26
|
+
"watch:styles": "postcss -w -c postcss.config.cjs styles.css -o dist/styles.css",
|
|
27
|
+
"watch:styles-dist": "node scripts/make-styles.js --watch",
|
|
28
|
+
"watch:typescript": "tsc -w"
|
|
26
29
|
},
|
|
27
30
|
"types": "./index.d.ts",
|
|
28
31
|
"dependencies": {
|
|
29
|
-
"@devvit/protos": "0.9.
|
|
30
|
-
"@devvit/runtimes": "0.9.
|
|
32
|
+
"@devvit/protos": "0.9.1",
|
|
33
|
+
"@devvit/runtimes": "0.9.1",
|
|
31
34
|
"@lottiefiles/lottie-player": "1.7.1",
|
|
32
35
|
"p-queue": "7.3.4",
|
|
33
36
|
"rxjs": "7.5.7"
|
|
34
37
|
},
|
|
35
38
|
"peerDependencies": {
|
|
36
39
|
"@reddit/baseplate": "0.14.0",
|
|
37
|
-
"@reddit/faceplate": "2.
|
|
38
|
-
"@reddit/faceplate-ui": "
|
|
39
|
-
"@reddit/shreddit.styles": "^1.0.8"
|
|
40
|
+
"@reddit/faceplate": "2.x",
|
|
41
|
+
"@reddit/faceplate-ui": "2.x"
|
|
40
42
|
},
|
|
41
43
|
"peerDependenciesMeta": {
|
|
42
44
|
"@reddit/baseplate": {
|
|
@@ -47,25 +49,28 @@
|
|
|
47
49
|
},
|
|
48
50
|
"@reddit/faceplate-ui": {
|
|
49
51
|
"optional": true
|
|
50
|
-
},
|
|
51
|
-
"@reddit/shreddit.styles": {
|
|
52
|
-
"optional": true
|
|
53
52
|
}
|
|
54
53
|
},
|
|
55
54
|
"optionalDependencies": {
|
|
56
55
|
"lit": "^2.0.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
|
-
"@devvit/eslint-config": "0.9.
|
|
60
|
-
"@devvit/public-api": "0.9.
|
|
61
|
-
"@devvit/repo-tools": "0.9.
|
|
62
|
-
"@devvit/tsconfig": "0.9.
|
|
58
|
+
"@devvit/eslint-config": "0.9.1",
|
|
59
|
+
"@devvit/public-api": "0.9.1",
|
|
60
|
+
"@devvit/repo-tools": "0.9.1",
|
|
61
|
+
"@devvit/tsconfig": "0.9.1",
|
|
63
62
|
"@reddit/baseplate": "0.14.0",
|
|
64
63
|
"@reddit/eslint-plugin-i18n-shreddit": "0.1.0",
|
|
65
|
-
"
|
|
66
|
-
"
|
|
64
|
+
"autoprefixer": "10.4.14",
|
|
65
|
+
"chokidar": "3.5.3",
|
|
66
|
+
"concurrently": "7.5.0",
|
|
67
|
+
"debounce": "1.2.1",
|
|
67
68
|
"eslint": "8.9.0",
|
|
68
69
|
"lit": "^2.0.0",
|
|
70
|
+
"postcss": "8.4.22",
|
|
71
|
+
"postcss-cli": "10.1.0",
|
|
72
|
+
"postcss-import": "15.1.0",
|
|
73
|
+
"tailwindcss": "3.3.1",
|
|
69
74
|
"typescript": "4.9.3",
|
|
70
75
|
"vitest": "0.8.2"
|
|
71
76
|
},
|
|
@@ -73,5 +78,5 @@
|
|
|
73
78
|
"directory": "dist"
|
|
74
79
|
},
|
|
75
80
|
"source": "./src/index.ts",
|
|
76
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "9c3a31746cb435b9ec47f392e719b4335c8f3765"
|
|
77
82
|
}
|