@c15t/dev-tools 0.0.1-rc.3 → 0.0.1-rc.5
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/README.md +1 -1
- package/dist/components/error-state.cjs +87 -115
- package/dist/components/error-state.css +51 -0
- package/dist/components/error-state.d.ts +5 -6
- package/dist/components/error-state.d.ts.map +1 -1
- package/dist/components/error-state.js +61 -107
- package/dist/components/header.cjs +54 -77
- package/dist/components/header.css +29 -0
- package/dist/components/header.d.ts +4 -5
- package/dist/components/header.d.ts.map +1 -1
- package/dist/components/header.js +28 -53
- package/dist/components/ui/accordion.cjs +64 -107
- package/dist/components/ui/accordion.css +72 -0
- package/dist/components/ui/accordion.d.ts +6 -32
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +36 -81
- package/dist/components/ui/alert.cjs +62 -93
- package/dist/components/ui/alert.css +59 -0
- package/dist/components/ui/alert.d.ts +7 -22
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +34 -64
- package/dist/components/ui/badge.cjs +61 -0
- package/dist/components/ui/badge.css +52 -0
- package/dist/components/ui/badge.d.ts +11 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +26 -0
- package/dist/components/ui/button.cjs +65 -85
- package/dist/components/ui/button.css +87 -0
- package/dist/components/ui/button.d.ts +9 -24
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +38 -53
- package/dist/components/ui/card.cjs +65 -106
- package/dist/components/ui/card.css +41 -0
- package/dist/components/ui/card.d.ts +9 -29
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +35 -94
- package/dist/components/ui/error-state.css +34 -0
- package/dist/components/ui/expandable-tabs.cjs +117 -182
- package/dist/components/ui/expandable-tabs.css +57 -0
- package/dist/components/ui/expandable-tabs.d.ts +14 -20
- package/dist/components/ui/expandable-tabs.d.ts.map +1 -1
- package/dist/components/ui/expandable-tabs.js +91 -159
- package/dist/components/ui/logo.cjs +101 -0
- package/dist/components/ui/logo.d.ts +8 -0
- package/dist/components/ui/logo.d.ts.map +1 -0
- package/dist/components/ui/logo.js +67 -0
- package/dist/components/ui/scroll-area.cjs +54 -94
- package/dist/components/ui/scroll-area.css +42 -0
- package/dist/components/ui/scroll-area.d.ts +4 -17
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +28 -72
- package/dist/components/ui/switch.cjs +38 -60
- package/dist/components/ui/switch.css +49 -0
- package/dist/components/ui/switch.d.ts +3 -9
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +13 -31
- package/dist/components/ui/tooltip.cjs +41 -61
- package/dist/components/ui/tooltip.css +101 -0
- package/dist/components/ui/tooltip.d.ts +6 -14
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +16 -36
- package/dist/components/wrapper.cjs +144 -185
- package/dist/components/wrapper.css +90 -0
- package/dist/components/wrapper.d.ts +8 -12
- package/dist/components/wrapper.d.ts.map +1 -1
- package/dist/components/wrapper.js +117 -161
- package/dist/dev-tool.cjs +110 -150
- package/dist/dev-tool.d.ts +8 -7
- package/dist/dev-tool.d.ts.map +1 -1
- package/dist/dev-tool.js +70 -106
- package/dist/index.cjs +27 -37
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/dist/libs/utils.cjs +42 -57
- package/dist/libs/utils.d.ts +1 -1
- package/dist/libs/utils.js +3 -5
- package/dist/router/router.cjs +145 -265
- package/dist/router/router.d.ts +3 -5
- package/dist/router/router.d.ts.map +1 -1
- package/dist/router/router.js +119 -256
- package/dist/styles/theme.css +42 -0
- package/package.json +3 -3
- package/.turbo/turbo-build.log +0 -56
- package/.turbo/turbo-fmt.log +0 -6
- package/.turbo/turbo-lint.log +0 -73
- package/dist/components/ui/overlay.cjs +0 -69
- package/dist/components/ui/overlay.d.ts +0 -7
- package/dist/components/ui/overlay.d.ts.map +0 -1
- package/dist/components/ui/overlay.js +0 -28
- package/rslib.config.ts +0 -28
- package/src/components/error-state.tsx +0 -44
- package/src/components/header.tsx +0 -28
- package/src/components/ui/accordion.tsx +0 -64
- package/src/components/ui/alert.tsx +0 -59
- package/src/components/ui/button.tsx +0 -56
- package/src/components/ui/card.tsx +0 -81
- package/src/components/ui/expandable-tabs.tsx +0 -174
- package/src/components/ui/overlay.tsx +0 -21
- package/src/components/ui/scroll-area.tsx +0 -52
- package/src/components/ui/switch.tsx +0 -28
- package/src/components/ui/tooltip.tsx +0 -32
- package/src/components/wrapper.tsx +0 -103
- package/src/dev-tool.tsx +0 -117
- package/src/index.ts +0 -3
- package/src/libs/utils.ts +0 -6
- package/src/router/router.tsx +0 -164
package/README.md
CHANGED
|
@@ -1,126 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports1, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: definition[key],
|
|
13
|
-
});
|
|
14
|
-
};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
15
10
|
})();
|
|
16
|
-
(()
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
20
15
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
31
25
|
})();
|
|
32
26
|
var __webpack_exports__ = {};
|
|
33
27
|
__webpack_require__.r(__webpack_exports__);
|
|
34
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
29
|
+
ErrorState: ()=>ErrorState
|
|
36
30
|
});
|
|
37
|
-
const jsx_runtime_namespaceObject = require(
|
|
38
|
-
const external_lucide_react_namespaceObject = require(
|
|
39
|
-
const react_namespaceObject = require(
|
|
40
|
-
const alert_cjs_namespaceObject = require(
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
33
|
+
const react_namespaceObject = require("motion/react");
|
|
34
|
+
const alert_cjs_namespaceObject = require("./ui/alert.cjs");
|
|
35
|
+
require("./error-state.css");
|
|
41
36
|
function ErrorState({ namespace }) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
className: 'mt-3 text-sm',
|
|
99
|
-
children: [
|
|
100
|
-
'Current namespace:',
|
|
101
|
-
' ',
|
|
102
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
103
|
-
'code',
|
|
104
|
-
{
|
|
105
|
-
className: 'rounded bg-red-100/10 px-1 py-0.5',
|
|
106
|
-
children: namespace,
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
],
|
|
110
|
-
}),
|
|
111
|
-
],
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
],
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
}
|
|
118
|
-
);
|
|
37
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_namespaceObject.motion.div, {
|
|
38
|
+
className: "c15t-devtool-error-container",
|
|
39
|
+
initial: {
|
|
40
|
+
opacity: 0
|
|
41
|
+
},
|
|
42
|
+
animate: {
|
|
43
|
+
opacity: 1
|
|
44
|
+
},
|
|
45
|
+
exit: {
|
|
46
|
+
opacity: 0
|
|
47
|
+
},
|
|
48
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(alert_cjs_namespaceObject.Alert, {
|
|
49
|
+
variant: "destructive",
|
|
50
|
+
className: "c15t-devtool-error-alert",
|
|
51
|
+
children: [
|
|
52
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.AlertCircle, {
|
|
53
|
+
className: "c15t-devtool-error-icon"
|
|
54
|
+
}),
|
|
55
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(alert_cjs_namespaceObject.AlertTitle, {
|
|
56
|
+
className: "c15t-devtool-error-title",
|
|
57
|
+
children: "SDK Initialization Failed"
|
|
58
|
+
}),
|
|
59
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(alert_cjs_namespaceObject.AlertDescription, {
|
|
60
|
+
className: "c15t-devtool-error-description",
|
|
61
|
+
children: [
|
|
62
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("p", {
|
|
63
|
+
className: "c15t-devtool-error-message",
|
|
64
|
+
children: "The c15t SDK could not be found in the global scope. This usually means either:"
|
|
65
|
+
}),
|
|
66
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("ul", {
|
|
67
|
+
className: "c15t-devtool-error-list",
|
|
68
|
+
children: [
|
|
69
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
70
|
+
children: "The namespace has been changed from its default value"
|
|
71
|
+
}),
|
|
72
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("li", {
|
|
73
|
+
children: "The SDK initialization failed"
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
}),
|
|
77
|
+
namespace && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("p", {
|
|
78
|
+
className: "c15t-devtool-error-namespace",
|
|
79
|
+
children: [
|
|
80
|
+
"Current namespace:",
|
|
81
|
+
' ',
|
|
82
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("code", {
|
|
83
|
+
className: "c15t-devtool-error-code",
|
|
84
|
+
children: namespace
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
})
|
|
92
|
+
});
|
|
119
93
|
}
|
|
120
94
|
var __webpack_export_target__ = exports;
|
|
121
|
-
for
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
value: true,
|
|
126
|
-
});
|
|
95
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
96
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
97
|
+
value: true
|
|
98
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.c15t-devtool-error-container {
|
|
2
|
+
text-align: center;
|
|
3
|
+
border-radius: .5rem;
|
|
4
|
+
margin-top: 1rem;
|
|
5
|
+
margin-bottom: 1rem;
|
|
6
|
+
font-size: 1rem;
|
|
7
|
+
box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.c15t-devtool-error-alert {
|
|
11
|
+
border-top-left-radius: 0;
|
|
12
|
+
border-top-right-radius: 0;
|
|
13
|
+
max-width: 42rem;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.c15t-devtool-error-icon {
|
|
17
|
+
width: 1rem;
|
|
18
|
+
height: 1rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.c15t-devtool-error-title {
|
|
22
|
+
font-size: 1.125rem;
|
|
23
|
+
font-weight: 600;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.c15t-devtool-error-description {
|
|
27
|
+
margin-top: .5rem;
|
|
28
|
+
margin-left: -1.75rem;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.c15t-devtool-error-message {
|
|
32
|
+
margin-bottom: .5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.c15t-devtool-error-list {
|
|
36
|
+
margin-top: .25rem;
|
|
37
|
+
padding-left: 1.5rem;
|
|
38
|
+
list-style-type: disc;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.c15t-devtool-error-namespace {
|
|
42
|
+
margin-top: .75rem;
|
|
43
|
+
font-size: .875rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.c15t-devtool-error-code {
|
|
47
|
+
background-color: color-mix(in srgb, var(--c15t-dev-tools-destructive) 10%, transparent);
|
|
48
|
+
border-radius: .25rem;
|
|
49
|
+
padding: .125rem .25rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=error-state.d.ts.map
|
|
1
|
+
import './error-state.css';
|
|
2
|
+
export declare function ErrorState({ namespace, }: {
|
|
3
|
+
namespace: string;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=error-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-state.d.ts","sourceRoot":"","sources":["../../src/components/error-state.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error-state.d.ts","sourceRoot":"","sources":["../../src/components/error-state.tsx"],"names":[],"mappings":"AAGA,OAAO,mBAAmB,CAAC;AAE3B,wBAAgB,UAAU,CAAC,EAC1B,SAAS,GACT,EAAE;IACF,SAAS,EAAE,MAAM,CAAC;CAClB,2CAiCA"}
|
|
@@ -1,110 +1,64 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_motion_react_9decfa63__ from
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__ui_alert_js_c1b3026e__ from
|
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_motion_react_9decfa63__ from "motion/react";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ui_alert_js_c1b3026e__ from "./ui/alert.js";
|
|
5
|
+
import "./error-state.css";
|
|
5
6
|
function ErrorState({ namespace }) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
children: [
|
|
63
|
-
/*#__PURE__*/ (0,
|
|
64
|
-
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
65
|
-
'li',
|
|
66
|
-
{
|
|
67
|
-
children:
|
|
68
|
-
'The namespace has been changed from its default value',
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/*#__PURE__*/ (0,
|
|
72
|
-
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
73
|
-
'li',
|
|
74
|
-
{
|
|
75
|
-
children: 'The SDK initialization failed',
|
|
76
|
-
}
|
|
77
|
-
),
|
|
78
|
-
],
|
|
79
|
-
}
|
|
80
|
-
),
|
|
81
|
-
namespace &&
|
|
82
|
-
/*#__PURE__*/ (0,
|
|
83
|
-
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(
|
|
84
|
-
'p',
|
|
85
|
-
{
|
|
86
|
-
className: 'mt-3 text-sm',
|
|
87
|
-
children: [
|
|
88
|
-
'Current namespace:',
|
|
89
|
-
' ',
|
|
90
|
-
/*#__PURE__*/ (0,
|
|
91
|
-
__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
92
|
-
'code',
|
|
93
|
-
{
|
|
94
|
-
className: 'rounded bg-red-100/10 px-1 py-0.5',
|
|
95
|
-
children: namespace,
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
],
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
],
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
],
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
}
|
|
108
|
-
);
|
|
7
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_motion_react_9decfa63__.motion.div, {
|
|
8
|
+
className: "c15t-devtool-error-container",
|
|
9
|
+
initial: {
|
|
10
|
+
opacity: 0
|
|
11
|
+
},
|
|
12
|
+
animate: {
|
|
13
|
+
opacity: 1
|
|
14
|
+
},
|
|
15
|
+
exit: {
|
|
16
|
+
opacity: 0
|
|
17
|
+
},
|
|
18
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__ui_alert_js_c1b3026e__.Alert, {
|
|
19
|
+
variant: "destructive",
|
|
20
|
+
className: "c15t-devtool-error-alert",
|
|
21
|
+
children: [
|
|
22
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.AlertCircle, {
|
|
23
|
+
className: "c15t-devtool-error-icon"
|
|
24
|
+
}),
|
|
25
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__ui_alert_js_c1b3026e__.AlertTitle, {
|
|
26
|
+
className: "c15t-devtool-error-title",
|
|
27
|
+
children: "SDK Initialization Failed"
|
|
28
|
+
}),
|
|
29
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)(__WEBPACK_EXTERNAL_MODULE__ui_alert_js_c1b3026e__.AlertDescription, {
|
|
30
|
+
className: "c15t-devtool-error-description",
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("p", {
|
|
33
|
+
className: "c15t-devtool-error-message",
|
|
34
|
+
children: "The c15t SDK could not be found in the global scope. This usually means either:"
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("ul", {
|
|
37
|
+
className: "c15t-devtool-error-list",
|
|
38
|
+
children: [
|
|
39
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
|
|
40
|
+
children: "The namespace has been changed from its default value"
|
|
41
|
+
}),
|
|
42
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("li", {
|
|
43
|
+
children: "The SDK initialization failed"
|
|
44
|
+
})
|
|
45
|
+
]
|
|
46
|
+
}),
|
|
47
|
+
namespace && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("p", {
|
|
48
|
+
className: "c15t-devtool-error-namespace",
|
|
49
|
+
children: [
|
|
50
|
+
"Current namespace:",
|
|
51
|
+
' ',
|
|
52
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("code", {
|
|
53
|
+
className: "c15t-devtool-error-code",
|
|
54
|
+
children: namespace
|
|
55
|
+
})
|
|
56
|
+
]
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
})
|
|
62
|
+
});
|
|
109
63
|
}
|
|
110
64
|
export { ErrorState };
|
|
@@ -1,88 +1,65 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
-
(()
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Object.defineProperty(exports1, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: definition[key],
|
|
13
|
-
});
|
|
14
|
-
};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
15
10
|
})();
|
|
16
|
-
(()
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
20
15
|
})();
|
|
21
|
-
(()
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
31
25
|
})();
|
|
32
26
|
var __webpack_exports__ = {};
|
|
33
27
|
__webpack_require__.r(__webpack_exports__);
|
|
34
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
35
|
-
|
|
29
|
+
Header: ()=>Header
|
|
36
30
|
});
|
|
37
|
-
const jsx_runtime_namespaceObject = require(
|
|
38
|
-
const external_lucide_react_namespaceObject = require(
|
|
39
|
-
const button_cjs_namespaceObject = require(
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
33
|
+
const button_cjs_namespaceObject = require("./ui/button.cjs");
|
|
34
|
+
require("./header.css");
|
|
35
|
+
const logo_cjs_namespaceObject = require("./ui/logo.cjs");
|
|
40
36
|
function Header({ onClose }) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
{
|
|
65
|
-
variant: 'ghost',
|
|
66
|
-
size: 'icon',
|
|
67
|
-
className: 'h-8 w-8',
|
|
68
|
-
onClick: onClose,
|
|
69
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
70
|
-
external_lucide_react_namespaceObject.X,
|
|
71
|
-
{
|
|
72
|
-
className: 'h-4 w-4',
|
|
73
|
-
}
|
|
74
|
-
),
|
|
75
|
-
}
|
|
76
|
-
),
|
|
77
|
-
],
|
|
78
|
-
}),
|
|
79
|
-
}
|
|
80
|
-
);
|
|
37
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
38
|
+
className: "c15t-devtool-header",
|
|
39
|
+
children: [
|
|
40
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
41
|
+
className: "c15t-devtool-header-title",
|
|
42
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(logo_cjs_namespaceObject.ConsentManagementIcon, {
|
|
43
|
+
className: "c15t-devtool-header-logo"
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
47
|
+
className: "c15t-devtool-header-actions",
|
|
48
|
+
children: onClose && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(button_cjs_namespaceObject.Button, {
|
|
49
|
+
variant: "ghost",
|
|
50
|
+
size: "icon",
|
|
51
|
+
onClick: onClose,
|
|
52
|
+
"aria-label": "Close",
|
|
53
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.X, {
|
|
54
|
+
className: "h-4 w-4"
|
|
55
|
+
})
|
|
56
|
+
})
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
});
|
|
81
60
|
}
|
|
82
61
|
var __webpack_export_target__ = exports;
|
|
83
|
-
for
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
value: true,
|
|
88
|
-
});
|
|
62
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
63
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
64
|
+
value: true
|
|
65
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
.c15t-devtool-header {
|
|
2
|
+
border-bottom: 1px solid var(--c15t-dev-tools-border);
|
|
3
|
+
background-color: var(--c15t-dev-tools-background);
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: .75rem 1rem;
|
|
7
|
+
display: flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.c15t-devtool-header-title {
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: .5rem;
|
|
13
|
+
font-size: .875rem;
|
|
14
|
+
font-weight: 500;
|
|
15
|
+
display: flex;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.c15t-devtool-header-actions {
|
|
19
|
+
align-items: center;
|
|
20
|
+
gap: .5rem;
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.c15t-devtool-header-logo {
|
|
25
|
+
width: auto;
|
|
26
|
+
height: 1.4rem;
|
|
27
|
+
fill: var(--c15t-dev-tools-muted-foreground);
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import './header.css';
|
|
1
2
|
interface HeaderProps {
|
|
2
|
-
|
|
3
|
+
onClose?: () => void;
|
|
3
4
|
}
|
|
4
|
-
export declare function Header({
|
|
5
|
-
onClose,
|
|
6
|
-
}: HeaderProps): import('react/jsx-runtime').JSX.Element;
|
|
5
|
+
export declare function Header({ onClose }: HeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
6
|
export {};
|
|
8
|
-
//# sourceMappingURL=header.d.ts.map
|
|
7
|
+
//# sourceMappingURL=header.d.ts.map
|