@stencil/core 4.33.0 → 4.33.1
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/cli/index.cjs +162 -11
- package/cli/index.js +162 -11
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +674 -561
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +159 -8
- package/internal/app-data/package.json +1 -1
- package/internal/app-globals/package.json +1 -1
- package/internal/client/index.js +6 -4
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/hydrate/index.js +6 -4
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/testing/index.js +5 -3
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +1 -1
- package/screenshot/index.js +152 -1
- package/screenshot/package.json +1 -1
- package/screenshot/pixel-match.js +1 -1
- package/sys/node/index.js +58 -48
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +2 -1
- package/testing/package.json +1 -1
package/mock-doc/index.cjs
CHANGED
package/mock-doc/index.js
CHANGED
package/mock-doc/package.json
CHANGED
package/package.json
CHANGED
package/screenshot/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Stencil Screenshot v4.33.
|
|
2
|
+
Stencil Screenshot v4.33.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
var __create = Object.create;
|
|
@@ -533,6 +533,11 @@ var pathComponents = (path2, rootLength) => {
|
|
|
533
533
|
return [root, ...rest];
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
+
// src/utils/regular-expression.ts
|
|
537
|
+
var escapeRegExpSpecialCharacters = (text) => {
|
|
538
|
+
return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
539
|
+
};
|
|
540
|
+
|
|
536
541
|
// src/utils/result.ts
|
|
537
542
|
var result_exports = {};
|
|
538
543
|
__export(result_exports, {
|
|
@@ -582,6 +587,152 @@ var unwrapErr = (result) => {
|
|
|
582
587
|
}
|
|
583
588
|
};
|
|
584
589
|
|
|
590
|
+
// src/app-data/index.ts
|
|
591
|
+
var BUILD = {
|
|
592
|
+
allRenderFn: false,
|
|
593
|
+
element: true,
|
|
594
|
+
event: true,
|
|
595
|
+
hasRenderFn: true,
|
|
596
|
+
hostListener: true,
|
|
597
|
+
hostListenerTargetWindow: true,
|
|
598
|
+
hostListenerTargetDocument: true,
|
|
599
|
+
hostListenerTargetBody: true,
|
|
600
|
+
hostListenerTargetParent: false,
|
|
601
|
+
hostListenerTarget: true,
|
|
602
|
+
member: true,
|
|
603
|
+
method: true,
|
|
604
|
+
mode: true,
|
|
605
|
+
observeAttribute: true,
|
|
606
|
+
prop: true,
|
|
607
|
+
propMutable: true,
|
|
608
|
+
reflect: true,
|
|
609
|
+
scoped: true,
|
|
610
|
+
shadowDom: true,
|
|
611
|
+
slot: true,
|
|
612
|
+
cssAnnotations: true,
|
|
613
|
+
state: true,
|
|
614
|
+
style: true,
|
|
615
|
+
formAssociated: false,
|
|
616
|
+
svg: true,
|
|
617
|
+
updatable: true,
|
|
618
|
+
vdomAttribute: true,
|
|
619
|
+
vdomXlink: true,
|
|
620
|
+
vdomClass: true,
|
|
621
|
+
vdomFunctional: true,
|
|
622
|
+
vdomKey: true,
|
|
623
|
+
vdomListener: true,
|
|
624
|
+
vdomRef: true,
|
|
625
|
+
vdomPropOrAttr: true,
|
|
626
|
+
vdomRender: true,
|
|
627
|
+
vdomStyle: true,
|
|
628
|
+
vdomText: true,
|
|
629
|
+
watchCallback: true,
|
|
630
|
+
taskQueue: true,
|
|
631
|
+
hotModuleReplacement: false,
|
|
632
|
+
isDebug: false,
|
|
633
|
+
isDev: false,
|
|
634
|
+
isTesting: false,
|
|
635
|
+
hydrateServerSide: false,
|
|
636
|
+
hydrateClientSide: false,
|
|
637
|
+
lifecycleDOMEvents: false,
|
|
638
|
+
lazyLoad: false,
|
|
639
|
+
profile: false,
|
|
640
|
+
slotRelocation: true,
|
|
641
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
642
|
+
appendChildSlotFix: false,
|
|
643
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
644
|
+
cloneNodeFix: false,
|
|
645
|
+
hydratedAttribute: false,
|
|
646
|
+
hydratedClass: true,
|
|
647
|
+
// TODO(STENCIL-1305): remove this option
|
|
648
|
+
scriptDataOpts: false,
|
|
649
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
650
|
+
scopedSlotTextContentFix: false,
|
|
651
|
+
// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
652
|
+
shadowDomShim: false,
|
|
653
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
654
|
+
slotChildNodesFix: false,
|
|
655
|
+
invisiblePrehydration: true,
|
|
656
|
+
propBoolean: true,
|
|
657
|
+
propNumber: true,
|
|
658
|
+
propString: true,
|
|
659
|
+
constructableCSS: true,
|
|
660
|
+
devTools: false,
|
|
661
|
+
shadowDelegatesFocus: true,
|
|
662
|
+
initializeNextTick: false,
|
|
663
|
+
asyncLoading: true,
|
|
664
|
+
asyncQueue: false,
|
|
665
|
+
transformTagName: false,
|
|
666
|
+
attachStyles: true,
|
|
667
|
+
// TODO(STENCIL-914): remove this option when `experimentalSlotFixes` is the default behavior
|
|
668
|
+
experimentalSlotFixes: false
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
// src/client/client-build.ts
|
|
672
|
+
var Build = {
|
|
673
|
+
isDev: BUILD.isDev ? true : false,
|
|
674
|
+
isBrowser: true,
|
|
675
|
+
isServer: false,
|
|
676
|
+
isTesting: BUILD.isTesting ? true : false
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
// src/client/client-log.ts
|
|
680
|
+
var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
|
|
681
|
+
"%cstencil",
|
|
682
|
+
"color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
|
|
683
|
+
];
|
|
684
|
+
|
|
685
|
+
// src/client/client-window.ts
|
|
686
|
+
var win = typeof window !== "undefined" ? window : {};
|
|
687
|
+
var H = win.HTMLElement || class {
|
|
688
|
+
};
|
|
689
|
+
var supportsShadow = BUILD.shadowDom;
|
|
690
|
+
var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */ (() => {
|
|
691
|
+
try {
|
|
692
|
+
new CSSStyleSheet();
|
|
693
|
+
return typeof new CSSStyleSheet().replaceSync === "function";
|
|
694
|
+
} catch (e) {
|
|
695
|
+
}
|
|
696
|
+
return false;
|
|
697
|
+
})() : false;
|
|
698
|
+
|
|
699
|
+
// src/utils/shadow-css.ts
|
|
700
|
+
/**
|
|
701
|
+
* @license
|
|
702
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
703
|
+
*
|
|
704
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
705
|
+
* found in the LICENSE file at https://angular.io/license
|
|
706
|
+
*
|
|
707
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
708
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
709
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
710
|
+
*/
|
|
711
|
+
var _polyfillHost = "-shadowcsshost";
|
|
712
|
+
var _polyfillSlotted = "-shadowcssslotted";
|
|
713
|
+
var _polyfillHostContext = "-shadowcsscontext";
|
|
714
|
+
var _parenSuffix = ")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";
|
|
715
|
+
var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
|
|
716
|
+
var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
|
|
717
|
+
var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
|
|
718
|
+
var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
|
|
719
|
+
var createSupportsRuleRe = (selector) => {
|
|
720
|
+
const safeSelector = escapeRegExpSpecialCharacters(selector);
|
|
721
|
+
return new RegExp(
|
|
722
|
+
// First capture group: match any context before the selector that's not inside @supports selector()
|
|
723
|
+
// Using negative lookahead to avoid matching inside @supports selector(...) condition
|
|
724
|
+
`(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
|
|
725
|
+
"g"
|
|
726
|
+
);
|
|
727
|
+
};
|
|
728
|
+
var _colonSlottedRe = createSupportsRuleRe("::slotted");
|
|
729
|
+
var _colonHostRe = createSupportsRuleRe(":host");
|
|
730
|
+
var _colonHostContextRe = createSupportsRuleRe(":host-context");
|
|
731
|
+
|
|
732
|
+
// src/runtime/vdom/set-accessor.ts
|
|
733
|
+
var CAPTURE_EVENT_SUFFIX = "Capture";
|
|
734
|
+
var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
|
|
735
|
+
|
|
585
736
|
// src/utils/util.ts
|
|
586
737
|
var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
|
|
587
738
|
var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
|
package/screenshot/package.json
CHANGED