@mccaskie-labs/workbench-nudges 0.2.0 → 0.3.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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/words.d.ts +2 -0
- package/dist/words.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @mccaskie-labs/workbench-nudges
|
|
2
2
|
|
|
3
|
+
## 0.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Tools' words in the project's catalogue. `npx workbench-strings add --base en-AU --from @mccaskie-labs/workbench-links` copies a tool's English words (its new `CATALOGUE_WORDS`) into the base catalogue, keeping any the project already has, so they are translated and approved in Control with the site's own words. workbench-links, workbench-nudges and workbench-plans export `CATALOGUE_WORDS`.
|
|
8
|
+
|
|
3
9
|
## 0.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { checkNudgeConfig, MAX_STEPS, nudgeProblems } from "./config.ts";
|
|
|
3
3
|
export { nudgesMigration } from "./migration.ts";
|
|
4
4
|
export { QUOTE_FOLLOW_UP_GUIDE, STARTER_NUDGES } from "./starters.ts";
|
|
5
5
|
export { nudgeAction, renderNudge, renderNudgeList, type ActionResult, type ListOptions, type Words } from "./ui.ts";
|
|
6
|
-
export { NUDGE_WORDS, NUDGE_WORD_KEYS, type NudgeWordKey } from "./words.ts";
|
|
6
|
+
export { CATALOGUE_WORDS, NUDGE_WORDS, NUDGE_WORD_KEYS, type NudgeWordKey } from "./words.ts";
|
|
7
7
|
export { NUDGE_STYLES } from "./styles.ts";
|
|
8
8
|
export { NudgesError, type NudgesErrorCode } from "./errors.ts";
|
|
9
9
|
export { NUDGE_STATUSES } from "./types.ts";
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ export { checkNudgeConfig, MAX_STEPS, nudgeProblems } from "./config.js";
|
|
|
9
9
|
export { nudgesMigration } from "./migration.js";
|
|
10
10
|
export { QUOTE_FOLLOW_UP_GUIDE, STARTER_NUDGES } from "./starters.js";
|
|
11
11
|
export { nudgeAction, renderNudge, renderNudgeList } from "./ui.js";
|
|
12
|
-
export { NUDGE_WORDS, NUDGE_WORD_KEYS } from "./words.js";
|
|
12
|
+
export { CATALOGUE_WORDS, NUDGE_WORDS, NUDGE_WORD_KEYS } from "./words.js";
|
|
13
13
|
export { NUDGE_STYLES } from "./styles.js";
|
|
14
14
|
export { NudgesError } from "./errors.js";
|
|
15
15
|
export { NUDGE_STATUSES } from "./types.js";
|
package/dist/words.d.ts
CHANGED
|
@@ -2,3 +2,5 @@ export declare const NUDGE_WORD_KEYS: readonly ["list.title", "list.empty", "ste
|
|
|
2
2
|
export type NudgeWordKey = (typeof NUDGE_WORD_KEYS)[number];
|
|
3
3
|
/** The words by language, as `ui.wbnudge.<key>` would hold them. */
|
|
4
4
|
export declare const NUDGE_WORDS: Readonly<Record<"en" | "tl" | "taglish", Readonly<Record<NudgeWordKey, string>>>>;
|
|
5
|
+
/** The English, as the project's base catalogue holds it: `npx workbench-strings add --from @mccaskie-labs/workbench-nudges`. */
|
|
6
|
+
export declare const CATALOGUE_WORDS: Readonly<Record<string, string>>;
|
package/dist/words.js
CHANGED
|
@@ -119,3 +119,5 @@ const taglish = {
|
|
|
119
119
|
};
|
|
120
120
|
/** The words by language, as `ui.wbnudge.<key>` would hold them. */
|
|
121
121
|
export const NUDGE_WORDS = { en, tl, taglish };
|
|
122
|
+
/** The English, as the project's base catalogue holds it: `npx workbench-strings add --from @mccaskie-labs/workbench-nudges`. */
|
|
123
|
+
export const CATALOGUE_WORDS = Object.freeze(Object.fromEntries(Object.entries(en).map(([k, v]) => [`ui.wbnudge.${k}`, v])));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mccaskie-labs/workbench-nudges",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Follow-up nudges for Workbench apps: remind the business to follow up when a conversation goes quiet (\"no reply in 3 days\"), with the follow-up already drafted by the reply drafter when it comes due. One scan from the app's cron, quiet hours, at most three steps, and a daily email digest to the owner. Never messages the business's customer.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|