@deepseek-ai/dsh-client-ui-creation-recommendations 0.0.0-stage → 0.2.2-alpha.3

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/lib/index.js ADDED
@@ -0,0 +1,6 @@
1
+ //#region lib/types/index.js
2
+ /** Browser registration is discovered through the package client declaration. */
3
+ /** Register the browser-only contribution without Host state. */
4
+ function apply() {}
5
+ //#endregion
6
+ export { apply };
@@ -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,3 @@
1
+ /** Browser entry of the personalized page card body. */
2
+ export { apply, inject } from './mount.ts';
3
+ //# sourceMappingURL=index.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
@@ -0,0 +1,4 @@
1
+ /** Browser registration is discovered through the package client declaration. */
2
+ /** Register the browser-only contribution without Host state. */
3
+ export declare function apply(): void;
4
+ //# sourceMappingURL=index.d.ts.map
package/locale/de.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Karten für personalisierte Seiten",
4
+ "description": "Zeigt die Vorschlagskarte nach einer Antwort mit Ortswahl, Erstellungsfortschritt, Behalten und Rückgängigmachen an."
5
+ }
6
+ }
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Personalized page cards",
4
+ "description": "Show the proposal card after an answer with location choice, creation progress, retention and undo."
5
+ }
6
+ }
package/locale/es.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Tarjetas de páginas personalizadas",
4
+ "description": "Muestra la tarjeta de propuesta después de una respuesta, con elección de ubicación, progreso de creación, conservación y deshacer."
5
+ }
6
+ }
package/locale/fr.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Cartes de pages personnalisées",
4
+ "description": "Affiche la carte de proposition après une réponse, avec le choix de l'emplacement, la progression de la création, la conservation et l'annulation."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "パーソナルページのカード",
4
+ "description": "回答の末尾に提案カードを表示し、配置の選択、作成の進行状況、保持と取り消しを扱います。"
5
+ }
6
+ }
package/locale/pt.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Cartões de páginas personalizadas",
4
+ "description": "Mostra o cartão de proposta após uma resposta, com escolha de local, progresso da criação, manutenção e desfazer."
5
+ }
6
+ }
package/locale/ru.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Карточки персональных страниц",
4
+ "description": "Показывает карточку предложения после ответа с выбором места, ходом создания, сохранением и отменой."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "个性化页面卡片",
4
+ "description": "在回答末尾显示方案卡片,含位置选择、创建进度、保留和撤销。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
+ "version": "0.2.2-alpha.3",
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
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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.2"
41
+ },
42
+ "devDependencies": {
43
+ "@deepseek-ai/cordis": "~4.0.6-alpha.2",
44
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.3",
45
+ "@deepseek-ai/dsh-client-locale": "0.2.2-alpha.3",
46
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.3",
47
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-alpha.3",
48
+ "react": "^18.2.0",
49
+ "@deepseek-ai/dsh-creation-recommendations": "0.2.2-alpha.3",
50
+ "@deepseek-ai/dsh-client-store": "0.2.2-alpha.3",
51
+ "@deepseek-ai/dsh-client-ui-action-cards": "0.2.2-alpha.3",
52
+ "@deepseek-ai/dsh-action-cards": "0.2.2-alpha.3",
53
+ "zod": "4.4.3",
54
+ "@deepseek-ai/dsh-client-test-runtime": "0.2.2-alpha.3",
55
+ "@deepseek-ai/dsh-llm": "0.2.2-alpha.3",
56
+ "@deepseek-ai/dsh-session": "0.2.2-alpha.3"
57
+ },
58
+ "files": [
59
+ "locale/*.json",
60
+ "lib/index.js",
61
+ "lib/client.js",
62
+ "lib/types/**/*.d.ts"
63
+ ]
6
64
  }