@synopackageland/sdk 0.10.6 → 0.10.8
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 +47 -1
- package/dist/i18n/delegate/de.json +2 -0
- package/dist/i18n/delegate/en.json +2 -0
- package/dist/i18n/delegate/es.json +2 -0
- package/dist/i18n/delegate/fr.json +2 -0
- package/dist/i18n/delegate/it.json +2 -0
- package/dist/i18n/delegate/ja.json +2 -0
- package/dist/i18n/delegate/ko.json +2 -0
- package/dist/i18n/delegate/zh-CN.json +2 -0
- package/dist/i18n/delegate/zh-TW.json +2 -0
- package/dist/index.js +2654 -2617
- package/dist/src/background/i18n.d.ts +1 -1
- package/dist/src/context.d.ts +1 -0
- package/dist/src/delegate/ExecutorApproval.vue.d.ts +4 -1
- package/dist/src/delegate/SaveOperations.vue.d.ts +2 -2
- package/dist/src/delegate/copy.d.ts +4 -0
- package/dist/src/delegate/lifecycle.d.ts +7 -3
- package/dist/src/delegate/save-copy.d.ts +1 -1
- package/dist/src/delegate/use-executor-setup.d.ts +3 -1
- package/dist/src/delegate/use-lifecycle-retry.d.ts +2 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/nas/locale.d.ts +1 -1
- package/dist/src/vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/vue.js +1804 -1728
- package/package.json +1 -1
- package/spec/protocol/v1/README.md +18 -4
|
@@ -85,4 +85,4 @@ export declare const backgroundCatalogs: Record<import("..").UiLocale, {
|
|
|
85
85
|
unsupported: string;
|
|
86
86
|
}>;
|
|
87
87
|
export declare function backgroundCopy(locale: string): BackgroundCopy;
|
|
88
|
-
export declare function backgroundErrorCopy(e: unknown, copy: BackgroundCopy): string;
|
|
88
|
+
export declare function backgroundErrorCopy(e: unknown, copy: BackgroundCopy, locale?: string): string;
|
package/dist/src/context.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export interface PortalStatus {
|
|
|
68
68
|
export interface PortalAccess {
|
|
69
69
|
messages: Record<string, string>;
|
|
70
70
|
status(): Promise<PortalStatus>;
|
|
71
|
+
lastStatus?(): PortalStatus | undefined;
|
|
71
72
|
apply(alias: string): Promise<PortalStatus>;
|
|
72
73
|
disable(): Promise<PortalStatus>;
|
|
73
74
|
register?(): Promise<PortalStatus>;
|
|
@@ -3,10 +3,13 @@ type __VLS_Props = {
|
|
|
3
3
|
admin: boolean;
|
|
4
4
|
locale?: string;
|
|
5
5
|
ctx?: Pick<Context, 'reopen'> & Partial<Pick<Context, 'displayName' | 'appIcon' | 'fullPage' | 'host'>>;
|
|
6
|
+
preload?: boolean;
|
|
6
7
|
};
|
|
7
|
-
declare var __VLS_1: {};
|
|
8
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
8
9
|
type __VLS_Slots = {} & {
|
|
9
10
|
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_3) => any;
|
|
10
13
|
};
|
|
11
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
15
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -4,12 +4,12 @@ type __VLS_Props = {
|
|
|
4
4
|
locale: string;
|
|
5
5
|
initial?: SaveOperation[];
|
|
6
6
|
};
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_28: {
|
|
8
8
|
busy: boolean;
|
|
9
9
|
run: (work: () => Promise<unknown>) => Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
|
-
default?: (props: typeof
|
|
12
|
+
default?: (props: typeof __VLS_28) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
|
|
15
15
|
refresh: () => Promise<void>;
|
|
@@ -21,6 +21,8 @@ export declare const delegateCatalogs: Record<import("..").UiLocale, {
|
|
|
21
21
|
noticeApprove: string;
|
|
22
22
|
appStopped: string;
|
|
23
23
|
appStarting: string;
|
|
24
|
+
appStoppedAction: string;
|
|
25
|
+
appStartingAction: string;
|
|
24
26
|
loading: string;
|
|
25
27
|
details: string;
|
|
26
28
|
revoke: string;
|
|
@@ -90,6 +92,8 @@ export declare function delegateCopy(locale?: string): {
|
|
|
90
92
|
noticeApprove: string;
|
|
91
93
|
appStopped: string;
|
|
92
94
|
appStarting: string;
|
|
95
|
+
appStoppedAction: string;
|
|
96
|
+
appStartingAction: string;
|
|
93
97
|
loading: string;
|
|
94
98
|
details: string;
|
|
95
99
|
revoke: string;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export type AppLifecycle = 'stopped' | 'starting';
|
|
2
2
|
export declare function appLifecycle(value: unknown): AppLifecycle | undefined;
|
|
3
|
-
export declare const LIFECYCLE_RETRY_MAX_MS = 15000;
|
|
4
|
-
export declare function lifecycleRetryDelay(attempt: number): number;
|
|
5
|
-
export declare function
|
|
3
|
+
export declare const LIFECYCLE_RETRY_MAX_MS = 15000, LIFECYCLE_STARTING_RETRY_MAX_MS = 4000;
|
|
4
|
+
export declare function lifecycleRetryDelay(attempt: number, lifecycle?: AppLifecycle): number;
|
|
5
|
+
export declare function lifecycleRefusal(error: unknown, locale?: string): string | undefined;
|
|
6
|
+
export interface LifecycleCopyOptions {
|
|
7
|
+
for?: 'page' | 'action';
|
|
8
|
+
}
|
|
9
|
+
export declare function lifecycleCopy(lifecycle: AppLifecycle, locale?: string, options?: LifecycleCopyOptions): string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { type InjectionKey } from 'vue';
|
|
1
|
+
import { type InjectionKey, type Ref } from 'vue';
|
|
2
2
|
import type { CapabilityStatus, ExecutorSetup } from './executor-setup';
|
|
3
3
|
export declare const ExecutorSetupKey: InjectionKey<ExecutorSetup>;
|
|
4
|
+
export declare const ExecutorPreloadKey: InjectionKey<Readonly<Ref<boolean>>>;
|
|
5
|
+
export declare function useExecutorPreload(): Readonly<Ref<boolean>>;
|
|
4
6
|
export declare function useExecutorSetup(): ExecutorSetup;
|
|
5
7
|
export type ConfirmFailure = 'password_rejected' | 'password_required' | 'password_confirm_failed';
|
|
6
8
|
export declare function confirmFailure(status: CapabilityStatus): ConfirmFailure | undefined;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { shellCopy, shellCatalogs, type ShellCopy } from './shell/i18n';
|
|
|
21
21
|
export { identityCopy, identityCatalogs, type IdentityCopy, type IdentityNotice } from './identity/i18n';
|
|
22
22
|
export { backgroundCopy, backgroundErrorCopy, backgroundCatalogs, type BackgroundCopy } from './background/i18n';
|
|
23
23
|
export { delegateCopy, errorCopy, delegateCatalogs, type DelegateCopy } from './delegate/copy';
|
|
24
|
-
export { appLifecycle, lifecycleCopy, lifecycleRetryDelay, LIFECYCLE_RETRY_MAX_MS, type AppLifecycle } from './delegate/lifecycle';
|
|
24
|
+
export { appLifecycle, lifecycleCopy, lifecycleRefusal, lifecycleRetryDelay, LIFECYCLE_RETRY_MAX_MS, LIFECYCLE_STARTING_RETRY_MAX_MS, type AppLifecycle, type LifecycleCopyOptions } from './delegate/lifecycle';
|
|
25
25
|
export { saveCopy, saveError, saveCatalogs } from './delegate/save-copy';
|
|
26
26
|
export { authorizationCopy, authorizationCatalogs } from './authorization/i18n';
|
|
27
27
|
export { portalMessages, portalCatalogs } from './portal/i18n';
|
package/dist/src/nas/locale.d.ts
CHANGED
|
@@ -46,4 +46,4 @@ export declare const nasCatalogs: Record<import("..").UiLocale, {
|
|
|
46
46
|
fullPath: string;
|
|
47
47
|
}>;
|
|
48
48
|
export declare function nasCopy(locale: string): NasCopy;
|
|
49
|
-
export declare function nasErrorCopy(error: unknown, copy: NasCopy): string;
|
|
49
|
+
export declare function nasErrorCopy(error: unknown, copy: NasCopy, locale?: string): string;
|
package/dist/src/vue.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './index';
|
|
2
|
-
export { ExecutorSetupKey, useExecutorSetup } from './delegate/use-executor-setup';
|
|
2
|
+
export { ExecutorSetupKey, useExecutorSetup, ExecutorPreloadKey, useExecutorPreload } from './delegate/use-executor-setup';
|
|
3
3
|
export { createSession, type IdentitySession, type SessionSubject } from './identity/session';
|
|
4
4
|
export { useNasRequest } from './nas/use-request';
|
|
5
5
|
export { default as AppShell } from './shell/AppShell.vue';
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.executor-help[data-v-
|
|
1
|
+
.executor-help[data-v-666ac74c]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.executor-summary[data-v-666ac74c]:not(:last-child){margin-bottom:var(--ui-space-3,12px)}.executor-form[data-v-666ac74c]{margin-top:var(--ui-space-4,16px);max-width:28rem}.executor-hint[data-v-666ac74c]{font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary)}.executor-reason[data-v-666ac74c]{display:block;margin-top:var(--ui-space-1,4px);font-size:var(--ui-font-size-sm,12px)}.executor-alert[data-v-666ac74c]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.executor-notice[data-v-1edce327]{margin-bottom:var(--ui-space-4, 16px)}.executor-notice-body[data-v-1edce327]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-2, 8px)}.app-shell[data-v-61068e94]{height:100%;min-width:0;grid-template-rows:minmax(0,1fr)}.app-shell[data-v-61068e94]>div{min-height:0}.app-shell[data-v-61068e94] main{display:flex;flex-direction:column;overflow:hidden}.app-page[data-v-61068e94]{flex:1 1 auto;min-height:0;overflow-y:auto}.app-denied[data-v-61068e94]{height:100%;overflow-y:auto}.app-page-actions[data-v-61068e94]{display:contents}.app-shell-fill[data-v-61068e94]{max-height:100dvh}.app-page-fill[data-v-61068e94]{display:flex;flex-direction:column;overflow:hidden}.app-page-fill[data-v-61068e94]>[data-page-content-body]{display:flex;flex:1 1 auto;flex-direction:column;width:100%;min-height:0}.app-page-fill .app-notices[data-v-61068e94]{flex:0 0 auto}.app-page-fill .app-page-content[data-v-61068e94]{display:grid;flex:1 1 auto;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);min-height:0}.app-notices[data-v-61068e94]{display:flex;flex-direction:column;gap:var(--ui-space-2, 8px);margin-bottom:var(--ui-space-4, 16px)}.app-notices[hidden][data-v-61068e94]{display:none}.app-page-content[data-v-61068e94]{padding-bottom:var(--ui-space-6, 24px)}.file-browser[data-v-70c72250]{min-width:0;color:var(--ui-text)}.file-toolbar[data-v-70c72250]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2, 8px);margin-block:var(--ui-space-3, 12px)}.file-location[data-v-70c72250]{flex-wrap:nowrap;align-items:center;gap:var(--ui-space-1, 4px)}.file-path[data-v-70c72250]{flex:1;min-width:0;margin-inline-start:var(--ui-space-2, 8px)}.file-columns[data-v-70c72250]{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:var(--ui-space-3, 12px);height:clamp(240px,60vh,400px)}.file-tree[data-v-70c72250]{min-width:0;overflow:auto;border-inline-end:1px solid var(--ui-border)}.file-content[data-v-70c72250]{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto}.file-empty[data-v-70c72250]{display:flex;flex-direction:column;align-items:center;gap:var(--ui-space-2, 8px);padding-block:var(--ui-space-6, 24px);color:var(--ui-text-muted)}.file-name[data-v-70c72250]{display:inline-flex;align-items:center;gap:var(--ui-space-2, 8px);overflow-wrap:anywhere}.file-bytes[data-v-70c72250]{font-variant-numeric:tabular-nums}.file-selection[data-v-70c72250]{overflow-wrap:anywhere}@media(max-width:600px){.file-columns[data-v-70c72250]{grid-template-columns:minmax(0,1fr);height:auto}.file-content[data-v-70c72250] th:nth-child(2),.file-content[data-v-70c72250] td:nth-child(2),.file-content[data-v-70c72250] th:nth-child(3),.file-content[data-v-70c72250] td:nth-child(3){display:none}.file-tree[data-v-70c72250]{height:clamp(96px,25vh,180px);border-inline-end:0;border-bottom:1px solid var(--ui-border)}.file-content[data-v-70c72250]{height:clamp(200px,45vh,360px)}}.nas-picker-content[data-v-46817cb6]{max-height:65vh;overflow:auto}.save-message[data-v-46817cb6]{--ui-text-secondary:var(--ui-text)}.save-consent[data-v-46817cb6]{color:var(--ui-text);margin-block:0 var(--ui-space-4,16px)}.files-actions[data-v-96eb4bab]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2, 8px)}.files-path[data-v-96eb4bab]{display:flex;min-width:0}.identity-login[data-v-1c0358cd]{max-width:36rem;margin-inline:auto;padding:var(--ui-space-4, 16px);overflow:auto;max-height:100%;color:var(--ui-text);font-family:var(--ui-font-sans);font-size:13px;line-height:1.5}.identity-login p[data-v-1c0358cd]{margin-block:var(--ui-space-4, 16px);overflow-wrap:anywhere}.bg-cards[data-v-85b8b7a1]{display:grid;gap:var(--ui-space-3,12px);min-width:0;overflow-wrap:anywhere}.bg-card-body[data-v-85b8b7a1]{display:flex;flex-direction:column;align-items:flex-start;gap:var(--ui-space-2,8px);min-width:0}.bg-card-body>span[data-v-85b8b7a1]{min-width:0;max-width:100%}.integration-actions[data-v-85b8b7a1]{display:flex;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.bg-schedules[data-v-85b8b7a1]{margin-block-start:var(--ui-space-6,24px);min-width:0;overflow-wrap:anywhere}.bg-schedules p[data-v-85b8b7a1]{min-width:0;max-width:100%}.bg-schedule-form[data-v-85b8b7a1]{margin-block:var(--ui-space-4,16px)}.bg-path[data-v-85b8b7a1]{display:flex;align-items:center;gap:var(--ui-space-2,8px);min-width:0;max-width:100%}.executor-pages[data-v-948cb0a2]{display:contents}.executor-pages.executor-preloading[data-v-948cb0a2]{display:block;position:fixed;inset:0;visibility:hidden;overflow:hidden;pointer-events:none}.executor-approval[data-v-948cb0a2]{padding:var(--ui-space-6, 24px)}.executor-brand[data-v-948cb0a2]{display:flex;align-items:center;gap:var(--ui-space-2, 8px);margin-bottom:var(--ui-space-4, 16px);font-size:16px;font-weight:600;color:var(--ui-text-primary)}.executor-brand img[data-v-948cb0a2]{width:24px;height:24px}.delegate-panel[data-v-080a311e]{min-width:0;overflow-wrap:anywhere}.delegate-group[data-v-080a311e]{margin-top:var(--ui-space-6,24px)}.records[data-v-080a311e]{list-style:none;padding:0;margin:0}.records li[data-v-080a311e]{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:var(--ui-space-3,12px);padding-block:var(--ui-space-4,16px);border-bottom:1px solid var(--ui-border)}.records li>div[data-v-080a311e],.records li>span[data-v-080a311e],.destination[data-v-080a311e]{min-width:0;max-width:100%;overflow-wrap:anywhere}.records p[data-v-080a311e]{margin:var(--ui-space-2,8px) 0 0}.destination[data-v-080a311e]{display:flex;align-items:center;gap:var(--ui-space-2,8px)}.save-help[data-v-56f34b37]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.save-alert[data-v-56f34b37]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px);justify-content:space-between}.save-name[data-v-56f34b37]{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.save-note[data-v-56f34b37]{margin:var(--ui-space-1,4px) 0 0;font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary);white-space:normal}.save-icon[data-v-56f34b37]{width:16px;height:16px}[data-save-operations][data-v-56f34b37] table{table-layout:fixed}[data-save-operations][data-v-56f34b37] th,[data-save-operations][data-v-56f34b37] td{overflow-wrap:normal;white-space:nowrap}[data-save-operations][data-v-56f34b37] td{padding-block:var(--ui-space-2,8px)}.save-pages[data-v-56f34b37]{margin-top:var(--ui-space-3,12px)}.background-save-settings[data-v-d2fd6882]{min-width:0;overflow-wrap:anywhere}.save-help[data-v-d2fd6882]{margin:0 0 var(--ui-space-2,8px);max-width:72ch;color:var(--ui-text-secondary)}.save-form[data-v-d2fd6882]{max-width:44rem}.save-actions[data-v-d2fd6882],.save-alert[data-v-d2fd6882],.save-danger[data-v-d2fd6882]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px)}.save-alert[data-v-d2fd6882],.save-danger[data-v-d2fd6882]{justify-content:space-between}.save-none[data-v-d2fd6882]{color:var(--ui-text-secondary)}.save-reason[data-v-d2fd6882]{display:block;margin-top:var(--ui-space-1,4px);font-size:var(--ui-font-size-sm,12px)}.save-danger[data-v-d2fd6882]{flex:1;padding-top:var(--ui-space-3,12px);border-top:1px solid var(--ui-border)}.save-danger p[data-v-d2fd6882]{margin:0;flex:1 1 20rem;max-width:72ch;font-size:var(--ui-font-size-sm,12px);color:var(--ui-text-secondary)}.background-save-panel[data-v-55770b8c]{min-width:0;overflow-wrap:anywhere}.save-help[data-v-55770b8c]{margin:0 0 var(--ui-space-3,12px);max-width:72ch;color:var(--ui-text-secondary)}.save-actions[data-v-55770b8c]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ui-space-2,8px);margin-bottom:var(--ui-space-3,12px)}.authorization-view[data-v-59492506]{display:flex;flex-direction:column;gap:12px}.authorization-body[data-v-59492506]{margin:0;font-size:13px;line-height:1.6;color:var(--ui-text);text-wrap:pretty}.authorization-status[data-v-59492506],.authorization-failed[data-v-59492506]{color:var(--ui-text)}.authorization-content[data-v-59492506]{display:flex;flex-direction:column;height:100%;min-height:0}.authorization-content[data-v-59492506] .app-shell{flex:1;min-height:0;height:auto}.authorization-setting[data-v-f031e7c7]{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.authorization-revoke-body[data-v-f031e7c7]{margin:0;font-size:13px;line-height:1.6;color:var(--ui-text)}.authorization-state[data-v-f031e7c7]{display:inline-flex;align-items:center;gap:6px;color:var(--ui-text)}
|