@automattic/launchpad 1.1.3 → 1.1.5
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/checklist-item/index.js +10 -5
- package/dist/cjs/checklist-item/index.js.map +1 -1
- package/dist/esm/checklist-item/index.js +10 -5
- package/dist/esm/checklist-item/index.js.map +1 -1
- package/dist/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/checklist-item/index.d.ts.map +1 -1
- package/jest.config.js +0 -1
- package/package.json +4 -5
- package/src/checklist-item/index.tsx +25 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checklist-item/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,cAAc,CAAC;AAEtB,UAAU,KAAK;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/checklist-item/index.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAErC,OAAO,cAAc,CAAC;AAEtB,UAAU,KAAK;IACd,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,IAAI,CAAC;IACX,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,EAAE,CAAE,KAAK,CA8I7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,EAQzB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automattic/launchpad",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Launchpad components.",
|
|
5
5
|
"homepage": "https://github.com/Automattic/wp-calypso",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@automattic/calypso-analytics": "^1.1.3",
|
|
42
42
|
"@automattic/calypso-config": "^1.0.0-alpha.0",
|
|
43
|
-
"@automattic/components": "^3.0.
|
|
43
|
+
"@automattic/components": "^3.0.2",
|
|
44
44
|
"@automattic/data-stores": "^3.1.2",
|
|
45
45
|
"@automattic/i18n-utils": "^1.2.3",
|
|
46
46
|
"@automattic/typography": "^1.0.0",
|
|
47
47
|
"@automattic/viewport": "^1.1.0",
|
|
48
|
-
"@tanstack/react-query": "^5.
|
|
48
|
+
"@tanstack/react-query": "^5.83.0",
|
|
49
49
|
"@wordpress/base-styles": "^5.23.0",
|
|
50
50
|
"@wordpress/components": "^29.9.0",
|
|
51
51
|
"@wordpress/icons": "^10.23.0",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"@wordpress/i18n": "^5.23.0",
|
|
77
77
|
"debug": "^4.4.1",
|
|
78
78
|
"react": "^18.3.1",
|
|
79
|
-
"react-dom": "^18.3.1"
|
|
80
|
-
"redux": "^5.0.1"
|
|
79
|
+
"react-dom": "^18.3.1"
|
|
81
80
|
}
|
|
82
81
|
}
|
|
@@ -60,23 +60,38 @@ const ChecklistItem: FC< Props > = ( {
|
|
|
60
60
|
const taskTitle = typeof title === 'string' ? title : String( title );
|
|
61
61
|
|
|
62
62
|
if ( completed ) {
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
return sprintf(
|
|
64
|
+
/* translators: %s: Task title */
|
|
65
|
+
__( 'Completed: %s', 'launchpad' ),
|
|
66
|
+
taskTitle
|
|
67
|
+
);
|
|
65
68
|
}
|
|
66
69
|
if ( disabled ) {
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
return sprintf(
|
|
71
|
+
/* translators: %s: Task title */
|
|
72
|
+
__( 'Not available yet: %s', 'launchpad' ),
|
|
73
|
+
taskTitle
|
|
74
|
+
);
|
|
69
75
|
}
|
|
70
76
|
if ( isClickable ) {
|
|
71
77
|
if ( isPrimaryAction ) {
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
return sprintf(
|
|
79
|
+
/* translators: %s: Task title */
|
|
80
|
+
__( 'Start task: %s', 'launchpad' ),
|
|
81
|
+
taskTitle
|
|
82
|
+
);
|
|
74
83
|
}
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
return sprintf(
|
|
85
|
+
/* translators: %s: Task title in lowercase */
|
|
86
|
+
__( 'Select to %s', 'launchpad' ),
|
|
87
|
+
taskTitle.toLowerCase()
|
|
88
|
+
);
|
|
77
89
|
}
|
|
78
|
-
|
|
79
|
-
|
|
90
|
+
return sprintf(
|
|
91
|
+
/* translators: %s: Task title */
|
|
92
|
+
__( 'To do: %s', 'launchpad' ),
|
|
93
|
+
taskTitle
|
|
94
|
+
);
|
|
80
95
|
};
|
|
81
96
|
|
|
82
97
|
return (
|