Static Site
This commit is contained in:
3
Static/package/loader/cdn.js
Normal file
3
Static/package/loader/cdn.js
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
module.exports = require('../dist/cjs/loader.cjs.js');
|
||||
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
3
Static/package/loader/index.cjs.js
Normal file
3
Static/package/loader/index.cjs.js
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
module.exports = require('../dist/cjs/loader.cjs.js');
|
||||
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
21
Static/package/loader/index.d.ts
vendored
Normal file
21
Static/package/loader/index.d.ts
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
export * from '../dist/types/components';
|
||||
export interface CustomElementsDefineOptions {
|
||||
exclude?: string[];
|
||||
resourcesUrl?: string;
|
||||
syncQueue?: boolean;
|
||||
jmp?: (c: Function) => any;
|
||||
raf?: (c: FrameRequestCallback) => number;
|
||||
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
||||
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
||||
}
|
||||
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
||||
export declare function applyPolyfills(): Promise<void>;
|
||||
|
||||
/**
|
||||
* Used to specify a nonce value that corresponds with an application's CSP.
|
||||
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
||||
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
||||
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
||||
* will result in the same behavior.
|
||||
*/
|
||||
export declare function setNonce(nonce: string): void;
|
3
Static/package/loader/index.es2017.js
Normal file
3
Static/package/loader/index.es2017.js
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
export * from '../dist/esm/polyfills/index.js';
|
||||
export * from '../dist/esm/loader.js';
|
4
Static/package/loader/index.js
Normal file
4
Static/package/loader/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
||||
export * from '../dist/esm/polyfills/index.js';
|
||||
export * from '../dist/esm/loader.js';
|
11
Static/package/loader/package.json
Normal file
11
Static/package/loader/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "infineon-design-system-stencil-loader",
|
||||
"private": true,
|
||||
"typings": "./index.d.ts",
|
||||
"module": "./index.js",
|
||||
"main": "./index.cjs.js",
|
||||
"jsnext:main": "./index.es2017.js",
|
||||
"es2015": "./index.es2017.js",
|
||||
"es2017": "./index.es2017.js",
|
||||
"unpkg": "./cdn.js"
|
||||
}
|
Reference in New Issue
Block a user