@openedx/paragon 23.21.2 → 23.21.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "23.21.2",
3
+ "version": "23.21.3",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -311,10 +311,9 @@ const initializeStyleDictionary = async ({ themes }) => {
311
311
  format: async ({ dictionary, file, options = {} }) => {
312
312
  const { fileHeader } = await getStyleDictionaryUtils();
313
313
  const { formatting } = options;
314
- const { breakpoint } = dictionary.tokens.size;
315
314
 
316
315
  let customMediaVariables = '';
317
- const breakpoints = Object.values(breakpoint || {});
316
+ const breakpoints = Object.values(dictionary.tokens?.size?.breakpoint || {});
318
317
 
319
318
  for (let i = 0; i < breakpoints.length; i++) {
320
319
  const [currentBreakpoint, nextBreakpoint] = [breakpoints[i], breakpoints[i + 1]];