@ddd-qc/profiles-dvm 0.24.0 → 0.24.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/dist/profiles.dvm.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { DnaViewModel } from "@ddd-qc/lit-happ";
|
|
2
2
|
import { AppSignal, AppSignalCb } from "@holochain/client";
|
|
3
|
-
import {
|
|
3
|
+
import { ProfilesZvm } from "./profiles.zvm";
|
|
4
4
|
/** */
|
|
5
5
|
/**
|
|
6
6
|
* ViewModel fo a DNA holding a Profiles zome
|
|
7
7
|
*/
|
|
8
8
|
export declare class ProfilesDvm extends DnaViewModel {
|
|
9
9
|
static readonly DEFAULT_BASE_ROLE_NAME = "profiles";
|
|
10
|
-
static readonly ZVM_DEFS: (typeof
|
|
10
|
+
static readonly ZVM_DEFS: (typeof ProfilesZvm)[];
|
|
11
11
|
readonly signalHandler?: AppSignalCb;
|
|
12
12
|
/** QoL Helpers */
|
|
13
|
-
get profilesZvm():
|
|
13
|
+
get profilesZvm(): ProfilesZvm;
|
|
14
14
|
/** -- Perspective -- */
|
|
15
15
|
protected hasChanged(): boolean;
|
|
16
16
|
get perspective(): unknown;
|
package/dist/profiles.dvm.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DnaViewModel } from "@ddd-qc/lit-happ";
|
|
2
2
|
import { ProfilesZvm } from "./profiles.zvm";
|
|
3
|
-
import { ProfilesAltZvm } from "./profilesAlt.zvm";
|
|
4
3
|
/** */
|
|
5
4
|
// export interface ProfilesDnaPerspective {
|
|
6
5
|
// agentPresences: Record<string, number>,
|
|
@@ -15,7 +14,7 @@ export class ProfilesDvm extends DnaViewModel {
|
|
|
15
14
|
}
|
|
16
15
|
/** QoL Helpers */
|
|
17
16
|
get profilesZvm() {
|
|
18
|
-
return this.getZomeViewModel(
|
|
17
|
+
return this.getZomeViewModel(ProfilesZvm.DEFAULT_ZOME_NAME);
|
|
19
18
|
}
|
|
20
19
|
/** -- Perspective -- */
|
|
21
20
|
hasChanged() {
|
|
@@ -34,5 +33,5 @@ export class ProfilesDvm extends DnaViewModel {
|
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
ProfilesDvm.DEFAULT_BASE_ROLE_NAME = "profiles";
|
|
37
|
-
ProfilesDvm.ZVM_DEFS = [
|
|
36
|
+
ProfilesDvm.ZVM_DEFS = [ProfilesZvm];
|
|
38
37
|
//# sourceMappingURL=profiles.dvm.js.map
|
package/dist/profiles.dvm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profiles.dvm.js","sourceRoot":"","sources":["../src/profiles.dvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"profiles.dvm.js","sourceRoot":"","sources":["../src/profiles.dvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAG3C,MAAM;AACN,4CAA4C;AAC5C,4CAA4C;AAC5C,IAAI;AAGJ;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,YAAY;IAA7C;;QAIW,kBAAa,GAAiB,IAAI,CAAC,YAAY,CAAC;IA8B3D,CAAC;IA3BC,kBAAkB;IAClB,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,iBAAiB,CAAgB,CAAA;IAC5E,CAAC;IAED,wBAAwB;IAEd,UAAU;QAClB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,WAAW;QACb,OAAO,EAAE,CAAA;IACX,CAAC;IAGD,sBAAsB;IAEtB,MAAM;IACN,YAAY,CAAC,MAAiB;QAC5B,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACvC,IAAI,MAAM,CAAC,SAAS,KAAK,WAAW,CAAC,iBAAiB,EAAE;YACtD,OAAO;SACR;IACH,CAAC;;AA7Be,kCAAsB,GAAG,UAAU,AAAb,CAAc;AACpC,oBAAQ,GAAG,CAAC,WAAW,CAAC,AAAhB,CAAgB","sourcesContent":["import {delay, DnaViewModel} from \"@ddd-qc/lit-happ\";\nimport {\n AppSignal, AppSignalCb,\n} from \"@holochain/client\";\nimport {ProfilesZvm} from \"./profiles.zvm\";\nimport {ProfilesAltZvm} from \"./profilesAlt.zvm\";\n\n/** */\n// export interface ProfilesDnaPerspective {\n// agentPresences: Record<string, number>,\n// }\n\n\n/**\n * ViewModel fo a DNA holding a Profiles zome\n */\nexport class ProfilesDvm extends DnaViewModel {\n\n static readonly DEFAULT_BASE_ROLE_NAME = \"profiles\";\n static readonly ZVM_DEFS = [ProfilesZvm]\n readonly signalHandler?: AppSignalCb = this.handleSignal;\n\n\n /** QoL Helpers */\n get profilesZvm(): ProfilesZvm {\n return this.getZomeViewModel(ProfilesZvm.DEFAULT_ZOME_NAME) as ProfilesZvm\n }\n\n /** -- Perspective -- */\n\n protected hasChanged(): boolean {\n return true\n }\n\n get perspective(): unknown {\n return {}\n }\n\n\n /** -- Signaling -- */\n\n /** */\n handleSignal(signal: AppSignal) {\n console.log(\"Received Signal\", signal);\n if (signal.zome_name !== ProfilesZvm.DEFAULT_ZOME_NAME) {\n return;\n }\n }\n\n\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DnaViewModel } from "@ddd-qc/lit-happ";
|
|
2
|
+
import { AppSignal, AppSignalCb } from "@holochain/client";
|
|
3
|
+
import { ProfilesAltZvm } from "./profilesAlt.zvm";
|
|
4
|
+
/** */
|
|
5
|
+
/**
|
|
6
|
+
* ViewModel fo a DNA holding a Profiles zome
|
|
7
|
+
*/
|
|
8
|
+
export declare class ProfilesAltDvm extends DnaViewModel {
|
|
9
|
+
static readonly DEFAULT_BASE_ROLE_NAME = "profiles";
|
|
10
|
+
static readonly ZVM_DEFS: (typeof ProfilesAltZvm)[];
|
|
11
|
+
readonly signalHandler?: AppSignalCb;
|
|
12
|
+
/** QoL Helpers */
|
|
13
|
+
get profilesZvm(): ProfilesAltZvm;
|
|
14
|
+
/** -- Perspective -- */
|
|
15
|
+
protected hasChanged(): boolean;
|
|
16
|
+
get perspective(): unknown;
|
|
17
|
+
/** -- Signaling -- */
|
|
18
|
+
/** */
|
|
19
|
+
handleSignal(signal: AppSignal): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { DnaViewModel } from "@ddd-qc/lit-happ";
|
|
2
|
+
import { ProfilesZvm } from "./profiles.zvm";
|
|
3
|
+
import { ProfilesAltZvm } from "./profilesAlt.zvm";
|
|
4
|
+
/** */
|
|
5
|
+
// export interface ProfilesDnaPerspective {
|
|
6
|
+
// agentPresences: Record<string, number>,
|
|
7
|
+
// }
|
|
8
|
+
/**
|
|
9
|
+
* ViewModel fo a DNA holding a Profiles zome
|
|
10
|
+
*/
|
|
11
|
+
export class ProfilesAltDvm extends DnaViewModel {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.signalHandler = this.handleSignal;
|
|
15
|
+
}
|
|
16
|
+
/** QoL Helpers */
|
|
17
|
+
get profilesZvm() {
|
|
18
|
+
return this.getZomeViewModel(ProfilesAltZvm.DEFAULT_ZOME_NAME);
|
|
19
|
+
}
|
|
20
|
+
/** -- Perspective -- */
|
|
21
|
+
hasChanged() {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
get perspective() {
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
/** -- Signaling -- */
|
|
28
|
+
/** */
|
|
29
|
+
handleSignal(signal) {
|
|
30
|
+
console.log("Received Signal", signal);
|
|
31
|
+
if (signal.zome_name !== ProfilesZvm.DEFAULT_ZOME_NAME) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
ProfilesAltDvm.DEFAULT_BASE_ROLE_NAME = "profiles";
|
|
37
|
+
ProfilesAltDvm.ZVM_DEFS = [ProfilesAltZvm];
|
|
38
|
+
//# sourceMappingURL=profilesAlt.dvm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profilesAlt.dvm.js","sourceRoot":"","sources":["../src/profilesAlt.dvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAIrD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,MAAM;AACN,4CAA4C;AAC5C,4CAA4C;AAC5C,IAAI;AAGJ;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,YAAY;IAAhD;;QAIW,kBAAa,GAAiB,IAAI,CAAC,YAAY,CAAC;IA8B3D,CAAC;IA3BC,kBAAkB;IAClB,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAmB,CAAA;IAClF,CAAC;IAED,wBAAwB;IAEd,UAAU;QAClB,OAAO,IAAI,CAAA;IACb,CAAC;IAED,IAAI,WAAW;QACb,OAAO,EAAE,CAAA;IACX,CAAC;IAGD,sBAAsB;IAEtB,MAAM;IACN,YAAY,CAAC,MAAiB;QAC5B,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QACvC,IAAI,MAAM,CAAC,SAAS,KAAK,WAAW,CAAC,iBAAiB,EAAE;YACtD,OAAO;SACR;IACH,CAAC;;AA7Be,qCAAsB,GAAG,UAAU,AAAb,CAAc;AACpC,uBAAQ,GAAG,CAAC,cAAc,CAAC,AAAnB,CAAmB","sourcesContent":["import {delay, DnaViewModel} from \"@ddd-qc/lit-happ\";\nimport {\n AppSignal, AppSignalCb,\n} from \"@holochain/client\";\nimport {ProfilesZvm} from \"./profiles.zvm\";\nimport {ProfilesAltZvm} from \"./profilesAlt.zvm\";\n\n/** */\n// export interface ProfilesDnaPerspective {\n// agentPresences: Record<string, number>,\n// }\n\n\n/**\n * ViewModel fo a DNA holding a Profiles zome\n */\nexport class ProfilesAltDvm extends DnaViewModel {\n\n static readonly DEFAULT_BASE_ROLE_NAME = \"profiles\";\n static readonly ZVM_DEFS = [ProfilesAltZvm]\n readonly signalHandler?: AppSignalCb = this.handleSignal;\n\n\n /** QoL Helpers */\n get profilesZvm(): ProfilesAltZvm {\n return this.getZomeViewModel(ProfilesAltZvm.DEFAULT_ZOME_NAME) as ProfilesAltZvm\n }\n\n /** -- Perspective -- */\n\n protected hasChanged(): boolean {\n return true\n }\n\n get perspective(): unknown {\n return {}\n }\n\n\n /** -- Signaling -- */\n\n /** */\n handleSignal(signal: AppSignal) {\n console.log(\"Received Signal\", signal);\n if (signal.zome_name !== ProfilesZvm.DEFAULT_ZOME_NAME) {\n return;\n }\n }\n\n\n}\n"]}
|