@vived/app 4.36.0 → 4.36.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.
@@ -1,9 +1,8 @@
1
- /// <reference types="jest" />
2
1
  import { AppObject, AppObjectRepo } from "../../../AppObject";
3
2
  import { Challenge, ChallengeEntity } from "../Entities";
4
3
  export declare class ChallengeEntityMock extends ChallengeEntity {
5
- resetSelectedChallenge: jest.Mock<any, any>;
6
- registerChallenge: jest.Mock<any, any>;
4
+ resetSelectedChallenge: () => void;
5
+ registerChallenge: () => void;
7
6
  private _selected;
8
7
  get selectedChallenge(): string;
9
8
  set selectedChallenge(id: string);
@@ -5,8 +5,8 @@ const Entities_1 = require("../Entities");
5
5
  class ChallengeEntityMock extends Entities_1.ChallengeEntity {
6
6
  constructor(appObject) {
7
7
  super(appObject, Entities_1.ChallengeEntity.type);
8
- this.resetSelectedChallenge = jest.fn();
9
- this.registerChallenge = jest.fn();
8
+ this.resetSelectedChallenge = () => { };
9
+ this.registerChallenge = () => { };
10
10
  this._selected = "NONE";
11
11
  }
12
12
  get selectedChallenge() {
@@ -2,12 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.makeChannelModelFactory = void 0;
4
4
  const Entities_1 = require("../Entities");
5
+ const PMs_1 = require("../PMs");
5
6
  const channelObjectFactory_1 = require("./channelObjectFactory");
6
7
  function makeChannelModelFactory(appObjects) {
7
8
  return function channelModelFactory(id) {
8
9
  const ao = appObjects.getOrCreate(id);
9
10
  const entity = Entities_1.makeChannelModelEntity(ao);
10
11
  entity.modelObjectFactory = channelObjectFactory_1.makeChannelObjectFactory(appObjects);
12
+ // PM
13
+ PMs_1.makeChannelModelObjectPM(ao);
11
14
  return entity;
12
15
  };
13
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vived/app",
3
- "version": "4.36.0",
3
+ "version": "4.36.2",
4
4
  "description": "Public package for the VIVED Learning App system",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",