@vived/host 4.12.0 → 4.12.2
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/dist/cjs/Assets/Adapters/assetFileAdapter.js +6 -0
- package/dist/cjs/Assets/Adapters/assetFileAdapter.js.map +1 -1
- package/dist/cjs/Cache/Factories/CacheFeatureFactory.js +0 -1
- package/dist/cjs/Cache/Factories/CacheFeatureFactory.js.map +1 -1
- package/dist/esm/Assets/Adapters/assetFileAdapter.js +6 -0
- package/dist/esm/Assets/Adapters/assetFileAdapter.js.map +1 -1
- package/dist/esm/Cache/Factories/CacheFeatureFactory.js +1 -2
- package/dist/esm/Cache/Factories/CacheFeatureFactory.js.map +1 -1
- package/dist/types/Assets/Adapters/assetFileAdapter.d.ts.map +1 -1
- package/dist/types/Cache/Factories/CacheFeatureFactory.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -19,6 +19,9 @@ exports.assetFileAdapter = {
|
|
|
19
19
|
* @param setVM - Callback function that will receive view model updates
|
|
20
20
|
*/
|
|
21
21
|
subscribe: (id, appObjects, setVM) => {
|
|
22
|
+
if (!id) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
22
25
|
const pm = AssetFilePM_1.AssetFilePM.getByID(id, appObjects);
|
|
23
26
|
if (!pm) {
|
|
24
27
|
appObjects.submitError("assetFileAdapter", "Unable to find AssetFilePM");
|
|
@@ -34,6 +37,9 @@ exports.assetFileAdapter = {
|
|
|
34
37
|
* @param setVM - Callback function to remove from updates
|
|
35
38
|
*/
|
|
36
39
|
unsubscribe: (id, appObjects, setVM) => {
|
|
40
|
+
if (!id) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
37
43
|
const pm = AssetFilePM_1.AssetFilePM.getByID(id, appObjects);
|
|
38
44
|
if (!pm) {
|
|
39
45
|
appObjects.submitError("assetFileAdapter", "Unable to find AssetFilePM");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetFileAdapter.js","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":";;;AAEA,oDAI4B;AAE5B;;;GAGG;AACU,QAAA,gBAAgB,GAA2B;IACtD;;OAEG;IACH,SAAS,EAAE,gCAAkB;IAE7B;;;;;;OAMG;IACH,SAAS,EAAE,CACT,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,MAAM,EAAE,GAAG,yBAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,EAAE,CACX,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,MAAM,EAAE,GAAG,yBAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;CACF,CAAC","sourcesContent":["// filepath: c:\\Users\\amosp\\Documents\\WebGL\\vivedlearning_host\\src\\Assets\\Adapters\\assetFileAdapter.ts\nimport { AppObjectRepo, PmAdapter } from \"@vived/core\";\nimport {\n AssetFilePM,\n AssetFileVM,\n defaultAssetFileVM\n} from \"../PMs/AssetFilePM\";\n\n/**\n * Adapter for connecting AssetFilePM to UI components\n * Provides the interface for React components to subscribe to AssetFileVM updates\n */\nexport const assetFileAdapter: PmAdapter<AssetFileVM> = {\n /**\n * Default view model used before subscription is established\n */\n defaultVM: defaultAssetFileVM,\n\n /**\n * Subscribe a view function to updates from the presentation manager\n *\n * @param id - ID of the asset to observe\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function that will receive view model updates\n */\n subscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.addView(setVM);\n },\n\n /**\n * Unsubscribe a view function from updates\n *\n * @param id - ID of the asset to stop observing\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function to remove from updates\n */\n unsubscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.removeView(setVM);\n }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"assetFileAdapter.js","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":";;;AAEA,oDAI4B;AAE5B;;;GAGG;AACU,QAAA,gBAAgB,GAA2B;IACtD;;OAEG;IACH,SAAS,EAAE,gCAAkB;IAE7B;;;;;;OAMG;IACH,SAAS,EAAE,CACT,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO;QACT,CAAC;QACD,MAAM,EAAE,GAAG,yBAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,EAAE,CACX,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO;QACT,CAAC;QACD,MAAM,EAAE,GAAG,yBAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;CACF,CAAC","sourcesContent":["// filepath: c:\\Users\\amosp\\Documents\\WebGL\\vivedlearning_host\\src\\Assets\\Adapters\\assetFileAdapter.ts\nimport { AppObjectRepo, PmAdapter } from \"@vived/core\";\nimport {\n AssetFilePM,\n AssetFileVM,\n defaultAssetFileVM\n} from \"../PMs/AssetFilePM\";\n\n/**\n * Adapter for connecting AssetFilePM to UI components\n * Provides the interface for React components to subscribe to AssetFileVM updates\n */\nexport const assetFileAdapter: PmAdapter<AssetFileVM> = {\n /**\n * Default view model used before subscription is established\n */\n defaultVM: defaultAssetFileVM,\n\n /**\n * Subscribe a view function to updates from the presentation manager\n *\n * @param id - ID of the asset to observe\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function that will receive view model updates\n */\n subscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n if (!id) {\n return;\n }\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.addView(setVM);\n },\n\n /**\n * Unsubscribe a view function from updates\n *\n * @param id - ID of the asset to stop observing\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function to remove from updates\n */\n unsubscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n if (!id) {\n return;\n }\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.removeView(setVM);\n }\n};\n"]}
|
|
@@ -20,7 +20,6 @@ class CacheFeatureFactory extends core_1.DomainFactory {
|
|
|
20
20
|
*/
|
|
21
21
|
setupEntities() {
|
|
22
22
|
// Initialize entities
|
|
23
|
-
(0, Entities_1.makeCacheEntity)(this.appObject);
|
|
24
23
|
(0, Entities_1.makeScriptCacheEntity)(this.appObject);
|
|
25
24
|
(0, Entities_1.makeAssetCacheEntity)(this.appObject);
|
|
26
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheFeatureFactory.js","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"CacheFeatureFactory.js","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":";;;AAAA,sCAAuD;AACvD,0CAA0E;AAC1E,gCAKgB;AAEhB;;;;GAIG;AACH,MAAa,mBAAoB,SAAQ,oBAAa;IAIpD,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJnB,+BAA+B;QACtB,gBAAW,GAAG,qBAAqB,CAAC;IAI7C,CAAC;IAED;;OAEG;IACH,aAAa;QACX,sBAAsB;QACtB,IAAA,gCAAqB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,IAAA,+BAAoB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,kBAAkB;QAClB,IAAA,8BAAwB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,IAAA,8BAAwB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,IAAA,6BAAuB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxC,IAAA,6BAAuB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,sDAAsD;IACxD,CAAC;IAED;;OAEG;IACH,UAAU;QACR,yCAAyC;IAC3C,CAAC;CACF;AAzCD,kDAyCC","sourcesContent":["import { AppObject, DomainFactory } from \"@vived/core\";\r\nimport { makeAssetCacheEntity, makeScriptCacheEntity } from \"../Entities\";\r\nimport {\r\n makeGetAssetFromCacheUC,\r\n makeGetScriptFromCacheUC,\r\n makeStoreAssetInCacheUC,\r\n makeStoreScriptInCacheUC\r\n} from \"../UCs\";\r\n\r\n/**\r\n * Factory responsible for setting up the Cache domain components.\r\n * This factory initializes all entities, use cases, and presentation models\r\n * required for the Cache functionality.\r\n */\r\nexport class CacheFeatureFactory extends DomainFactory {\r\n // Unique name for this factory\r\n readonly factoryName = \"CacheFeatureFactory\";\r\n\r\n constructor(appObject: AppObject) {\r\n super(appObject);\r\n }\r\n\r\n /**\r\n * Sets up all entities required for the Cache system\r\n */\r\n setupEntities(): void {\r\n // Initialize entities\r\n makeScriptCacheEntity(this.appObject);\r\n makeAssetCacheEntity(this.appObject);\r\n }\r\n\r\n /**\r\n * Sets up all use cases for the Cache system\r\n */\r\n setupUCs(): void {\r\n // Cache use cases\r\n makeGetScriptFromCacheUC(this.appObject);\r\n makeStoreScriptInCacheUC(this.appObject);\r\n makeGetAssetFromCacheUC(this.appObject);\r\n makeStoreAssetInCacheUC(this.appObject);\r\n }\r\n\r\n /**\r\n * Sets up all presentation managers for the Cache system\r\n */\r\n setupPMs(): void {\r\n // No presentation managers exist for the Cache system\r\n }\r\n\r\n /**\r\n * Performs any final setup operations after all components are initialized\r\n */\r\n finalSetup(): void {\r\n // No additional setup required for cache\r\n }\r\n}\r\n"]}
|
|
@@ -16,6 +16,9 @@ export const assetFileAdapter = {
|
|
|
16
16
|
* @param setVM - Callback function that will receive view model updates
|
|
17
17
|
*/
|
|
18
18
|
subscribe: (id, appObjects, setVM) => {
|
|
19
|
+
if (!id) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
19
22
|
const pm = AssetFilePM.getByID(id, appObjects);
|
|
20
23
|
if (!pm) {
|
|
21
24
|
appObjects.submitError("assetFileAdapter", "Unable to find AssetFilePM");
|
|
@@ -31,6 +34,9 @@ export const assetFileAdapter = {
|
|
|
31
34
|
* @param setVM - Callback function to remove from updates
|
|
32
35
|
*/
|
|
33
36
|
unsubscribe: (id, appObjects, setVM) => {
|
|
37
|
+
if (!id) {
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
34
40
|
const pm = AssetFilePM.getByID(id, appObjects);
|
|
35
41
|
if (!pm) {
|
|
36
42
|
appObjects.submitError("assetFileAdapter", "Unable to find AssetFilePM");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetFileAdapter.js","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EAEX,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B;IACtD;;OAEG;IACH,SAAS,EAAE,kBAAkB;IAE7B;;;;;;OAMG;IACH,SAAS,EAAE,CACT,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,MAAM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,EAAE,CACX,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,MAAM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;CACF,CAAC","sourcesContent":["// filepath: c:\\Users\\amosp\\Documents\\WebGL\\vivedlearning_host\\src\\Assets\\Adapters\\assetFileAdapter.ts\nimport { AppObjectRepo, PmAdapter } from \"@vived/core\";\nimport {\n AssetFilePM,\n AssetFileVM,\n defaultAssetFileVM\n} from \"../PMs/AssetFilePM\";\n\n/**\n * Adapter for connecting AssetFilePM to UI components\n * Provides the interface for React components to subscribe to AssetFileVM updates\n */\nexport const assetFileAdapter: PmAdapter<AssetFileVM> = {\n /**\n * Default view model used before subscription is established\n */\n defaultVM: defaultAssetFileVM,\n\n /**\n * Subscribe a view function to updates from the presentation manager\n *\n * @param id - ID of the asset to observe\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function that will receive view model updates\n */\n subscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.addView(setVM);\n },\n\n /**\n * Unsubscribe a view function from updates\n *\n * @param id - ID of the asset to stop observing\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function to remove from updates\n */\n unsubscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.removeView(setVM);\n }\n};\n"]}
|
|
1
|
+
{"version":3,"file":"assetFileAdapter.js","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EAEX,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B;IACtD;;OAEG;IACH,SAAS,EAAE,kBAAkB;IAE7B;;;;;;OAMG;IACH,SAAS,EAAE,CACT,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO;QACT,CAAC;QACD,MAAM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,WAAW,EAAE,CACX,EAAU,EACV,UAAyB,EACzB,KAAgC,EAChC,EAAE;QACF,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,OAAO;QACT,CAAC;QACD,MAAM,EAAE,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/C,IAAI,CAAC,EAAE,EAAE,CAAC;YACR,UAAU,CAAC,WAAW,CAAC,kBAAkB,EAAE,4BAA4B,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QACD,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvB,CAAC;CACF,CAAC","sourcesContent":["// filepath: c:\\Users\\amosp\\Documents\\WebGL\\vivedlearning_host\\src\\Assets\\Adapters\\assetFileAdapter.ts\nimport { AppObjectRepo, PmAdapter } from \"@vived/core\";\nimport {\n AssetFilePM,\n AssetFileVM,\n defaultAssetFileVM\n} from \"../PMs/AssetFilePM\";\n\n/**\n * Adapter for connecting AssetFilePM to UI components\n * Provides the interface for React components to subscribe to AssetFileVM updates\n */\nexport const assetFileAdapter: PmAdapter<AssetFileVM> = {\n /**\n * Default view model used before subscription is established\n */\n defaultVM: defaultAssetFileVM,\n\n /**\n * Subscribe a view function to updates from the presentation manager\n *\n * @param id - ID of the asset to observe\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function that will receive view model updates\n */\n subscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n if (!id) {\n return;\n }\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.addView(setVM);\n },\n\n /**\n * Unsubscribe a view function from updates\n *\n * @param id - ID of the asset to stop observing\n * @param appObjects - Repository of app objects\n * @param setVM - Callback function to remove from updates\n */\n unsubscribe: (\n id: string,\n appObjects: AppObjectRepo,\n setVM: (vm: AssetFileVM) => void\n ) => {\n if (!id) {\n return;\n }\n const pm = AssetFilePM.getByID(id, appObjects);\n if (!pm) {\n appObjects.submitError(\"assetFileAdapter\", \"Unable to find AssetFilePM\");\n return;\n }\n pm.removeView(setVM);\n }\n};\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DomainFactory } from "@vived/core";
|
|
2
|
-
import {
|
|
2
|
+
import { makeAssetCacheEntity, makeScriptCacheEntity } from "../Entities";
|
|
3
3
|
import { makeGetAssetFromCacheUC, makeGetScriptFromCacheUC, makeStoreAssetInCacheUC, makeStoreScriptInCacheUC } from "../UCs";
|
|
4
4
|
/**
|
|
5
5
|
* Factory responsible for setting up the Cache domain components.
|
|
@@ -17,7 +17,6 @@ export class CacheFeatureFactory extends DomainFactory {
|
|
|
17
17
|
*/
|
|
18
18
|
setupEntities() {
|
|
19
19
|
// Initialize entities
|
|
20
|
-
makeCacheEntity(this.appObject);
|
|
21
20
|
makeScriptCacheEntity(this.appObject);
|
|
22
21
|
makeAssetCacheEntity(this.appObject);
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheFeatureFactory.js","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"CacheFeatureFactory.js","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,QAAQ,CAAC;AAEhB;;;;GAIG;AACH,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAIpD,YAAY,SAAoB;QAC9B,KAAK,CAAC,SAAS,CAAC,CAAC;QAJnB,+BAA+B;QACtB,gBAAW,GAAG,qBAAqB,CAAC;IAI7C,CAAC;IAED;;OAEG;IACH,aAAa;QACX,sBAAsB;QACtB,qBAAqB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,kBAAkB;QAClB,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,wBAAwB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACzC,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxC,uBAAuB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,sDAAsD;IACxD,CAAC;IAED;;OAEG;IACH,UAAU;QACR,yCAAyC;IAC3C,CAAC;CACF","sourcesContent":["import { AppObject, DomainFactory } from \"@vived/core\";\r\nimport { makeAssetCacheEntity, makeScriptCacheEntity } from \"../Entities\";\r\nimport {\r\n makeGetAssetFromCacheUC,\r\n makeGetScriptFromCacheUC,\r\n makeStoreAssetInCacheUC,\r\n makeStoreScriptInCacheUC\r\n} from \"../UCs\";\r\n\r\n/**\r\n * Factory responsible for setting up the Cache domain components.\r\n * This factory initializes all entities, use cases, and presentation models\r\n * required for the Cache functionality.\r\n */\r\nexport class CacheFeatureFactory extends DomainFactory {\r\n // Unique name for this factory\r\n readonly factoryName = \"CacheFeatureFactory\";\r\n\r\n constructor(appObject: AppObject) {\r\n super(appObject);\r\n }\r\n\r\n /**\r\n * Sets up all entities required for the Cache system\r\n */\r\n setupEntities(): void {\r\n // Initialize entities\r\n makeScriptCacheEntity(this.appObject);\r\n makeAssetCacheEntity(this.appObject);\r\n }\r\n\r\n /**\r\n * Sets up all use cases for the Cache system\r\n */\r\n setupUCs(): void {\r\n // Cache use cases\r\n makeGetScriptFromCacheUC(this.appObject);\r\n makeStoreScriptInCacheUC(this.appObject);\r\n makeGetAssetFromCacheUC(this.appObject);\r\n makeStoreAssetInCacheUC(this.appObject);\r\n }\r\n\r\n /**\r\n * Sets up all presentation managers for the Cache system\r\n */\r\n setupPMs(): void {\r\n // No presentation managers exist for the Cache system\r\n }\r\n\r\n /**\r\n * Performs any final setup operations after all components are initialized\r\n */\r\n finalSetup(): void {\r\n // No additional setup required for cache\r\n }\r\n}\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assetFileAdapter.d.ts","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAEL,WAAW,EAEZ,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"assetFileAdapter.d.ts","sourceRoot":"","sources":["../../../../src/Assets/Adapters/assetFileAdapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAEL,WAAW,EAEZ,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAAS,CAAC,WAAW,CAmDnD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CacheFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"CacheFeatureFactory.d.ts","sourceRoot":"","sources":["../../../../src/Cache/Factories/CacheFeatureFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AASvD;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,aAAa;IAEpD,QAAQ,CAAC,WAAW,yBAAyB;gBAEjC,SAAS,EAAE,SAAS;IAIhC;;OAEG;IACH,aAAa,IAAI,IAAI;IAMrB;;OAEG;IACH,QAAQ,IAAI,IAAI;IAQhB;;OAEG;IACH,QAAQ,IAAI,IAAI;IAIhB;;OAEG;IACH,UAAU,IAAI,IAAI;CAGnB"}
|