@fusion.dev/helix-core 0.136.0 → 0.138.0
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/custom-elements.json +85 -1
- package/dist/helix-element/helix-element.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/utils/report-usage/report-usage.d.ts +13 -0
- package/dist/utils/report-usage/report-usage.js +10 -0
- package/dist/version.d.ts +9 -0
- package/dist/version.js +1 -0
- package/package.json +4 -4
package/custom-elements.json
CHANGED
|
@@ -8078,6 +8078,14 @@
|
|
|
8078
8078
|
"module": "./utils/relative-time/relative-time.js"
|
|
8079
8079
|
}
|
|
8080
8080
|
},
|
|
8081
|
+
{
|
|
8082
|
+
"kind": "js",
|
|
8083
|
+
"name": "noteVersion",
|
|
8084
|
+
"declaration": {
|
|
8085
|
+
"name": "noteVersion",
|
|
8086
|
+
"module": "./utils/report-usage/report-usage.js"
|
|
8087
|
+
}
|
|
8088
|
+
},
|
|
8081
8089
|
{
|
|
8082
8090
|
"kind": "js",
|
|
8083
8091
|
"name": "reportUsage",
|
|
@@ -8094,6 +8102,14 @@
|
|
|
8094
8102
|
"module": "./utils/report-usage/report-usage.js"
|
|
8095
8103
|
}
|
|
8096
8104
|
},
|
|
8105
|
+
{
|
|
8106
|
+
"kind": "js",
|
|
8107
|
+
"name": "VERSIONS_SLOT",
|
|
8108
|
+
"declaration": {
|
|
8109
|
+
"name": "VERSIONS_SLOT",
|
|
8110
|
+
"module": "./utils/report-usage/report-usage.js"
|
|
8111
|
+
}
|
|
8112
|
+
},
|
|
8097
8113
|
{
|
|
8098
8114
|
"kind": "js",
|
|
8099
8115
|
"name": "reportValues",
|
|
@@ -8381,6 +8397,14 @@
|
|
|
8381
8397
|
"name": "writtenNumbers",
|
|
8382
8398
|
"module": "./utils/written-list/written-list.js"
|
|
8383
8399
|
}
|
|
8400
|
+
},
|
|
8401
|
+
{
|
|
8402
|
+
"kind": "js",
|
|
8403
|
+
"name": "VERSION",
|
|
8404
|
+
"declaration": {
|
|
8405
|
+
"name": "VERSION",
|
|
8406
|
+
"module": "./version.js"
|
|
8407
|
+
}
|
|
8384
8408
|
}
|
|
8385
8409
|
]
|
|
8386
8410
|
},
|
|
@@ -14337,6 +14361,21 @@
|
|
|
14337
14361
|
"name": "USAGE_SLOT",
|
|
14338
14362
|
"description": "The key the listener is kept under. `@fusion.dev/helix-diagnostics` names the same string."
|
|
14339
14363
|
},
|
|
14364
|
+
{
|
|
14365
|
+
"kind": "variable",
|
|
14366
|
+
"name": "VERSIONS_SLOT",
|
|
14367
|
+
"description": "The key the loaded versions are listed under: every copy of core on the\npage adds its own once, so a page holding two copies lists two.\n`@fusion.dev/helix-diagnostics` compares the list with the version its\nmanifest names.\n\n**On `globalThis` and not on the element classes**, where a field would be\nlisted as a member of every component in the manifest and on every\nreference page."
|
|
14368
|
+
},
|
|
14369
|
+
{
|
|
14370
|
+
"kind": "function",
|
|
14371
|
+
"name": "noteVersion",
|
|
14372
|
+
"return": {
|
|
14373
|
+
"type": {
|
|
14374
|
+
"text": "void"
|
|
14375
|
+
}
|
|
14376
|
+
},
|
|
14377
|
+
"description": "Adds this copy's version to the page's list, once."
|
|
14378
|
+
},
|
|
14340
14379
|
{
|
|
14341
14380
|
"kind": "function",
|
|
14342
14381
|
"name": "reportUsage",
|
|
@@ -14365,6 +14404,22 @@
|
|
|
14365
14404
|
"module": "src/utils/report-usage/report-usage.ts"
|
|
14366
14405
|
}
|
|
14367
14406
|
},
|
|
14407
|
+
{
|
|
14408
|
+
"kind": "js",
|
|
14409
|
+
"name": "VERSIONS_SLOT",
|
|
14410
|
+
"declaration": {
|
|
14411
|
+
"name": "VERSIONS_SLOT",
|
|
14412
|
+
"module": "src/utils/report-usage/report-usage.ts"
|
|
14413
|
+
}
|
|
14414
|
+
},
|
|
14415
|
+
{
|
|
14416
|
+
"kind": "js",
|
|
14417
|
+
"name": "noteVersion",
|
|
14418
|
+
"declaration": {
|
|
14419
|
+
"name": "noteVersion",
|
|
14420
|
+
"module": "src/utils/report-usage/report-usage.ts"
|
|
14421
|
+
}
|
|
14422
|
+
},
|
|
14368
14423
|
{
|
|
14369
14424
|
"kind": "js",
|
|
14370
14425
|
"name": "reportUsage",
|
|
@@ -15389,6 +15444,35 @@
|
|
|
15389
15444
|
}
|
|
15390
15445
|
}
|
|
15391
15446
|
]
|
|
15447
|
+
},
|
|
15448
|
+
{
|
|
15449
|
+
"kind": "javascript-module",
|
|
15450
|
+
"path": "src/version.ts",
|
|
15451
|
+
"declarations": [
|
|
15452
|
+
{
|
|
15453
|
+
"kind": "variable",
|
|
15454
|
+
"name": "VERSION",
|
|
15455
|
+
"type": {
|
|
15456
|
+
"text": "string"
|
|
15457
|
+
},
|
|
15458
|
+
"default": "'0.138.0'",
|
|
15459
|
+
"description": "The version of the package this file ships in.\n\n**Written by `fusion/scripts/version.mjs`** wherever it writes the package's\n`package.json`, and stamped back into the repository beside it after a\nrelease, so the two never disagree; a spec beside this holds them to it.\nNothing else in the running code knows which release it is."
|
|
15460
|
+
}
|
|
15461
|
+
],
|
|
15462
|
+
"exports": [
|
|
15463
|
+
{
|
|
15464
|
+
"kind": "js",
|
|
15465
|
+
"name": "VERSION",
|
|
15466
|
+
"declaration": {
|
|
15467
|
+
"name": "VERSION",
|
|
15468
|
+
"module": "src/version.ts"
|
|
15469
|
+
}
|
|
15470
|
+
}
|
|
15471
|
+
]
|
|
15392
15472
|
}
|
|
15393
|
-
]
|
|
15473
|
+
],
|
|
15474
|
+
"helix": {
|
|
15475
|
+
"package": "@fusion.dev/helix-core",
|
|
15476
|
+
"version": "0.138.0"
|
|
15477
|
+
}
|
|
15394
15478
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, LitElement } from 'lit';
|
|
2
2
|
import { unsafeStatic } from 'lit/static-html.js';
|
|
3
|
-
import { reportUsage } from '../utils/report-usage/report-usage.js';
|
|
3
|
+
import { noteVersion, reportUsage } from '../utils/report-usage/report-usage.js';
|
|
4
4
|
import { applyReactProperties, auditReactProps, bindReactHandler, reactPropsOf, } from './react-bridge.js';
|
|
5
5
|
const BOX_SIZING = css `
|
|
6
6
|
*,
|
|
@@ -148,3 +148,4 @@ export const whenHydrated = (element, write) => {
|
|
|
148
148
|
write();
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
|
+
noteVersion();
|
package/dist/index.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export { onUnlessFalse } from './utils/on-unless-false/on-unless-false.js';
|
|
|
63
63
|
export { type ColorBytes, readColor } from './utils/read-color/read-color.js';
|
|
64
64
|
export { type Row, type RowCell, readRows, readSeries, type Series, type SeriesPoint, } from './utils/read-series/read-series.js';
|
|
65
65
|
export { type Relative, relativeTime, } from './utils/relative-time/relative-time.js';
|
|
66
|
-
export { reportUsage, USAGE_SLOT } from './utils/report-usage/report-usage.js';
|
|
66
|
+
export { noteVersion, reportUsage, USAGE_SLOT, VERSIONS_SLOT, } from './utils/report-usage/report-usage.js';
|
|
67
67
|
export { reportValues } from './utils/report-values/report-values.js';
|
|
68
68
|
export { type ChangeRequestOptions, requestChange, } from './utils/request-change/request-change.js';
|
|
69
69
|
export { type ActivatableItem, resolveActiveItem, } from './utils/resolve-active-item/resolve-active-item.js';
|
|
@@ -81,3 +81,4 @@ export { dateAsValue, isDateValue, isTimeValue, minutesAsValue, numberAsValue, t
|
|
|
81
81
|
export { watchTheme } from './utils/watch-theme/watch-theme.js';
|
|
82
82
|
export { writeTime } from './utils/write-time/write-time.js';
|
|
83
83
|
export { writtenList, writtenNumbers } from './utils/written-list/written-list.js';
|
|
84
|
+
export { VERSION } from './version.js';
|
package/dist/index.js
CHANGED
|
@@ -63,7 +63,7 @@ export { onUnlessFalse } from './utils/on-unless-false/on-unless-false.js';
|
|
|
63
63
|
export { readColor } from './utils/read-color/read-color.js';
|
|
64
64
|
export { readRows, readSeries, } from './utils/read-series/read-series.js';
|
|
65
65
|
export { relativeTime, } from './utils/relative-time/relative-time.js';
|
|
66
|
-
export { reportUsage, USAGE_SLOT } from './utils/report-usage/report-usage.js';
|
|
66
|
+
export { noteVersion, reportUsage, USAGE_SLOT, VERSIONS_SLOT, } from './utils/report-usage/report-usage.js';
|
|
67
67
|
export { reportValues } from './utils/report-values/report-values.js';
|
|
68
68
|
export { requestChange, } from './utils/request-change/request-change.js';
|
|
69
69
|
export { resolveActiveItem, } from './utils/resolve-active-item/resolve-active-item.js';
|
|
@@ -81,3 +81,4 @@ export { dateAsValue, isDateValue, isTimeValue, minutesAsValue, numberAsValue, t
|
|
|
81
81
|
export { watchTheme } from './utils/watch-theme/watch-theme.js';
|
|
82
82
|
export { writeTime } from './utils/write-time/write-time.js';
|
|
83
83
|
export { writtenList, writtenNumbers } from './utils/written-list/written-list.js';
|
|
84
|
+
export { VERSION } from './version.js';
|
|
@@ -18,6 +18,19 @@
|
|
|
18
18
|
*/
|
|
19
19
|
/** The key the listener is kept under. `@fusion.dev/helix-diagnostics` names the same string. */
|
|
20
20
|
export declare const USAGE_SLOT: unique symbol;
|
|
21
|
+
/**
|
|
22
|
+
* The key the loaded versions are listed under: every copy of core on the
|
|
23
|
+
* page adds its own once, so a page holding two copies lists two.
|
|
24
|
+
* `@fusion.dev/helix-diagnostics` compares the list with the version its
|
|
25
|
+
* manifest names.
|
|
26
|
+
*
|
|
27
|
+
* **On `globalThis` and not on the element classes**, where a field would be
|
|
28
|
+
* listed as a member of every component in the manifest and on every
|
|
29
|
+
* reference page.
|
|
30
|
+
*/
|
|
31
|
+
export declare const VERSIONS_SLOT: unique symbol;
|
|
32
|
+
/** Adds this copy's version to the page's list, once. */
|
|
33
|
+
export declare const noteVersion: () => void;
|
|
21
34
|
/**
|
|
22
35
|
* Tells the listener, where there is one, that `element` has rendered for the
|
|
23
36
|
* first time.
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
+
import { VERSION } from '../../version.js';
|
|
1
2
|
export const USAGE_SLOT = Symbol.for('fusion.dev/helix/usage');
|
|
3
|
+
export const VERSIONS_SLOT = Symbol.for('fusion.dev/helix/versions');
|
|
4
|
+
export const noteVersion = () => {
|
|
5
|
+
const store = globalThis;
|
|
6
|
+
const listed = Array.isArray(store[VERSIONS_SLOT]) ? store[VERSIONS_SLOT] : [];
|
|
7
|
+
if (!listed.includes(VERSION)) {
|
|
8
|
+
listed.push(VERSION);
|
|
9
|
+
}
|
|
10
|
+
store[VERSIONS_SLOT] = listed;
|
|
11
|
+
};
|
|
2
12
|
export const reportUsage = (element) => {
|
|
3
13
|
const listener = globalThis[USAGE_SLOT];
|
|
4
14
|
if (typeof listener !== 'function') {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version of the package this file ships in.
|
|
3
|
+
*
|
|
4
|
+
* **Written by `fusion/scripts/version.mjs`** wherever it writes the package's
|
|
5
|
+
* `package.json`, and stamped back into the repository beside it after a
|
|
6
|
+
* release, so the two never disagree; a spec beside this holds them to it.
|
|
7
|
+
* Nothing else in the running code knows which release it is.
|
|
8
|
+
*/
|
|
9
|
+
export declare const VERSION = "0.138.0";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const VERSION = '0.138.0';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-core",
|
|
3
3
|
"description": "Helix element primitives: base classes, mixins, decorators, utilities.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.138.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@floating-ui/dom": "^1.8.0",
|
|
37
|
-
"@fusion.dev/helix-icons": "0.
|
|
37
|
+
"@fusion.dev/helix-icons": "0.138.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@fusion.dev/helix-cem": "0.
|
|
41
|
-
"@fusion.dev/helix-testing": "0.
|
|
40
|
+
"@fusion.dev/helix-cem": "0.138.0",
|
|
41
|
+
"@fusion.dev/helix-testing": "0.138.0",
|
|
42
42
|
"@lit-labs/ssr": "^4.1.0",
|
|
43
43
|
"lit": "^3.2.1"
|
|
44
44
|
},
|