@edifice.io/client 2.6.12-develop-pedago.20261104164826 → 2.6.12-develop-integration.20261104185123

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.
@@ -7,6 +7,7 @@ import { IDataService } from '../data/interface';
7
7
  import { DirectoryService } from '../directory/Service';
8
8
  import { EmbedderService } from '../embedder/Service';
9
9
  import { App, ResourceType } from '../globals';
10
+ import { GoogleDriveService } from '../googledrive/Service';
10
11
  import { IdiomService } from '../idiom/Service';
11
12
  import { INotifyFramework } from '../notify/interfaces';
12
13
  import { NextcloudService } from '../nextcloud/Service';
@@ -25,6 +26,7 @@ export interface IOdeServices {
25
26
  conf(): ConfService;
26
27
  data(): IDataService;
27
28
  directory(): DirectoryService;
29
+ googledrive(): GoogleDriveService;
28
30
  http(): HttpService;
29
31
  idiom(): IdiomService;
30
32
  nextcloud(): NextcloudService;
@@ -45,6 +47,7 @@ export declare class OdeServices implements IOdeServices {
45
47
  private _conf;
46
48
  private _data;
47
49
  private _directory;
50
+ private _googledrive;
48
51
  private _http;
49
52
  private _idiom;
50
53
  private _nextcloud;
@@ -64,6 +67,7 @@ export declare class OdeServices implements IOdeServices {
64
67
  conf(): ConfService;
65
68
  data(): DataService;
66
69
  directory(): DirectoryService;
70
+ googledrive(): GoogleDriveService;
67
71
  http(): HttpService;
68
72
  idiom(): IdiomService;
69
73
  nextcloud(): NextcloudService;
@@ -46,9 +46,10 @@ export declare function readDeviceCookies(): DeviceInfo | null;
46
46
  /**
47
47
  * Sets device detection cookies in the browser.
48
48
  *
49
- * Cookies are (re)written on every call so that cookies previously written
50
- * with other attributes (e.g. SameSite=Strict) get replaced.
51
- * Detection is cheap (a single user-agent parse).
49
+ * First checks if cookies already exist. If so, returns the existing values
50
+ * without recalculating. Otherwise, detects device info and sets the cookies.
51
+ *
52
+ * This optimization avoids parsing the user-agent on every page load.
52
53
  *
53
54
  * @returns DeviceInfo object containing osName, osVersion, deviceType, deviceName
54
55
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/client",
3
- "version": "2.6.12-develop-pedago.20261104164826",
3
+ "version": "2.6.12-develop-integration.20261104185123",
4
4
  "description": "Edifice TypeScript Client",
5
5
  "keywords": [
6
6
  "typescript",
@@ -37,29 +37,28 @@
37
37
  "axios": "1.13.4",
38
38
  "core-js": "3.48.0",
39
39
  "ua-parser-js": "2.0.9",
40
- "@edifice.io/utilities": "2.6.12-develop-pedago.20261104164826"
40
+ "@edifice.io/utilities": "2.6.12-develop-integration.20261104185123"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/jasmine": "5.1.4",
44
44
  "@types/node": "22.19.8",
45
45
  "jasmine": "5.1.0",
46
46
  "rimraf": "5.0.5",
47
- "sonda": "0.11.1",
47
+ "rollup-plugin-visualizer": "5.12.0",
48
48
  "typedoc": "0.28.16",
49
49
  "typedoc-plugin-markdown": "3.17.1",
50
50
  "typescript": "5.9.3",
51
- "vite": "8.0.14",
51
+ "vite": "5.4.14",
52
52
  "vite-plugin-dts": "4.5.4",
53
- "@edifice.io/config": "2.6.12-develop-pedago.20261104164826"
53
+ "@edifice.io/config": "2.6.12-develop-integration.20261104185123"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "vite build",
57
- "build:analyze": "vite build --mode analyze",
58
57
  "docs": "npx rimraf ./docs/ && npx typedoc src/ts/index.ts --excludePrivate --disableSources --plugin typedoc-plugin-markdown",
59
58
  "fix": "eslint --fix --report-unused-disable-directives --max-warnings 0",
60
59
  "format": "prettier --check \"src/ts/**/*.ts\"",
61
60
  "format:write": "prettier --write \"src/ts/**/*.ts\"",
62
- "lint": "eslint --max-warnings 0",
61
+ "lint": "eslint",
63
62
  "test": "vitest",
64
63
  "test:coverage": "vitest run --coverage"
65
64
  }