lucid-extension-sdk 0.0.372 → 0.0.373
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/data/collectionproxy.d.ts +6 -0
- package/data/collectionproxy.js +10 -0
- package/package.json +1 -1
|
@@ -31,6 +31,12 @@ export declare class CollectionProxy extends PropertyStoreProxy {
|
|
|
31
31
|
* is not a branch
|
|
32
32
|
*/
|
|
33
33
|
getBranchedFrom(): CollectionProxy | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Certain collections, such as metadata collections, may be hidden from the data panel with the `hideFromDataPanel`
|
|
36
|
+
* argument of `CollectionPatch`. This method identifies whether this collection has been hidden from the data panel
|
|
37
|
+
* via this mechanism.
|
|
38
|
+
*/
|
|
39
|
+
isHiddenFromDataPanel(): boolean;
|
|
34
40
|
/**
|
|
35
41
|
* @returns information about any changes made locally to the collection that have not been synchronized
|
|
36
42
|
* with the external data source.
|
package/data/collectionproxy.js
CHANGED
|
@@ -53,6 +53,16 @@ class CollectionProxy extends propertystoreproxy_1.PropertyStoreProxy {
|
|
|
53
53
|
const id = this.properties.get('BranchedFrom');
|
|
54
54
|
return id ? new CollectionProxy(id, this.client) : undefined;
|
|
55
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* Certain collections, such as metadata collections, may be hidden from the data panel with the `hideFromDataPanel`
|
|
58
|
+
* argument of `CollectionPatch`. This method identifies whether this collection has been hidden from the data panel
|
|
59
|
+
* via this mechanism.
|
|
60
|
+
*/
|
|
61
|
+
isHiddenFromDataPanel() {
|
|
62
|
+
var _a;
|
|
63
|
+
const isHiddenFromDataPanel = (_a = this.getBranchedFrom()) === null || _a === void 0 ? void 0 : _a.properties.get('IsHiddenFromDataPanel');
|
|
64
|
+
return !!isHiddenFromDataPanel;
|
|
65
|
+
}
|
|
56
66
|
/**
|
|
57
67
|
* @returns information about any changes made locally to the collection that have not been synchronized
|
|
58
68
|
* with the external data source.
|