@pi-r/chrome 0.6.7 → 0.7.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.6.7",
3
+ "version": "0.7.1",
4
4
  "description": "Chrome document constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "publishConfig": {
@@ -20,9 +20,9 @@
20
20
  "license": "MIT",
21
21
  "homepage": "https://github.com/anpham6/pi-r#readme",
22
22
  "dependencies": {
23
- "@e-mc/cloud": "^0.8.8",
24
- "@e-mc/core": "^0.8.8",
25
- "@e-mc/document": "^0.8.8",
26
- "@e-mc/types": "^0.8.8"
23
+ "@e-mc/cloud": "^0.9.2",
24
+ "@e-mc/core": "^0.9.2",
25
+ "@e-mc/document": "^0.9.2",
26
+ "@e-mc/types": "^0.9.2"
27
27
  }
28
28
  }
package/types/index.d.ts CHANGED
@@ -26,10 +26,10 @@ interface DocumentDirectory extends IDocumentDirectory {
26
26
  }
27
27
 
28
28
  interface DocumentComponentExtended<T> extends DbSourceDataType<T> {
29
- json?: T;
30
29
  uri?: T;
31
30
  local?: T;
32
31
  export?: T;
32
+ json?: T;
33
33
  }
34
34
 
35
35
  interface DocumentComponentOptions<T> extends IDocumentComponentOptions, DocumentComponentExtended<DocumentComponentOption<T>> {}
@@ -56,7 +56,7 @@ export interface FinalizeProcessing<T extends IFileManager<U>, U extends Documen
56
56
  readonly startTime: LogTime;
57
57
  readonly hashed: Set<DocumentAsset>;
58
58
  readonly contentMap: StringMap;
59
- readonly bufferMap: ObjectMap<BufferContent>;
59
+ readonly bufferMap: ObjectMap<Bufferable>;
60
60
  readonly cacheMiss: string[];
61
61
  readonly productionRelease: Undef<true>;
62
62
  }
@@ -124,4 +124,4 @@ export interface ChromeDocumentConstructor<T extends IFileManager<U>, U extends
124
124
  INTERNAL_SERVERROOT: string;
125
125
  readonly prototype: IChromeDocument<T, U>;
126
126
  new(module?: DocumentModule, ...args: unknown[]): IChromeDocument<T, U>;
127
- }
127
+ }
@@ -1,4 +1,4 @@
1
- import type { AttributeAction, ConditionProperty, CssConditionData, ElementAction, ExcludeAction, FileAsset, FromAction, HashAction, DataSource as IDataSource, ImportAction, MetadataAction, ViewEngine, XmlTagNode } from '@e-mc/types/lib/squared';
1
+ import type { AttributeAction, ConditionProperty, CssConditionData, ElementAction, ExcludeAction, FileAsset, FromAction, HashAction, DataSource as IDataSource, ImportAction, MetadataAction, ViewEngine } 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';
@@ -18,11 +18,19 @@ interface DataObject extends CascadeAction {
18
18
  options?: PlainObject;
19
19
  }
20
20
 
21
+ interface ScopeData {
22
+ start: Null<string>;
23
+ end: Null<string>;
24
+ }
25
+
21
26
  export interface UserAgentData {
22
27
  platform: string;
28
+ name: string;
23
29
  brand: string;
24
30
  browser: number;
25
31
  version: Null<number[]>;
32
+ majorVersion: number;
33
+ mobile: boolean;
26
34
  }
27
35
 
28
36
  export interface DocumentOutput {
@@ -73,8 +81,9 @@ export interface CssRuleData {
73
81
  usedKeyframes?: string[];
74
82
  unusedStyles?: string[];
75
83
  unusedMedia?: string[];
76
- unusedContainer?: string[];
77
84
  unusedSupports?: string[];
85
+ unusedContainer?: string[];
86
+ unusedScope?: ScopeData[];
78
87
  unusedAtRules?: UnusedAtRule[];
79
88
  }
80
89
 
@@ -88,13 +97,13 @@ export interface UnusedAtRule {
88
97
 
89
98
  export interface DataSource<T = string> extends IDataSource<T>, ElementAction {
90
99
  source: "cloud" | "json" | "uri" | "local" | "export" | DbSource;
91
- element?: XmlTagNode;
92
100
  type?: "text" | "attribute" | "display";
93
101
  dynamic?: boolean;
94
- value?: StringOfArray | ObjectMap<unknown>;
102
+ value?: ArrayOf<string> | AnyObject;
95
103
  template?: string;
96
104
  viewEngine?: ViewEngine | string;
97
105
  ignoreEmpty?: boolean;
106
+ ignoreCoerce?: boolean;
98
107
  }
99
108
 
100
109
  export interface TextDataSource extends DataSource {