anentrypoint-design 0.0.443 → 0.0.447
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/247420.css +2 -0
- package/dist/247420.js +19 -19
- package/package.json +1 -1
- package/src/kits/flatspace-theme/index.js +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anentrypoint-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.447",
|
|
4
4
|
"description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/247420.js",
|
|
@@ -7,8 +7,14 @@
|
|
|
7
7
|
// and is not force-unified here.
|
|
8
8
|
export { escapeHtml, escapeJson, extractArticle, rewriteLegacyLinks } from './html-utils.js';
|
|
9
9
|
|
|
10
|
+
import { createRequire } from 'node:module';
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
const { version } = require('../../../package.json');
|
|
13
|
+
|
|
10
14
|
// Canonical unpkg URLs every theme.mjs's importmap/<link> points at, kept in
|
|
11
15
|
// one place so a future SDK CDN path change is a single-file edit instead of
|
|
12
|
-
// a 3-repo grep-and-replace.
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
// a 3-repo grep-and-replace. Pinned to the exact installed package version
|
|
17
|
+
// (not @latest) so a consumer site's build serves what it actually built
|
|
18
|
+
// against, immune to unpkg's alias-level cache TTL.
|
|
19
|
+
export const SDK_CSS_URL = `https://unpkg.com/anentrypoint-design@${version}/dist/247420.css`;
|
|
20
|
+
export const SDK_JS_URL = `https://unpkg.com/anentrypoint-design@${version}/dist/247420.js`;
|