@deepseek-ai/dsh-client-ui-secret-mask 0.2.1-rc.5 → 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/client.js +38 -2
- package/lib/types/client/locales.d.ts +30 -0
- package/locale/de.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/package.json +8 -8
package/lib/client.js
CHANGED
|
@@ -161,7 +161,7 @@ window.__ModuleLoader__.load({
|
|
|
161
161
|
};
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region \0dsh-css:/home/runner/work/deepseek-harness/deepseek-harness/packages/client/ui-secret-mask/src/client/SecretText.module.css.mjs
|
|
164
|
-
const css = ".lpJacW_secret{box-sizing:border-box;max-width:100%;font-family:var(--ds-font-family-code);align-items:center;margin:0 2px;font-size:.875em;display:inline-flex}.lpJacW_value{overflow-wrap:anywhere;min-width:0}.lpJacW_mask{-webkit-text-fill-color:transparent;background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M6 5.6v8.8M2.19 7.8l7.62 4.4M2.19 12.2l7.62-4.4' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E\") 0/1ch 100% repeat-x;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M6 5.6v8.8M2.19 7.8l7.62 4.4M2.19 12.2l7.62-4.4' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E\") 0/1ch 100% repeat-x}.lpJacW_mask,.lpJacW_toggle{position:relative;top:-.125em}.lpJacW_toggle{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;flex:none;align-items:center;padding:0;display:inline-flex}.lpJacW_toggle:hover{color:var(--dsw-alias-label-primary)}.lpJacW_toggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px;border-radius:var(--dsw-radius-xs)}.lpJacW_icon{width:1em;height:1em}";
|
|
164
|
+
const css = ".lpJacW_secret{box-sizing:border-box;max-width:100%;font-family:var(--ds-font-family-code);align-items:center;margin:0 2px;font-size:.875em;display:inline-flex}.lpJacW_value{overflow-wrap:anywhere;min-width:0}.lpJacW_mask{-webkit-text-fill-color:transparent;background-color:currentColor;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M6 5.6v8.8M2.19 7.8l7.62 4.4M2.19 12.2l7.62-4.4' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E\") 0/1ch 100% repeat-x;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 20'%3E%3Cpath d='M6 5.6v8.8M2.19 7.8l7.62 4.4M2.19 12.2l7.62-4.4' stroke='%23000' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E\") 0/1ch 100% repeat-x}.lpJacW_mask,.lpJacW_toggle{position:relative;top:-.125em}.lpJacW_toggle{color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;flex:none;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.lpJacW_toggle:hover{color:var(--dsw-alias-label-primary)}}.lpJacW_toggle:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:1px;border-radius:var(--dsw-radius-xs)}.lpJacW_icon{width:1em;height:1em}";
|
|
165
165
|
const tagId = "@deepseek-ai/dsh-client-ui-secret-mask/SecretText.module.css";
|
|
166
166
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
167
167
|
const tag = document.createElement("style");
|
|
@@ -664,6 +664,36 @@ window.__ModuleLoader__.load({
|
|
|
664
664
|
"secret.reveal": "Show secret",
|
|
665
665
|
"secret.hide": "Hide secret"
|
|
666
666
|
};
|
|
667
|
+
/** Japanese copy, checked against the English keys. */
|
|
668
|
+
const ja = {
|
|
669
|
+
"secret.reveal": "シークレットを表示",
|
|
670
|
+
"secret.hide": "シークレットを隠す"
|
|
671
|
+
};
|
|
672
|
+
/** Spanish dictionary, checked against the English keys. */
|
|
673
|
+
const es = {
|
|
674
|
+
"secret.reveal": "Mostrar secreto",
|
|
675
|
+
"secret.hide": "Ocultar secreto"
|
|
676
|
+
};
|
|
677
|
+
/** French dictionary, checked against the English keys. */
|
|
678
|
+
const fr = {
|
|
679
|
+
"secret.reveal": "Afficher le secret",
|
|
680
|
+
"secret.hide": "Cacher le secret"
|
|
681
|
+
};
|
|
682
|
+
/** German dictionary, checked against the English keys. */
|
|
683
|
+
const de = {
|
|
684
|
+
"secret.reveal": "Geheimnis zeigen",
|
|
685
|
+
"secret.hide": "Geheimnis verbergen"
|
|
686
|
+
};
|
|
687
|
+
/** Russian dictionary, checked against the English keys. */
|
|
688
|
+
const ru = {
|
|
689
|
+
"secret.reveal": "Показать секрет",
|
|
690
|
+
"secret.hide": "Скрыть секрет"
|
|
691
|
+
};
|
|
692
|
+
/** Portuguese dictionary, checked against the English keys. */
|
|
693
|
+
const pt = {
|
|
694
|
+
"secret.reveal": "Mostrar segredo",
|
|
695
|
+
"secret.hide": "Ocultar segredo"
|
|
696
|
+
};
|
|
667
697
|
//#endregion
|
|
668
698
|
//#region lib/types/client/index.js
|
|
669
699
|
/** Required services: the copy, the node renderer registry, and the UserText rule registry. */
|
|
@@ -679,7 +709,13 @@ window.__ModuleLoader__.load({
|
|
|
679
709
|
function apply(ctx) {
|
|
680
710
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
681
711
|
zh,
|
|
682
|
-
en
|
|
712
|
+
en,
|
|
713
|
+
ja,
|
|
714
|
+
es,
|
|
715
|
+
fr,
|
|
716
|
+
de,
|
|
717
|
+
ru,
|
|
718
|
+
pt
|
|
683
719
|
}), "ui-secret-mask: dictionaries");
|
|
684
720
|
ctx.uiConversation.userText.register(createSecretRule());
|
|
685
721
|
ctx.slots.inject("conversation.user.text.node", () => ctx.slots.register({
|
|
@@ -19,4 +19,34 @@ export declare const en: {
|
|
|
19
19
|
'secret.reveal': string;
|
|
20
20
|
'secret.hide': string;
|
|
21
21
|
};
|
|
22
|
+
/** Japanese copy, checked against the English keys. */
|
|
23
|
+
export declare const ja: {
|
|
24
|
+
'secret.reveal': string;
|
|
25
|
+
'secret.hide': string;
|
|
26
|
+
};
|
|
27
|
+
/** Spanish dictionary, checked against the English keys. */
|
|
28
|
+
export declare const es: {
|
|
29
|
+
'secret.reveal': string;
|
|
30
|
+
'secret.hide': string;
|
|
31
|
+
};
|
|
32
|
+
/** French dictionary, checked against the English keys. */
|
|
33
|
+
export declare const fr: {
|
|
34
|
+
'secret.reveal': string;
|
|
35
|
+
'secret.hide': string;
|
|
36
|
+
};
|
|
37
|
+
/** German dictionary, checked against the English keys. */
|
|
38
|
+
export declare const de: {
|
|
39
|
+
'secret.reveal': string;
|
|
40
|
+
'secret.hide': string;
|
|
41
|
+
};
|
|
42
|
+
/** Russian dictionary, checked against the English keys. */
|
|
43
|
+
export declare const ru: {
|
|
44
|
+
'secret.reveal': string;
|
|
45
|
+
'secret.hide': string;
|
|
46
|
+
};
|
|
47
|
+
/** Portuguese dictionary, checked against the English keys. */
|
|
48
|
+
export declare const pt: {
|
|
49
|
+
'secret.reveal': string;
|
|
50
|
+
'secret.hide': string;
|
|
51
|
+
};
|
|
22
52
|
//# sourceMappingURL=locales.d.ts.map
|
package/locale/de.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepseek-ai/dsh-client-ui-secret-mask",
|
|
3
3
|
"description": "Web display masking for recognized credentials in sent user text",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2-alpha.3",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
41
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@deepseek-ai/cordis": "~4.0.
|
|
45
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
46
|
-
"@deepseek-ai/dsh-client-test-runtime": "0.2.
|
|
47
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
48
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
49
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
44
|
+
"@deepseek-ai/cordis": "~4.0.6-alpha.2",
|
|
45
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-alpha.3",
|
|
46
|
+
"@deepseek-ai/dsh-client-test-runtime": "0.2.2-alpha.3",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-alpha.3",
|
|
48
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.3",
|
|
49
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-alpha.3",
|
|
50
50
|
"react": "^18.2.0"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|