@pi-r/chrome 0.9.4 → 0.10.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/chrome",
3
- "version": "0.9.4",
3
+ "version": "0.10.1",
4
4
  "description": "Chrome document constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -20,9 +20,10 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "^0.11.5",
24
- "@e-mc/core": "^0.11.5",
25
- "@e-mc/document": "^0.11.5",
26
- "@e-mc/types": "^0.11.5"
23
+ "@e-mc/cloud": "^0.12.3",
24
+ "@e-mc/core": "^0.12.3",
25
+ "@e-mc/document": "^0.12.3",
26
+ "@e-mc/types": "^0.12.3",
27
+ "image-size": "^2.0.2"
27
28
  }
28
29
  }
package/types/index.d.ts CHANGED
@@ -102,7 +102,7 @@ export interface IChromeDocument<T extends IFileManager<U>, U extends DocumentAs
102
102
  related: Map<U, Set<U>>;
103
103
  replaced: U[];
104
104
  formatMap?: ObjectMap<FormatUri>;
105
- setElementSrc(asset: U, element: IXmlElement, value: string): void;
105
+ setElementSrc(file: U, element: IXmlElement, value: string): void;
106
106
  findDataValue(name: string): string | undefined;
107
107
  setInlinedAttributes(processing: FinalizeProcessing<T, U>): void;
108
108
  applyTransforms(processing: FinalizeProcessing<T, U>): Promise<void>;
@@ -117,10 +117,12 @@ export interface IChromeDocument<T extends IFileManager<U>, U extends DocumentAs
117
117
  cloudObject(state: CloudScopeOrigin<T, U, V>, file: U): boolean;
118
118
  cloudUpload(state: CloudScopeOrigin<T, U, V>, file: U, url: string, active: boolean): Promise<boolean>;
119
119
  cloudFinalize(state: CloudScopeOrigin<T, U, V>): Promise<unknown[]>;
120
+ isWatched(file: U): boolean;
121
+ get elements(): XmlTagNode[];
120
122
  get editing(): U[];
121
123
  set dataSource(value);
122
124
  get dataSource(): DataSource[];
123
- get elements(): XmlTagNode[];
125
+ get sessionKey(): string;
124
126
  get settings(): ChromeDocumentSettings;
125
127
  }
126
128
 
@@ -1,4 +1,4 @@
1
- import type { AttributeAction, ElementAction, ExcludeAction, FileAsset, FromAction, HashAction, DataSource as IDataSource, ImportAction, MetadataAction, ViewEngine } from '@e-mc/types/lib/squared';
1
+ import type { AttributeAction, ElementAction, ExcludeAction, FileAsset, FromAction, HashAction, DataSource as IDataSource, ImportAction, MetadataAction, ViewEngine, WorkerAction } from '@e-mc/types/lib/squared';
2
2
 
3
3
  import type { UploadAction } from '@e-mc/types/lib/cloud';
4
4
  import type { CascadeAction, DbSource } from '@e-mc/types/lib/db';
@@ -60,7 +60,7 @@ export interface DocumentOutput {
60
60
 
61
61
  export interface RequestData extends IRequestData<ChromeAsset>, Readonly<DocumentOutput>, Readonly<CssRuleData> {}
62
62
 
63
- export interface ChromeAsset extends FileAsset, AttributeAction, ElementAction, MetadataAction<PlainObject>, UploadAction, HashAction, ExcludeAction, ImportAction<ImportFrom[] | boolean>, FromAction {
63
+ export interface ChromeAsset extends FileAsset, AttributeAction, ElementAction, MetadataAction<PlainObject>, UploadAction, HashAction, ExcludeAction, ImportAction<ImportFrom[] | boolean>, FromAction, WorkerAction {
64
64
  preserve?: boolean;
65
65
  static?: boolean;
66
66
  editing?: boolean;