cmdesigns 0.0.1 → 0.0.2

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.
Files changed (50) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -0
  3. package/index.ts +4 -0
  4. package/package.json +13 -27
  5. package/{dist/collection/components/cm-text/cm-text.css → src/CMText.astro} +6 -0
  6. package/{dist/collection/components/fg-text/fg-text.css → src/FGText.astro} +6 -0
  7. package/dist/cjs/cm-text_2.cjs.entry.js +0 -32
  8. package/dist/cjs/cmdesigns.cjs.js +0 -19
  9. package/dist/cjs/index-77fd923d.js +0 -797
  10. package/dist/cjs/index.cjs.js +0 -2
  11. package/dist/cjs/loader.cjs.js +0 -21
  12. package/dist/cmdesigns/cmdesigns.esm.js +0 -1
  13. package/dist/cmdesigns/index.esm.js +0 -0
  14. package/dist/cmdesigns/p-41d106c8.js +0 -2
  15. package/dist/cmdesigns/p-f6aeaa48.entry.js +0 -1
  16. package/dist/collection/collection-manifest.json +0 -13
  17. package/dist/collection/components/cm-text/cm-text.js +0 -18
  18. package/dist/collection/components/fg-text/fg-text.js +0 -18
  19. package/dist/collection/index.js +0 -1
  20. package/dist/components/cm-text.d.ts +0 -11
  21. package/dist/components/cm-text.js +0 -33
  22. package/dist/components/fg-text.d.ts +0 -11
  23. package/dist/components/fg-text.js +0 -33
  24. package/dist/components/index.d.ts +0 -23
  25. package/dist/components/index.js +0 -3
  26. package/dist/esm/cm-text_2.entry.js +0 -27
  27. package/dist/esm/cmdesigns.js +0 -17
  28. package/dist/esm/index-a877cbd8.js +0 -772
  29. package/dist/esm/index.js +0 -1
  30. package/dist/esm/loader.js +0 -17
  31. package/dist/esm/polyfills/core-js.js +0 -11
  32. package/dist/esm/polyfills/css-shim.js +0 -1
  33. package/dist/esm/polyfills/dom.js +0 -79
  34. package/dist/esm/polyfills/es5-html-element.js +0 -1
  35. package/dist/esm/polyfills/index.js +0 -34
  36. package/dist/esm/polyfills/system.js +0 -6
  37. package/dist/index.cjs.js +0 -1
  38. package/dist/index.js +0 -1
  39. package/dist/types/components/cm-text/cm-text.d.ts +0 -3
  40. package/dist/types/components/fg-text/fg-text.d.ts +0 -3
  41. package/dist/types/components.d.ts +0 -50
  42. package/dist/types/index.d.ts +0 -1
  43. package/dist/types/stencil-public-runtime.d.ts +0 -1581
  44. package/loader/cdn.js +0 -3
  45. package/loader/index.cjs.js +0 -3
  46. package/loader/index.d.ts +0 -12
  47. package/loader/index.es2017.js +0 -3
  48. package/loader/index.js +0 -4
  49. package/loader/package.json +0 -11
  50. package/readme.md +0 -75
@@ -1,2 +0,0 @@
1
- 'use strict';
2
-
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-77fd923d.js');
6
-
7
- /*
8
- Stencil Client Patch Esm v2.20.0 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
13
-
14
- const defineCustomElements = (win, options) => {
15
- if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
17
- return index.bootstrapLazy([["cm-text_2.cjs",[[1,"cm-text"],[1,"fg-text"]]]], options);
18
- });
19
- };
20
-
21
- exports.defineCustomElements = defineCustomElements;
@@ -1 +0,0 @@
1
- import{p as t,b as a}from"./p-41d106c8.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((t=>a([["p-f6aeaa48",[[1,"cm-text"],[1,"fg-text"]]]],t)));
File without changes
@@ -1,2 +0,0 @@
1
- let e,t,n=!1;const l={},s=e=>"object"==(e=typeof e)||"function"===e,o=(e,t,...n)=>{let l=null,o=!1,c=!1;const i=[],a=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?a(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!s(l))&&(l+=""),o&&c?i[i.length-1].t+=l:i.push(o?r(null,l):l),c=o)};if(a(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const u=r(e,null);return u.l=t,i.length>0&&(u.o=i),u},r=(e,t)=>({i:0,u:e,t,$:null,o:null,l:null}),c={},i=new WeakMap,a=e=>"sc-"+e.p,u=(e,t,n,l)=>{if(n!==l&&(t.toLowerCase(),"class"===t)){const t=e.classList,s=$(n),o=$(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}},f=/\s/,$=e=>e?e.split(f):[],y=(e,t,n,s)=>{const o=11===t.$.nodeType&&t.$.host?t.$.host:t.$,r=e&&e.l||l,c=t.l||l;for(s in c)u(o,s,r[s],c[s])},d=(t,n,l)=>{const s=n.o[l];let o,r,c=0;if(null!==s.t)o=s.$=U.createTextNode(s.t);else if(o=s.$=U.createElement(s.u),y(null,s),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),s.o)for(c=0;c<s.o.length;++c)r=d(t,s,c),r&&o.appendChild(r);return o},p=(n,l)=>{const s=n.m,i=n.h||r(null,null),a=(e=>e&&e.u===c)(l)?l:o(null,null,l);t=s.tagName,a.u=null,a.i|=4,n.h=a,a.$=i.$=s.shadowRoot||s,e=s["s-sc"],((e,n)=>{const l=n.$=e.$,s=n.o,o=n.t;null===o?(y(e,n),null!==s&&((e,n,l,s,o,r)=>{let c,i=e;for(i.shadowRoot&&i.tagName===t&&(i=i.shadowRoot);o<=r;++o)s[o]&&(c=d(null,l,o),c&&(s[o].$=c,i.insertBefore(c,null)))})(l,0,n,s,0,s.length-1)):e.t!==o&&(l.data=o)})(i,a)},m=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},h=(e,t)=>{if(!(4&e.i))return m(e,e.g),D((()=>w(e,t)));e.i|=512},w=(e,t)=>{const n=e.M;return j(void 0,(()=>S(e,n,t)))},S=async(e,t,n)=>{const l=e.m,s=l["s-rc"];n&&(e=>{const t=e.j,n=e.m,l=t.i,s=((e,t)=>{let n=a(t);const l=L.get(n);if(e=11===e.nodeType?e:U,l)if("string"==typeof l){let t,s=i.get(e=e.head||e);s||i.set(e,s=new Set),s.has(n)||(t=U.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);b(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>g(e);0===t.length?n():(Promise.all(t).then(n),e.i|=4,t.length=0)}},b=(e,t)=>{try{t=t.render(),e.i|=2,p(e,t)}catch(t){O(t,e.m)}return null},g=e=>{const t=e.m,n=e.g;64&e.i||(e.i|=64,k(t),e.k(t),n||M()),e.S&&(e.S(),e.S=void 0),512&e.i&&B((()=>h(e,!1))),e.i&=-517},M=()=>{k(U.documentElement),B((()=>(e=>{const t=W.ce("appload",{detail:{namespace:"cmdesigns"}});return e.dispatchEvent(t),t})(R)))},j=(e,t)=>e&&e.then?e.then(t):t(),k=e=>e.classList.add("hydrated"),v=(e,t={})=>{const n=[],l=t.exclude||[],s=R.customElements,o=U.head,r=o.querySelector("meta[charset]"),c=U.createElement("style"),i=[];let u,f=!0;Object.assign(W,t),W.v=new URL(t.resourcesUrl||"./",U.baseURI).href,e.map((e=>{e[1].map((t=>{const o={i:t[0],p:t[1],C:t[2],P:t[3]},r=o.p,c=class extends HTMLElement{constructor(e){super(e),E(e=this,o),1&o.i&&e.attachShadow({mode:"open"})}connectedCallback(){u&&(clearTimeout(u),u=null),f?i.push(this):W.jmp((()=>(e=>{if(0==(1&W.i)){const t=P(e),n=t.j,l=()=>{};if(!(1&t.i)){t.i|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){m(t,t.g=n);break}}(async(e,t,n,l,s)=>{if(0==(32&t.i)){{if(t.i|=32,(s=A(n)).then){const e=()=>{};s=await s,e()}const e=()=>{};try{new s(t)}catch(e){O(e)}e()}if(s.style){let e=s.style;const t=a(n);if(!L.has(t)){const l=()=>{};((e,t,n)=>{let l=L.get(e);F&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,L.set(e,l)})(t,e,!!(1&n.i)),l()}}}const o=t.g,r=()=>h(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){W.jmp((()=>{}))}componentOnReady(){return P(this).O}};o.T=e[0],l.includes(r)||s.get(r)||(n.push(r),s.define(r,c))}))})),c.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",c.setAttribute("data-styles",""),o.insertBefore(c,r?r.nextSibling:o.firstChild),f=!1,i.length?i.map((e=>e.connectedCallback())):W.jmp((()=>u=setTimeout(M,30)))},C=new WeakMap,P=e=>C.get(e),x=(e,t)=>C.set(t.M=e,t),E=(e,t)=>{const n={i:0,m:e,j:t,A:new Map};return n.O=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],C.set(e,n)},O=(e,t)=>(0,console.error)(e,t),T=new Map,A=e=>{const t=e.p.replace(/-/g,"_"),n=e.T,l=T.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(T.set(n,e),e[t])),O)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/},L=new Map,R="undefined"!=typeof window?window:{},U=R.document||{head:{}},W={i:0,v:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},q=e=>Promise.resolve(e),F=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),H=[],N=[],V=(e,t)=>l=>{e.push(l),n||(n=!0,t&&4&W.i?B(z):W.raf(z))},_=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){O(e)}e.length=0},z=()=>{_(H),_(N),(n=H.length>0)&&W.raf(z)},B=e=>q().then(e),D=V(N,!0);export{v as b,o as h,q as p,x as r}
@@ -1 +0,0 @@
1
- import{r as s,h as c}from"./p-41d106c8.js";const o=class{constructor(c){s(this,c)}render(){return c("span",{class:"C"},c("span",{class:"c"},"chrissx")," ",c("span",{class:"m"},"Media"))}};o.style="@import url(//fonts.chrissx.de/minecraft);.C{font-family:Minecraft, monospace}.c{color:#c02020}.m{color:#8020f0}";const r=class{constructor(c){s(this,c)}render(){return c("span",{class:"F"},c("span",{class:"f"},"Fux")," ",c("span",{class:"g"},"Games"))}};r.style="@import url(//fonts.chrissx.de/unifont);.F{font-family:Unifont, monospace;font-weight:bold}.f{color:#c09040}.g{color:#ffffff}";export{o as cm_text,r as fg_text}
@@ -1,13 +0,0 @@
1
- {
2
- "entries": [
3
- "./components/cm-text/cm-text.js",
4
- "./components/fg-text/fg-text.js"
5
- ],
6
- "compiler": {
7
- "name": "@stencil/core",
8
- "version": "2.20.0",
9
- "typescriptVersion": "4.8.4"
10
- },
11
- "collections": [],
12
- "bundles": []
13
- }
@@ -1,18 +0,0 @@
1
- import { h } from '@stencil/core';
2
- export class CMText {
3
- render() {
4
- return (h("span", { class: "C" }, h("span", { class: "c" }, "chrissx"), "\u00A0", h("span", { class: "m" }, "Media")));
5
- }
6
- static get is() { return "cm-text"; }
7
- static get encapsulation() { return "shadow"; }
8
- static get originalStyleUrls() {
9
- return {
10
- "$": ["cm-text.css"]
11
- };
12
- }
13
- static get styleUrls() {
14
- return {
15
- "$": ["cm-text.css"]
16
- };
17
- }
18
- }
@@ -1,18 +0,0 @@
1
- import { h } from '@stencil/core';
2
- export class FGText {
3
- render() {
4
- return (h("span", { class: "F" }, h("span", { class: "f" }, "Fux"), "\u00A0", h("span", { class: "g" }, "Games")));
5
- }
6
- static get is() { return "fg-text"; }
7
- static get encapsulation() { return "shadow"; }
8
- static get originalStyleUrls() {
9
- return {
10
- "$": ["fg-text.css"]
11
- };
12
- }
13
- static get styleUrls() {
14
- return {
15
- "$": ["fg-text.css"]
16
- };
17
- }
18
- }
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface CmText extends Components.CmText, HTMLElement {}
4
- export const CmText: {
5
- prototype: CmText;
6
- new (): CmText;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,33 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const cmTextCss = "@import url(//fonts.chrissx.de/minecraft);.C{font-family:Minecraft, monospace}.c{color:#c02020}.m{color:#8020f0}";
4
-
5
- const CMText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- }
11
- render() {
12
- return (h("span", { class: "C" }, h("span", { class: "c" }, "chrissx"), "\u00A0", h("span", { class: "m" }, "Media")));
13
- }
14
- static get style() { return cmTextCss; }
15
- }, [1, "cm-text"]);
16
- function defineCustomElement$1() {
17
- if (typeof customElements === "undefined") {
18
- return;
19
- }
20
- const components = ["cm-text"];
21
- components.forEach(tagName => { switch (tagName) {
22
- case "cm-text":
23
- if (!customElements.get(tagName)) {
24
- customElements.define(tagName, CMText);
25
- }
26
- break;
27
- } });
28
- }
29
-
30
- const CmText = CMText;
31
- const defineCustomElement = defineCustomElement$1;
32
-
33
- export { CmText, defineCustomElement };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface FgText extends Components.FgText, HTMLElement {}
4
- export const FgText: {
5
- prototype: FgText;
6
- new (): FgText;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,33 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const fgTextCss = "@import url(//fonts.chrissx.de/unifont);.F{font-family:Unifont, monospace;font-weight:bold}.f{color:#c09040}.g{color:#ffffff}";
4
-
5
- const FGText = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- }
11
- render() {
12
- return (h("span", { class: "F" }, h("span", { class: "f" }, "Fux"), "\u00A0", h("span", { class: "g" }, "Games")));
13
- }
14
- static get style() { return fgTextCss; }
15
- }, [1, "fg-text"]);
16
- function defineCustomElement$1() {
17
- if (typeof customElements === "undefined") {
18
- return;
19
- }
20
- const components = ["fg-text"];
21
- components.forEach(tagName => { switch (tagName) {
22
- case "fg-text":
23
- if (!customElements.get(tagName)) {
24
- customElements.define(tagName, FGText);
25
- }
26
- break;
27
- } });
28
- }
29
-
30
- const FgText = FGText;
31
- const defineCustomElement = defineCustomElement$1;
32
-
33
- export { FgText, defineCustomElement };
@@ -1,23 +0,0 @@
1
- /* cmdesigns custom elements */
2
- export { CMText as CmText } from '../types/components/cm-text/cm-text';
3
- export { FGText as FgText } from '../types/components/fg-text/fg-text';
4
-
5
- /**
6
- * Used to manually set the base path where assets can be found.
7
- * If the script is used as "module", it's recommended to use "import.meta.url",
8
- * such as "setAssetPath(import.meta.url)". Other options include
9
- * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
10
- * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
11
- * But do note that this configuration depends on how your script is bundled, or lack of
12
- * bundling, and where your assets can be loaded from. Additionally custom bundling
13
- * will have to ensure the static assets are copied to its build directory.
14
- */
15
- export declare const setAssetPath: (path: string) => void;
16
-
17
- export interface SetPlatformOptions {
18
- raf?: (c: FrameRequestCallback) => number;
19
- ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
20
- rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
21
- }
22
- export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
23
- export * from '../types';
@@ -1,3 +0,0 @@
1
- export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
2
- export { CmText, defineCustomElement as defineCustomElementCmText } from './cm-text.js';
3
- export { FgText, defineCustomElement as defineCustomElementFgText } from './fg-text.js';
@@ -1,27 +0,0 @@
1
- import { r as registerInstance, h } from './index-a877cbd8.js';
2
-
3
- const cmTextCss = "@import url(//fonts.chrissx.de/minecraft);.C{font-family:Minecraft, monospace}.c{color:#c02020}.m{color:#8020f0}";
4
-
5
- const CMText = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- render() {
10
- return (h("span", { class: "C" }, h("span", { class: "c" }, "chrissx"), "\u00A0", h("span", { class: "m" }, "Media")));
11
- }
12
- };
13
- CMText.style = cmTextCss;
14
-
15
- const fgTextCss = "@import url(//fonts.chrissx.de/unifont);.F{font-family:Unifont, monospace;font-weight:bold}.f{color:#c09040}.g{color:#ffffff}";
16
-
17
- const FGText = class {
18
- constructor(hostRef) {
19
- registerInstance(this, hostRef);
20
- }
21
- render() {
22
- return (h("span", { class: "F" }, h("span", { class: "f" }, "Fux"), "\u00A0", h("span", { class: "g" }, "Games")));
23
- }
24
- };
25
- FGText.style = fgTextCss;
26
-
27
- export { CMText as cm_text, FGText as fg_text };
@@ -1,17 +0,0 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-a877cbd8.js';
2
-
3
- /*
4
- Stencil Client Patch Browser v2.20.0 | MIT Licensed | https://stenciljs.com
5
- */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
13
- };
14
-
15
- patchBrowser().then(options => {
16
- return bootstrapLazy([["cm-text_2",[[1,"cm-text"],[1,"fg-text"]]]], options);
17
- });