@pure-ds/core 0.5.4 → 0.5.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.
@@ -1,5 +1,5 @@
1
- export { S as PDS };
2
- declare var S: {
1
+ export { b as PDS };
2
+ declare var b: {
3
3
  addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
4
4
  dispatchEvent(event: Event): boolean;
5
5
  removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.5.4",
4
+ "version": "0.5.5",
5
5
  "description": "Pure Design System - Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
@@ -541,9 +541,21 @@ async function main(options = {}) {
541
541
 
542
542
  // 10) Write runtime config helper for auto-discovery
543
543
  try {
544
+ const runtimePresetLabel =
545
+ (generatorOptions && generatorOptions.preset) ||
546
+ (config && config.preset) ||
547
+ 'default';
548
+ const runtimePresetId = slugify(runtimePresetLabel || 'default') || 'default';
549
+ const runtimeDesign = clone(stripFunctions(generatorOptions?.design || {}));
544
550
  const runtimeConfig = {
545
551
  exportedAt: new Date().toISOString(),
546
552
  staticRoot: assetUrlRoot,
553
+ presetId: runtimePresetId,
554
+ preset: runtimePresetLabel,
555
+ config: {
556
+ preset: runtimePresetLabel,
557
+ design: runtimeDesign,
558
+ },
547
559
  paths: {
548
560
  tokens: `${assetUrlRoot}styles/pds-tokens.css.js`,
549
561
  primitives: `${assetUrlRoot}styles/pds-primitives.css.js`,