katanakit-js 6.2.0 → 6.6.1
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 +11 -3
- package/dist/adapters/better-auth/better-auth.service.d.ts +83 -0
- package/dist/adapters/better-auth/better-auth.service.d.ts.map +1 -0
- package/dist/adapters/better-auth/better-auth.service.js +110 -0
- package/dist/adapters/better-auth/better-auth.service.js.map +1 -0
- package/dist/adapters/better-auth/client.d.ts +51 -0
- package/dist/adapters/better-auth/client.d.ts.map +1 -0
- package/dist/adapters/better-auth/client.js +67 -0
- package/dist/adapters/better-auth/client.js.map +1 -0
- package/dist/adapters/better-auth/index.d.ts +3 -0
- package/dist/adapters/better-auth/index.d.ts.map +1 -0
- package/dist/adapters/better-auth/index.js +3 -0
- package/dist/adapters/better-auth/index.js.map +1 -0
- package/dist/adapters/express/server.d.ts +133 -1
- package/dist/adapters/express/server.d.ts.map +1 -1
- package/dist/adapters/express/server.js +199 -97
- package/dist/adapters/express/server.js.map +1 -1
- package/dist/adapters/index.d.ts +2 -0
- package/dist/adapters/index.d.ts.map +1 -1
- package/dist/adapters/index.js +2 -0
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/insforge/insforge.service.d.ts +139 -4
- package/dist/adapters/insforge/insforge.service.d.ts.map +1 -1
- package/dist/adapters/insforge/insforge.service.js +383 -213
- package/dist/adapters/insforge/insforge.service.js.map +1 -1
- package/dist/adapters/notion/notion.service.d.ts +130 -144
- package/dist/adapters/notion/notion.service.d.ts.map +1 -1
- package/dist/adapters/notion/notion.service.js +330 -341
- package/dist/adapters/notion/notion.service.js.map +1 -1
- package/dist/adapters/photoswipe/index.d.ts +2 -0
- package/dist/adapters/photoswipe/index.d.ts.map +1 -0
- package/dist/adapters/photoswipe/index.js +2 -0
- package/dist/adapters/photoswipe/index.js.map +1 -0
- package/dist/adapters/photoswipe/photoswipe.service.d.ts +99 -0
- package/dist/adapters/photoswipe/photoswipe.service.d.ts.map +1 -0
- package/dist/adapters/photoswipe/photoswipe.service.js +150 -0
- package/dist/adapters/photoswipe/photoswipe.service.js.map +1 -0
- package/dist/adapters/telegram/telegram.service.d.ts +82 -13
- package/dist/adapters/telegram/telegram.service.d.ts.map +1 -1
- package/dist/adapters/telegram/telegram.service.js +133 -55
- package/dist/adapters/telegram/telegram.service.js.map +1 -1
- package/dist/adapters/wordpress/wordpress.service.d.ts +181 -110
- package/dist/adapters/wordpress/wordpress.service.d.ts.map +1 -1
- package/dist/adapters/wordpress/wordpress.service.js +556 -465
- package/dist/adapters/wordpress/wordpress.service.js.map +1 -1
- package/dist/config/seo.service.d.ts +1 -1
- package/dist/config/seo.service.d.ts.map +1 -1
- package/dist/config/seo.service.js +1 -1
- package/dist/config/seo.service.js.map +1 -1
- package/dist/core/services/access.service.d.ts +167 -4
- package/dist/core/services/access.service.d.ts.map +1 -1
- package/dist/core/services/access.service.js +241 -31
- package/dist/core/services/access.service.js.map +1 -1
- package/dist/core/services/agent.service.d.ts +182 -27
- package/dist/core/services/agent.service.d.ts.map +1 -1
- package/dist/core/services/agent.service.js +296 -164
- package/dist/core/services/agent.service.js.map +1 -1
- package/dist/core/services/assistant.service.d.ts +96 -5
- package/dist/core/services/assistant.service.d.ts.map +1 -1
- package/dist/core/services/assistant.service.js +171 -66
- package/dist/core/services/assistant.service.js.map +1 -1
- package/dist/core/services/dates.service.d.ts +183 -11
- package/dist/core/services/dates.service.d.ts.map +1 -1
- package/dist/core/services/dates.service.js +256 -57
- package/dist/core/services/dates.service.js.map +1 -1
- package/dist/core/services/http.service.d.ts +172 -133
- package/dist/core/services/http.service.d.ts.map +1 -1
- package/dist/core/services/http.service.js +367 -310
- package/dist/core/services/http.service.js.map +1 -1
- package/dist/core/services/logger.service.d.ts +96 -34
- package/dist/core/services/logger.service.d.ts.map +1 -1
- package/dist/core/services/logger.service.js +128 -41
- package/dist/core/services/logger.service.js.map +1 -1
- package/dist/core/services/query.service.d.ts +101 -0
- package/dist/core/services/query.service.d.ts.map +1 -1
- package/dist/core/services/query.service.js +131 -14
- package/dist/core/services/query.service.js.map +1 -1
- package/dist/core/services/utils.service.d.ts +286 -131
- package/dist/core/services/utils.service.d.ts.map +1 -1
- package/dist/core/services/utils.service.js +417 -227
- package/dist/core/services/utils.service.js.map +1 -1
- package/dist/core/services/validation.service.d.ts +48 -3
- package/dist/core/services/validation.service.d.ts.map +1 -1
- package/dist/core/services/validation.service.js +75 -23
- package/dist/core/services/validation.service.js.map +1 -1
- package/dist/infrastructure/decorators/cache.decorator.d.ts +53 -0
- package/dist/infrastructure/decorators/cache.decorator.d.ts.map +1 -0
- package/dist/infrastructure/decorators/cache.decorator.js +47 -0
- package/dist/infrastructure/decorators/cache.decorator.js.map +1 -0
- package/dist/infrastructure/decorators/index.d.ts +4 -0
- package/dist/infrastructure/decorators/index.d.ts.map +1 -0
- package/dist/infrastructure/decorators/index.js +4 -0
- package/dist/infrastructure/decorators/index.js.map +1 -0
- package/dist/infrastructure/decorators/logger.decorator.d.ts +38 -0
- package/dist/infrastructure/decorators/logger.decorator.d.ts.map +1 -0
- package/dist/infrastructure/decorators/logger.decorator.js +66 -0
- package/dist/infrastructure/decorators/logger.decorator.js.map +1 -0
- package/dist/infrastructure/decorators/retry.decorator.d.ts +37 -0
- package/dist/infrastructure/decorators/retry.decorator.d.ts.map +1 -0
- package/dist/infrastructure/decorators/retry.decorator.js +54 -0
- package/dist/infrastructure/decorators/retry.decorator.js.map +1 -0
- package/dist/infrastructure/index.d.ts +1 -0
- package/dist/infrastructure/index.d.ts.map +1 -1
- package/dist/infrastructure/index.js +1 -0
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/styles.css +2 -0
- package/package.json +49 -14
- package/scss/_flags.scss +179 -0
- package/scss/_functions.scss +168 -0
- package/scss/_mixins.scss +658 -0
- package/scss/_reset.scss +275 -0
- package/scss/_utilities.scss +449 -0
- package/scss/_variables.scss +539 -0
- package/scss/components/_index.scss +50 -0
- package/scss/demo.scss +12 -0
- package/scss/main.scss +56 -0
package/scss/_reset.scss
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
// ============================================================
|
|
2
|
+
// RESET / PREFLIGHT
|
|
3
|
+
// Modern normalization in the spirit of Tailwind's preflight.
|
|
4
|
+
// Every reset rule reads its value from a custom property
|
|
5
|
+
// defined on :root, so themes can override the defaults without
|
|
6
|
+
// touching this file.
|
|
7
|
+
// ============================================================
|
|
8
|
+
|
|
9
|
+
// Defaults for every custom property consumed by the reset rules below.
|
|
10
|
+
// Override any of them from your own theme to customize the preflight.
|
|
11
|
+
:root {
|
|
12
|
+
--m-reset: 0; // default margin for all elements
|
|
13
|
+
--p-reset: 0; // default padding for all elements
|
|
14
|
+
--box-sizing: border-box; // width/height include padding + border
|
|
15
|
+
--bg-repeat: no-repeat; // default background-repeat
|
|
16
|
+
--bg-position: initial; // default background-position
|
|
17
|
+
--min-w-reset: auto; // default min-width for all elements
|
|
18
|
+
--text-size-adjust: 100%; // disables mobile font-size inflation
|
|
19
|
+
--min-h-screen: 100vh; // min-height applied to <html>
|
|
20
|
+
--border-default: 0 solid currentColor; // default border shorthand
|
|
21
|
+
--color-scheme: light dark; // tells the browser which UA styles to use
|
|
22
|
+
--placeholder-color: #9ca3af; // color of input/textarea ::placeholder
|
|
23
|
+
--root-font-size: 62.5%; // 10px on a 16px browser → 1rem = 10px
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Universal reset: every element and pseudo-element starts with zero
|
|
27
|
+
// margin/padding, border-box sizing and no border.
|
|
28
|
+
*,
|
|
29
|
+
*::before,
|
|
30
|
+
*::after {
|
|
31
|
+
margin: var(--m-reset);
|
|
32
|
+
padding: var(--p-reset);
|
|
33
|
+
box-sizing: var(--box-sizing);
|
|
34
|
+
background-repeat: var(--bg-repeat);
|
|
35
|
+
background-position: var(--bg-position);
|
|
36
|
+
min-width: var(--min-w-reset);
|
|
37
|
+
border: var(--border-default);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Root element: sets the rem baseline (10px by default), text scaling,
|
|
41
|
+
// min-height, color-scheme and misc UA normalization.
|
|
42
|
+
html {
|
|
43
|
+
font-size: var(--root-font-size);
|
|
44
|
+
-webkit-text-size-adjust: var(--text-size-adjust);
|
|
45
|
+
text-size-adjust: var(--text-size-adjust);
|
|
46
|
+
min-height: var(--min-h-screen);
|
|
47
|
+
color-scheme: var(--color-scheme);
|
|
48
|
+
tab-size: 4;
|
|
49
|
+
font-feature-settings: normal;
|
|
50
|
+
font-variation-settings: normal;
|
|
51
|
+
-webkit-tap-highlight-color: transparent;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Body: full viewport height with a dvh fallback (better on mobile),
|
|
55
|
+
// system font stack and smooth text rendering.
|
|
56
|
+
body {
|
|
57
|
+
min-height: 100vh;
|
|
58
|
+
min-height: 100dvh;
|
|
59
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
60
|
+
line-height: 1.5;
|
|
61
|
+
-webkit-font-smoothing: antialiased;
|
|
62
|
+
-moz-osx-font-smoothing: grayscale;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// === Base typography ===
|
|
66
|
+
|
|
67
|
+
// Horizontal rule rendered as a thin top border instead of the
|
|
68
|
+
// browser-default double rule; border color follows the text color.
|
|
69
|
+
hr {
|
|
70
|
+
height: 0;
|
|
71
|
+
color: inherit;
|
|
72
|
+
border-top-width: 1px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Abbreviations with a title attribute get a dotted underline.
|
|
76
|
+
abbr:where([title]) {
|
|
77
|
+
text-decoration: underline dotted;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Headings inherit font-size/weight so they read as plain text
|
|
81
|
+
// until styled explicitly.
|
|
82
|
+
h1, h2, h3, h4, h5, h6 {
|
|
83
|
+
font-size: inherit;
|
|
84
|
+
font-weight: inherit;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Bold text renders one step bolder than the inherited weight.
|
|
88
|
+
b, strong {
|
|
89
|
+
font-weight: bolder;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Code-like elements share a monospace stack and a 1em size.
|
|
93
|
+
code, kbd, samp, pre {
|
|
94
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
95
|
+
font-size: 1em;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// <small> shrinks to 80% of the surrounding text.
|
|
99
|
+
small {
|
|
100
|
+
font-size: 80%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// Sub/superscripts: smaller and shifted vertically without
|
|
104
|
+
// affecting line height.
|
|
105
|
+
sub, sup {
|
|
106
|
+
font-size: 75%;
|
|
107
|
+
line-height: 0;
|
|
108
|
+
position: relative;
|
|
109
|
+
vertical-align: baseline;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
sub { bottom: -0.25em; }
|
|
113
|
+
sup { top: -0.5em; }
|
|
114
|
+
|
|
115
|
+
// Tables: remove text indent, inherit border color, collapse cell borders.
|
|
116
|
+
table {
|
|
117
|
+
text-indent: 0;
|
|
118
|
+
border-color: inherit;
|
|
119
|
+
border-collapse: collapse;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// === Media ===
|
|
123
|
+
|
|
124
|
+
// Block-level, responsive media: never wider than its container.
|
|
125
|
+
img,
|
|
126
|
+
picture,
|
|
127
|
+
video,
|
|
128
|
+
canvas,
|
|
129
|
+
svg,
|
|
130
|
+
iframe,
|
|
131
|
+
embed,
|
|
132
|
+
object {
|
|
133
|
+
display: block;
|
|
134
|
+
max-width: 100%;
|
|
135
|
+
vertical-align: middle;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// === Forms ===
|
|
139
|
+
|
|
140
|
+
// Form controls inherit typography and drop default spacing.
|
|
141
|
+
input,
|
|
142
|
+
button,
|
|
143
|
+
textarea,
|
|
144
|
+
select,
|
|
145
|
+
optgroup {
|
|
146
|
+
font: inherit;
|
|
147
|
+
font-size: 100%;
|
|
148
|
+
font-weight: inherit;
|
|
149
|
+
line-height: inherit;
|
|
150
|
+
color: inherit;
|
|
151
|
+
margin: 0;
|
|
152
|
+
padding: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// Undo the uppercase text-transform some UAs apply to these controls.
|
|
156
|
+
button,
|
|
157
|
+
select {
|
|
158
|
+
text-transform: none;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Buttons render with the native button appearance but no default
|
|
162
|
+
// background, letting utilities control their look.
|
|
163
|
+
button,
|
|
164
|
+
[type="button"],
|
|
165
|
+
[type="reset"],
|
|
166
|
+
[type="submit"] {
|
|
167
|
+
-webkit-appearance: button;
|
|
168
|
+
appearance: button;
|
|
169
|
+
background-color: transparent;
|
|
170
|
+
background-image: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// Interactive elements show a pointer cursor.
|
|
174
|
+
button,
|
|
175
|
+
[role="button"] {
|
|
176
|
+
cursor: pointer;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// Disabled controls fall back to the default arrow cursor.
|
|
180
|
+
:disabled {
|
|
181
|
+
cursor: default;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// Remove Firefox's inner focus border on buttons.
|
|
185
|
+
::-moz-focus-inner {
|
|
186
|
+
border-style: none;
|
|
187
|
+
padding: 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Progress bars align to the text baseline.
|
|
191
|
+
progress {
|
|
192
|
+
vertical-align: baseline;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// <summary> keeps its disclosure marker and pointer cursor.
|
|
196
|
+
summary {
|
|
197
|
+
display: list-item;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Fieldsets and legends drop their default margin/padding.
|
|
202
|
+
fieldset {
|
|
203
|
+
margin: 0;
|
|
204
|
+
padding: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
legend {
|
|
208
|
+
padding: 0;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// Textareas can only be resized vertically by default.
|
|
212
|
+
textarea {
|
|
213
|
+
resize: vertical;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// Placeholders are fully opaque and use the --placeholder-color token.
|
|
217
|
+
input::placeholder,
|
|
218
|
+
textarea::placeholder {
|
|
219
|
+
opacity: 1;
|
|
220
|
+
color: var(--placeholder-color);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// WebKit search inputs lose their decoration.
|
|
224
|
+
::-webkit-search-decoration {
|
|
225
|
+
-webkit-appearance: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// File upload buttons inherit the button appearance and typography.
|
|
229
|
+
::-webkit-file-upload-button {
|
|
230
|
+
-webkit-appearance: button;
|
|
231
|
+
font: inherit;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// === Lists and links ===
|
|
235
|
+
|
|
236
|
+
// Lists are stripped of bullets, numbers and default spacing.
|
|
237
|
+
ol,
|
|
238
|
+
ul,
|
|
239
|
+
menu {
|
|
240
|
+
list-style: none;
|
|
241
|
+
margin: 0;
|
|
242
|
+
padding: 0;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Links inherit the surrounding text color instead of the UA blue.
|
|
246
|
+
a {
|
|
247
|
+
color: inherit;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
// === Preflight helpers ===
|
|
251
|
+
|
|
252
|
+
// The [hidden] attribute always wins: display none.
|
|
253
|
+
[hidden] {
|
|
254
|
+
display: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
// Block-level text containers start with zero margin.
|
|
258
|
+
blockquote,
|
|
259
|
+
dl,
|
|
260
|
+
dd,
|
|
261
|
+
figure,
|
|
262
|
+
pre {
|
|
263
|
+
margin: 0;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
// Text blocks wrap long words instead of overflowing their container.
|
|
267
|
+
p,
|
|
268
|
+
h1,
|
|
269
|
+
h2,
|
|
270
|
+
h3,
|
|
271
|
+
h4,
|
|
272
|
+
h5,
|
|
273
|
+
h6 {
|
|
274
|
+
overflow-wrap: break-word;
|
|
275
|
+
}
|