@ddd-qc/profiles-dvm 0.22.5 → 0.23.0

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.
@@ -1,16 +1,16 @@
1
1
  import { DnaViewModel } from "@ddd-qc/lit-happ";
2
- import { ProfilesZvm } from "./profiles.zvm";
3
2
  import { AppSignal, AppSignalCb } from "@holochain/client";
3
+ import { ProfilesAltZvm } from "./profilesAlt.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 ProfilesZvm)[];
10
+ static readonly ZVM_DEFS: (typeof ProfilesAltZvm)[];
11
11
  readonly signalHandler?: AppSignalCb;
12
12
  /** QoL Helpers */
13
- get profilesZvm(): ProfilesZvm;
13
+ get profilesZvm(): ProfilesAltZvm;
14
14
  /** -- Perspective -- */
15
15
  protected hasChanged(): boolean;
16
16
  get perspective(): unknown;
@@ -1,5 +1,5 @@
1
1
  import { DnaViewModel } from "@ddd-qc/lit-happ";
2
- import { ProfilesZvm } from "./profiles.zvm";
2
+ import { ProfilesAltZvm } from "./profilesAlt.zvm";
3
3
  /** */
4
4
  // export interface ProfilesDnaPerspective {
5
5
  // agentPresences: Record<string, number>,
@@ -14,7 +14,7 @@ export class ProfilesDvm extends DnaViewModel {
14
14
  }
15
15
  /** QoL Helpers */
16
16
  get profilesZvm() {
17
- return this.getZomeViewModel(ProfilesZvm.DEFAULT_ZOME_NAME);
17
+ return this.getZomeViewModel(ProfilesAltZvm.DEFAULT_ZOME_NAME);
18
18
  }
19
19
  /** -- Perspective -- */
20
20
  hasChanged() {
@@ -27,11 +27,11 @@ export class ProfilesDvm extends DnaViewModel {
27
27
  /** */
28
28
  handleSignal(signal) {
29
29
  console.log("Received Signal", signal);
30
- if (signal.zome_name !== ProfilesZvm.DEFAULT_ZOME_NAME) {
30
+ if (signal.zome_name !== ProfilesAltZvm.DEFAULT_ZOME_NAME) {
31
31
  return;
32
32
  }
33
33
  }
34
34
  }
35
35
  ProfilesDvm.DEFAULT_BASE_ROLE_NAME = "profiles";
36
- ProfilesDvm.ZVM_DEFS = [ProfilesZvm];
36
+ ProfilesDvm.ZVM_DEFS = [ProfilesAltZvm];
37
37
  //# sourceMappingURL=profiles.dvm.js.map
@@ -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;AACrD,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAK3C,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 {ProfilesZvm} from \"./profiles.zvm\";\nimport {\n AppSignal, AppSignalCb,\n} from \"@holochain/client\";\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"]}
1
+ {"version":3,"file":"profiles.dvm.js","sourceRoot":"","sources":["../src/profiles.dvm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAKrD,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,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,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,cAAc,CAAC,iBAAiB,EAAE;YACzD,OAAO;SACR;IACH,CAAC;;AA7Be,kCAAsB,GAAG,UAAU,AAAb,CAAc;AACpC,oBAAQ,GAAG,CAAC,cAAc,CAAC,AAAnB,CAAmB","sourcesContent":["import {delay, DnaViewModel} from \"@ddd-qc/lit-happ\";\n//import {ProfilesZvm} from \"./profiles.zvm\";\nimport {\n AppSignal, AppSignalCb,\n} from \"@holochain/client\";\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 = [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 !== ProfilesAltZvm.DEFAULT_ZOME_NAME) {\n return;\n }\n }\n\n\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-qc/profiles-dvm",
3
- "version": "0.22.5",
3
+ "version": "0.23.0",
4
4
  "description": "DnaViewModel implementation for the Profiles zome.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@ddd-qc/lit-happ": "file:../lit-happ",
33
33
  "@holochain-open-dev/core-types": "0.7.0",
34
- "@holochain/client": "=0.16.7",
34
+ "@holochain/client": "^0.17.0-dev.3",
35
35
  "@msgpack/msgpack": "^2.7.2",
36
36
  "lit": "3.0.2"
37
37
  },