From 3ce2b1e893836b73145dcf0d85b47f621d3108ef Mon Sep 17 00:00:00 2001 From: elizabeth zhang Date: Fri, 12 Jul 2024 10:22:16 -0400 Subject: [PATCH] remove stencil-librarby/loader from gitignore --- packages/stencil-library/.gitignore | 1 - packages/stencil-library/loader/cdn.js | 1 + packages/stencil-library/loader/index.cjs.js | 1 + packages/stencil-library/loader/index.d.ts | 24 +++++++++++++++++++ .../stencil-library/loader/index.es2017.js | 1 + packages/stencil-library/loader/index.js | 2 ++ packages/stencil-library/loader/package.json | 11 +++++++++ 7 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 packages/stencil-library/loader/cdn.js create mode 100644 packages/stencil-library/loader/index.cjs.js create mode 100644 packages/stencil-library/loader/index.d.ts create mode 100644 packages/stencil-library/loader/index.es2017.js create mode 100644 packages/stencil-library/loader/index.js create mode 100644 packages/stencil-library/loader/package.json diff --git a/packages/stencil-library/.gitignore b/packages/stencil-library/.gitignore index 09d876b..f48228c 100644 --- a/packages/stencil-library/.gitignore +++ b/packages/stencil-library/.gitignore @@ -1,5 +1,4 @@ www/ -loader/ *~ *.sw[mnpcod] diff --git a/packages/stencil-library/loader/cdn.js b/packages/stencil-library/loader/cdn.js new file mode 100644 index 0000000..45e7d5a --- /dev/null +++ b/packages/stencil-library/loader/cdn.js @@ -0,0 +1 @@ +module.exports = require('../dist/cjs/loader.cjs.js'); \ No newline at end of file diff --git a/packages/stencil-library/loader/index.cjs.js b/packages/stencil-library/loader/index.cjs.js new file mode 100644 index 0000000..45e7d5a --- /dev/null +++ b/packages/stencil-library/loader/index.cjs.js @@ -0,0 +1 @@ +module.exports = require('../dist/cjs/loader.cjs.js'); \ No newline at end of file diff --git a/packages/stencil-library/loader/index.d.ts b/packages/stencil-library/loader/index.d.ts new file mode 100644 index 0000000..2d24034 --- /dev/null +++ b/packages/stencil-library/loader/index.d.ts @@ -0,0 +1,24 @@ +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; +/** + * @deprecated + */ +export declare function applyPolyfills(): Promise; + +/** + * 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 + * () which + * will result in the same behavior. + */ +export declare function setNonce(nonce: string): void; diff --git a/packages/stencil-library/loader/index.es2017.js b/packages/stencil-library/loader/index.es2017.js new file mode 100644 index 0000000..15b1d13 --- /dev/null +++ b/packages/stencil-library/loader/index.es2017.js @@ -0,0 +1 @@ +export * from '../dist/esm/loader.js'; \ No newline at end of file diff --git a/packages/stencil-library/loader/index.js b/packages/stencil-library/loader/index.js new file mode 100644 index 0000000..8e1a393 --- /dev/null +++ b/packages/stencil-library/loader/index.js @@ -0,0 +1,2 @@ +(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/loader.js'; \ No newline at end of file diff --git a/packages/stencil-library/loader/package.json b/packages/stencil-library/loader/package.json new file mode 100644 index 0000000..abb48b2 --- /dev/null +++ b/packages/stencil-library/loader/package.json @@ -0,0 +1,11 @@ +{ + "name": "stencil-library-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" +} \ No newline at end of file