Skip to content

Commit 042258b

Browse files
committed
chore: Bump version to 1.7.6 and remove package manager specification
- Updated version in CHANGELOG.md, package.json, package/package.json, and README.md - Removed `packageManager` specification from package.json - Minor cleanup of package configuration
1 parent 0d21b6f commit 042258b

7 files changed

+30
-30
lines changed

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: EranGrin

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format
44

55
## [Unreleased]
66

7-
## [1.7.5] - 20.02.2025
7+
## [1.7.6] - 20.02.2025
88
### Fixed
99
- Fixed issue with demo app
1010
- Fixes logging issue

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77
<p align="center">
88
<img src="https://img.shields.io/badge/license-MIT-green" alt="License MIT">
9-
<img src="https://img.shields.io/badge/version-1.7.5-blue" alt="version 1.7.5">
9+
<img src="https://img.shields.io/badge/version-1.7.6-blue" alt="version 1.7.6">
1010
<img src="https://img.shields.io/badge/maintained-yes-brightgreen" alt="maintained yes">
1111
</p>
1212

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-web-component-wrapper",
3-
"version": "1.7.5",
3+
"version": "1.7.6",
44
"description": "A Vue 3 plugin that provides a web component wrapper with styles, seamlessly integrating with Vuex, Vue Router, Vue I18n, and supporting Tailwind CSS and Sass styles.",
55
"repository": {
66
"type": "git",
@@ -52,6 +52,5 @@
5252
"eslint": "^9.16.0",
5353
"eslint-plugin-vue": "^9.32.0",
5454
"vitepress": "^1.2.3"
55-
},
56-
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
55+
}
5756
}

package/dist/vue-web-component-wrapper.es.js

+23-23
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class T extends ee {
8282
if (this._numberProps = b, r && this._resolveProps(o), !this._config.shadowRoot) {
8383
this._slots = {};
8484
const h = (c) => Array.from(c).map((l) => {
85-
var p;
85+
var d;
8686
if (l.nodeType === Node.ELEMENT_NODE) {
8787
const f = l, v = Object.fromEntries(
8888
Array.from(f.attributes).map((O) => [O.name, O.value])
@@ -93,25 +93,25 @@ class T extends ee {
9393
h(f.childNodes)
9494
);
9595
} else if (l.nodeType === Node.TEXT_NODE)
96-
return ((p = l.textContent) == null ? void 0 : p.trim()) || null;
96+
return ((d = l.textContent) == null ? void 0 : d.trim()) || null;
9797
return null;
9898
}).filter((l) => l != null);
9999
for (const c of Array.from(this.childNodes)) {
100100
const l = c.nodeType === Node.ELEMENT_NODE && c.getAttribute("slot") || "default";
101101
if (this._slots[l] || (this._slots[l] = []), c.nodeType === Node.ELEMENT_NODE) {
102-
const p = c, f = Object.fromEntries(
103-
Array.from(p.attributes).map((v) => [v.name, v.value])
102+
const d = c, f = Object.fromEntries(
103+
Array.from(d.attributes).map((v) => [v.name, v.value])
104104
);
105105
this._slots[l].push(
106106
R(
107-
p.tagName.toLowerCase(),
107+
d.tagName.toLowerCase(),
108108
f,
109-
h(p.childNodes)
109+
h(d.childNodes)
110110
)
111111
);
112112
} else if (c.nodeType === Node.TEXT_NODE) {
113-
const p = (E = c.textContent) == null ? void 0 : E.trim();
114-
p && this._slots[l].push(p);
113+
const d = (E = c.textContent) == null ? void 0 : E.trim();
114+
d && this._slots[l].push(d);
115115
}
116116
}
117117
this.replaceChildren();
@@ -219,7 +219,7 @@ const oe = ({
219219
replaceRootWithHostInCssFramework: h,
220220
asyncInitialization: c,
221221
loaderAttribute: l,
222-
hideSlotContentUntilMounted: p
222+
hideSlotContentUntilMounted: d
223223
}) => {
224224
const f = E ? Y : s, v = h ? se(t) : t, O = f({
225225
styles: [v],
@@ -234,8 +234,8 @@ const oe = ({
234234
const P = [...(e == null ? void 0 : e.emits) || [], "update:modelValue"], _ = r();
235235
if (_.component("app-root", e), e.provide) {
236236
const a = typeof e.provide == "function" ? e.provide() : e.provide;
237-
Object.keys(a).forEach((d) => {
238-
_.provide(d, a[d]);
237+
Object.keys(a).forEach((p) => {
238+
_.provide(p, a[p]);
239239
});
240240
}
241241
_.mixin({
@@ -249,10 +249,10 @@ const oe = ({
249249
if (a((j = this.$) == null ? void 0 : j.type.styles), this.$options.components)
250250
for (const y of Object.values(this.$options.components))
251251
a(y.styles);
252-
const d = ((V = this.$el.getRootNode()) == null ? void 0 : V.host) || H(this.$el);
253-
d && (console.log("hideSlotContentUntilMounted", p), p && (console.log("hideSlotContentUntilMounted", p), d.querySelectorAll("[hidden]").forEach((k) => {
252+
const p = ((V = this.$el.getRootNode()) == null ? void 0 : V.host) || H(this.$el);
253+
p && (d && p.querySelectorAll("[hidden]").forEach((k) => {
254254
k.removeAttribute("hidden");
255-
})), d.querySelectorAll(`[${l}]`).forEach((x) => {
255+
}), p.querySelectorAll(`[${l}]`).forEach((x) => {
256256
x.remove();
257257
}));
258258
},
@@ -265,21 +265,21 @@ const oe = ({
265265
if (Object.assign(w.appContext, _._context), Object.assign(w.provides, _._context.provides), process.env.NODE_ENV === "development" && window.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
266266
const a = document.querySelector(u);
267267
_._container = a, _._instance = w;
268-
const d = {
268+
const p = {
269269
Comment: Symbol("v-cmt"),
270270
Fragment: Symbol("v-fgt"),
271271
Static: Symbol("v-stc"),
272272
Text: Symbol("v-txt")
273273
};
274-
window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("app:init", _, _.version, d), window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = _;
274+
window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit("app:init", _, _.version, p), window.__VUE_DEVTOOLS_GLOBAL_HOOK__.Vue = _;
275275
}
276-
const U = P == null ? void 0 : P.reduce((a, d) => {
277-
const g = te(d);
276+
const U = P == null ? void 0 : P.reduce((a, p) => {
277+
const g = te(p);
278278
return a[g] = (A) => {
279-
w.emit(d, A);
279+
w.emit(p, A);
280280
}, a;
281-
}, {}), z = (L = e == null ? void 0 : e.namedSlots) == null ? void 0 : L.reduce((a, d) => (a[d] = () => o("slot", {
282-
name: d
281+
}, {}), z = (L = e == null ? void 0 : e.namedSlots) == null ? void 0 : L.reduce((a, p) => (a[p] = () => o("slot", {
282+
name: p
283283
}), a), {});
284284
return () => o(
285285
e,
@@ -310,7 +310,7 @@ const oe = ({
310310
replaceRootWithHostInCssFramework: h = !1,
311311
asyncInitialization: c = () => Promise.resolve(),
312312
loaderAttribute: l = "data-web-component-loader",
313-
hideSlotContentUntilMounted: p = !1
313+
hideSlotContentUntilMounted: d = !1
314314
}) => {
315315
if (!n) {
316316
console.warn("No root component provided. Please provide a root component to create a web component.");
@@ -352,7 +352,7 @@ const oe = ({
352352
replaceRootWithHostInCssFramework: h,
353353
asyncInitialization: c,
354354
loaderAttribute: l,
355-
hideSlotContentUntilMounted: p
355+
hideSlotContentUntilMounted: d
356356
}).then((f) => {
357357
customElements.define(
358358
e,

0 commit comments

Comments
 (0)