dochub-sdk 0.1.188 → 0.1.190

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.
@@ -164,9 +164,11 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
164
164
  */
165
165
  loadUISate() {
166
166
  const element: any = this['$el'];
167
- element.style.height = this.savedUIState?.styleHeight;
168
- element.style.width = this.savedUIState?.styleWidth;
169
- element.style.filter = this.savedUIState?.styleFilter;
167
+ if (element?.style) {
168
+ element.style.height = this.savedUIState?.styleHeight;
169
+ element.style.width = this.savedUIState?.styleWidth;
170
+ element.style.filter = this.savedUIState?.styleFilter;
171
+ }
170
172
  }
171
173
  /**
172
174
  * "Замораживает" представление на период обновления
package/interfaces/ui.ts CHANGED
@@ -27,6 +27,12 @@ export interface IDocHubUISlotOptions {
27
27
  * Если пусто, то во всех
28
28
  */
29
29
  modes?: DocHubEditMode[];
30
+ /**
31
+ * Уникальный идентификатор компонента.
32
+ * Нужен для автоматического сохранения параметров отображения, адресации и т.п.
33
+ * Если он не определен, то разработчик должен сам заботиться о всем.
34
+ */
35
+ uid?: string;
30
36
  }
31
37
 
32
38
  export interface IDocHubUISlotItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.188",
3
+ "version": "0.1.190",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",