analytica-frontend-lib 1.3.66 → 1.3.67
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/hooks/useNotifications.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../src/hooks/useNotifications.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG9E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAW,qBAAqB;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useNotifications.d.ts","sourceRoot":"","sources":["../../src/hooks/useNotifications.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAG9E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GAAI,WAAW,qBAAqB;;;;;;;;;;;;;gCAuF3D,MAAM,eACG,MAAM,aACR,MAAM,oBACC,MAAM,IAAI;;kCA5Df,MAAM,aACR,MAAM,oBACC,MAAM,IAAI;kCA8BhB,MAAM,KAAG,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwG9C,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,uBAAuB,GAAI,WAAW,qBAAqB;;;;;;;;;;;;;gCAlG5D,MAAM,eACG,MAAM,aACR,MAAM,oBACC,MAAM,IAAI;;kCA5Df,MAAM,aACR,MAAM,oBACC,MAAM,IAAI;kCA8BhB,MAAM,KAAG,MAAM,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6H9C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -18370,14 +18370,15 @@ var createUseNotifications = (apiClient) => {
|
|
|
18370
18370
|
} = useNotificationStore();
|
|
18371
18371
|
const handleNavigate = (0, import_react47.useCallback)(
|
|
18372
18372
|
(entityType, entityId, onAfterNavigate) => {
|
|
18373
|
-
if (entityType
|
|
18373
|
+
if (entityType) {
|
|
18374
18374
|
switch (entityType.toUpperCase()) {
|
|
18375
18375
|
case "ACTIVITY" /* ACTIVITY */:
|
|
18376
|
-
|
|
18376
|
+
if (entityId) {
|
|
18377
|
+
globalThis.location.href = `/conteudo/atividades/${entityId}`;
|
|
18378
|
+
}
|
|
18377
18379
|
break;
|
|
18378
18380
|
case "RECOMMENDEDCLASS" /* RECOMMENDEDCLASS */:
|
|
18379
|
-
|
|
18380
|
-
window.location.href = `/painel/trilhas/${entityId}`;
|
|
18381
|
+
globalThis.location.href = `/plano/consultar`;
|
|
18381
18382
|
break;
|
|
18382
18383
|
default:
|
|
18383
18384
|
break;
|
|
@@ -18394,7 +18395,6 @@ var createUseNotifications = (apiClient) => {
|
|
|
18394
18395
|
case "ACTIVITY" /* ACTIVITY */:
|
|
18395
18396
|
return "Ver atividade";
|
|
18396
18397
|
case "RECOMMENDEDCLASS" /* RECOMMENDEDCLASS */:
|
|
18397
|
-
case "RECOMMENDEDCLASS":
|
|
18398
18398
|
return "Ver meta";
|
|
18399
18399
|
default:
|
|
18400
18400
|
return void 0;
|