@openedx/paragon 23.20.3 → 23.20.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.
@@ -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('Type of replacement: usage or definition'),
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('Type of replacement: usage or definition'));
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('Include only source design tokens in the build.'),
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(
@@ -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 'all').
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",
3
+ "version": "23.20.5",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",