@pure-ds/core 0.5.17 → 0.5.19
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
|
@@ -335,10 +335,8 @@ settingsBtn.addEventListener('click', () => {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
function buildPdsConfig() {
|
|
338
|
-
return `
|
|
339
|
-
|
|
340
|
-
const defaultEnhancers = Array.isArray(PDS.defaultEnhancers)
|
|
341
|
-
? PDS.defaultEnhancers
|
|
338
|
+
return `const defaultEnhancers = Array.isArray(globalThis.PDS?.defaultEnhancers)
|
|
339
|
+
? globalThis.PDS.defaultEnhancers
|
|
342
340
|
: [];
|
|
343
341
|
|
|
344
342
|
export const config = {
|
|
@@ -350,7 +348,7 @@ export const config = {
|
|
|
350
348
|
|
|
351
349
|
// Custom component paths
|
|
352
350
|
mapper: (tag) => {
|
|
353
|
-
if (tag.startsWith("my-")) return
|
|
351
|
+
if (tag.startsWith("my-")) return \`/assets/my/\${tag}.js\`;
|
|
354
352
|
|
|
355
353
|
// Return nothing to use PDS default mapping
|
|
356
354
|
},
|
|
@@ -156,10 +156,8 @@ async function ensurePdsConfig(consumerRoot, force = false) {
|
|
|
156
156
|
// File doesn't exist, create it
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
const defaultConfig = `
|
|
160
|
-
|
|
161
|
-
const defaultEnhancers = Array.isArray(PDS.defaultEnhancers)
|
|
162
|
-
? PDS.defaultEnhancers
|
|
159
|
+
const defaultConfig = `const defaultEnhancers = Array.isArray(globalThis.PDS?.defaultEnhancers)
|
|
160
|
+
? globalThis.PDS.defaultEnhancers
|
|
163
161
|
: [];
|
|
164
162
|
|
|
165
163
|
export const config = {
|
|
@@ -171,7 +169,7 @@ export const config = {
|
|
|
171
169
|
|
|
172
170
|
// Custom component paths
|
|
173
171
|
mapper: (tag) => {
|
|
174
|
-
if (tag.startsWith("my-")) return
|
|
172
|
+
if (tag.startsWith("my-")) return \`/assets/my/\${tag}.js\`;
|
|
175
173
|
|
|
176
174
|
// Return nothing to use PDS default mapping
|
|
177
175
|
},
|