@openedx/paragon 23.20.2 → 23.20.4
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/bin/paragon-scripts.js +3 -3
- package/dist/core.css +9 -9
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/lib/__tests__/help.test.js +5 -3
- package/lib/replace-variables.js +1 -1
- package/package.json +2 -2
|
@@ -184,7 +184,7 @@ describe('helpCommand', () => {
|
|
|
184
184
|
expect.stringContaining(`${chalk.yellow.bold('-s, --source')} ${chalk.grey('Default: \'\'')}`),
|
|
185
185
|
);
|
|
186
186
|
expect(console.log).toHaveBeenCalledWith(
|
|
187
|
-
expect.stringContaining('
|
|
187
|
+
expect.stringContaining('The path to the source directory containing variable mappings.'),
|
|
188
188
|
);
|
|
189
189
|
|
|
190
190
|
expect(console.log).toHaveBeenCalledWith(
|
|
@@ -192,7 +192,9 @@ describe('helpCommand', () => {
|
|
|
192
192
|
`${chalk.yellow.bold('-t, --replacementType')} ${chalk.grey('[usage|definition], Default: definition')}`,
|
|
193
193
|
),
|
|
194
194
|
);
|
|
195
|
-
expect(console.log).toHaveBeenCalledWith(expect.stringContaining(
|
|
195
|
+
expect(console.log).toHaveBeenCalledWith(expect.stringContaining(
|
|
196
|
+
'Type of replacement: usage or definition. If set to "definition" the command will only update SCSS variables definitions with CSS variables, if set to "usage" - all occurrences of SCSS variables will be replaced.',
|
|
197
|
+
));
|
|
196
198
|
|
|
197
199
|
expect(console.log).toHaveBeenCalledWith(
|
|
198
200
|
expect.stringContaining(
|
|
@@ -228,7 +230,7 @@ describe('helpCommand', () => {
|
|
|
228
230
|
expect.stringContaining(`${chalk.yellow.bold('--source-tokens-only')} ${chalk.grey('Default: false')}`),
|
|
229
231
|
);
|
|
230
232
|
expect(console.log).toHaveBeenCalledWith(
|
|
231
|
-
expect.stringContaining('
|
|
233
|
+
expect.stringContaining('If provided, only tokens from --source will be included in the output; Paragon tokens will be used for references but not included in the output.'),
|
|
232
234
|
);
|
|
233
235
|
|
|
234
236
|
expect(console.log).toHaveBeenCalledWith(
|
package/lib/replace-variables.js
CHANGED
|
@@ -8,7 +8,7 @@ const mapSCSStoCSS = require('../tokens/map-scss-to-css');
|
|
|
8
8
|
* @param {string[]} commandArgs - Command line arguments for replacing variables.
|
|
9
9
|
* @param {string} [commandArgs.filePath] - The path to the file in which variables should be replaced.
|
|
10
10
|
* @param {string} [commandArgs.source] - The path to the source directory containing variable mappings.
|
|
11
|
-
* @param {string} [commandArgs.replacementType] - The type of replacement ('usage' or '
|
|
11
|
+
* @param {string} [commandArgs.replacementType] - The type of replacement ('usage' or 'definition').
|
|
12
12
|
* @param {string} [commandArgs.direction] - The direction of replacement ('forward' or 'backward').
|
|
13
13
|
*/
|
|
14
14
|
async function replaceVariablesCommand(commandArgs) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openedx/paragon",
|
|
3
|
-
"version": "23.20.
|
|
3
|
+
"version": "23.20.4",
|
|
4
4
|
"description": "Accessible, responsive UI component library based on Bootstrap.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"commander": "^9.4.1",
|
|
76
76
|
"email-prop-type": "^3.0.0",
|
|
77
77
|
"file-selector": "^0.10.0",
|
|
78
|
-
"glob": "^
|
|
78
|
+
"glob": "^10.0.0",
|
|
79
79
|
"inquirer": "^8.2.5",
|
|
80
80
|
"js-toml": "^1.0.0",
|
|
81
81
|
"lodash.uniqby": "^4.7.0",
|