@dooboostore/simple-web-component 1.0.51 → 1.0.52
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/dist/cjs/elements/SwcAppMixin.js +7 -1
- package/dist/cjs/elements/SwcAppMixin.js.map +2 -2
- package/dist/esm/elements/SwcAppMixin.js +7 -1
- package/dist/esm/elements/SwcAppMixin.js.map +2 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js +8 -2
- package/dist/esm-bundle/dooboostore-simple-web-component.esm.js.map +3 -3
- package/dist/types/elements/SwcAppMixin.d.ts.map +1 -1
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js +8 -2
- package/dist/umd-bundle/dooboostore-simple-web-component.umd.js.map +3 -3
- package/package.json +2 -2
- package/src/elements/SwcAppMixin.ts +11 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwcAppMixin.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcAppMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnG,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAA2C,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/G,OAAO,EAAC,eAAe,EAAa,MAAM,uBAAuB,CAAC;AA+ClE,eAAO,MAAM,KAAK,GAAI,GAAG,WAAW,YAEnC,CAAC;AACF,eAAO,MAAM,eAAe,GAAI,GAAG,WAAW,SAE7C,CAAC;AACF,eAAO,MAAM,kBAAkB,GAAI,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"SwcAppMixin.d.ts","sourceRoot":"","sources":["../../../src/elements/SwcAppMixin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,aAAa,EAAE,2BAA2B,EAAE,UAAU,EAAE,MAAM,U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AE;4BAmB1C,GAAG;8BAWK,eAAe;qBAOxB,sBAAsB;;;kBA8EzB,MAAM;YAIlB,IAAI;eAID,IAAI;cAIL,IAAI;4BAIU,aAAa,GAAG,IAAI;yBAYvB,KAAK,CAAC,WAAW,GAAG,UAAU,CAAC;IAIpD;;;;;;;;;;OAUG;iCACwB,UAAU,CAAC,aAAa,CAAC,GAAC,CAAC,CAAC;oCACzB,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC,GAAC,CAAC,CAAC;oCACrC,MAAM,WAAW,IAAI,CAAC,2BAA2B,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,aAAa,CAAC,GAAC,CAAC,CAAC;uCACtF,2BAA2B,GAAG,UAAU,CAAC,aAAa,CAAC,GAAC,CAAC,CAAC;4BAiB7D,MAAM,GAAG,MAAM;gCAcjB,GAAG,UAAS,WAAW,GAAG,eAAe;wCAmBjC,GAAG,WAAW,aAAa;oCAWzB,GAAG,WAAW,aAAa,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCnF"}
|
|
@@ -21722,7 +21722,7 @@ ${indentStr}}`;
|
|
|
21722
21722
|
const paramTypes = ReflectUtils.getParameterTypes(target, targetKey) || [];
|
|
21723
21723
|
let injections = [];
|
|
21724
21724
|
const injects = getInject(target, targetKey);
|
|
21725
|
-
const loopCount = Math.max(paramTypes.length, parameterCount ?? 0);
|
|
21725
|
+
const loopCount = Math.max(paramTypes.length, parameterCount ?? 0, ...(injects ?? []).map((it) => it.index + 1));
|
|
21726
21726
|
injections = [];
|
|
21727
21727
|
for (let idx = 0; idx < loopCount; idx++) {
|
|
21728
21728
|
const token = paramTypes[idx];
|
|
@@ -23696,6 +23696,7 @@ ${indentStr}}`;
|
|
|
23696
23696
|
i.setAttribute("swc-use-ssr", i._swcId ?? "");
|
|
23697
23697
|
};
|
|
23698
23698
|
var removeSSRAttribute = (i) => {
|
|
23699
|
+
if (isSSR(i)) i.__swc_ssrRoute ?? (i.__swc_ssrRoute = true);
|
|
23699
23700
|
i.removeAttribute("swc-use-ssr");
|
|
23700
23701
|
};
|
|
23701
23702
|
function SwcAppMixin(Base) {
|
|
@@ -23754,6 +23755,11 @@ ${indentStr}}`;
|
|
|
23754
23755
|
const routeChangeSubscribers = getSubscribeSwcAppRouteChangeMetadata(instance);
|
|
23755
23756
|
if (routeChangeSubscribers.length > 0) {
|
|
23756
23757
|
const state2 = routeStateOf(instance);
|
|
23758
|
+
const routeSig = JSON.stringify([re.path ?? "", re.search ?? ""]);
|
|
23759
|
+
if (ValidUtils2.isBrowser() && isSSR(instance)) instance.__swc_ssrRoute ?? (instance.__swc_ssrRoute = true);
|
|
23760
|
+
if (instance.__swc_ssrRoute === true) instance.__swc_ssrRoute = routeSig;
|
|
23761
|
+
const ssrPainted = instance.__swc_ssrRoute === routeSig;
|
|
23762
|
+
if (!ssrPainted) delete instance.__swc_ssrRoute;
|
|
23757
23763
|
let stopped = false;
|
|
23758
23764
|
for (const metadata of routeChangeSubscribers) {
|
|
23759
23765
|
if (phase !== "live" && (metadata.options?.trigger ?? "connected") !== phase) continue;
|
|
@@ -23772,7 +23778,7 @@ ${indentStr}}`;
|
|
|
23772
23778
|
const signature = match ? JSON.stringify([re.path ?? "", re.search ?? ""]) : "";
|
|
23773
23779
|
state2.set(methodName, match ? { matched: true, signature, pathData: match.pathData, pathDataAll: match.pathDataAll } : { matched: false, signature: "" });
|
|
23774
23780
|
const shouldRun = on === "match" ? !!match : on === "enter" ? !!match && !prev?.matched : on === "update" ? !!match && !!prev?.matched && prev.signature !== signature : on === "leave" ? !match && !!prev?.matched : false;
|
|
23775
|
-
if (stopped || !shouldRun || !instance[methodName]) continue;
|
|
23781
|
+
if (stopped || ssrPainted || !shouldRun || !instance[methodName]) continue;
|
|
23776
23782
|
const pathData = match ? match.pathData : prev?.pathData ?? {};
|
|
23777
23783
|
const pathDataAll = match ? match.pathDataAll : prev?.pathDataAll ?? {};
|
|
23778
23784
|
const filter = metadata.options?.filter;
|