smoothly 1.0.0-alpha.12 → 1.0.0-alpha.13
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/dist/cjs/index.cjs.js +8 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/model/index.js +1 -0
- package/dist/collection/model/index.js.map +1 -1
- package/dist/custom-elements/index.js +8 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/index.js +9 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/smoothly/index.esm.js +1 -1
- package/dist/smoothly/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/model/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as App, C as Cosmetic, N as Notice, r as redirect } from './index-2e948fc3.js';
|
|
2
|
-
import { I as Identifier } from './Listenable-fb6f4723.js';
|
|
2
|
+
import { I as Identifier, L as Listenable } from './Listenable-fb6f4723.js';
|
|
3
3
|
export { L as Listenable, M as Message, T as Trigger } from './Listenable-fb6f4723.js';
|
|
4
4
|
export { G as GoogleFont } from './GoogleFont-8474516b.js';
|
|
5
5
|
import './index-7b57a52c.js';
|
|
@@ -16,6 +16,13 @@ class ClientIdentifier {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
class StateBase {
|
|
20
|
+
constructor(...parameters) {
|
|
21
|
+
this.listenable = new Listenable();
|
|
22
|
+
this.client = parameters.length == 1 ? parameters[0] : undefined;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { ClientIdentifier, StateBase };
|
|
20
27
|
|
|
21
28
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":";;;;;;MAEsB,gBAAgB;EAErC,iBAAwB;EAExB,WAAW,KAAK;IACf,gBAAgB,CAAC,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAA;IACnF,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE;MACjC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;MACrD,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;KACrE;IACD,OAAO,gBAAgB,CAAC,UAAU,CAAA;GAClC;;;;;","names":[],"sources":["./src/model/ClientIdentifier.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n"],"version":3}
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;MAEsB,gBAAgB;EAErC,iBAAwB;EAExB,WAAW,KAAK;IACf,gBAAgB,CAAC,UAAU,GAAG,YAAY,CAAC,OAAO,CAAC,kBAAkB,CAAC,IAAI,SAAS,CAAA;IACnF,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE;MACjC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;MACrD,YAAY,CAAC,OAAO,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAA;KACrE;IACD,OAAO,gBAAgB,CAAC,UAAU,CAAA;GAClC;;;MCXoB,SAAS;EAI9B,YAAsB,GAAG,UAAkD;IAH3D,eAAU,GAAG,IAAI,UAAU,EAAuB,CAAA;IAIjE,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,GAAI,SAAe,CAAA;GACvE;;;;;","names":[],"sources":["./src/model/ClientIdentifier.ts","./src/model/StateBase.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n","import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n"],"version":3}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{A as App,C as Cosmetic,N as Notice,r as redirect}from"./p-70280a11.js";import{I as e}from"./p-06337b89.js";export{L as Listenable,M as Message,T as Trigger}from"./p-06337b89.js";export{G as GoogleFont}from"./p-bd478a53.js";import"./p-c88ae468.js";class t{constructor(){}static get value(){t.valueCache=localStorage.getItem("clientIdentifier")||undefined;if(!t.valueCache){t.valueCache=e.generate(12);localStorage.setItem("clientIdentifier",t.valueCache)}return t.valueCache}}export{t as ClientIdentifier};
|
|
1
|
+
export{A as App,C as Cosmetic,N as Notice,r as redirect}from"./p-70280a11.js";import{I as e,L as s}from"./p-06337b89.js";export{L as Listenable,M as Message,T as Trigger}from"./p-06337b89.js";export{G as GoogleFont}from"./p-bd478a53.js";import"./p-c88ae468.js";class t{constructor(){}static get value(){t.valueCache=localStorage.getItem("clientIdentifier")||undefined;if(!t.valueCache){t.valueCache=e.generate(12);localStorage.setItem("clientIdentifier",t.valueCache)}return t.valueCache}}class a{constructor(...e){this.listenable=new s;this.client=e.length==1?e[0]:undefined}}export{t as ClientIdentifier,a as StateBase};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ClientIdentifier","constructor","value","valueCache","localStorage","getItem","undefined","Identifier","generate","setItem"],"sources":["./src/model/ClientIdentifier.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["ClientIdentifier","constructor","value","valueCache","localStorage","getItem","undefined","Identifier","generate","setItem","StateBase","parameters","this","listenable","Listenable","client","length"],"sources":["./src/model/ClientIdentifier.ts","./src/model/StateBase.ts"],"sourcesContent":["import { Identifier } from \"authly\"\n\nexport abstract class ClientIdentifier {\n\t// eslint-disable-next-line @typescript-eslint/no-empty-function\n\tprivate constructor() {}\n\tprivate static valueCache?: string\n\tstatic get value(): string {\n\t\tClientIdentifier.valueCache = localStorage.getItem(\"clientIdentifier\") || undefined\n\t\tif (!ClientIdentifier.valueCache) {\n\t\t\tClientIdentifier.valueCache = Identifier.generate(12)\n\t\t\tlocalStorage.setItem(\"clientIdentifier\", ClientIdentifier.valueCache)\n\t\t}\n\t\treturn ClientIdentifier.valueCache\n\t}\n}\n","import { HasListenable, Listenable, WithListenable } from \"./Listenable\"\n\nexport abstract class StateBase<T extends StateBase<any, any>, C = undefined> implements HasListenable<T> {\n\tpublic readonly listenable = new Listenable() as WithListenable<T>\n\tprotected readonly client: C\n\t// 2 different signatures depending on if C i set to a type.\n\tprotected constructor(...parameters: C extends undefined ? [] : [client: C]) {\n\t\tthis.client = parameters.length == 1 ? parameters[0] : (undefined as C)\n\t}\n}\n"],"mappings":"2QAEsBA,EAErBC,cAAA,CAEWC,mBACVF,EAAiBG,WAAaC,aAAaC,QAAQ,qBAAuBC,UAC1E,IAAKN,EAAiBG,WAAY,CACjCH,EAAiBG,WAAaI,EAAWC,SAAS,IAClDJ,aAAaK,QAAQ,mBAAoBT,EAAiBG,W,CAE3D,OAAOH,EAAiBG,U,QCVJO,EAIrBT,eAAyBU,GAHTC,KAAAC,WAAa,IAAIC,EAIhCF,KAAKG,OAASJ,EAAWK,QAAU,EAAIL,EAAW,GAAML,S"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Components, JSX } from "./components";
|
|
2
2
|
export { App, redirect } from "./components/App";
|
|
3
|
-
export { Autocomplete, ClientIdentifier, Color, Fill, GoogleFont, Message, Notice, Trigger, Option, Listenable, } from "./model";
|
|
3
|
+
export { Autocomplete, ClientIdentifier, Color, Fill, GoogleFont, Message, Notice, Trigger, Option, Listenable, StateBase, } from "./model";
|
|
4
4
|
export { Cosmetic } from "./utilities";
|