@deepseek-ai/dsh-client-ui-creation-recommendations 0.0.0-stage → 0.2.2-alpha.2
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/LICENSE +21 -0
- package/README.i18n.yaml +40 -0
- package/README.md +87 -2
- package/README.zh.md +88 -0
- package/lib/client.js +896 -0
- package/lib/index.js +6 -0
- package/lib/types/client/Card.d.ts +13 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/client/info-store.d.ts +6 -0
- package/lib/types/client/locales.d.ts +75 -0
- package/lib/types/client/mount.d.ts +15 -0
- package/lib/types/index.d.ts +4 -0
- package/locale/de.json +6 -0
- package/locale/en.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +61 -3
package/lib/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
2
|
+
import type { ActionCardBodyProps } from '@deepseek-ai/dsh-client-ui-action-cards/client';
|
|
3
|
+
/** Body props: the frame's card props plus this browser's cost-notice preference. */
|
|
4
|
+
export type PageCardProps = ActionCardBodyProps<'creationRecommendations'> & {
|
|
5
|
+
readonly infoDismissed: SnapshotStore<boolean>;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Display creation, persistent installation, reversible removal and restoration below the frame's summary.
|
|
9
|
+
* @param props - card, state, actions, folded-text component and notice preference.
|
|
10
|
+
* @returns the card body.
|
|
11
|
+
*/
|
|
12
|
+
export declare function PageCardBody({ proposal, decision, summary, Folded, act, infoDismissed, t }: PageCardProps): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
2
|
+
/** Remember the dismissed creation notice across sessions in this browser.
|
|
3
|
+
* @returns a plugin-owned preference; unavailable storage only disables persistence.
|
|
4
|
+
*/
|
|
5
|
+
export declare function createCreationInfoStore(): SnapshotStore<boolean>;
|
|
6
|
+
//# sourceMappingURL=info-store.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/** English creation and recovery copy. */
|
|
2
|
+
export declare const en: {
|
|
3
|
+
heading: string;
|
|
4
|
+
location: string;
|
|
5
|
+
creationInfo: string;
|
|
6
|
+
creationMethod: string;
|
|
7
|
+
creationCost: string;
|
|
8
|
+
creationBackground: string;
|
|
9
|
+
initialContent: string;
|
|
10
|
+
expandContent: string;
|
|
11
|
+
collapseContent: string;
|
|
12
|
+
'sidebar-right': string;
|
|
13
|
+
page: string;
|
|
14
|
+
'sidebar-left': string;
|
|
15
|
+
custom: string;
|
|
16
|
+
'sidebar-rightHint': string;
|
|
17
|
+
pageHint: string;
|
|
18
|
+
'sidebar-leftHint': string;
|
|
19
|
+
customHint: string;
|
|
20
|
+
customLabel: string;
|
|
21
|
+
customPlaceholder: string;
|
|
22
|
+
create: string;
|
|
23
|
+
starting: string;
|
|
24
|
+
dismiss: string;
|
|
25
|
+
retry: string;
|
|
26
|
+
keep: string;
|
|
27
|
+
undo: string;
|
|
28
|
+
restore: string;
|
|
29
|
+
restoring: string;
|
|
30
|
+
scope: string;
|
|
31
|
+
dismissed: string;
|
|
32
|
+
replaced: string;
|
|
33
|
+
creating: string;
|
|
34
|
+
cancel: string;
|
|
35
|
+
cancelling: string;
|
|
36
|
+
installing: string;
|
|
37
|
+
sourceRetained: string;
|
|
38
|
+
installed: string;
|
|
39
|
+
kept: string;
|
|
40
|
+
removed: string;
|
|
41
|
+
failed: string;
|
|
42
|
+
interrupted: string;
|
|
43
|
+
unconfirmed: string;
|
|
44
|
+
'invalid-location': string;
|
|
45
|
+
'restart-required': string;
|
|
46
|
+
overridden: string;
|
|
47
|
+
cancelled: string;
|
|
48
|
+
applicationFailed: string;
|
|
49
|
+
applicationCancelled: string;
|
|
50
|
+
transport: string;
|
|
51
|
+
unknown: string;
|
|
52
|
+
unavailable: string;
|
|
53
|
+
'access-denied': string;
|
|
54
|
+
'not-live-root': string;
|
|
55
|
+
closing: string;
|
|
56
|
+
'read-only': string;
|
|
57
|
+
'source-missing': string;
|
|
58
|
+
};
|
|
59
|
+
/** Keys shared by both dictionaries. */
|
|
60
|
+
export type RecommendationKey = keyof typeof en;
|
|
61
|
+
/** Chinese creation and recovery copy. */
|
|
62
|
+
export declare const zh: Record<RecommendationKey, string>;
|
|
63
|
+
/** Japanese creation and recovery copy. */
|
|
64
|
+
export declare const ja: Record<RecommendationKey, string>;
|
|
65
|
+
/** Spanish creation and recovery copy. */
|
|
66
|
+
export declare const es: Record<RecommendationKey, string>;
|
|
67
|
+
/** French creation and recovery copy. */
|
|
68
|
+
export declare const fr: Record<RecommendationKey, string>;
|
|
69
|
+
/** German creation and recovery copy. */
|
|
70
|
+
export declare const de: Record<RecommendationKey, string>;
|
|
71
|
+
/** Russian creation and recovery copy. */
|
|
72
|
+
export declare const ru: Record<RecommendationKey, string>;
|
|
73
|
+
/** Portuguese creation and recovery copy. */
|
|
74
|
+
export declare const pt: Record<RecommendationKey, string>;
|
|
75
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
2
|
+
import { type RecommendationKey } from './locales.ts';
|
|
3
|
+
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
4
|
+
interface LocaleNamespaceMap {
|
|
5
|
+
creationRecommendations: RecommendationKey;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
/** Services the body registration needs; the shared card plugin provides `actionCards`. */
|
|
9
|
+
export declare const inject: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Register the `create_personalized_page` body for the plugin lifetime.
|
|
12
|
+
* @param ctx - Client plugin context.
|
|
13
|
+
*/
|
|
14
|
+
export declare function apply(ctx: Context): void;
|
|
15
|
+
//# sourceMappingURL=mount.d.ts.map
|
package/locale/de.json
ADDED
package/locale/en.json
ADDED
package/locale/es.json
ADDED
package/locale/fr.json
ADDED
package/locale/ja.json
ADDED
package/locale/pt.json
ADDED
package/locale/ru.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "0.2.2-alpha.2",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "lib/index.js",
|
|
8
|
+
"types": "lib/types/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
2
10
|
"name": "@deepseek-ai/dsh-client-ui-creation-recommendations",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
11
|
+
"description": "Body of the personalized page card: location choice, creation progress, Keep, Undo and Restore",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
15
|
+
"directory": "packages/experimental/client-ui-creation-recommendations"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./lib/types/index.d.ts",
|
|
20
|
+
"default": "./lib/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./src/*": "./src/*",
|
|
23
|
+
"./package.json": "./package.json",
|
|
24
|
+
"./client": {
|
|
25
|
+
"types": "./lib/types/client/index.d.ts",
|
|
26
|
+
"default": "./lib/client.js"
|
|
27
|
+
},
|
|
28
|
+
"./locale/*.json": "./locale/*.json"
|
|
29
|
+
},
|
|
30
|
+
"dsh": {
|
|
31
|
+
"client": {
|
|
32
|
+
"platform": "web",
|
|
33
|
+
"inject": [
|
|
34
|
+
"@deepseek-ai/dsh-client-locale",
|
|
35
|
+
"@deepseek-ai/dsh-client-ui-action-cards"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.1",
|
|
44
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-alpha.2",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.2",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-alpha.2",
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"@deepseek-ai/dsh-creation-recommendations": "0.2.2-alpha.2",
|
|
50
|
+
"@deepseek-ai/dsh-client-store": "0.2.2-alpha.2",
|
|
51
|
+
"@deepseek-ai/dsh-client-ui-action-cards": "0.2.2-alpha.2",
|
|
52
|
+
"@deepseek-ai/dsh-action-cards": "0.2.2-alpha.2",
|
|
53
|
+
"zod": "4.4.3",
|
|
54
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.2-alpha.2",
|
|
55
|
+
"@deepseek-ai/dsh-llm": "0.2.2-alpha.2",
|
|
56
|
+
"@deepseek-ai/dsh-session": "0.2.2-alpha.2"
|
|
57
|
+
},
|
|
58
|
+
"files": [
|
|
59
|
+
"locale/*.json",
|
|
60
|
+
"lib/index.js",
|
|
61
|
+
"lib/client.js",
|
|
62
|
+
"lib/types/**/*.d.ts"
|
|
63
|
+
]
|
|
6
64
|
}
|