@powerlines/plugin-alloy 0.15.8 → 0.15.9
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/chunk-554SZY2F.cjs +12556 -0
- package/dist/{vendor.js → chunk-J2T6KGQO.js} +192 -215
- package/dist/core/components/output.d.cts +2 -2
- package/dist/core/components/output.d.mts +2 -2
- package/dist/core/components/single-line-comment.d.cts +2 -2
- package/dist/core/components/single-line-comment.d.mts +2 -2
- package/dist/core/components/source-file.d.cts +2 -2
- package/dist/index.cjs +13 -10
- package/dist/index.d.ts +2 -0
- package/dist/index.js +23 -0
- package/dist/index.mjs +8 -5
- package/dist/jsx-runtime.cjs +35 -0
- package/dist/jsx-runtime.d.cts +1 -0
- package/dist/jsx-runtime.d.ts +1 -0
- package/dist/jsx-runtime.js +5 -0
- package/dist/markdown/components/markdown-file.d.cts +3 -3
- package/dist/markdown/components/markdown-file.d.mts +3 -3
- package/dist/markdown/components/markdown-table.d.cts +4 -4
- package/dist/typescript/components/builtin-file.d.cts +2 -2
- package/dist/typescript/components/builtin-file.d.mts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.cts +2 -2
- package/dist/typescript/components/dynamic-import-statement.d.mts +2 -2
- package/dist/typescript/components/entry-file.d.cts +2 -2
- package/dist/typescript/components/tsdoc-reflection.d.cts +4 -4
- package/dist/typescript/components/typescript-interface.d.cts +3 -3
- package/dist/typescript/components/typescript-interface.d.mts +3 -3
- package/dist/typescript/components/typescript-object.d.cts +3 -3
- package/dist/typescript/components/typescript-object.d.mts +3 -3
- package/dist/{vendor.cjs → vendor/index.cjs} +2 -2
- package/dist/{vendor.mjs → vendor/index.mjs} +2 -2
- package/package.json +25 -11
- package/dist/vendor.d.cts +0 -1
- package/dist/vendor.d.ts +0 -1
|
@@ -7237,28 +7237,6 @@ var require_picocolors = __commonJS({
|
|
|
7237
7237
|
}
|
|
7238
7238
|
});
|
|
7239
7239
|
|
|
7240
|
-
// src/vendor.ts
|
|
7241
|
-
init_esm_shims();
|
|
7242
|
-
|
|
7243
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/index.js
|
|
7244
|
-
init_esm_shims();
|
|
7245
|
-
var import_reactivity51 = __toESM(require_reactivity());
|
|
7246
|
-
|
|
7247
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/binder.js
|
|
7248
|
-
init_esm_shims();
|
|
7249
|
-
var import_reactivity8 = __toESM(require_reactivity());
|
|
7250
|
-
|
|
7251
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/context/binder.js
|
|
7252
|
-
init_esm_shims();
|
|
7253
|
-
|
|
7254
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/context.js
|
|
7255
|
-
init_esm_shims();
|
|
7256
|
-
var import_reactivity6 = __toESM(require_reactivity());
|
|
7257
|
-
|
|
7258
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/reactivity.js
|
|
7259
|
-
init_esm_shims();
|
|
7260
|
-
var import_reactivity5 = __toESM(require_reactivity());
|
|
7261
|
-
|
|
7262
7240
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/scheduler.js
|
|
7263
7241
|
init_esm_shims();
|
|
7264
7242
|
var immediateQueue = /* @__PURE__ */ new Set();
|
|
@@ -7328,135 +7306,17 @@ function takeJob() {
|
|
|
7328
7306
|
}
|
|
7329
7307
|
__name(takeJob, "takeJob");
|
|
7330
7308
|
|
|
7331
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
7309
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/refkey.js
|
|
7332
7310
|
init_esm_shims();
|
|
7333
|
-
var
|
|
7311
|
+
var import_reactivity4 = __toESM(require_reactivity());
|
|
7334
7312
|
|
|
7335
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
7313
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/reactivity.js
|
|
7336
7314
|
init_esm_shims();
|
|
7337
|
-
var
|
|
7338
|
-
var objectIds = /* @__PURE__ */ new WeakMap();
|
|
7339
|
-
var objId = 0;
|
|
7340
|
-
function getObjectKey(value) {
|
|
7341
|
-
if (objectIds.has(value)) {
|
|
7342
|
-
return objectIds.get(value);
|
|
7343
|
-
}
|
|
7344
|
-
const key = `o${objId++}`;
|
|
7345
|
-
objectIds.set(value, key);
|
|
7346
|
-
return key;
|
|
7347
|
-
}
|
|
7348
|
-
__name(getObjectKey, "getObjectKey");
|
|
7349
|
-
var REFKEYABLE = Symbol("Alloy.REFKEYABLE");
|
|
7350
|
-
function toRefkey(refkey2) {
|
|
7351
|
-
return untrack(() => refkey2[REFKEYABLE]());
|
|
7352
|
-
}
|
|
7353
|
-
__name(toRefkey, "toRefkey");
|
|
7354
|
-
function createSymbolRefkey(key) {
|
|
7355
|
-
const refkey2 = {
|
|
7356
|
-
key,
|
|
7357
|
-
[REFKEYABLE]() {
|
|
7358
|
-
return this;
|
|
7359
|
-
}
|
|
7360
|
-
};
|
|
7361
|
-
(0, import_reactivity.markRaw)(refkey2);
|
|
7362
|
-
return refkey2;
|
|
7363
|
-
}
|
|
7364
|
-
__name(createSymbolRefkey, "createSymbolRefkey");
|
|
7365
|
-
function isRefkeyable(value) {
|
|
7366
|
-
return typeof value === "object" && value !== null && Object.hasOwn(value, REFKEYABLE);
|
|
7367
|
-
}
|
|
7368
|
-
__name(isRefkeyable, "isRefkeyable");
|
|
7369
|
-
function isRefkey(value) {
|
|
7370
|
-
return isRefkeyable(value) && value[REFKEYABLE]() === value;
|
|
7371
|
-
}
|
|
7372
|
-
__name(isRefkey, "isRefkey");
|
|
7373
|
-
function isSymbolRefkey(value) {
|
|
7374
|
-
return isRefkey(value) && Object.hasOwn(value, "key");
|
|
7375
|
-
}
|
|
7376
|
-
__name(isSymbolRefkey, "isSymbolRefkey");
|
|
7377
|
-
function isMemberRefkey(value) {
|
|
7378
|
-
return isRefkey(value) && Object.hasOwn(value, "base");
|
|
7379
|
-
}
|
|
7380
|
-
__name(isMemberRefkey, "isMemberRefkey");
|
|
7381
|
-
function isNamekey(value) {
|
|
7382
|
-
return isRefkey(value) && Object.hasOwn(value, "name");
|
|
7383
|
-
}
|
|
7384
|
-
__name(isNamekey, "isNamekey");
|
|
7385
|
-
function getKey(value) {
|
|
7386
|
-
if (isRefkeyable(value)) {
|
|
7387
|
-
const refkey2 = toRefkey(value);
|
|
7388
|
-
if (isSymbolRefkey(refkey2)) {
|
|
7389
|
-
return refkey2.key;
|
|
7390
|
-
} else {
|
|
7391
|
-
return getObjectKey(value);
|
|
7392
|
-
}
|
|
7393
|
-
} else if (typeof value === "object" && value !== null) {
|
|
7394
|
-
return getObjectKey(value);
|
|
7395
|
-
} else {
|
|
7396
|
-
return `s${String(value)}`;
|
|
7397
|
-
}
|
|
7398
|
-
}
|
|
7399
|
-
__name(getKey, "getKey");
|
|
7400
|
-
var knownRefkeys = /* @__PURE__ */ new Map();
|
|
7401
|
-
function refkey(...args) {
|
|
7402
|
-
const keys = args.length === 0 ? [
|
|
7403
|
-
getKey({})
|
|
7404
|
-
] : args.map((v) => getKey(v));
|
|
7405
|
-
const compositeKey = keys.join("\u2063");
|
|
7406
|
-
if (knownRefkeys.has(compositeKey)) {
|
|
7407
|
-
return knownRefkeys.get(compositeKey);
|
|
7408
|
-
}
|
|
7409
|
-
const key = createSymbolRefkey(compositeKey);
|
|
7410
|
-
knownRefkeys.set(compositeKey, key);
|
|
7411
|
-
return key;
|
|
7412
|
-
}
|
|
7413
|
-
__name(refkey, "refkey");
|
|
7414
|
-
function namekey(name, options = {}) {
|
|
7415
|
-
return {
|
|
7416
|
-
key: getObjectKey({}),
|
|
7417
|
-
name,
|
|
7418
|
-
options,
|
|
7419
|
-
[REFKEYABLE]() {
|
|
7420
|
-
return this;
|
|
7421
|
-
}
|
|
7422
|
-
};
|
|
7423
|
-
}
|
|
7424
|
-
__name(namekey, "namekey");
|
|
7425
|
-
function memberRefkey(base, ...members) {
|
|
7426
|
-
if (members.length < 1) {
|
|
7427
|
-
throw new Error("memberRefkey needs at least one member");
|
|
7428
|
-
}
|
|
7429
|
-
if (members.length === 1) {
|
|
7430
|
-
return {
|
|
7431
|
-
base: toRefkey(base),
|
|
7432
|
-
member: typeof members[0] === "string" ? members[0] : toRefkey(members[0]),
|
|
7433
|
-
[REFKEYABLE]() {
|
|
7434
|
-
return this;
|
|
7435
|
-
}
|
|
7436
|
-
};
|
|
7437
|
-
}
|
|
7438
|
-
const lastMember = members.at(-1);
|
|
7439
|
-
return {
|
|
7440
|
-
base: memberRefkey(base, ...members.slice(0, -1)),
|
|
7441
|
-
member: typeof lastMember === "string" ? lastMember : toRefkey(lastMember),
|
|
7442
|
-
[REFKEYABLE]() {
|
|
7443
|
-
return this;
|
|
7444
|
-
}
|
|
7445
|
-
};
|
|
7446
|
-
}
|
|
7447
|
-
__name(memberRefkey, "memberRefkey");
|
|
7448
|
-
function inspectRefkey(refkey2) {
|
|
7449
|
-
const unwrapped = refkey2[REFKEYABLE]();
|
|
7450
|
-
const text2 = isMemberRefkey(unwrapped) ? `memberRefkey[${inspectRefkey(unwrapped.base)} -> ${typeof unwrapped.member === "string" ? unwrapped.member : inspectRefkey(unwrapped.member)}]` : `refkey[${unwrapped.key}]`;
|
|
7451
|
-
return text2;
|
|
7452
|
-
}
|
|
7453
|
-
__name(inspectRefkey, "inspectRefkey");
|
|
7454
|
-
function unresolvedRefkey(refkey2) {
|
|
7455
|
-
return `<Unresolved Symbol: ${inspectRefkey(refkey2)}>`;
|
|
7456
|
-
}
|
|
7457
|
-
__name(unresolvedRefkey, "unresolvedRefkey");
|
|
7315
|
+
var import_reactivity3 = __toESM(require_reactivity());
|
|
7458
7316
|
|
|
7459
7317
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/tracer.js
|
|
7318
|
+
init_esm_shims();
|
|
7319
|
+
var import_reactivity = __toESM(require_reactivity());
|
|
7460
7320
|
var traceEnv = process.env.ALLOY_TRACE ?? "";
|
|
7461
7321
|
var tracePhases = new Set(traceEnv === "" ? [] : traceEnv.split(",").map((t) => t.trim()));
|
|
7462
7322
|
if (tracePhases.size > 0) {
|
|
@@ -7717,7 +7577,7 @@ function traceEffect(phase, cb) {
|
|
|
7717
7577
|
}
|
|
7718
7578
|
let first = true;
|
|
7719
7579
|
const triggerIds = /* @__PURE__ */ new Set();
|
|
7720
|
-
(0,
|
|
7580
|
+
(0, import_reactivity.effect)(() => {
|
|
7721
7581
|
if (first) {
|
|
7722
7582
|
cb();
|
|
7723
7583
|
first = false;
|
|
@@ -7907,7 +7767,7 @@ function root(fn, options) {
|
|
|
7907
7767
|
takesSymbols: false,
|
|
7908
7768
|
takenSymbols: void 0,
|
|
7909
7769
|
childrenWithContent: 0,
|
|
7910
|
-
isEmpty: (0,
|
|
7770
|
+
isEmpty: (0, import_reactivity3.ref)(true),
|
|
7911
7771
|
isRoot: true
|
|
7912
7772
|
};
|
|
7913
7773
|
globalContext = context;
|
|
@@ -7925,14 +7785,14 @@ function root(fn, options) {
|
|
|
7925
7785
|
}
|
|
7926
7786
|
__name(root, "root");
|
|
7927
7787
|
function untrack(fn) {
|
|
7928
|
-
(0,
|
|
7788
|
+
(0, import_reactivity3.pauseTracking)();
|
|
7929
7789
|
const v = fn();
|
|
7930
|
-
(0,
|
|
7790
|
+
(0, import_reactivity3.resetTracking)();
|
|
7931
7791
|
return v;
|
|
7932
7792
|
}
|
|
7933
7793
|
__name(untrack, "untrack");
|
|
7934
7794
|
function memo(fn, equal) {
|
|
7935
|
-
const o = (0,
|
|
7795
|
+
const o = (0, import_reactivity3.shallowRef)();
|
|
7936
7796
|
effect2((prev) => {
|
|
7937
7797
|
const res = fn();
|
|
7938
7798
|
(!equal || prev !== res) && (o.value = res);
|
|
@@ -7956,10 +7816,10 @@ function effect2(fn, current) {
|
|
|
7956
7816
|
const d = context.disposables;
|
|
7957
7817
|
context.disposables = [];
|
|
7958
7818
|
for (let k = 0, len = d.length; k < len; k++) d[k]();
|
|
7959
|
-
final && (0,
|
|
7819
|
+
final && (0, import_reactivity3.stop)(runner);
|
|
7960
7820
|
}, "cleanupFn");
|
|
7961
7821
|
onCleanup(() => cleanupFn(true));
|
|
7962
|
-
const runner = (0,
|
|
7822
|
+
const runner = (0, import_reactivity3.effect)(() => {
|
|
7963
7823
|
cleanupFn(false);
|
|
7964
7824
|
const oldContext = globalContext;
|
|
7965
7825
|
globalContext = context;
|
|
@@ -7975,12 +7835,12 @@ function effect2(fn, current) {
|
|
|
7975
7835
|
scheduler: scheduler(),
|
|
7976
7836
|
onTrack(event) {
|
|
7977
7837
|
trace(TracePhase.effect.track, () => {
|
|
7978
|
-
return `tracking ${(0,
|
|
7838
|
+
return `tracking ${(0, import_reactivity3.isRef)(event.target) ? `Ref:${refId(event.target)}` : event.target}, ${String(event.key)}`;
|
|
7979
7839
|
});
|
|
7980
7840
|
},
|
|
7981
7841
|
onTrigger(event) {
|
|
7982
7842
|
trace(TracePhase.effect.trigger, () => {
|
|
7983
|
-
return `triggering ${(0,
|
|
7843
|
+
return `triggering ${(0, import_reactivity3.isRef)(event.target) ? `Ref:${refId(event.target)}` : event.target}, ${String(event.key)}`;
|
|
7984
7844
|
});
|
|
7985
7845
|
}
|
|
7986
7846
|
});
|
|
@@ -8018,17 +7878,127 @@ function refId(ref5) {
|
|
|
8018
7878
|
}
|
|
8019
7879
|
__name(refId, "refId");
|
|
8020
7880
|
|
|
8021
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
7881
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/refkey.js
|
|
7882
|
+
var objectIds = /* @__PURE__ */ new WeakMap();
|
|
7883
|
+
var objId = 0;
|
|
7884
|
+
function getObjectKey(value) {
|
|
7885
|
+
if (objectIds.has(value)) {
|
|
7886
|
+
return objectIds.get(value);
|
|
7887
|
+
}
|
|
7888
|
+
const key = `o${objId++}`;
|
|
7889
|
+
objectIds.set(value, key);
|
|
7890
|
+
return key;
|
|
7891
|
+
}
|
|
7892
|
+
__name(getObjectKey, "getObjectKey");
|
|
7893
|
+
var REFKEYABLE = Symbol("Alloy.REFKEYABLE");
|
|
7894
|
+
function toRefkey(refkey2) {
|
|
7895
|
+
return untrack(() => refkey2[REFKEYABLE]());
|
|
7896
|
+
}
|
|
7897
|
+
__name(toRefkey, "toRefkey");
|
|
7898
|
+
function createSymbolRefkey(key) {
|
|
7899
|
+
const refkey2 = {
|
|
7900
|
+
key,
|
|
7901
|
+
[REFKEYABLE]() {
|
|
7902
|
+
return this;
|
|
7903
|
+
}
|
|
7904
|
+
};
|
|
7905
|
+
(0, import_reactivity4.markRaw)(refkey2);
|
|
7906
|
+
return refkey2;
|
|
7907
|
+
}
|
|
7908
|
+
__name(createSymbolRefkey, "createSymbolRefkey");
|
|
7909
|
+
function isRefkeyable(value) {
|
|
7910
|
+
return typeof value === "object" && value !== null && Object.hasOwn(value, REFKEYABLE);
|
|
7911
|
+
}
|
|
7912
|
+
__name(isRefkeyable, "isRefkeyable");
|
|
7913
|
+
function isRefkey(value) {
|
|
7914
|
+
return isRefkeyable(value) && value[REFKEYABLE]() === value;
|
|
7915
|
+
}
|
|
7916
|
+
__name(isRefkey, "isRefkey");
|
|
7917
|
+
function isSymbolRefkey(value) {
|
|
7918
|
+
return isRefkey(value) && Object.hasOwn(value, "key");
|
|
7919
|
+
}
|
|
7920
|
+
__name(isSymbolRefkey, "isSymbolRefkey");
|
|
7921
|
+
function isMemberRefkey(value) {
|
|
7922
|
+
return isRefkey(value) && Object.hasOwn(value, "base");
|
|
7923
|
+
}
|
|
7924
|
+
__name(isMemberRefkey, "isMemberRefkey");
|
|
7925
|
+
function isNamekey(value) {
|
|
7926
|
+
return isRefkey(value) && Object.hasOwn(value, "name");
|
|
7927
|
+
}
|
|
7928
|
+
__name(isNamekey, "isNamekey");
|
|
7929
|
+
function getKey(value) {
|
|
7930
|
+
if (isRefkeyable(value)) {
|
|
7931
|
+
const refkey2 = toRefkey(value);
|
|
7932
|
+
if (isSymbolRefkey(refkey2)) {
|
|
7933
|
+
return refkey2.key;
|
|
7934
|
+
} else {
|
|
7935
|
+
return getObjectKey(value);
|
|
7936
|
+
}
|
|
7937
|
+
} else if (typeof value === "object" && value !== null) {
|
|
7938
|
+
return getObjectKey(value);
|
|
7939
|
+
} else {
|
|
7940
|
+
return `s${String(value)}`;
|
|
7941
|
+
}
|
|
7942
|
+
}
|
|
7943
|
+
__name(getKey, "getKey");
|
|
7944
|
+
var knownRefkeys = /* @__PURE__ */ new Map();
|
|
7945
|
+
function refkey(...args) {
|
|
7946
|
+
const keys = args.length === 0 ? [
|
|
7947
|
+
getKey({})
|
|
7948
|
+
] : args.map((v) => getKey(v));
|
|
7949
|
+
const compositeKey = keys.join("\u2063");
|
|
7950
|
+
if (knownRefkeys.has(compositeKey)) {
|
|
7951
|
+
return knownRefkeys.get(compositeKey);
|
|
7952
|
+
}
|
|
7953
|
+
const key = createSymbolRefkey(compositeKey);
|
|
7954
|
+
knownRefkeys.set(compositeKey, key);
|
|
7955
|
+
return key;
|
|
7956
|
+
}
|
|
7957
|
+
__name(refkey, "refkey");
|
|
7958
|
+
function namekey(name, options = {}) {
|
|
7959
|
+
return {
|
|
7960
|
+
key: getObjectKey({}),
|
|
7961
|
+
name,
|
|
7962
|
+
options,
|
|
7963
|
+
[REFKEYABLE]() {
|
|
7964
|
+
return this;
|
|
7965
|
+
}
|
|
7966
|
+
};
|
|
7967
|
+
}
|
|
7968
|
+
__name(namekey, "namekey");
|
|
7969
|
+
function memberRefkey(base, ...members) {
|
|
7970
|
+
if (members.length < 1) {
|
|
7971
|
+
throw new Error("memberRefkey needs at least one member");
|
|
7972
|
+
}
|
|
7973
|
+
if (members.length === 1) {
|
|
7974
|
+
return {
|
|
7975
|
+
base: toRefkey(base),
|
|
7976
|
+
member: typeof members[0] === "string" ? members[0] : toRefkey(members[0]),
|
|
7977
|
+
[REFKEYABLE]() {
|
|
7978
|
+
return this;
|
|
7979
|
+
}
|
|
7980
|
+
};
|
|
7981
|
+
}
|
|
7982
|
+
const lastMember = members.at(-1);
|
|
7983
|
+
return {
|
|
7984
|
+
base: memberRefkey(base, ...members.slice(0, -1)),
|
|
7985
|
+
member: typeof lastMember === "string" ? lastMember : toRefkey(lastMember),
|
|
7986
|
+
[REFKEYABLE]() {
|
|
7987
|
+
return this;
|
|
7988
|
+
}
|
|
7989
|
+
};
|
|
7990
|
+
}
|
|
7991
|
+
__name(memberRefkey, "memberRefkey");
|
|
7992
|
+
function inspectRefkey(refkey2) {
|
|
7993
|
+
const unwrapped = refkey2[REFKEYABLE]();
|
|
7994
|
+
const text2 = isMemberRefkey(unwrapped) ? `memberRefkey[${inspectRefkey(unwrapped.base)} -> ${typeof unwrapped.member === "string" ? unwrapped.member : inspectRefkey(unwrapped.member)}]` : `refkey[${unwrapped.key}]`;
|
|
7995
|
+
return text2;
|
|
7996
|
+
}
|
|
7997
|
+
__name(inspectRefkey, "inspectRefkey");
|
|
7998
|
+
function unresolvedRefkey(refkey2) {
|
|
7999
|
+
return `<Unresolved Symbol: ${inspectRefkey(refkey2)}>`;
|
|
8000
|
+
}
|
|
8001
|
+
__name(unresolvedRefkey, "unresolvedRefkey");
|
|
8032
8002
|
|
|
8033
8003
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/runtime/intrinsic.js
|
|
8034
8004
|
init_esm_shims();
|
|
@@ -8047,37 +8017,13 @@ __name(isIntrinsicElement, "isIntrinsicElement");
|
|
|
8047
8017
|
var intrinsicElementKey = Symbol();
|
|
8048
8018
|
|
|
8049
8019
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/sti.js
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
fn.children = (...children2) => {
|
|
8055
|
-
const propsWithChildren = {
|
|
8056
|
-
...props ?? {},
|
|
8057
|
-
children: children2
|
|
8058
|
-
};
|
|
8059
|
-
return () => createIntrinsic(name, propsWithChildren);
|
|
8060
|
-
};
|
|
8061
|
-
fn.code = (template, ...substitutions) => {
|
|
8062
|
-
const propsWithChildren = {
|
|
8063
|
-
...args[0] ?? {},
|
|
8064
|
-
children: code(template, ...substitutions)
|
|
8065
|
-
};
|
|
8066
|
-
return () => createIntrinsic(name, propsWithChildren);
|
|
8067
|
-
};
|
|
8068
|
-
fn.text = (template, ...substitutions) => {
|
|
8069
|
-
const propsWithChildren = {
|
|
8070
|
-
...args[0] ?? {},
|
|
8071
|
-
children: text(template, ...substitutions)
|
|
8072
|
-
};
|
|
8073
|
-
return () => createIntrinsic(name, propsWithChildren);
|
|
8074
|
-
};
|
|
8075
|
-
return fn;
|
|
8076
|
-
};
|
|
8077
|
-
}
|
|
8078
|
-
__name(sti, "sti");
|
|
8020
|
+
init_esm_shims();
|
|
8021
|
+
|
|
8022
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/code.js
|
|
8023
|
+
init_esm_shims();
|
|
8079
8024
|
|
|
8080
8025
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/components/stc/sti.js
|
|
8026
|
+
init_esm_shims();
|
|
8081
8027
|
var indent = sti("indent");
|
|
8082
8028
|
var hbr = sti("hbr");
|
|
8083
8029
|
|
|
@@ -8253,7 +8199,39 @@ function* childTokens(template, substitutions) {
|
|
|
8253
8199
|
}
|
|
8254
8200
|
__name(childTokens, "childTokens");
|
|
8255
8201
|
|
|
8202
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/sti.js
|
|
8203
|
+
function sti(name) {
|
|
8204
|
+
return (...args) => {
|
|
8205
|
+
const props = args[0];
|
|
8206
|
+
const fn = /* @__PURE__ */ __name(() => createIntrinsic(name, props), "fn");
|
|
8207
|
+
fn.children = (...children2) => {
|
|
8208
|
+
const propsWithChildren = {
|
|
8209
|
+
...props ?? {},
|
|
8210
|
+
children: children2
|
|
8211
|
+
};
|
|
8212
|
+
return () => createIntrinsic(name, propsWithChildren);
|
|
8213
|
+
};
|
|
8214
|
+
fn.code = (template, ...substitutions) => {
|
|
8215
|
+
const propsWithChildren = {
|
|
8216
|
+
...args[0] ?? {},
|
|
8217
|
+
children: code(template, ...substitutions)
|
|
8218
|
+
};
|
|
8219
|
+
return () => createIntrinsic(name, propsWithChildren);
|
|
8220
|
+
};
|
|
8221
|
+
fn.text = (template, ...substitutions) => {
|
|
8222
|
+
const propsWithChildren = {
|
|
8223
|
+
...args[0] ?? {},
|
|
8224
|
+
children: text(template, ...substitutions)
|
|
8225
|
+
};
|
|
8226
|
+
return () => createIntrinsic(name, propsWithChildren);
|
|
8227
|
+
};
|
|
8228
|
+
return fn;
|
|
8229
|
+
};
|
|
8230
|
+
}
|
|
8231
|
+
__name(sti, "sti");
|
|
8232
|
+
|
|
8256
8233
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/stc.js
|
|
8234
|
+
init_esm_shims();
|
|
8257
8235
|
function stc(Component) {
|
|
8258
8236
|
return (...args) => {
|
|
8259
8237
|
const fn = /* @__PURE__ */ __name(() => Component(args[0]), "fn");
|
|
@@ -8295,6 +8273,8 @@ function stc(Component) {
|
|
|
8295
8273
|
__name(stc, "stc");
|
|
8296
8274
|
|
|
8297
8275
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/context.js
|
|
8276
|
+
init_esm_shims();
|
|
8277
|
+
var import_reactivity6 = __toESM(require_reactivity());
|
|
8298
8278
|
function useContext(context) {
|
|
8299
8279
|
let current = getContext();
|
|
8300
8280
|
while (current) {
|
|
@@ -8336,6 +8316,7 @@ function createNamedContext(name, defaultValue) {
|
|
|
8336
8316
|
__name(createNamedContext, "createNamedContext");
|
|
8337
8317
|
|
|
8338
8318
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/context/binder.js
|
|
8319
|
+
init_esm_shims();
|
|
8339
8320
|
var BinderContext = createNamedContext("Binder");
|
|
8340
8321
|
function useBinder() {
|
|
8341
8322
|
return useContext(BinderContext);
|
|
@@ -8367,6 +8348,8 @@ function useMemberScope() {
|
|
|
8367
8348
|
__name(useMemberScope, "useMemberScope");
|
|
8368
8349
|
|
|
8369
8350
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/binder.js
|
|
8351
|
+
init_esm_shims();
|
|
8352
|
+
var import_reactivity8 = __toESM(require_reactivity());
|
|
8370
8353
|
function createOutputBinder(options = {}) {
|
|
8371
8354
|
const binder = {
|
|
8372
8355
|
resolveDeclarationByKey,
|
|
@@ -8667,16 +8650,18 @@ function getSymbolCreatorSymbol() {
|
|
|
8667
8650
|
}
|
|
8668
8651
|
__name(getSymbolCreatorSymbol, "getSymbolCreatorSymbol");
|
|
8669
8652
|
|
|
8670
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
8653
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/jsx-runtime.js
|
|
8671
8654
|
init_esm_shims();
|
|
8672
8655
|
|
|
8673
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
8656
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/index.js
|
|
8674
8657
|
init_esm_shims();
|
|
8658
|
+
var import_reactivity51 = __toESM(require_reactivity());
|
|
8675
8659
|
|
|
8676
|
-
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/
|
|
8660
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/components/index.js
|
|
8677
8661
|
init_esm_shims();
|
|
8678
8662
|
|
|
8679
8663
|
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/components/AppendFile.js
|
|
8664
|
+
init_esm_shims();
|
|
8680
8665
|
var import_reactivity15 = __toESM(require_reactivity());
|
|
8681
8666
|
|
|
8682
8667
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
@@ -12382,22 +12367,14 @@ async function writeOutput(output, basePath = "") {
|
|
|
12382
12367
|
});
|
|
12383
12368
|
}
|
|
12384
12369
|
__name(writeOutput, "writeOutput");
|
|
12385
|
-
|
|
12386
|
-
|
|
12387
|
-
var
|
|
12388
|
-
|
|
12389
|
-
|
|
12390
|
-
|
|
12391
|
-
|
|
12392
|
-
var
|
|
12393
|
-
var export_shallowReactive = import_reactivity51.shallowReactive;
|
|
12394
|
-
var export_shallowRef = import_reactivity51.shallowRef;
|
|
12395
|
-
var export_toRaw = import_reactivity51.toRaw;
|
|
12396
|
-
var export_toRef = import_reactivity51.toRef;
|
|
12397
|
-
var export_toRefs = import_reactivity51.toRefs;
|
|
12398
|
-
var export_track = import_reactivity51.track;
|
|
12399
|
-
var export_trigger = import_reactivity51.trigger;
|
|
12400
|
-
var export_watch = import_reactivity51.watch;
|
|
12370
|
+
|
|
12371
|
+
// ../../node_modules/.pnpm/@alloy-js+core@0.22.0_patch_hash=0e69f3f97ccf7d3795cacc31cf302e316007d4cbf3f8bdf16ef33eee8f6a9310/node_modules/@alloy-js/core/dist/src/jsx-runtime.js
|
|
12372
|
+
var JSX;
|
|
12373
|
+
function jsx(type, props) {
|
|
12374
|
+
return createComponent(type, props);
|
|
12375
|
+
}
|
|
12376
|
+
__name(jsx, "jsx");
|
|
12377
|
+
var jsxs = jsx;
|
|
12401
12378
|
/*! Bundled license information:
|
|
12402
12379
|
|
|
12403
12380
|
@vue/shared/dist/shared.cjs.prod.js:
|
|
@@ -12417,4 +12394,4 @@ var export_watch = import_reactivity51.watch;
|
|
|
12417
12394
|
**)
|
|
12418
12395
|
*/
|
|
12419
12396
|
|
|
12420
|
-
export { AppendFile, AppendRegion, AssignmentContext, BasicScope, BasicSymbol, BinderContext, Block, CopyFile, Declaration, DeclarationContext, For, FormatOptions, Indent, List, Match, MemberContext, MemberDeclaration, MemberDeclarationContext, MemberName, MemberScope, Name, NamePolicyContext, Output, OutputDeclarationSpace, OutputMemberSpace, OutputScope, OutputSymbol, Prose, REFKEYABLE, RENDERABLE, ReactiveUnionSet, ReferenceOrContent, Scope, ScopeContext, Show, SourceDirectory, SourceDirectoryContext, SourceFile, SourceFileContext, StatementList, Switch, SymbolTable, TO_SYMBOL, TemplateFile, TemplateVariable,
|
|
12397
|
+
export { AppendFile, AppendRegion, AssignmentContext, BasicScope, BasicSymbol, BinderContext, Block, CopyFile, Declaration, DeclarationContext, For, FormatOptions, Indent, JSX, List, Match, MemberContext, MemberDeclaration, MemberDeclarationContext, MemberName, MemberScope, Name, NamePolicyContext, Output, OutputDeclarationSpace, OutputMemberSpace, OutputScope, OutputSymbol, Prose, REFKEYABLE, RENDERABLE, ReactiveUnionSet, ReferenceOrContent, Scope, ScopeContext, Show, SourceDirectory, SourceDirectoryContext, SourceFile, SourceFileContext, StatementList, Switch, SymbolTable, TO_SYMBOL, TemplateFile, TemplateVariable, UpdateFile, Wrap, baseListPropsToMapJoinArgs, children, childrenArray, code, contextsByKey, createAssignmentContext, createComponent, createContentSlot, createContext, createCustomContext, createDeclarationTap, createFileResource, createFormatOptionsContextFor, createIntrinsic, createMemberTap, createNamePolicy, createNamedContext, createOutputBinder, createRenderTreeHook, createResource, createScopeTap, createSourceFileTap, createSymbolSlot, createTap, decl, defaultProps, effect2 as effect, emitSymbol, findKeyedChild, findKeyedChildren, findUnkeyedChildren, flushJobs, flushJobsAsync, getAssignmentSymbol, getContext, getContextForRenderNode, getElementCache, getSymbolCreator, getSymbolCreatorSymbol, import_reactivity51 as import_reactivity, init_esm_shims, inspectRefkey, instantiateTakenMembersTo, intrinsicElementKey, isComponentCreator, isCustomContext, isIntrinsicElement, isKeyedChild, isLibrarySymbolReference, isMemberRefkey, isNamekey, isPrintHook, isRefkey, isRefkeyable, isRenderableObject, isSymbolRefkey, join2 as join, jsx, jsxs, mapJoin, matchTag, memberRefkey, memo, mergeProps, moveTakenMembersTo, namekey, notifyContentState, onCleanup, popStack, printHookTag, printRenderStack, printTree, pushStack, queueJob, refId, refkey, render, renderAsync, renderTree, resolve, root, scheduler, shouldDebug, sourceFilesForTree, sourceFilesForTreeAsync, splitProps, stc, sti, symbolForRefkey, taggedComponent, takeSymbols, text, toRefkey, trackPromise, traverseOutput, unresolvedRefkey, untrack, useBinder, useContext, useFormatOptions, useMemberContext, useMemberDeclaration, useMemberScope, useNamePolicy, useScope, writeOutput };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core4 from "@alloy-js/core";
|
|
3
3
|
import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/output.d.ts
|
|
@@ -12,7 +12,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Ou
|
|
|
12
12
|
/**
|
|
13
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
14
|
*/
|
|
15
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core4.Children;
|
|
16
16
|
declare type __ΩOutputProps = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginContext } from "../../powerlines/src/types/context.mjs";
|
|
2
2
|
import { OutputProps as OutputProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core8 from "@alloy-js/core";
|
|
4
4
|
|
|
5
5
|
//#region src/core/components/output.d.ts
|
|
6
6
|
interface OutputProps<TContext extends PluginContext = PluginContext> extends OutputProps$1 {
|
|
@@ -12,7 +12,7 @@ interface OutputProps<TContext extends PluginContext = PluginContext> extends Ou
|
|
|
12
12
|
/**
|
|
13
13
|
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
14
14
|
*/
|
|
15
|
-
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>):
|
|
15
|
+
declare function Output<TContext extends PluginContext = PluginContext>(props: OutputProps<TContext>): _alloy_js_core8.Children;
|
|
16
16
|
declare type __ΩOutputProps = any[];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Output, OutputProps, __ΩOutputProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core1 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core1.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentProps } from "../../types/components.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _alloy_js_core0 from "@alloy-js/core";
|
|
3
3
|
|
|
4
4
|
//#region src/core/components/single-line-comment.d.ts
|
|
5
5
|
type SingleLineCommentVariant = "double-slash" | "triple-slash" | "slash-star" | "slash-star-star" | "markdown";
|
|
@@ -15,7 +15,7 @@ interface SingleLineCommentProps extends ComponentProps {
|
|
|
15
15
|
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
16
16
|
* are broken into multiple lines
|
|
17
17
|
*/
|
|
18
|
-
declare function SingleLineComment(props: SingleLineCommentProps):
|
|
18
|
+
declare function SingleLineComment(props: SingleLineCommentProps): _alloy_js_core0.Children;
|
|
19
19
|
declare type __ΩSingleLineCommentVariant = any[];
|
|
20
20
|
declare type __ΩSingleLineCommentProps = any[];
|
|
21
21
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StoragePreset } from "../../powerlines/src/types/fs.cjs";
|
|
2
2
|
import { ComponentProps } from "../../types/components.cjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _alloy_js_core14 from "@alloy-js/core";
|
|
4
4
|
import { SourceFileProps as SourceFileProps$1 } from "@powerlines/plugin-alloy/vendor";
|
|
5
5
|
|
|
6
6
|
//#region src/core/components/source-file.d.ts
|
|
@@ -25,7 +25,7 @@ type SourceFileProps = SourceFileProps$1 & ComponentProps & {
|
|
|
25
25
|
* @param props - The properties for the source file.
|
|
26
26
|
* @returns The rendered source file component.
|
|
27
27
|
*/
|
|
28
|
-
declare function SourceFile(props: SourceFileProps):
|
|
28
|
+
declare function SourceFile(props: SourceFileProps): _alloy_js_core14.Children;
|
|
29
29
|
declare type __ΩSourceFileProps = any[];
|
|
30
30
|
//#endregion
|
|
31
31
|
export { SourceFile, SourceFileProps, __ΩSourceFileProps };
|