@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.
- package/dist/types/pds.d.ts +2 -0
- package/dist/types/public/assets/js/pds-manager.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-live.d.ts.map +1 -1
- package/dist/types/src/js/pds-core/pds-start-helpers.d.ts +1 -0
- package/dist/types/src/js/pds-core/pds-start-helpers.d.ts.map +1 -1
- package/package.json +1 -1
- package/packages/pds-cli/bin/pds-static.js +16 -0
- package/public/assets/js/app.js +17 -17
- package/public/assets/js/pds-manager.js +8 -8
- package/public/assets/js/pds.js +6 -6
- package/src/js/pds-core/pds-live.js +2 -15
- package/src/js/pds-core/pds-start-helpers.js +17 -0
- package/src/js/pds.d.ts +2 -0
- package/src/js/pds.js +9 -1
package/dist/types/pds.d.ts
CHANGED
|
@@ -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":";
|
|
1
|
+
{"version":3,"file":"pds-manager.d.ts","sourceRoot":"","sources":["../../../../../public/assets/js/pds-manager.js"],"names":[],"mappings":";AA8qG+R;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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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":"
|
|
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;
|
|
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
|
@@ -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();
|