@bitcobblers/wod-wiki-lang 0.59.2243 → 0.59.2244
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/{ScriptOutlineProjection-BnS5Xkgf.d.cts → ScriptOutlineProjection-BhzHfbnJ.d.cts} +4 -3
- package/dist/{ScriptOutlineProjection-BnS5Xkgf.d.ts → ScriptOutlineProjection-BhzHfbnJ.d.ts} +4 -3
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -33
- package/dist/index.d.ts +40 -33
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/package.json +2 -2
package/dist/{ScriptOutlineProjection-BnS5Xkgf.d.cts → ScriptOutlineProjection-BhzHfbnJ.d.cts}
RENAMED
|
@@ -1184,7 +1184,7 @@ declare class TypedMemoryReference<T> implements IMemoryReference {
|
|
|
1184
1184
|
visibility: 'public' | 'private' | 'inherited';
|
|
1185
1185
|
private readonly _logger?;
|
|
1186
1186
|
id: string;
|
|
1187
|
-
private _subscriptions;
|
|
1187
|
+
private readonly _subscriptions;
|
|
1188
1188
|
constructor(_memory: IRuntimeMemory, ownerId: string, type: string, visibility?: 'public' | 'private' | 'inherited', _logger?: RuntimeStackLogger | undefined);
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Get the current value in an untyped manner.
|
|
@@ -1469,7 +1469,7 @@ interface IMemoryLocation {
|
|
|
1469
1469
|
*/
|
|
1470
1470
|
declare class MemoryLocation implements IMemoryLocation {
|
|
1471
1471
|
readonly tag: MemoryTag;
|
|
1472
|
-
private _listeners;
|
|
1472
|
+
private readonly _listeners;
|
|
1473
1473
|
private _metrics;
|
|
1474
1474
|
private _isDisposed;
|
|
1475
1475
|
constructor(tag: MemoryTag, initialFragments?: MetricContainer | IMetric[]);
|
|
@@ -1799,6 +1799,7 @@ interface IEventBus {
|
|
|
1799
1799
|
* Dispatch an event and return the resulting actions without executing them.
|
|
1800
1800
|
* Used internally when actions need special handling.
|
|
1801
1801
|
*
|
|
1802
|
+
* @param event - The event to dispatch.
|
|
1802
1803
|
* @param runtime - The runtime context. Typed as the
|
|
1803
1804
|
* {@link IEventDispatchContext} primitive so the implementation can rely
|
|
1804
1805
|
* on `stack` (for scope filtering) and `errors` (for early-exit) without
|
|
@@ -2001,7 +2002,7 @@ interface IBehaviorContext {
|
|
|
2001
2002
|
* Multiple locations with the same tag can coexist on the same block.
|
|
2002
2003
|
*
|
|
2003
2004
|
* @param tag The memory tag (e.g., 'timer', 'metric:display')
|
|
2004
|
-
* @param
|
|
2005
|
+
* @param metrics The metric array to store at this location
|
|
2005
2006
|
* @returns The created memory location for optional further manipulation
|
|
2006
2007
|
*
|
|
2007
2008
|
* @example
|
package/dist/{ScriptOutlineProjection-BnS5Xkgf.d.ts → ScriptOutlineProjection-BhzHfbnJ.d.ts}
RENAMED
|
@@ -1184,7 +1184,7 @@ declare class TypedMemoryReference<T> implements IMemoryReference {
|
|
|
1184
1184
|
visibility: 'public' | 'private' | 'inherited';
|
|
1185
1185
|
private readonly _logger?;
|
|
1186
1186
|
id: string;
|
|
1187
|
-
private _subscriptions;
|
|
1187
|
+
private readonly _subscriptions;
|
|
1188
1188
|
constructor(_memory: IRuntimeMemory, ownerId: string, type: string, visibility?: 'public' | 'private' | 'inherited', _logger?: RuntimeStackLogger | undefined);
|
|
1189
1189
|
/**
|
|
1190
1190
|
* Get the current value in an untyped manner.
|
|
@@ -1469,7 +1469,7 @@ interface IMemoryLocation {
|
|
|
1469
1469
|
*/
|
|
1470
1470
|
declare class MemoryLocation implements IMemoryLocation {
|
|
1471
1471
|
readonly tag: MemoryTag;
|
|
1472
|
-
private _listeners;
|
|
1472
|
+
private readonly _listeners;
|
|
1473
1473
|
private _metrics;
|
|
1474
1474
|
private _isDisposed;
|
|
1475
1475
|
constructor(tag: MemoryTag, initialFragments?: MetricContainer | IMetric[]);
|
|
@@ -1799,6 +1799,7 @@ interface IEventBus {
|
|
|
1799
1799
|
* Dispatch an event and return the resulting actions without executing them.
|
|
1800
1800
|
* Used internally when actions need special handling.
|
|
1801
1801
|
*
|
|
1802
|
+
* @param event - The event to dispatch.
|
|
1802
1803
|
* @param runtime - The runtime context. Typed as the
|
|
1803
1804
|
* {@link IEventDispatchContext} primitive so the implementation can rely
|
|
1804
1805
|
* on `stack` (for scope filtering) and `errors` (for early-exit) without
|
|
@@ -2001,7 +2002,7 @@ interface IBehaviorContext {
|
|
|
2001
2002
|
* Multiple locations with the same tag can coexist on the same block.
|
|
2002
2003
|
*
|
|
2003
2004
|
* @param tag The memory tag (e.g., 'timer', 'metric:display')
|
|
2004
|
-
* @param
|
|
2005
|
+
* @param metrics The metric array to store at this location
|
|
2005
2006
|
* @returns The created memory location for optional further manipulation
|
|
2006
2007
|
*
|
|
2007
2008
|
* @example
|
package/dist/index.cjs
CHANGED
|
@@ -1397,7 +1397,7 @@ var ClimbDialect = class {
|
|
|
1397
1397
|
const metric = metrics[index];
|
|
1398
1398
|
const current = metricText(metric);
|
|
1399
1399
|
const next = metricText(metrics[index + 1]);
|
|
1400
|
-
const vScale = current.match(/\bV(\d{1,2})
|
|
1400
|
+
const vScale = current.match(/\bV(\d{1,2})[-+]?\b/i);
|
|
1401
1401
|
if (vScale) {
|
|
1402
1402
|
const gradeNumber = Number(vScale[1]);
|
|
1403
1403
|
return { raw: vScale[0].toUpperCase(), system: "v-scale", normalizedRank: gradeNumber };
|
|
@@ -1413,13 +1413,13 @@ var ClimbDialect = class {
|
|
|
1413
1413
|
if (ydsInline) {
|
|
1414
1414
|
return { raw: ydsInline[0], system: "yds", normalizedRank: this.ydsRank(ydsInline[0]) };
|
|
1415
1415
|
}
|
|
1416
|
-
const fontInline = current.match(/\b([3-9][ABC]
|
|
1416
|
+
const fontInline = current.match(/\b([3-9][ABC]\+?)\b/);
|
|
1417
1417
|
if (fontInline) return { raw: fontInline[1], system: "font" };
|
|
1418
1418
|
if (typeof metric.value === "number" && metric.value >= 3 && metric.value <= 9) {
|
|
1419
1419
|
const suffix = next.match(/^\s*([ABC]\+?)\b/)?.[1];
|
|
1420
1420
|
if (suffix) return { raw: `${metric.value}${suffix}`, system: "font" };
|
|
1421
1421
|
}
|
|
1422
|
-
const frenchInline = current.match(/\b([3-9][abc]
|
|
1422
|
+
const frenchInline = current.match(/\b([3-9][abc]\+?)\b/);
|
|
1423
1423
|
if (frenchInline) return { raw: frenchInline[1], system: "french" };
|
|
1424
1424
|
}
|
|
1425
1425
|
return void 0;
|
|
@@ -2875,6 +2875,7 @@ var MdTimerRuntime = class {
|
|
|
2875
2875
|
* Parse WhiteboardScript source into a {@link WhiteboardScript}, running the
|
|
2876
2876
|
* Dialect Stack on every statement.
|
|
2877
2877
|
*
|
|
2878
|
+
* @param inputText - Raw WhiteboardScript source text.
|
|
2878
2879
|
* @param sport - The block's `:sport` fence suffix (` ```log:climbing `).
|
|
2879
2880
|
*/
|
|
2880
2881
|
read(inputText, sport) {
|
|
@@ -10352,7 +10353,7 @@ function parsePropertyMetricRule(key, rawValue, layer, sourceSlug) {
|
|
|
10352
10353
|
const amount = Number(qtyMatch[1]);
|
|
10353
10354
|
const unitStr = qtyMatch[2];
|
|
10354
10355
|
const knownUnit = getUnit(unitStr);
|
|
10355
|
-
if (!Number.isNaN(amount) && (knownUnit || /^(kg|lb|
|
|
10356
|
+
if (!Number.isNaN(amount) && (knownUnit || /^(kg|lb|[mshW%]|km|mi|min|ms|reps|cal|bpm|pts|AU)$/i.test(unitStr))) {
|
|
10356
10357
|
return {
|
|
10357
10358
|
kind: "static",
|
|
10358
10359
|
key: normalizedKey,
|
|
@@ -10465,7 +10466,7 @@ function extractUnit(metric) {
|
|
|
10465
10466
|
function hasStatementOwnedMetric(container, key) {
|
|
10466
10467
|
const targetType = canonicalMetricType(key);
|
|
10467
10468
|
return container.rawMetrics.some(
|
|
10468
|
-
(m) => (m.type === targetType || m.type === key || m.name === key) && STATEMENT_OWNED_ORIGINS[m.origin]
|
|
10469
|
+
(m) => (m.type === targetType || m.type === key || m.name === key) && STATEMENT_OWNED_ORIGINS[m.origin]
|
|
10469
10470
|
);
|
|
10470
10471
|
}
|
|
10471
10472
|
function inferApproxDim(node, dims) {
|
|
@@ -11575,6 +11576,7 @@ var SoundProfileBehavior = class {
|
|
|
11575
11576
|
/**
|
|
11576
11577
|
* Fire every rule whose trigger point has been reached.
|
|
11577
11578
|
*
|
|
11579
|
+
* @param ctx active behavior context
|
|
11578
11580
|
* @param elapsed milliseconds elapsed on the block's timer
|
|
11579
11581
|
* @param durationMs the block's total duration
|
|
11580
11582
|
* @param ending whether the block is ending — a rule anchored to the end
|