@winchsa/ui 0.1.43 → 0.1.44

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/README.md CHANGED
@@ -130,3 +130,9 @@ The `bump` command in `package.json` does the following:
130
130
  **Publishing**
131
131
 
132
132
  After running `pnpm run bump`, go to **GitHub** → **Releases** and create a new release based on the commit generated. This will trigger the `publish.yaml` GitHub Actions workflow, which handles the actual publishing process
133
+
134
+ **Publish to npm **
135
+
136
+ ``bash
137
+ npm publish --access public
138
+ ```
@@ -194,11 +194,14 @@ const useFormValidation = () => {
194
194
  const scrollToError = async () => {
195
195
  validationType.value = "input";
196
196
  await (0, _vue.nextTick)(() => {
197
- const el = document.querySelector(".v-messages__message:first-of-type");
198
- el?.scrollIntoView({
199
- behavior: "smooth",
200
- block: "center"
201
- });
197
+ const elements = document.querySelectorAll(".v-messages__message");
198
+ const el = Array.from(elements).find(element => element.textContent?.trim());
199
+ if (el) {
200
+ el.scrollIntoView({
201
+ behavior: "smooth",
202
+ block: "center"
203
+ });
204
+ }
202
205
  });
203
206
  };
204
207
  return {
@@ -180,11 +180,14 @@ export const useFormValidation = () => {
180
180
  const scrollToError = async () => {
181
181
  validationType.value = "input";
182
182
  await nextTick(() => {
183
- const el = document.querySelector(".v-messages__message:first-of-type");
184
- el?.scrollIntoView({
185
- behavior: "smooth",
186
- block: "center"
187
- });
183
+ const elements = document.querySelectorAll(".v-messages__message");
184
+ const el = Array.from(elements).find((element) => element.textContent?.trim());
185
+ if (el) {
186
+ el.scrollIntoView({
187
+ behavior: "smooth",
188
+ block: "center"
189
+ });
190
+ }
188
191
  });
189
192
  };
190
193
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@winchsa/ui",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "publishConfig": {