frappe-ui 0.0.69 → 0.0.71
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/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frappe-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.71",
|
|
4
4
|
"description": "A set of components and utilities for rapid UI development",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "npx prettier --check ./src",
|
|
8
8
|
"prettier": "npx prettier -w ./src",
|
|
9
9
|
"prepare": "husky install",
|
|
10
|
-
"bump-and-release": "yarn version --patch && git push && git push --tags"
|
|
10
|
+
"bump-and-release": "git pull --rebase origin main && yarn version --patch && git push && git push --tags"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"src"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="message"
|
|
4
4
|
class="whitespace-pre-line text-sm text-red-600"
|
|
5
5
|
role="alert"
|
|
6
|
-
v-html="
|
|
6
|
+
v-html="errorMessage"
|
|
7
7
|
></div>
|
|
8
8
|
</template>
|
|
9
9
|
|
|
@@ -11,5 +11,14 @@
|
|
|
11
11
|
export default {
|
|
12
12
|
name: 'ErrorMessage',
|
|
13
13
|
props: ['message'],
|
|
14
|
+
computed: {
|
|
15
|
+
errorMessage() {
|
|
16
|
+
if (!this.message) return ''
|
|
17
|
+
if (this.message instanceof Error) {
|
|
18
|
+
return this.message.messages || this.message.message
|
|
19
|
+
}
|
|
20
|
+
return this.message
|
|
21
|
+
},
|
|
22
|
+
},
|
|
14
23
|
}
|
|
15
24
|
</script>
|
|
@@ -173,6 +173,11 @@ export default {
|
|
|
173
173
|
word-break: break-word;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
+
/* Firefox */
|
|
177
|
+
.ProseMirror-focused:focus-visible {
|
|
178
|
+
outline: none;
|
|
179
|
+
}
|
|
180
|
+
|
|
176
181
|
/* Placeholder */
|
|
177
182
|
.ProseMirror:not(.ProseMirror-focused) p.is-editor-empty:first-child::before {
|
|
178
183
|
content: attr(data-placeholder);
|