@scalio-cloud/ui 0.104.0 → 0.105.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 +10 -0
- package/nginx/geoip-module.sh +38 -2
- package/package.json +27 -8
- package/react/access_limit.d.ts +6 -0
- package/react/actions.d.ts +16 -0
- package/react/agent_scripts.d.ts +8 -0
- package/react/agents.d.ts +9 -0
- package/react/ai.d.ts +17 -0
- package/react/audit.d.ts +11 -0
- package/react/auth.d.ts +15 -0
- package/react/backup.d.ts +13 -0
- package/react/beacon.d.ts +6 -0
- package/react/blocks.d.ts +21 -0
- package/react/clientErrors.d.ts +6 -0
- package/react/customers.d.ts +8 -0
- package/react/dialog.d.ts +9 -0
- package/react/fields.d.ts +23 -0
- package/react/icons.d.ts +46 -0
- package/react/index.d.ts +77 -0
- package/react/keyboard.d.ts +5 -0
- package/react/labels.d.ts +6 -0
- package/react/legal.d.ts +6 -0
- package/react/license.d.ts +7 -0
- package/react/limited_mode.d.ts +6 -0
- package/react/login.d.ts +30 -0
- package/react/mail.d.ts +10 -0
- package/react/maintenance.d.ts +6 -0
- package/react/markdown.d.ts +14 -0
- package/react/nav.d.ts +31 -0
- package/react/pages.d.ts +10 -0
- package/react/palette.d.ts +12 -0
- package/react/profile.d.ts +20 -0
- package/react/roles.d.ts +8 -0
- package/react/saas_updates.d.ts +10 -0
- package/react/security.d.ts +7 -0
- package/react/selftest.d.ts +9 -0
- package/react/session.d.ts +34 -0
- package/react/settings.d.ts +12 -0
- package/react/setup.d.ts +5 -0
- package/react/suite_context.d.ts +15 -0
- package/react/support.d.ts +9 -0
- package/react/tenancy.d.ts +28 -0
- package/react/tenant.d.ts +9 -0
- package/react/theme.d.ts +6 -0
- package/react/types.d.ts +51 -0
- package/react/unify.d.ts +15 -0
- package/react/users.d.ts +8 -0
- package/react/wizard.d.ts +13 -0
- package/shadcn/alert-dialog.d.mts +17 -0
- package/shadcn/badge.d.mts +6 -0
- package/shadcn/button.d.mts +10 -0
- package/shadcn/checkbox.d.mts +7 -0
- package/shadcn/command.d.mts +15 -0
- package/shadcn/confirm.d.mts +6 -0
- package/shadcn/dialog.d.mts +16 -0
- package/shadcn/dropdown-menu.d.mts +21 -0
- package/shadcn/input.d.mts +7 -0
- package/shadcn/label.d.mts +7 -0
- package/shadcn/popover.d.mts +10 -0
- package/shadcn/progress.d.mts +7 -0
- package/shadcn/select.d.mts +16 -0
- package/shadcn/sonner.d.mts +5 -0
- package/shadcn/switch.d.mts +7 -0
- package/shadcn/table.d.mts +14 -0
- package/shadcn/tabs.d.mts +10 -0
- package/shadcn/textarea.d.mts +7 -0
- package/shadcn/utils.d.mts +3 -0
- package/tailwind-preset.d.ts +9 -0
- package/tokens.d.ts +21 -0
package/README.md
CHANGED
|
@@ -39,6 +39,16 @@ module.exports = {
|
|
|
39
39
|
Then remove the app's own `:root { --... }` / `.dark { --... }` blocks and the Google Fonts `@import` / `<link>`.
|
|
40
40
|
Classes like `bg-primary`, `rounded-sm`, `font-display` keep working unchanged.
|
|
41
41
|
|
|
42
|
+
### Package layout and TypeScript types (from 0.105.0)
|
|
43
|
+
|
|
44
|
+
The package is CommonJS (`"type": "commonjs"`): `tokens.js`, `tailwind-preset.js` and `react/` work with `require`
|
|
45
|
+
and `import` (Vite, Node). `shadcn/*.mjs` is ESM only. Every JavaScript entry in `exports` has a `types` condition
|
|
46
|
+
with a hand-written declaration file next to it (`tokens.d.ts`, `tailwind-preset.d.ts`, `react/<module>.d.ts`,
|
|
47
|
+
`shadcn/<name>.d.mts`); there is no build step. Props of the React blocks are listed by name but stay `any`, and
|
|
48
|
+
shadcn components keep the Radix props open. A new export needs its type in the same PR: `test/types.test.js`
|
|
49
|
+
fails on an export without a type, a type without an export, and an `exports` path that is missing or not in
|
|
50
|
+
`files`.
|
|
51
|
+
|
|
42
52
|
## Security headers for nginx (from 0.36.0)
|
|
43
53
|
|
|
44
54
|
`nginx/security-headers.conf` holds the security headers of every Scalio app (security review M6): `nosniff`,
|
package/nginx/geoip-module.sh
CHANGED
|
@@ -9,6 +9,9 @@
|
|
|
9
9
|
# in nginx.conf, DIR/dbip-country.mmdb (from geoip-db.sh) to /etc/nginx/geoip/
|
|
10
10
|
#
|
|
11
11
|
# SCALIO_GEOIP2_VERSION version of leev/ngx_http_geoip2_module, default below
|
|
12
|
+
# SCALIO_GEOIP2_SHA256 SHA-256 of that version's tarball, needed for a version not pinned below
|
|
13
|
+
#
|
|
14
|
+
# Every download is checked against a pinned SHA-256 before it is unpacked (BL-1081); a mismatch aborts the build.
|
|
12
15
|
# SCALIO_NGINX_DIR, SCALIO_MODULES_DIR, SCALIO_SKIP_PACKAGES for tests (other paths, no apk/apt)
|
|
13
16
|
set -eu
|
|
14
17
|
|
|
@@ -21,6 +24,34 @@ SO=ngx_http_geoip2_module.so
|
|
|
21
24
|
|
|
22
25
|
log() { echo "scalio-geoip: $*" >&2; }
|
|
23
26
|
|
|
27
|
+
# Pinned SHA-256 of the downloaded tarballs. Source: values computed from the tarballs downloaded on 2026-12-03,
|
|
28
|
+
# module: https://github.com/leev/ngx_http_geoip2_module/archive/refs/tags/<version>.tar.gz,
|
|
29
|
+
# nginx: https://nginx.org/download/nginx-<version>.tar.gz (the installed nginx of nginx:1.27-alpine/-debian).
|
|
30
|
+
# A new version needs its hash added here (download it, `sha256sum` it, check it against the upstream release).
|
|
31
|
+
module_sha256() {
|
|
32
|
+
case "$1" in
|
|
33
|
+
3.4) echo ad72fc23348d715a330994984531fab9b3606e160483236737f9a4a6957d9452 ;;
|
|
34
|
+
*) echo "${SCALIO_GEOIP2_SHA256:-}" ;;
|
|
35
|
+
esac
|
|
36
|
+
}
|
|
37
|
+
nginx_sha256() {
|
|
38
|
+
case "$1" in
|
|
39
|
+
1.27.0) echo b7230e3cf87eaa2d4b0bc56aadc920a960c7873b9991a1b66ffcc08fc650129c ;;
|
|
40
|
+
1.27.1) echo bd7ba68a6ce1ea3768b771c7e2ab4955a59fb1b1ae8d554fedb6c2304104bdfc ;;
|
|
41
|
+
1.27.2) echo a91ecfc3a0b3a2c1413afca627bd886d76e0414b81cad0fb7872a9655a1b25fa ;;
|
|
42
|
+
1.27.3) echo ba23a9568f442036b61cd0e29bd66a47b90634efa91e0b2cf2d719057a9b7903 ;;
|
|
43
|
+
1.27.4) echo 294816f879b300e621fa4edd5353dd1ec00badb056399eceb30de7db64b753b2 ;;
|
|
44
|
+
1.27.5) echo e96acebb9c2a6db8a000c3dd1b32ecba1b810f0cd586232d4d921e376674dd0e ;;
|
|
45
|
+
esac
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
# fetch URL SHA256 FILE: download, verify with sha256sum -c, only then is the file used (abort on mismatch)
|
|
49
|
+
fetch() {
|
|
50
|
+
[ -n "$2" ] || { log "no pinned SHA-256 for $1: add it to geoip-module.sh (or SCALIO_GEOIP2_SHA256)"; exit 1; }
|
|
51
|
+
curl -fsSL -o "$3" "$1"
|
|
52
|
+
echo "$2 $3" | sha256sum -c - >/dev/null 2>&1 || { log "SHA-256 mismatch for $1 (expected $2), aborting"; exit 1; }
|
|
53
|
+
}
|
|
54
|
+
|
|
24
55
|
pkg_install() {
|
|
25
56
|
[ -z "${SCALIO_SKIP_PACKAGES:-}" ] || return 0
|
|
26
57
|
if command -v apk >/dev/null 2>&1; then apk add --no-cache "$@"
|
|
@@ -30,6 +61,8 @@ pkg_install() {
|
|
|
30
61
|
|
|
31
62
|
case "$CMD" in
|
|
32
63
|
build)
|
|
64
|
+
MODSHA=$(module_sha256 "$MODVER")
|
|
65
|
+
[ -n "$MODSHA" ] || { log "no pinned SHA-256 for ngx_http_geoip2_module $MODVER: add it to geoip-module.sh (or set SCALIO_GEOIP2_SHA256)"; exit 1; }
|
|
33
66
|
if command -v apk >/dev/null 2>&1; then
|
|
34
67
|
pkg_install build-base linux-headers pcre2-dev zlib-dev openssl-dev libmaxminddb-dev curl
|
|
35
68
|
else
|
|
@@ -37,10 +70,13 @@ case "$CMD" in
|
|
|
37
70
|
fi
|
|
38
71
|
NGXVER=$(nginx -v 2>&1 | sed 's|.*nginx/||; s| .*||')
|
|
39
72
|
[ -n "$NGXVER" ] || { log "cannot read the nginx version (nginx -v)"; exit 1; }
|
|
73
|
+
NGXSHA=$(nginx_sha256 "$NGXVER")
|
|
40
74
|
log "building ngx_http_geoip2_module $MODVER for nginx $NGXVER"
|
|
41
75
|
W=$(mktemp -d); trap 'rm -rf "$W"' EXIT
|
|
42
|
-
|
|
43
|
-
|
|
76
|
+
fetch "https://nginx.org/download/nginx-$NGXVER.tar.gz" "$NGXSHA" "$W/nginx.tar.gz"
|
|
77
|
+
fetch "https://github.com/leev/ngx_http_geoip2_module/archive/refs/tags/$MODVER.tar.gz" "$MODSHA" "$W/module.tar.gz"
|
|
78
|
+
tar xzf "$W/nginx.tar.gz" -C "$W"
|
|
79
|
+
tar xzf "$W/module.tar.gz" -C "$W"
|
|
44
80
|
# The module must be compiled with the flags of the installed nginx, --with-compat keeps the binary interface.
|
|
45
81
|
( cd "$W/nginx-$NGXVER" && ./configure --with-compat --add-dynamic-module="$W/ngx_http_geoip2_module-$MODVER" >/dev/null && make modules >/dev/null )
|
|
46
82
|
mkdir -p "$DIR"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalio-cloud/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.105.1",
|
|
4
4
|
"description": "Scalio Control Room design tokens, Tailwind preset, self-hosted fonts, the shared app header, sign-in layout, sidebar and page blocks",
|
|
5
5
|
"license": "SEE LICENSE IN README.md",
|
|
6
6
|
"private": false,
|
|
@@ -8,27 +8,47 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/Scalio-Cloud/scalio-ui.git"
|
|
10
10
|
},
|
|
11
|
+
"type": "commonjs",
|
|
11
12
|
"main": "tokens.js",
|
|
13
|
+
"types": "tokens.d.ts",
|
|
12
14
|
"exports": {
|
|
13
|
-
".":
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./tokens.d.ts",
|
|
17
|
+
"default": "./tokens.js"
|
|
18
|
+
},
|
|
19
|
+
"./tokens": {
|
|
20
|
+
"types": "./tokens.d.ts",
|
|
21
|
+
"default": "./tokens.js"
|
|
22
|
+
},
|
|
23
|
+
"./tailwind-preset": {
|
|
24
|
+
"types": "./tailwind-preset.d.ts",
|
|
25
|
+
"default": "./tailwind-preset.js"
|
|
26
|
+
},
|
|
16
27
|
"./index.css": "./index.css",
|
|
17
28
|
"./tokens.css": "./tokens.css",
|
|
18
29
|
"./fonts.css": "./fonts.css",
|
|
19
30
|
"./base.css": "./base.css",
|
|
20
31
|
"./fonts/*": "./fonts/*",
|
|
21
32
|
"./package.json": "./package.json",
|
|
22
|
-
"./react":
|
|
33
|
+
"./react": {
|
|
34
|
+
"types": "./react/index.d.ts",
|
|
35
|
+
"default": "./react/index.js"
|
|
36
|
+
},
|
|
23
37
|
"./shell.css": "./shell.css",
|
|
24
38
|
"./auth.css": "./auth.css",
|
|
25
39
|
"./nav.css": "./nav.css",
|
|
26
40
|
"./nginx/*": "./nginx/*",
|
|
27
|
-
"./shadcn/*":
|
|
41
|
+
"./shadcn/*": {
|
|
42
|
+
"types": "./shadcn/*.d.mts",
|
|
43
|
+
"import": "./shadcn/*.mjs",
|
|
44
|
+
"default": "./shadcn/*.mjs"
|
|
45
|
+
}
|
|
28
46
|
},
|
|
29
47
|
"files": [
|
|
30
48
|
"tokens.js",
|
|
49
|
+
"tokens.d.ts",
|
|
31
50
|
"tailwind-preset.js",
|
|
51
|
+
"tailwind-preset.d.ts",
|
|
32
52
|
"index.css",
|
|
33
53
|
"tokens.css",
|
|
34
54
|
"fonts.css",
|
|
@@ -41,8 +61,7 @@
|
|
|
41
61
|
"nginx/",
|
|
42
62
|
"licenses/",
|
|
43
63
|
"fonts/",
|
|
44
|
-
"README.md"
|
|
45
|
-
"CHANGELOG.md"
|
|
64
|
+
"README.md"
|
|
46
65
|
],
|
|
47
66
|
"publishConfig": {
|
|
48
67
|
"registry": "https://registry.npmjs.org",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/access_limit.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AccessLimitStatus: ScalioComponent<{ lang?: any; labels?: any; status?: any; fetcher?: any; url?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const accessLimitState: (data?: any) => any;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Types for react/actions.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const PageActions: ScalioComponent<{ children?: React.ReactNode; }>;
|
|
6
|
+
export declare const ActionSlot: ScalioComponent<{}>;
|
|
7
|
+
export declare const useActionSlot: () => any;
|
|
8
|
+
export declare const useDesktop: () => any;
|
|
9
|
+
export declare const setActionSlot: (el?: any) => any;
|
|
10
|
+
export declare const MainAction: ScalioComponent<Props>;
|
|
11
|
+
export declare const useMainAction: () => any;
|
|
12
|
+
export declare const useSidebarHost: (on?: any) => any;
|
|
13
|
+
export declare const useNavCollapsed: () => any;
|
|
14
|
+
export declare const setNavCollapsed: (on?: any) => any;
|
|
15
|
+
export declare const toggleNavCollapsed: () => any;
|
|
16
|
+
export declare const useNavShortcut: (on?: any) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Types for react/agent_scripts.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AgentScriptsPanel: ScalioComponent<{ lang?: any; labels?: any; formatError?: any; canEdit?: any; client?: any; notify?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const agentScriptsApi: (api?: any, base?: any) => any;
|
|
7
|
+
export declare const agentScriptLineDiff: (a?: any, b?: any) => any;
|
|
8
|
+
export declare const AGENT_SCRIPTS_LABELS: { readonly de: { readonly title: string; readonly hint: string; readonly script: string; readonly actions: string; readonly state: string; readonly version: string; readonly edit: string; readonly close: string; readonly none: string; readonly states: Readonly<Record<string, string>>; readonly fourEyes: string; readonly kindHook: string; readonly kindFull: string; readonly content: string; readonly reason: string; readonly save: string; readonly saved: string; readonly savedPending: string; readonly standardText: string; readonly pendingBy: string; readonly approve: string; readonly approved: string; readonly outdatedTitle: string; readonly outdatedText: string; readonly scalioChanged: string; readonly yourVersion: string; readonly keep: string; readonly keepConfirm: string; readonly reset: string; readonly resetConfirm: string; readonly history: string; readonly noHistory: string; readonly by: string; readonly hookTemplate: string; }; readonly en: { readonly title: string; readonly hint: string; readonly script: string; readonly actions: string; readonly state: string; readonly version: string; readonly edit: string; readonly close: string; readonly none: string; readonly states: Readonly<Record<string, string>>; readonly fourEyes: string; readonly kindHook: string; readonly kindFull: string; readonly content: string; readonly reason: string; readonly save: string; readonly saved: string; readonly savedPending: string; readonly standardText: string; readonly pendingBy: string; readonly approve: string; readonly approved: string; readonly outdatedTitle: string; readonly outdatedText: string; readonly scalioChanged: string; readonly yourVersion: string; readonly keep: string; readonly keepConfirm: string; readonly reset: string; readonly resetConfirm: string; readonly history: string; readonly noHistory: string; readonly by: string; readonly hookTemplate: string; }; };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for react/agents.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AgentsPanel: ScalioComponent<{ lang?: any; labels?: any; formatError?: any; client?: any; refreshMs?: any; notify?: any; copy?: any; appUrl?: any; downloadUrl?: any; dataFolderHelpUrl?: any; suggest?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const PanelDialog: ScalioComponent<{ maxWidth?: any; testId?: any; closeTestId?: any; children?: React.ReactNode; [key: string]: any; }>;
|
|
7
|
+
export declare const agentsApi: (api?: any, base?: any) => any;
|
|
8
|
+
export declare const agentInstallCommand: (url?: any, code?: any) => any;
|
|
9
|
+
export declare const AGENT_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
package/react/ai.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Types for react/ai.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AiSettingsPanel: ScalioComponent<{ lang?: any; labels?: any; formatError?: any; status?: any; value?: any; client?: any; demo?: any; notify?: any; onSave?: any; features?: any; canReset?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const AiHelp: ScalioComponent<{ lang?: any; labels?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const AiCredits: ScalioComponent<{ credits?: any; L?: any; }>;
|
|
8
|
+
export declare const AiButton: ScalioComponent<{ available?: any; lang?: any; labels?: any; busy?: any; label?: any; kind?: any; disabled?: any; testId?: any; onClick?: any; [key: string]: any; }>;
|
|
9
|
+
export declare const AiBadge: ScalioComponent<{ lang?: any; labels?: any; testId?: any; [key: string]: any; }>;
|
|
10
|
+
export declare const AiSuggestion: ScalioComponent<{ lang?: any; labels?: any; suggestion?: any; testId?: any; busy?: any; format?: any; onAccept?: any; onEdit?: any; onReject?: any; [key: string]: any; }>;
|
|
11
|
+
export declare const AiPanel: ScalioComponent<{ lang?: any; labels?: any; open?: any; testId?: any; onAsk?: any; title?: any; onClose?: any; context?: any; format?: any; emptyText?: any; [key: string]: any; }>;
|
|
12
|
+
export declare const AiText: ScalioComponent<{ className?: any; format?: any; testId?: any; text?: any; lang?: any; [key: string]: any; }>;
|
|
13
|
+
export declare const aiApi: (api?: any, paths?: any) => any;
|
|
14
|
+
export declare const aiForm: (ai?: any) => any;
|
|
15
|
+
export declare const aiPatch: (form?: any) => any;
|
|
16
|
+
export declare const AI_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
|
17
|
+
export declare const AI_LEVELS: readonly (number)[];
|
package/react/audit.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Types for react/audit.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AuditLog: ScalioComponent<{ lang?: any; labels?: any; actionLabel?: any; initialCategory?: any; storageKey?: any; pageSize?: any; showTenant?: any; categoryLabel?: any; testId?: any; tenantLabel?: any; allTenantsLabel?: any; toolbar?: any; rowActions?: any; renderDetail?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const JobsPanel: ScalioComponent<{ lang?: any; labels?: any; pollMs?: any; initialTab?: any; confirm?: any; link?: any; testId?: any; canRun?: any; queueActions?: any; renderQueueDetail?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const AuditNav: ScalioComponent<{ lang?: any; labels?: any; base?: any; link?: any; activePath?: any; testId?: any; jobs?: any; [key: string]: any; }>;
|
|
8
|
+
export declare const auditApi: (api?: any, base?: any) => any;
|
|
9
|
+
export declare const jobsApi: (api?: any, base?: any) => any;
|
|
10
|
+
export declare const auditLabels: (lang?: any, overrides?: any) => any;
|
|
11
|
+
export declare const AUDIT_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
package/react/auth.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Types for react/auth.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const AuthLayout: ScalioComponent<{ brand?: any; lang?: any; labels?: any; className?: any; testId?: any; theme?: any; onThemeChange?: any; themeModes?: any; onLangChange?: any; testIds?: any; children?: React.ReactNode; footer?: any; legalUrl?: any; version?: any; versionUrl?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const AppVersion: ScalioComponent<{ version?: any; url?: any; lang?: any; labels?: any; className?: any; testId?: any; }>;
|
|
7
|
+
export declare const DemoAccounts: ScalioComponent<{ accounts?: any; onPick?: any; lang?: any; labels?: any; className?: any; testId?: any; }>;
|
|
8
|
+
export declare const formatVersion: (v?: any) => any;
|
|
9
|
+
export declare const AuthHeader: ScalioComponent<{ eyebrow?: any; title?: any; subtitle?: any; testId?: any; }>;
|
|
10
|
+
export declare const AuthDivider: ScalioComponent<{ label?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
11
|
+
export declare const AuthMessage: ScalioComponent<{ kind?: any; children?: React.ReactNode; testId?: any; }>;
|
|
12
|
+
export declare const MicrosoftButton: ScalioComponent<{ href?: any; onClick?: any; disabled?: any; busy?: any; label?: any; hint?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
13
|
+
export declare const MicrosoftLogo: ScalioComponent<{}>;
|
|
14
|
+
export declare const ProfileSection: ScalioComponent<{ id?: any; title?: any; description?: any; lang?: any; labels?: any; children?: React.ReactNode; testId?: any; }>;
|
|
15
|
+
export declare const PROFILE_SECTIONS: readonly (string)[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Types for react/backup.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const BackupPanel: ScalioComponent<Props>;
|
|
6
|
+
export declare const BackupExport: ScalioComponent<{ labels?: any; notify?: any; pollMs?: any; onStatus?: any; accountTo?: any; link?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const BackupImport: ScalioComponent<{ labels?: any; notify?: any; status?: any; pollMs?: any; lang?: any; accountTo?: any; link?: any; onSignIn?: any; [key: string]: any; }>;
|
|
8
|
+
export declare const MaintenanceNotice: ScalioComponent<{ labels?: any; progress?: any; onDone?: any; pollMs?: any; [key: string]: any; }>;
|
|
9
|
+
export declare const backupApi: (api?: any) => any;
|
|
10
|
+
export declare const isMaintenance: (err?: any) => any;
|
|
11
|
+
export declare const appOptionDefaults: (options?: any) => any;
|
|
12
|
+
export declare const appOptionValues: (options?: any, chosen?: any, withData?: any) => any;
|
|
13
|
+
export declare const optionText: (text?: any, lang?: any) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/beacon.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const peersApi: (api?: any) => any;
|
|
6
|
+
export declare const BeaconConnection: ScalioComponent<{ client?: any; lang?: any; labels?: any; onChange?: any; }>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Types for react/blocks.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent, Lang, LabelOverrides, IconComponent, Tone, NoticeKindName } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const KpiTile: ScalioComponent<{ label: React.ReactNode; value: React.ReactNode; hint?: React.ReactNode; tone?: Tone; onClick?: () => void; testId?: string; }>;
|
|
6
|
+
export declare const EmptyState: ScalioComponent<{ text?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
7
|
+
export declare const Loading: ScalioComponent<{ label?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
8
|
+
export declare const Notice: ScalioComponent<{
|
|
9
|
+
kind?: NoticeKindName; title?: React.ReactNode; children?: React.ReactNode;
|
|
10
|
+
/** A link (href) or a button (onClick). */
|
|
11
|
+
action?: { label: React.ReactNode; href?: string; onClick?: () => void; testId?: string };
|
|
12
|
+
/** Shows the dismiss button when set. */
|
|
13
|
+
onDismiss?: () => void; dismissLabel?: React.ReactNode;
|
|
14
|
+
banner?: boolean;
|
|
15
|
+
/** An icon component, or false for none. */
|
|
16
|
+
icon?: IconComponent | false;
|
|
17
|
+
lang?: Lang; labels?: LabelOverrides; testId?: string;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const noticeKind: (kind?: any) => any;
|
|
20
|
+
export declare const StatusBadge: ScalioComponent<{ tone?: any; children?: React.ReactNode; testId?: any; }>;
|
|
21
|
+
export declare const TONES: readonly (string)[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/clientErrors.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const reportClientErrors: (opts?: any) => any;
|
|
6
|
+
export declare const clientErrorBody: (reason?: any, win?: any) => any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Types for react/customers.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const CustomerAccessEditor: ScalioComponent<{ lang?: any; labels?: any; value?: any; customers?: any; testId?: any; disabled?: any; emptyHint?: any; onChange?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const customerAccessLabel: (access?: any, customers?: any, L?: any) => any;
|
|
7
|
+
export declare const customerAccessProps: (opts?: any) => any;
|
|
8
|
+
export declare const normalizeAccess: (a?: any) => any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Types for react/dialog.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const askConfirm: (opts?: any) => any;
|
|
6
|
+
export declare const askText: (opts?: any) => any;
|
|
7
|
+
export declare const showMessage: (opts?: any) => any;
|
|
8
|
+
export declare const ConfirmDialog: ScalioComponent<{ lang?: any; value?: any; check?: any; checked?: any; cancelLabel?: any; confirmLabel?: any; [key: string]: any; }>;
|
|
9
|
+
export declare const DialogHost: ScalioComponent<{}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Types for react/fields.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const Input: ScalioComponent<Props>;
|
|
6
|
+
export declare const FIELD_CHECKS: readonly (string)[];
|
|
7
|
+
export declare const FIELD_TEXTS: { readonly de: { readonly fixFields: string; readonly required: string; readonly tooLong: string; readonly tooShort: string; readonly number: string; readonly amount: string; readonly negative: string; readonly positive: string; readonly decimals: string; readonly tooBig: string; readonly integer: string; readonly min: string; readonly max: string; readonly percent: string; readonly date: string; readonly dateMin: string; readonly dateMax: string; readonly email: string; readonly emails: string; readonly phone: string; readonly url: string; readonly iban: string; readonly qrIban: string; readonly zipCH: string; readonly zip4: string; readonly zip5: string; readonly zip: string; readonly uid: string; readonly vat: string; readonly vatForeign: string; readonly country: string; readonly account: string; readonly reference: string; readonly bic: string; readonly pattern: string; }; readonly en: { readonly fixFields: string; readonly required: string; readonly tooLong: string; readonly tooShort: string; readonly number: string; readonly amount: string; readonly negative: string; readonly positive: string; readonly decimals: string; readonly tooBig: string; readonly integer: string; readonly min: string; readonly max: string; readonly percent: string; readonly date: string; readonly dateMin: string; readonly dateMax: string; readonly email: string; readonly emails: string; readonly phone: string; readonly url: string; readonly iban: string; readonly qrIban: string; readonly zipCH: string; readonly zip4: string; readonly zip5: string; readonly zip: string; readonly uid: string; readonly vat: string; readonly vatForeign: string; readonly country: string; readonly account: string; readonly reference: string; readonly bic: string; readonly pattern: string; }; };
|
|
8
|
+
export declare const fieldAllowed: (check?: any, value?: any) => any;
|
|
9
|
+
export declare const fieldUpper: (check?: any) => any;
|
|
10
|
+
export declare const normalizeNumber: (value?: any) => any;
|
|
11
|
+
export declare const normalizeField: (check?: any, value?: any) => any;
|
|
12
|
+
export declare const fieldProblem: (check?: any, value?: any, opts?: any) => any;
|
|
13
|
+
export declare const fieldProblemText: (p?: any, lang?: any) => any;
|
|
14
|
+
export declare const fieldMessageFor: (el?: any, check?: any, lang?: any, country?: any) => any;
|
|
15
|
+
export declare const inputDefaults: (check?: any) => any;
|
|
16
|
+
export declare const fillText: (text?: any, values?: any) => any;
|
|
17
|
+
export declare const validIban: (value?: any) => any;
|
|
18
|
+
export declare const validQrIban: (value?: any) => any;
|
|
19
|
+
export declare const formatUid: (value?: any) => any;
|
|
20
|
+
export declare const validQrReference: (ref?: any) => any;
|
|
21
|
+
export declare const validScor: (ref?: any) => any;
|
|
22
|
+
export declare const fieldsValid: (root?: any) => any;
|
|
23
|
+
export declare const validNear: (el?: any) => any;
|
package/react/icons.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Types for react/icons.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const Sun: ScalioComponent<Props>;
|
|
6
|
+
export declare const Moon: ScalioComponent<Props>;
|
|
7
|
+
export declare const Monitor: ScalioComponent<Props>;
|
|
8
|
+
export declare const LifeBuoy: ScalioComponent<Props>;
|
|
9
|
+
export declare const BookOpen: ScalioComponent<Props>;
|
|
10
|
+
export declare const Library: ScalioComponent<Props>;
|
|
11
|
+
export declare const LogOut: ScalioComponent<Props>;
|
|
12
|
+
export declare const Menu: ScalioComponent<Props>;
|
|
13
|
+
export declare const Check: ScalioComponent<Props>;
|
|
14
|
+
export declare const X: ScalioComponent<Props>;
|
|
15
|
+
export declare const Search: ScalioComponent<Props>;
|
|
16
|
+
export declare const ChevronDown: ScalioComponent<Props>;
|
|
17
|
+
export declare const Fingerprint: ScalioComponent<Props>;
|
|
18
|
+
export declare const FileStack: ScalioComponent<Props>;
|
|
19
|
+
export declare const ShieldCheck: ScalioComponent<Props>;
|
|
20
|
+
export declare const Hammer: ScalioComponent<Props>;
|
|
21
|
+
export declare const Activity: ScalioComponent<Props>;
|
|
22
|
+
export declare const Smartphone: ScalioComponent<Props>;
|
|
23
|
+
export declare const KeyRound: ScalioComponent<Props>;
|
|
24
|
+
export declare const Trash: ScalioComponent<Props>;
|
|
25
|
+
export declare const Copy: ScalioComponent<Props>;
|
|
26
|
+
export declare const Puzzle: ScalioComponent<Props>;
|
|
27
|
+
export declare const Plus: ScalioComponent<Props>;
|
|
28
|
+
export declare const Pencil: ScalioComponent<Props>;
|
|
29
|
+
export declare const Link2: ScalioComponent<Props>;
|
|
30
|
+
export declare const Alert: ScalioComponent<Props>;
|
|
31
|
+
export declare const History: ScalioComponent<Props>;
|
|
32
|
+
export declare const CornerDownLeft: ScalioComponent<Props>;
|
|
33
|
+
export declare const Users: ScalioComponent<Props>;
|
|
34
|
+
export declare const Settings: ScalioComponent<Props>;
|
|
35
|
+
export declare const ScrollText: ScalioComponent<Props>;
|
|
36
|
+
export declare const Info: ScalioComponent<Props>;
|
|
37
|
+
export declare const RadioTower: ScalioComponent<Props>;
|
|
38
|
+
export declare const Globe: ScalioComponent<Props>;
|
|
39
|
+
export declare const Clock: ScalioComponent<Props>;
|
|
40
|
+
export declare const Download: ScalioComponent<Props>;
|
|
41
|
+
export declare const Upload: ScalioComponent<Props>;
|
|
42
|
+
export declare const RotateCcw: ScalioComponent<Props>;
|
|
43
|
+
export declare const Sparkles: ScalioComponent<Props>;
|
|
44
|
+
export declare const Play: ScalioComponent<Props>;
|
|
45
|
+
export declare const Square: ScalioComponent<Props>;
|
|
46
|
+
export declare const Ban: ScalioComponent<Props>;
|
package/react/index.d.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// Types for react/index.js (the shared app shell; written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent, Lang, LabelOverrides, ThemeMode, HeaderBrand, HeaderTestIds, MenuEntry, ShellUser } from "./types";
|
|
4
|
+
|
|
5
|
+
import type * as IconSet from "./icons";
|
|
6
|
+
|
|
7
|
+
export declare const AppHeader: ScalioComponent<{
|
|
8
|
+
lang?: Lang; labels?: LabelOverrides; testIds?: HeaderTestIds; className?: string; testId?: string;
|
|
9
|
+
/** Shows the menu button on small screens. */
|
|
10
|
+
onMenu?: () => void;
|
|
11
|
+
brand?: HeaderBrand; left?: React.ReactNode; actions?: React.ReactNode; status?: React.ReactNode;
|
|
12
|
+
/** Shows the language toggle when set. */
|
|
13
|
+
onLangChange?: (lang: "de" | "en") => void;
|
|
14
|
+
theme?: ThemeMode;
|
|
15
|
+
/** Shows the theme toggle when set. */
|
|
16
|
+
onThemeChange?: (theme: ThemeMode) => void;
|
|
17
|
+
/** Default ["light", "dark"]; with "system" the toggle becomes a menu. */
|
|
18
|
+
themeModes?: readonly ThemeMode[];
|
|
19
|
+
docsUrl?: string; onSupport?: () => void;
|
|
20
|
+
/** No user: no user menu. */
|
|
21
|
+
user?: ShellUser | null | false; menuItems?: readonly MenuEntry[]; onLogout?: () => void;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const BetaBadge: ScalioComponent<{ lang?: any; labels?: any; testId?: any; className?: any; }>;
|
|
24
|
+
export declare const UserMenu: ScalioComponent<{ user?: any; items?: any; onLogout?: any; lang?: any; labels?: any; testIds?: any; defaultOpen?: any; }>;
|
|
25
|
+
export declare const LanguageToggle: ScalioComponent<{ lang?: any; onChange?: any; labels?: any; testId?: any; }>;
|
|
26
|
+
export declare const ThemeToggle: ScalioComponent<{ theme?: any; onChange?: any; modes?: any; lang?: any; labels?: any; testId?: any; defaultOpen?: any; }>;
|
|
27
|
+
export declare const SupportButton: ScalioComponent<{ onClick?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
28
|
+
export declare const DocsButton: ScalioComponent<{ href?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
29
|
+
export declare const manualUrl: (product?: any, opts?: any) => any;
|
|
30
|
+
export declare const DOCS_DOMAINS: { readonly nexus: string; readonly citadel: string; readonly foundry: string; readonly rosetta: string; readonly beacon: string; readonly pulse: string; readonly folio: string; };
|
|
31
|
+
export declare const PageHeader: ScalioComponent<{ eyebrow?: React.ReactNode; title: React.ReactNode; subtitle?: React.ReactNode; actions?: React.ReactNode; children?: React.ReactNode; back?: React.ReactNode; testId?: string; }>;
|
|
32
|
+
export declare const TEST_IDS: { readonly menu: string; readonly language: string; readonly theme: string; readonly docs: string; readonly support: string; readonly avatar: string; readonly userName: string; readonly userEmail: string; readonly userRole: string; readonly logout: string; };
|
|
33
|
+
export declare const initials: (user?: any) => any;
|
|
34
|
+
export declare const Icons: typeof IconSet;
|
|
35
|
+
export { LABELS, labelsFor } from "./labels";
|
|
36
|
+
|
|
37
|
+
export * from "./actions";
|
|
38
|
+
export * from "./nav";
|
|
39
|
+
export * from "./blocks";
|
|
40
|
+
export * from "./settings";
|
|
41
|
+
export * from "./support";
|
|
42
|
+
export * from "./beacon";
|
|
43
|
+
export * from "./security";
|
|
44
|
+
export * from "./license";
|
|
45
|
+
export * from "./limited_mode";
|
|
46
|
+
export * from "./access_limit";
|
|
47
|
+
export * from "./palette";
|
|
48
|
+
export * from "./unify";
|
|
49
|
+
export * from "./profile";
|
|
50
|
+
export * from "./selftest";
|
|
51
|
+
export * from "./users";
|
|
52
|
+
export * from "./customers";
|
|
53
|
+
export * from "./roles";
|
|
54
|
+
export * from "./wizard";
|
|
55
|
+
export * from "./maintenance";
|
|
56
|
+
export * from "./backup";
|
|
57
|
+
export * from "./audit";
|
|
58
|
+
export * from "./mail";
|
|
59
|
+
export * from "./saas_updates";
|
|
60
|
+
export * from "./pages";
|
|
61
|
+
export * from "./tenant";
|
|
62
|
+
export * from "./fields";
|
|
63
|
+
export * from "./dialog";
|
|
64
|
+
export * from "./keyboard";
|
|
65
|
+
export * from "./agents";
|
|
66
|
+
export * from "./agent_scripts";
|
|
67
|
+
export * from "./ai";
|
|
68
|
+
export * from "./markdown";
|
|
69
|
+
export * from "./tenancy";
|
|
70
|
+
export * from "./legal";
|
|
71
|
+
export * from "./suite_context";
|
|
72
|
+
export * from "./auth";
|
|
73
|
+
export * from "./session";
|
|
74
|
+
export * from "./setup";
|
|
75
|
+
export * from "./login";
|
|
76
|
+
export * from "./theme";
|
|
77
|
+
export * from "./clientErrors";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/labels.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
|
6
|
+
export declare const labelsFor: (lang?: any, overrides?: any) => any;
|
package/react/legal.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/legal.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const LegalLink: ScalioComponent<{ baseUrl?: any; lang?: any; labels?: any; className?: any; testId?: any; }>;
|
|
6
|
+
export declare const legalUrl: (base?: any) => any;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Types for react/license.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const LicensePanel: ScalioComponent<{ labels?: any; formatError?: any; map?: any; kindLabel?: any; featureLabel?: any; product?: any; noFeatures?: any; statusExtra?: any; className?: any; testId?: any; children?: React.ReactNode; extraTitle?: any; extraHint?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const licenseApi: (api?: any) => any;
|
|
7
|
+
export declare const mapScalioLicense: (lic?: any, opts?: any) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/limited_mode.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const LimitedModeBanner: ScalioComponent<{ license?: any; now?: any; lang?: any; labels?: any; product?: any; unit?: any; onOpen?: any; icon?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const limitedModeState: (license?: any, now?: any) => any;
|
package/react/login.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Types for react/login.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent, Lang, ApiClient, AuthResult } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const LoginPage: ScalioComponent<{
|
|
6
|
+
api: ApiClient; apiBase?: string;
|
|
7
|
+
auth: {
|
|
8
|
+
user?: any;
|
|
9
|
+
login: (email: string, password: string) => Promise<AuthResult | undefined> | AuthResult | undefined;
|
|
10
|
+
loginMfa: (mfaToken: string, code: string) => Promise<AuthResult | undefined> | AuthResult | undefined;
|
|
11
|
+
loginPasskey: () => Promise<AuthResult | undefined> | AuthResult | undefined;
|
|
12
|
+
loginScalio: (handoff: string) => Promise<AuthResult | undefined> | AuthResult | undefined;
|
|
13
|
+
setup: (name: string, email: string, password: string, setupCode: string) => Promise<AuthResult | undefined> | AuthResult | undefined;
|
|
14
|
+
};
|
|
15
|
+
brand: { mark?: React.ReactNode; name: string; eyebrow?: React.ReactNode; claim?: React.ReactNode; features?: readonly React.ReactNode[]; color?: string; beta?: boolean };
|
|
16
|
+
appName?: string; lang?: Lang; onLangChange?: (lang: "de" | "en") => void; legalUrl?: string; passkeys?: boolean;
|
|
17
|
+
/** Called with auth.user once it is set; the app navigates. */
|
|
18
|
+
onSignedIn?: (user: any) => void;
|
|
19
|
+
forgotPassword?: { href?: string; onClick?: () => void };
|
|
20
|
+
/** Answers for an error code the shared texts do not know. */
|
|
21
|
+
errorText?: (code: string) => string | undefined;
|
|
22
|
+
/** Routes that differ from LOGIN_ENDPOINTS. */
|
|
23
|
+
endpoints?: Partial<Record<"setupStatus" | "loginPolicy" | "demo" | "microsoftStatus" | "microsoftLogin" | "setupMicrosoft", string>>;
|
|
24
|
+
/** Replaces window.location.assign for full-page redirects. */
|
|
25
|
+
assign?: (url: string) => void;
|
|
26
|
+
location?: { search?: string; hash?: string; pathname?: string };
|
|
27
|
+
testIds?: Partial<Record<string, string>>;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const LOGIN_ENDPOINTS: { readonly setupStatus: string; readonly loginPolicy: string; readonly demo: string; readonly microsoftStatus: string; readonly microsoftLogin: string; readonly setupMicrosoft: string; };
|
|
30
|
+
export declare const readArrival: (loc?: any) => any;
|
package/react/mail.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Types for react/mail.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const MailTransport: ScalioComponent<{ labels?: any; outbox?: any; notify?: any; formatError?: any; graphHint?: any; tenantHint?: any; grantOffHint?: any; children?: React.ReactNode; [key: string]: any; }>;
|
|
6
|
+
export declare const MailTemplates: ScalioComponent<{ labels?: any; delay?: any; editor?: any; [key: string]: any; }>;
|
|
7
|
+
export declare const mailApi: (api?: any, base?: any) => any;
|
|
8
|
+
export declare const mailLabels: (lang?: any, overrides?: any) => any;
|
|
9
|
+
export declare const textToHtml: (text?: any) => any;
|
|
10
|
+
export declare const MAIL_LABELS: { readonly de: Readonly<Record<string, any>>; readonly en: Readonly<Record<string, any>>; };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Types for react/maintenance.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const FactoryReset: ScalioComponent<{ labels?: any; formatError?: any; tokenKey?: any; onDone?: any; notify?: any; backupTo?: any; link?: any; text?: any; accountTo?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const factoryResetApi: (api?: any) => any;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Types for react/markdown.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const Markdown: ScalioComponent<{ lang?: any; labels?: any; links?: any; pageLinks?: any; render?: any; anchors?: any; className?: any; testId?: any; text?: any; [key: string]: any; }>;
|
|
6
|
+
export declare const parseMarkdownBlocks: (src?: any) => any;
|
|
7
|
+
export declare const parseMarkdownInline: (src?: any, opts?: any) => any;
|
|
8
|
+
export declare const markdownOutline: (src?: any) => any;
|
|
9
|
+
export declare const markdownHeadingId: (text?: any) => any;
|
|
10
|
+
export declare const markdownPageLinks: (src?: any) => any;
|
|
11
|
+
export declare const markdownPageLinkKey: (space?: any, title?: any) => any;
|
|
12
|
+
export declare const parseMarkdownPageLink: (inner?: any) => any;
|
|
13
|
+
export declare const safeHref: (href?: any) => any;
|
|
14
|
+
export declare const safeHttpsHref: (href?: any) => any;
|
package/react/nav.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Types for react/nav.js (written by hand, no build step).
|
|
2
|
+
import type * as React from "react";
|
|
3
|
+
import type { Props, ScalioComponent } from "./types";
|
|
4
|
+
|
|
5
|
+
export declare const VersionTag: ScalioComponent<{ version?: any; commit?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
6
|
+
export declare const Sidebar: ScalioComponent<Props>;
|
|
7
|
+
export declare const NavItem: ScalioComponent<{ item?: any; link?: any; activePath?: any; onNavigate?: any; testIdPrefix?: any; }>;
|
|
8
|
+
export declare const NavDrawer: ScalioComponent<{ open?: any; onClose?: any; children?: React.ReactNode; lang?: any; labels?: any; testId?: any; }>;
|
|
9
|
+
export declare const SubNav: ScalioComponent<{
|
|
10
|
+
/** Fewer than two visible items: renders nothing. Link tabs have `to`, in-page tabs (with onSelect) have `id`. */
|
|
11
|
+
items: readonly { to?: string; id?: string; label: React.ReactNode; end?: boolean; badge?: React.ReactNode; hidden?: boolean; testId?: string }[];
|
|
12
|
+
/** Router link component (gets to, end, className as function, data-testid). */
|
|
13
|
+
link?: React.ElementType; activePath?: string; label?: string; testId?: string;
|
|
14
|
+
/** Id of the active in-page tab. */
|
|
15
|
+
value?: string; onSelect?: (id: string) => void;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const WorkspaceSwitcher: ScalioComponent<{ options?: any; value?: any; onSelect?: any; testIdPrefix?: any; testId?: any; }>;
|
|
18
|
+
export declare const AppShell: ScalioComponent<{ switcher?: any; header?: any; banner?: any; sidebar?: any; children?: React.ReactNode; drawerOpen?: any; onDrawerClose?: any; drawerTop?: any; legalUrl?: any; lang?: any; labels?: any; testId?: any; }>;
|
|
19
|
+
export declare const ContextSelect: ScalioComponent<{ label?: any; value?: any; options?: any; onChange?: any; hint?: any; after?: any; testId?: any; id?: any; }>;
|
|
20
|
+
export declare const ProductSwitcher: ScalioComponent<{ current?: any; links?: any; stage?: any; sso?: any; lang?: any; labels?: any; products?: any; testId?: any; }>;
|
|
21
|
+
export declare const PRODUCTS: readonly ({ readonly key: string; readonly name: string; readonly icon: (props?: any) => any; readonly group: string; })[];
|
|
22
|
+
export declare const productStatus: (product?: any, current?: any) => any;
|
|
23
|
+
export declare const switcherHref: (product?: any, links?: any, sso?: any, current?: any, tenant?: any) => any;
|
|
24
|
+
export declare const stageBadge: (stage?: any) => any;
|
|
25
|
+
export declare const scalioFeatures: (answer?: any) => any;
|
|
26
|
+
export declare const useScalioApps: (fetchApps?: any, options?: any) => any;
|
|
27
|
+
export declare const SCALIO_APPS_RETRY_DELAYS: readonly (number)[];
|
|
28
|
+
export declare const resetScalioApps: () => any;
|
|
29
|
+
export declare const SupportDrawer: ScalioComponent<{ open?: any; onClose?: any; onSubmit?: any; client?: any; page?: any; context?: any; lang?: any; labels?: any; }>;
|
|
30
|
+
export declare const visibleSections: (nav?: any) => any;
|
|
31
|
+
export declare const isActivePath: (path?: any, to?: any, end?: any) => any;
|