rivia 0.0.61 → 0.0.63
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/index.js +4 -2
- package/index.d.ts +30 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -500,9 +500,9 @@ transform: translateY(-20%);
|
|
|
500
500
|
<div style="background: white;width: 250px; border-radius: 10px; text-align: center; margin: 20px;">
|
|
501
501
|
<p style="padding: 15px;">Are you sure you want to dismiss this checklist?</p>
|
|
502
502
|
<hr style="border-top: 2px solid #f33f27ff; margin-left: 10px; margin-right: 10px;">
|
|
503
|
-
<button id="
|
|
503
|
+
<button id="confirmYes" style="margin: 10px; padding: 4px 8px;color: #f33f27ff; border: none; cursor: pointer;">Yes</button>
|
|
504
504
|
<span style="border-left: 2px solid #f33f27ff;color:#eda600ff; height: 52px; margin: 0 10px; display: inline-block; vertical-align: top;"></span>
|
|
505
|
-
<button id="
|
|
505
|
+
<button id="confirmNo" style="margin: 10px; padding: 4px 8px; color: #f33f27ff; border: none; cursor: pointer;">No</button>
|
|
506
506
|
</div>
|
|
507
507
|
</div>
|
|
508
508
|
`;
|
|
@@ -1292,12 +1292,14 @@ async function Checklist(workspace_id, obj) {
|
|
|
1292
1292
|
let doesRouteMatch2 = function(routes) {
|
|
1293
1293
|
if (!Array.isArray(routes)) return true;
|
|
1294
1294
|
const currentPath2 = window.location.pathname.toLowerCase();
|
|
1295
|
+
console.log("Current Path:", currentPath2);
|
|
1295
1296
|
return routes.some((route) => {
|
|
1296
1297
|
if (!route) return false;
|
|
1297
1298
|
let pattern;
|
|
1298
1299
|
const normalizedRoute = route.toLowerCase().replace(/\/$/, "");
|
|
1299
1300
|
if (normalizedRoute.includes("[dynamic]")) {
|
|
1300
1301
|
const base = normalizedRoute.split("[dynamic]")[0].replace(/\/$/, "");
|
|
1302
|
+
console.log("Base:", base);
|
|
1301
1303
|
pattern = new RegExp(`^${escapeRegex2(base)}(/.*)?$`);
|
|
1302
1304
|
} else {
|
|
1303
1305
|
pattern = new RegExp(`^${escapeRegex2(normalizedRoute)}$`);
|
package/index.d.ts
CHANGED
|
@@ -25,4 +25,33 @@ declare global {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
declare function Tours(tourId: string, userId: string): void ;
|
|
28
|
-
export { Checklist,Banner, Tours };
|
|
28
|
+
export { Checklist,Banner, Tours };
|
|
29
|
+
|
|
30
|
+
// declare function Checklist(
|
|
31
|
+
// checklist_id: string,
|
|
32
|
+
// user_var: object
|
|
33
|
+
// ): void ;
|
|
34
|
+
// declare function Banner(
|
|
35
|
+
// banner_id: string,
|
|
36
|
+
// obj:object
|
|
37
|
+
// ): void ;
|
|
38
|
+
|
|
39
|
+
// export function triggerEvent(
|
|
40
|
+
// message: string
|
|
41
|
+
// ): Promise<{
|
|
42
|
+
// status: string;
|
|
43
|
+
// data: {
|
|
44
|
+
// message: string;
|
|
45
|
+
// source: string;
|
|
46
|
+
// };
|
|
47
|
+
// }>;
|
|
48
|
+
|
|
49
|
+
// // Global typing (optional but recommended)
|
|
50
|
+
// declare global {
|
|
51
|
+
// interface Window {
|
|
52
|
+
// triggerEvent: typeof triggerEvent;
|
|
53
|
+
// }
|
|
54
|
+
// }
|
|
55
|
+
|
|
56
|
+
// declare function Tours(tourId: string, obj: object): void;
|
|
57
|
+
// export { Checklist,Banner, Tours};
|