@lightdash/common 0.2351.0 → 0.2352.0
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/.tsbuildinfo +1 -1
- package/dist/cjs/constants/screenshot.d.ts +12 -0
- package/dist/cjs/constants/screenshot.d.ts.map +1 -1
- package/dist/cjs/constants/screenshot.js +13 -1
- package/dist/cjs/constants/screenshot.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/constants/screenshot.d.ts +12 -0
- package/dist/esm/constants/screenshot.d.ts.map +1 -1
- package/dist/esm/constants/screenshot.js +12 -0
- package/dist/esm/constants/screenshot.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/constants/screenshot.d.ts +12 -0
- package/dist/types/constants/screenshot.d.ts.map +1 -1
- package/dist/types/constants/screenshot.js +12 -0
- package/dist/types/constants/screenshot.js.map +1 -1
- package/package.json +1 -1
|
@@ -58,6 +58,16 @@ export declare const DASHBOARD_GRID_CLASS = "react-grid-layout";
|
|
|
58
58
|
* - Backend: Checked by UnfurlService.saveScreenshot() to detect errors
|
|
59
59
|
*/
|
|
60
60
|
export declare const ERROR_BOUNDARY_ID = "lightdash-error-boundary";
|
|
61
|
+
/**
|
|
62
|
+
* ID of the element rendered on the login page.
|
|
63
|
+
* The UnfurlService checks for this element to detect when authentication failed
|
|
64
|
+
* and the user was redirected to the login page instead of the requested content.
|
|
65
|
+
*
|
|
66
|
+
* Usage:
|
|
67
|
+
* - Frontend: Rendered by LoginLanding Card component
|
|
68
|
+
* - Backend: Checked by UnfurlService.saveScreenshot() to detect auth redirects
|
|
69
|
+
*/
|
|
70
|
+
export declare const LOGIN_PAGE_ID = "lightdash-login-page";
|
|
61
71
|
/**
|
|
62
72
|
* CSS Selectors (with prefix for direct use in querySelector/CSS)
|
|
63
73
|
*/
|
|
@@ -74,5 +84,7 @@ export declare const SCREENSHOT_SELECTORS: {
|
|
|
74
84
|
readonly DASHBOARD_GRID: ".react-grid-layout";
|
|
75
85
|
/** ID selector: #lightdash-error-boundary */
|
|
76
86
|
readonly ERROR_BOUNDARY: "#lightdash-error-boundary";
|
|
87
|
+
/** ID selector: #lightdash-login-page */
|
|
88
|
+
readonly LOGIN_PAGE: "#lightdash-login-page";
|
|
77
89
|
};
|
|
78
90
|
//# sourceMappingURL=screenshot.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../src/constants/screenshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC7B,8CAA8C;;IAE9C,6CAA6C;;IAE7C,qCAAqC;;IAErC,qCAAqC;;IAErC,yCAAyC;;IAEzC,6CAA6C;;
|
|
1
|
+
{"version":3,"file":"screenshot.d.ts","sourceRoot":"","sources":["../../../src/constants/screenshot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAEzE;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB,6BAA6B,CAAC;AAE5D;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,yBAAyB,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC7B,8CAA8C;;IAE9C,6CAA6C;;IAE7C,qCAAqC;;IAErC,qCAAqC;;IAErC,yCAAyC;;IAEzC,6CAA6C;;IAE7C,yCAAyC;;CAEnC,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* IMPORTANT: Changes to these constants must be coordinated between frontend and backend deployments.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SCREENSHOT_SELECTORS = exports.ERROR_BOUNDARY_ID = exports.DASHBOARD_GRID_CLASS = exports.MARKDOWN_TILE_CLASS = exports.LOADING_CHART_CLASS = exports.LOADING_CHART_OVERLAY_CLASS = exports.SCREENSHOT_READY_INDICATOR_ID = void 0;
|
|
9
|
+
exports.SCREENSHOT_SELECTORS = exports.LOGIN_PAGE_ID = exports.ERROR_BOUNDARY_ID = exports.DASHBOARD_GRID_CLASS = exports.MARKDOWN_TILE_CLASS = exports.LOADING_CHART_CLASS = exports.LOADING_CHART_OVERLAY_CLASS = exports.SCREENSHOT_READY_INDICATOR_ID = void 0;
|
|
10
10
|
/**
|
|
11
11
|
* ID of the element that signals when a dashboard/chart is ready for screenshot.
|
|
12
12
|
* The UnfurlService waits for this element to appear before taking a screenshot.
|
|
@@ -61,6 +61,16 @@ exports.DASHBOARD_GRID_CLASS = 'react-grid-layout';
|
|
|
61
61
|
* - Backend: Checked by UnfurlService.saveScreenshot() to detect errors
|
|
62
62
|
*/
|
|
63
63
|
exports.ERROR_BOUNDARY_ID = 'lightdash-error-boundary';
|
|
64
|
+
/**
|
|
65
|
+
* ID of the element rendered on the login page.
|
|
66
|
+
* The UnfurlService checks for this element to detect when authentication failed
|
|
67
|
+
* and the user was redirected to the login page instead of the requested content.
|
|
68
|
+
*
|
|
69
|
+
* Usage:
|
|
70
|
+
* - Frontend: Rendered by LoginLanding Card component
|
|
71
|
+
* - Backend: Checked by UnfurlService.saveScreenshot() to detect auth redirects
|
|
72
|
+
*/
|
|
73
|
+
exports.LOGIN_PAGE_ID = 'lightdash-login-page';
|
|
64
74
|
/**
|
|
65
75
|
* CSS Selectors (with prefix for direct use in querySelector/CSS)
|
|
66
76
|
*/
|
|
@@ -77,5 +87,7 @@ exports.SCREENSHOT_SELECTORS = {
|
|
|
77
87
|
DASHBOARD_GRID: `.${exports.DASHBOARD_GRID_CLASS}`,
|
|
78
88
|
/** ID selector: #lightdash-error-boundary */
|
|
79
89
|
ERROR_BOUNDARY: `#${exports.ERROR_BOUNDARY_ID}`,
|
|
90
|
+
/** ID selector: #lightdash-login-page */
|
|
91
|
+
LOGIN_PAGE: `#${exports.LOGIN_PAGE_ID}`,
|
|
80
92
|
};
|
|
81
93
|
//# sourceMappingURL=screenshot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"screenshot.js","sourceRoot":"","sources":["../../../src/constants/screenshot.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;;;;;;GAOG;AACU,QAAA,6BAA6B,GAAG,2BAA2B,CAAC;AAEzE;;;;;;;GAOG;AACU,QAAA,2BAA2B,GAAG,uBAAuB,CAAC;AAEnE;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAG,eAAe,CAAC;AAEnD;;;;;;;GAOG;AACU,QAAA,mBAAmB,GAAG,eAAe,CAAC;AAEnD;;;;;;;GAOG;AACU,QAAA,oBAAoB,GAAG,mBAAmB,CAAC;AAExD;;;;;;;GAOG;AACU,QAAA,iBAAiB,GAAG,0BAA0B,CAAC;AAE5D;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAChC,8CAA8C;IAC9C,eAAe,EAAE,IAAI,qCAA6B,EAAE;IACpD,6CAA6C;IAC7C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