@stencil/core 2.21.0 → 2.22.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 +2 -2
- package/cli/index.js +2 -2
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +26 -7
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +1 -1
- 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 +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +33 -2
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +19 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/index.js +46 -35
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-core/index.d.ts +1 -0
- package/internal/stencil-private.d.ts +10 -0
- package/internal/stencil-public-compiler.d.ts +1 -1
- package/internal/stencil-public-runtime.d.ts +9 -0
- package/internal/testing/index.js +51 -39
- 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 +3 -3
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +35 -34
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI (CommonJS) v2.
|
|
2
|
+
Stencil CLI (CommonJS) v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -989,7 +989,7 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
989
989
|
const dependencies = [
|
|
990
990
|
{
|
|
991
991
|
name: "@stencil/core",
|
|
992
|
-
version: "2.
|
|
992
|
+
version: "2.22.1",
|
|
993
993
|
main: "compiler/stencil.js",
|
|
994
994
|
resources: [
|
|
995
995
|
"package.json",
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil CLI v2.
|
|
2
|
+
Stencil CLI v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
|
|
@@ -965,7 +965,7 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
965
965
|
const dependencies = [
|
|
966
966
|
{
|
|
967
967
|
name: "@stencil/core",
|
|
968
|
-
version: "2.
|
|
968
|
+
version: "2.22.1",
|
|
969
969
|
main: "compiler/stencil.js",
|
|
970
970
|
resources: [
|
|
971
971
|
"package.json",
|
package/cli/package.json
CHANGED
package/compiler/package.json
CHANGED
package/compiler/stencil.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Compiler v2.
|
|
2
|
+
Stencil Compiler v2.22.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
(function(exports) {
|
|
5
5
|
'use strict';
|
|
@@ -2097,16 +2097,16 @@ const process$3 = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), p
|
|
|
2097
2097
|
'default': process_1
|
|
2098
2098
|
});
|
|
2099
2099
|
|
|
2100
|
-
const buildId = '
|
|
2100
|
+
const buildId = '20230117195310';
|
|
2101
2101
|
const minfyJsId = 'terser5.16.1_7';
|
|
2102
|
-
const optimizeCssId = 'autoprefixer10.4.13_postcss8.4.
|
|
2102
|
+
const optimizeCssId = 'autoprefixer10.4.13_postcss8.4.21_7';
|
|
2103
2103
|
const parse5Version = '7.1.2';
|
|
2104
2104
|
const rollupVersion = '2.42.3';
|
|
2105
2105
|
const sizzleVersion = '2.42.3';
|
|
2106
2106
|
const terserVersion = '5.16.1';
|
|
2107
2107
|
const typescriptVersion = '4.9.4';
|
|
2108
|
-
const vermoji = '
|
|
2109
|
-
const version$3 = '2.
|
|
2108
|
+
const vermoji = '✈️';
|
|
2109
|
+
const version$3 = '2.22.1';
|
|
2110
2110
|
const versions = {
|
|
2111
2111
|
stencil: version$3,
|
|
2112
2112
|
parse5: parse5Version,
|
|
@@ -57285,7 +57285,7 @@ const addCustomElementInputs = (buildCtx, bundleOpts) => {
|
|
|
57285
57285
|
*/
|
|
57286
57286
|
const generateEntryPoint$1 = (outputTarget) => {
|
|
57287
57287
|
const imp = [];
|
|
57288
|
-
imp.push(`export { setAssetPath, setPlatformOptions } from '${STENCIL_INTERNAL_CLIENT_ID}';`, `export * from '${USER_INDEX_ENTRY_ID}';`);
|
|
57288
|
+
imp.push(`export { setAssetPath, setNonce, setPlatformOptions } from '${STENCIL_INTERNAL_CLIENT_ID}';`, `export * from '${USER_INDEX_ENTRY_ID}';`);
|
|
57289
57289
|
if (outputTarget.includeGlobalScripts !== false) {
|
|
57290
57290
|
imp.push(`import { globalScripts } from '${STENCIL_APP_GLOBALS_ID}';`, `globalScripts();`);
|
|
57291
57291
|
}
|
|
@@ -59067,6 +59067,7 @@ function createEntryModule(cmps) {
|
|
|
59067
59067
|
}
|
|
59068
59068
|
const getLazyEntry = (isBrowser) => {
|
|
59069
59069
|
const s = new MagicString$3(``);
|
|
59070
|
+
s.append(`export { setNonce } from '${STENCIL_CORE_ID}';\n`);
|
|
59070
59071
|
s.append(`import { bootstrapLazy } from '${STENCIL_CORE_ID}';\n`);
|
|
59071
59072
|
if (isBrowser) {
|
|
59072
59073
|
s.append(`import { patchBrowser } from '${STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID}';\n`);
|
|
@@ -60567,6 +60568,15 @@ export interface CustomElementsDefineOptions {
|
|
|
60567
60568
|
}
|
|
60568
60569
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
60569
60570
|
export declare function applyPolyfills(): Promise<void>;
|
|
60571
|
+
|
|
60572
|
+
/**
|
|
60573
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
60574
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
60575
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
60576
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
60577
|
+
* will result in the same behavior.
|
|
60578
|
+
*/
|
|
60579
|
+
export declare function setNonce(nonce: string): void;
|
|
60570
60580
|
`;
|
|
60571
60581
|
};
|
|
60572
60582
|
|
|
@@ -60627,6 +60637,15 @@ const generateCustomElementsTypesOutput$1 = async (config, compilerCtx, buildCtx
|
|
|
60627
60637
|
` */`,
|
|
60628
60638
|
`export declare const setAssetPath: (path: string) => void;`,
|
|
60629
60639
|
``,
|
|
60640
|
+
`/**`,
|
|
60641
|
+
` * Used to specify a nonce value that corresponds with an application's CSP.`,
|
|
60642
|
+
` * When set, the nonce will be added to all dynamically created script and style tags at runtime.`,
|
|
60643
|
+
` * Alternatively, the nonce value can be set on a meta tag in the DOM head`,
|
|
60644
|
+
` * (<meta name="csp-nonce" content="{ nonce value here }" />) which`,
|
|
60645
|
+
` * will result in the same behavior.`,
|
|
60646
|
+
` */`,
|
|
60647
|
+
`export declare const setNonce: (nonce: string) => void`,
|
|
60648
|
+
``,
|
|
60630
60649
|
`export interface SetPlatformOptions {`,
|
|
60631
60650
|
` raf?: (c: FrameRequestCallback) => number;`,
|
|
60632
60651
|
` ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;`,
|
|
@@ -70074,7 +70093,7 @@ const getComponentPathContent = (componentGraph, outputTarget) => {
|
|
|
70074
70093
|
const dependencies = [
|
|
70075
70094
|
{
|
|
70076
70095
|
name: "@stencil/core",
|
|
70077
|
-
version: "2.
|
|
70096
|
+
version: "2.22.1",
|
|
70078
70097
|
main: "compiler/stencil.js",
|
|
70079
70098
|
resources: [
|
|
70080
70099
|
"package.json",
|