@devvit/ui-renderer 0.9.4 → 0.9.5
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.map +1 -1
- package/blocks/components/devvit-blocks-renderer.d.ts +15 -0
- package/blocks/components/devvit-blocks-renderer.d.ts.map +1 -0
- package/blocks/components/devvit-blocks-renderer.js +42 -0
- package/blocks/components/devvit-blocks-webview.d.ts.map +1 -1
- package/blocks/index.d.ts.map +1 -1
- package/blocks/templates/index.d.ts.map +1 -1
- package/blocks/templates/renderAnimationBlock.d.ts +1 -0
- package/blocks/templates/renderAnimationBlock.d.ts.map +1 -1
- package/blocks/templates/renderAnimationBlock.js +1 -0
- package/blocks/templates/renderAvatarBlock.d.ts.map +1 -1
- package/blocks/templates/renderBlock.d.ts.map +1 -1
- package/blocks/templates/renderButtonBlock.d.ts.map +1 -1
- package/blocks/templates/renderButtonBlock.js +5 -3
- package/blocks/templates/renderContext.d.ts.map +1 -1
- package/blocks/templates/renderFullSnooBlock.d.ts.map +1 -1
- package/blocks/templates/renderIconBlock.d.ts.map +1 -1
- package/blocks/templates/renderIconBlock.js +14 -5
- package/blocks/templates/renderImageBlock.d.ts.map +1 -1
- package/blocks/templates/renderSpacerBlock.d.ts.map +1 -1
- package/blocks/templates/renderStackBlock.d.ts.map +1 -1
- package/blocks/templates/renderTextBlock.d.ts.map +1 -1
- package/blocks/templates/renderWebViewBlock.d.ts.map +1 -1
- package/blocks/templates/util.d.ts +3 -0
- package/blocks/templates/util.d.ts.map +1 -1
- package/blocks/templates/util.js +27 -8
- package/client/blocks.d.ts.map +1 -1
- package/client/devvit-animation-player.d.ts.map +1 -1
- package/client/devvit-custom-post.d.ts +7 -2
- package/client/devvit-custom-post.d.ts.map +1 -1
- package/client/devvit-custom-post.js +18 -29
- package/client/effects/devvit-effect-handler.d.ts.map +1 -1
- package/client/effects/form-effect-handler.d.ts.map +1 -1
- package/client/effects/toast-effect-handler.d.ts.map +1 -1
- package/client/formbuilder/components/devvit-form-selection-dropdown.d.ts.map +1 -1
- package/client/formbuilder/components/devvit-form-selection-dropdown.js +11 -1
- package/client/formbuilder/components/devvit-form-selection-list.d.ts.map +1 -1
- package/client/formbuilder/devvit-form-dialog.d.ts.map +1 -1
- package/client/formbuilder/fields/index.d.ts.map +1 -1
- package/client/formbuilder/fields/renderBooleanField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderFieldLabel.d.ts.map +1 -1
- package/client/formbuilder/fields/renderFormFields.d.ts.map +1 -1
- package/client/formbuilder/fields/renderGroupField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderHelpText.d.ts.map +1 -1
- package/client/formbuilder/fields/renderListField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderNumberField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderParagraphField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderSelectionField.d.ts.map +1 -1
- package/client/formbuilder/fields/renderStringField.d.ts.map +1 -1
- package/client/formbuilder/index.d.ts.map +1 -1
- package/custom-styles.css +36 -0
- package/index.d.ts.map +1 -1
- package/package.json +41 -22
- package/server/blocks.d.ts.map +1 -1
- package/styles.d.ts.map +1 -1
- package/styles.js +1 -1
- package/types/events.d.ts.map +1 -1
- package/client/assets/snooBlocks.d.ts +0 -2
- package/client/assets/snooBlocks.d.ts.map +0 -1
- package/client/assets/snooBlocks.js +0 -2
- package/styles.css +0 -804
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** Text outline classes */
|
|
2
|
+
.text-outline-thin-bright {
|
|
3
|
+
text-shadow: #000 1px 0 0.5px, #000 -1px 0 0.5px, #000 0 1px 0.5px, #000 0 -1px 0.5px;
|
|
4
|
+
}
|
|
5
|
+
.text-outline-thick-bright {
|
|
6
|
+
text-shadow: #000 1px 0 2px, #000 -1px 0 2px, #000 0 1px 1px, #000 0 -1px 1px, #000 1px 0 2px,
|
|
7
|
+
#000 -1px 0 2px, #000 0 1px 1px, #000 0 -1px 1px;
|
|
8
|
+
}
|
|
9
|
+
.text-outline-thin-dark {
|
|
10
|
+
text-shadow: #fff 1px 0 0.5px, #fff -1px 0 0.5px, #fff 0 1px 0.5px, #fff 0 -1px 0.5px;
|
|
11
|
+
}
|
|
12
|
+
.text-outline-thick-dark {
|
|
13
|
+
text-shadow: #fff 1px 0 2px, #fff -1px 0 2px, #fff 0 1px 1px, #fff 0 -1px 1px, #fff 1px 0 2px,
|
|
14
|
+
#fff -1px 0 2px, #fff 0 1px 1px, #fff 0 -1px 1px;
|
|
15
|
+
}
|
|
16
|
+
/** Custom border sizes */
|
|
17
|
+
.border-dx-thick {
|
|
18
|
+
border-width: 2px;
|
|
19
|
+
}
|
|
20
|
+
.border-dx-thin {
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
}
|
|
23
|
+
/** Custom border radius sizes */
|
|
24
|
+
.rounded-dx-lg {
|
|
25
|
+
border-radius: 1.5rem;
|
|
26
|
+
}
|
|
27
|
+
.rounded-dx-md {
|
|
28
|
+
border-radius: 1rem;
|
|
29
|
+
}
|
|
30
|
+
.rounded-dx-sm {
|
|
31
|
+
border-radius: 0.5rem;
|
|
32
|
+
}
|
|
33
|
+
/** Custom z-index for form dialogs */
|
|
34
|
+
.z-dialog {
|
|
35
|
+
z-index: 100;
|
|
36
|
+
}
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../library/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,29 +9,46 @@
|
|
|
9
9
|
"type": "module",
|
|
10
10
|
"main": "./index.js",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "yarn
|
|
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",
|
|
12
|
+
"build": "yarn library:build",
|
|
16
13
|
"clean": "rm -rf .turbo coverage dist",
|
|
17
14
|
"clobber": "yarn clean && rm -rf node_modules",
|
|
18
|
-
"dev": "
|
|
19
|
-
"
|
|
15
|
+
"dev": "yarn library:dev",
|
|
16
|
+
"library:build": "yarn library:build:typescript && yarn library:build:styles",
|
|
17
|
+
"library:build:custom-styles": "cd library && postcss custom-styles.css -o ../dist/custom-styles.css",
|
|
18
|
+
"library:build:styles": "cd library && postcss styles.css -o tailwind-build.css && yarn library:build:styles-dist && yarn library:build:custom-styles",
|
|
19
|
+
"library:build:styles-dist": "node scripts/make-styles.js",
|
|
20
|
+
"library:build:typescript": "tsc -p library",
|
|
21
|
+
"library:dev": "concurrently -n 'lib:styles,lib:styles-dist,lib:typescript' 'yarn library:dev:styles' 'yarn library:dev:styles-dist' 'yarn library:dev:typescript",
|
|
22
|
+
"library:dev:styles": "yarn library:build:styles -w",
|
|
23
|
+
"library:dev:styles-dist": "yarn library:build:styles-dist --watch",
|
|
24
|
+
"library:dev:typescript": "yarn library:build:typescript -w",
|
|
25
|
+
"library:lint": "redlint ./library",
|
|
26
|
+
"library:lint:fix": "yarn lint --fix",
|
|
27
|
+
"library:test": "yarn library:test:unit && yarn library:test:types && yarn library:lint",
|
|
28
|
+
"library:test:types": "tsc --noEmit -p library",
|
|
29
|
+
"library:test:unit": "vitest run -r library -c vitest.config.js",
|
|
30
|
+
"library:test:unit-with-coverage": "yarn library:test:unit --coverage",
|
|
31
|
+
"lint": "yarn library:lint && yarn lint:circular-deps",
|
|
20
32
|
"lint:circular-deps": "yarn madge --circular dist/**/*.js",
|
|
21
|
-
"lint:fix": "yarn lint --fix",
|
|
22
33
|
"prepublishOnly": "publish-package-json",
|
|
23
|
-
"test": "yarn test
|
|
24
|
-
"test:types": "
|
|
25
|
-
"test:unit": "
|
|
26
|
-
"test:unit-with-coverage": "
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
34
|
+
"test": "yarn library:test && yarn visual-test:test",
|
|
35
|
+
"test:types": "yarn library:test:types",
|
|
36
|
+
"test:unit": "yarn library:test:unit",
|
|
37
|
+
"test:unit-with-coverage": "yarn library:test:unit-with-coverage",
|
|
38
|
+
"visual-test:build": "yarn visual-test:build:typescript && yarn visual-test:build:vite",
|
|
39
|
+
"visual-test:build:typescript": "tsc -p visual-testing",
|
|
40
|
+
"visual-test:build:vite": "vite build --force --config visual-testing/vite.config.js",
|
|
41
|
+
"visual-test:dev": "concurrently -n 'viz:typescript,viz:vite,viz:serve' 'yarn visual-test:dev:typescript' 'yarn visual-test:dev:vite' 'yarn visual-test:dev:serve'",
|
|
42
|
+
"visual-test:dev:serve": "vite --config visual-testing/vite.config.js",
|
|
43
|
+
"visual-test:dev:typescript": "tsc -p visual-testing -w",
|
|
44
|
+
"visual-test:dev:vite": "vite build --force --config visual-testing/vite.config.js --watch",
|
|
45
|
+
"visual-test:report": "backstop --config backstop.config.cjs openReport",
|
|
46
|
+
"visual-test:test": "backstop --config backstop.config.cjs test"
|
|
30
47
|
},
|
|
31
48
|
"types": "./index.d.ts",
|
|
32
49
|
"dependencies": {
|
|
33
|
-
"@devvit/protos": "0.9.
|
|
34
|
-
"@devvit/runtimes": "0.9.
|
|
50
|
+
"@devvit/protos": "0.9.5",
|
|
51
|
+
"@devvit/runtimes": "0.9.5",
|
|
35
52
|
"@lottiefiles/lottie-player": "1.7.1",
|
|
36
53
|
"p-queue": "7.3.4",
|
|
37
54
|
"rxjs": "7.5.7"
|
|
@@ -56,14 +73,15 @@
|
|
|
56
73
|
"lit": "^2.0.0"
|
|
57
74
|
},
|
|
58
75
|
"devDependencies": {
|
|
59
|
-
"@devvit/eslint-config": "0.9.
|
|
60
|
-
"@devvit/public-api": "0.9.
|
|
61
|
-
"@devvit/repo-tools": "0.9.
|
|
62
|
-
"@devvit/tsconfig": "0.9.
|
|
76
|
+
"@devvit/eslint-config": "0.9.5",
|
|
77
|
+
"@devvit/public-api": "0.9.5",
|
|
78
|
+
"@devvit/repo-tools": "0.9.5",
|
|
79
|
+
"@devvit/tsconfig": "0.9.5",
|
|
63
80
|
"@lit/localize": "0.11.4",
|
|
64
81
|
"@reddit/baseplate": "0.14.0",
|
|
65
82
|
"@reddit/eslint-plugin-i18n-shreddit": "0.1.0",
|
|
66
83
|
"autoprefixer": "10.4.14",
|
|
84
|
+
"backstopjs": "6.2.1",
|
|
67
85
|
"chokidar": "3.5.3",
|
|
68
86
|
"concurrently": "7.5.0",
|
|
69
87
|
"debounce": "1.2.1",
|
|
@@ -75,11 +93,12 @@
|
|
|
75
93
|
"postcss-import": "15.1.0",
|
|
76
94
|
"tailwindcss": "3.3.1",
|
|
77
95
|
"typescript": "4.9.3",
|
|
96
|
+
"vite": "4.3.1",
|
|
78
97
|
"vitest": "0.8.2"
|
|
79
98
|
},
|
|
80
99
|
"publishConfig": {
|
|
81
100
|
"directory": "dist"
|
|
82
101
|
},
|
|
83
102
|
"source": "./src/index.ts",
|
|
84
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "b3ceb34ca798b456b348f59dfb93846ebe19b236"
|
|
85
104
|
}
|
package/server/blocks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../src/server/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../library/src/server/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,kEAAkE,CAAC;AAC1E,cAAc,oBAAoB,CAAC"}
|
package/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,yBAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../library/src/styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,MAAM,yBAA8B,CAAC"}
|