@jam-comments/server-utilities 5.13.1 → 5.14.0
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/dist/cjs/utils.js +3 -0
- package/dist/cjs/utils.test.js +6 -0
- package/dist/esm/utils.js +3 -0
- package/dist/esm/utils.test.js +6 -0
- package/dist/types/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/cjs/utils.js
CHANGED
|
@@ -77,5 +77,8 @@ function copyToUnderscored(copy) {
|
|
|
77
77
|
copy_preview_tab: copy.previewTab,
|
|
78
78
|
copy_auth_button: copy.authButton,
|
|
79
79
|
copy_log_out_button: copy.logOutButton,
|
|
80
|
+
copy_reply_button: copy.replyButton,
|
|
81
|
+
copy_name_label: copy.nameLabel,
|
|
82
|
+
copy_email_label: copy.emailLabel,
|
|
80
83
|
});
|
|
81
84
|
}
|
package/dist/cjs/utils.test.js
CHANGED
|
@@ -22,6 +22,9 @@ const env = process.env;
|
|
|
22
22
|
previewTab: "Preview",
|
|
23
23
|
authButton: "Auth",
|
|
24
24
|
logOutButton: "Log Out",
|
|
25
|
+
replyButton: "Reply",
|
|
26
|
+
nameLabel: "Name",
|
|
27
|
+
emailLabel: "Email",
|
|
25
28
|
};
|
|
26
29
|
const result = (0, utils_1.copyToUnderscored)(copy);
|
|
27
30
|
(0, vitest_1.expect)(result).toEqual({
|
|
@@ -34,6 +37,9 @@ const env = process.env;
|
|
|
34
37
|
copy_preview_tab: "Preview",
|
|
35
38
|
copy_auth_button: "Auth",
|
|
36
39
|
copy_log_out_button: "Log Out",
|
|
40
|
+
copy_reply_button: "Reply",
|
|
41
|
+
copy_name_label: "Name",
|
|
42
|
+
copy_email_label: "Email",
|
|
37
43
|
});
|
|
38
44
|
});
|
|
39
45
|
});
|
package/dist/esm/utils.js
CHANGED
|
@@ -69,5 +69,8 @@ export function copyToUnderscored(copy) {
|
|
|
69
69
|
copy_preview_tab: copy.previewTab,
|
|
70
70
|
copy_auth_button: copy.authButton,
|
|
71
71
|
copy_log_out_button: copy.logOutButton,
|
|
72
|
+
copy_reply_button: copy.replyButton,
|
|
73
|
+
copy_name_label: copy.nameLabel,
|
|
74
|
+
copy_email_label: copy.emailLabel,
|
|
72
75
|
});
|
|
73
76
|
}
|
package/dist/esm/utils.test.js
CHANGED
|
@@ -20,6 +20,9 @@ describe("copyToUnderscored()", () => {
|
|
|
20
20
|
previewTab: "Preview",
|
|
21
21
|
authButton: "Auth",
|
|
22
22
|
logOutButton: "Log Out",
|
|
23
|
+
replyButton: "Reply",
|
|
24
|
+
nameLabel: "Name",
|
|
25
|
+
emailLabel: "Email",
|
|
23
26
|
};
|
|
24
27
|
const result = copyToUnderscored(copy);
|
|
25
28
|
expect(result).toEqual({
|
|
@@ -32,6 +35,9 @@ describe("copyToUnderscored()", () => {
|
|
|
32
35
|
copy_preview_tab: "Preview",
|
|
33
36
|
copy_auth_button: "Auth",
|
|
34
37
|
copy_log_out_button: "Log Out",
|
|
38
|
+
copy_reply_button: "Reply",
|
|
39
|
+
copy_name_label: "Name",
|
|
40
|
+
copy_email_label: "Email",
|
|
35
41
|
});
|
|
36
42
|
});
|
|
37
43
|
});
|
package/dist/types/types.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ export interface CustomCopy {
|
|
|
8
8
|
previewTab?: string;
|
|
9
9
|
authButton?: string;
|
|
10
10
|
logOutButton?: string;
|
|
11
|
+
replyButton?: string;
|
|
12
|
+
nameLabel?: string;
|
|
13
|
+
emailLabel?: string;
|
|
11
14
|
}
|
|
12
15
|
export interface UnderscoredCopy {
|
|
13
16
|
copy_confirmation_message?: string;
|
|
@@ -19,4 +22,7 @@ export interface UnderscoredCopy {
|
|
|
19
22
|
copy_preview_tab?: string;
|
|
20
23
|
copy_auth_button?: string;
|
|
21
24
|
copy_log_out_button?: string;
|
|
25
|
+
copy_reply_button?: string;
|
|
26
|
+
copy_name_label?: string;
|
|
27
|
+
copy_email_label?: string;
|
|
22
28
|
}
|