@pure-ds/core 0.5.1 → 0.5.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.
@@ -273,10 +273,12 @@ export class PDS extends EventTarget {
273
273
  themeStorageKey?: string;
274
274
  public?: {
275
275
  root?: string;
276
+ managerURL?: string;
276
277
  };
277
278
  // live-only
278
279
  preloadStyles?: boolean;
279
280
  criticalLayers?: string[];
281
+ managerURL?: string;
280
282
  // static-only
281
283
  staticPaths?: Record<string, string>;
282
284
  enhancers?: Array<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":";AA8qGigB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIq8C"}
@@ -1 +1 @@
1
- {"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AAoNA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6NC;0BA7ayB,oBAAoB"}
1
+ {"version":3,"file":"pds-live.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-live.js"],"names":[],"mappings":"AAuMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6NC;0BAhayB,oBAAoB"}
@@ -1,4 +1,5 @@
1
1
  export function ensureAbsoluteAssetURL(value: any, options?: {}): any;
2
+ export function attachFoucListener(PDS: any): void;
2
3
  export function stripFunctions(obj: any): any;
3
4
  export function normalizeInitConfig(inputConfig: {}, options: {}, { presets, defaultLog }: {
4
5
  presets: any;
@@ -1 +1 @@
1
- {"version":3,"file":"pds-start-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-start-helpers.js"],"names":[],"mappings":"AAmBA,sEAgCC;AA0CD,8CAsBC;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsGC;AAGD;;;;;;;;EAmCC;AAED;;QASC;AAGD;;;;;GAmIC;AArYM,qDAGI"}
1
+ {"version":3,"file":"pds-start-helpers.d.ts","sourceRoot":"","sources":["../../../../../src/js/pds-core/pds-start-helpers.js"],"names":[],"mappings":"AAmBA,sEAgCC;AAiBD,mDAYC;AA6BD,8CAsBC;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuGC;AAGD;;;;;;;;EAmCC;AAED;;QASC;AAGD;;;;;GAmIC;AAtZM,qDAGI"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pure-ds/core",
3
3
  "shortname": "pds",
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "description": "Pure Design System - Why develop a Design System when you can generate one?",
6
6
  "repository": {
7
7
  "type": "git",
@@ -421,6 +421,22 @@ async function main(options = {}) {
421
421
  await copyDirectory(componentsSource, componentsDir);
422
422
  }
423
423
 
424
+ // 4b) Copy live manager bundle into target/core for dynamic import fallback
425
+ try {
426
+ const managerSource = path.join(repoRoot, 'public/assets/js/pds-manager.js');
427
+ if (!existsSync(managerSource)) {
428
+ log('⚠️ pds-manager.js not found in package assets; skipping copy', 'yellow');
429
+ } else {
430
+ const coreDir = path.join(targetDir, 'core');
431
+ await mkdir(coreDir, { recursive: true });
432
+ const managerTarget = path.join(coreDir, 'pds-manager.js');
433
+ await copyFile(managerSource, managerTarget);
434
+ log(`✅ Copied live manager → ${path.relative(process.cwd(), managerTarget)}`, 'green');
435
+ }
436
+ } catch (e) {
437
+ log(`⚠️ Failed to copy pds-manager.js: ${e?.message || e}`, 'yellow');
438
+ }
439
+
424
440
  // 5) Generate CSS layers into target/styles
425
441
  log('🧬 Generating styles...', 'bold');
426
442
  const { Generator } = await loadGenerator();