@nascentdigital/funnel-editor 4.4.18 → 4.4.19
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.
|
@@ -32,6 +32,7 @@ export declare class Collection implements IAssetStore, ICollectionStore, IPageR
|
|
|
32
32
|
readonly createdOn: number;
|
|
33
33
|
private _updatedOn;
|
|
34
34
|
readonly publishedOn?: number;
|
|
35
|
+
private readonly _subscription;
|
|
35
36
|
private _syncing;
|
|
36
37
|
private _modifiedOn?;
|
|
37
38
|
private _savingOn?;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Collection = void 0;
|
|
4
4
|
const funnel_core_1 = require("@nascentdigital/funnel-core");
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
|
+
const Item_1 = require("./Item");
|
|
6
7
|
// model
|
|
7
8
|
class Collection {
|
|
8
9
|
constructor(args) {
|
|
@@ -46,6 +47,13 @@ class Collection {
|
|
|
46
47
|
this._updatedOn = args.updatedOn;
|
|
47
48
|
this.publishedOn = args.publishedOn;
|
|
48
49
|
this._syncing = false;
|
|
50
|
+
// listen to block/field changes
|
|
51
|
+
this._subscription = this.eventBus.events$
|
|
52
|
+
.pipe((0, rxjs_1.filter)(e => (funnel_core_1.Field.Event.filter(e) && e.type === 'changed' && !e.field.sandboxed)
|
|
53
|
+
|| (funnel_core_1.FieldList.Event.filter(e) && e.type === 'changed')
|
|
54
|
+
|| (funnel_core_1.ObjectField.Event.filter(e) && e.type === 'changed')
|
|
55
|
+
|| (Item_1.Item.Event.filter(e) && e.type === 'changed')))
|
|
56
|
+
.subscribe(() => this.raiseEvent('changed'));
|
|
49
57
|
}
|
|
50
58
|
get asRef() {
|
|
51
59
|
const { template, brand, groupId, id, language, version, name, tags, state, valid, createdOn, updatedOn, publishedOn } = this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-editor",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "restricted"
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"ts-jest": "^29",
|
|
90
90
|
"type-fest": "^4"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
93
|
-
}
|
|
92
|
+
"gitHead": "d4ab7346c7b2e39897e5eb6be0a64e2f0278d51b"
|
|
93
|
+
}
|