@rizom/site-rizom-ai 0.2.0-alpha.267 → 0.2.0-alpha.269
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/index.js +87 -49
- package/dist/index.js.map +7 -7
- package/package.json +1 -1
- package/src/living-memory.tsx +1 -1
- package/src/opening.tsx +5 -6
- package/src/story/living-organism.tsx +24 -4
- package/src/story.css +31 -8
package/dist/index.js
CHANGED
|
@@ -38319,6 +38319,11 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
38319
38319
|
min-height: calc(100svh - var(--bar-height, 4.6rem));
|
|
38320
38320
|
max-width: var(--words);
|
|
38321
38321
|
}
|
|
38322
|
+
/* The opening (and the Ask room's first chapter, which follows its drawing in
|
|
38323
|
+
the column) is the words' width, so the drawing has its room beside it. */
|
|
38324
|
+
.chapter--opening {
|
|
38325
|
+
max-width: var(--words);
|
|
38326
|
+
}
|
|
38322
38327
|
/* A chapter's eyebrow is the site's label: mono, small, tracked, in the room's accent. */
|
|
38323
38328
|
.chapter .eyebrow {
|
|
38324
38329
|
margin: 0 0 1.4rem;
|
|
@@ -38391,16 +38396,21 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
38391
38396
|
font-style: italic;
|
|
38392
38397
|
font-size: 1.05rem;
|
|
38393
38398
|
}
|
|
38394
|
-
|
|
38399
|
+
/* The chapters' lists: the science's dimensions and the parts of the organism,
|
|
38400
|
+
the arc and the rooms are one kind of list. A part that is a room is a door. */
|
|
38401
|
+
.parts,
|
|
38402
|
+
.dims {
|
|
38395
38403
|
margin: 2rem 0 0;
|
|
38396
38404
|
display: grid;
|
|
38397
38405
|
gap: 1.2rem;
|
|
38398
38406
|
}
|
|
38399
|
-
.parts div
|
|
38407
|
+
.parts div,
|
|
38408
|
+
.dims div {
|
|
38400
38409
|
padding-left: 1.1rem;
|
|
38401
38410
|
border-left: 1px solid rgb(from var(--color-accent) r g b / 0.35);
|
|
38402
38411
|
}
|
|
38403
|
-
.parts dt
|
|
38412
|
+
.parts dt,
|
|
38413
|
+
.dims dt {
|
|
38404
38414
|
font-family: var(--font-display);
|
|
38405
38415
|
font-size: 1.2rem;
|
|
38406
38416
|
line-height: 1.3;
|
|
@@ -38409,12 +38419,25 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
38409
38419
|
"SOFT" 70,
|
|
38410
38420
|
"opsz" 24;
|
|
38411
38421
|
}
|
|
38412
|
-
.parts dd
|
|
38422
|
+
.parts dd,
|
|
38423
|
+
.dims dd {
|
|
38413
38424
|
margin: 0.3rem 0 0;
|
|
38414
38425
|
font-size: 0.98rem;
|
|
38415
38426
|
line-height: 1.65;
|
|
38416
38427
|
color: var(--color-text-muted);
|
|
38417
38428
|
}
|
|
38429
|
+
.parts dt a {
|
|
38430
|
+
color: inherit;
|
|
38431
|
+
text-decoration: underline;
|
|
38432
|
+
text-decoration-color: rgb(from var(--color-accent) r g b / 0.5);
|
|
38433
|
+
text-decoration-thickness: 1px;
|
|
38434
|
+
text-underline-offset: 0.2em;
|
|
38435
|
+
}
|
|
38436
|
+
.parts dt a:hover,
|
|
38437
|
+
.parts dt a:focus-visible {
|
|
38438
|
+
color: var(--color-accent);
|
|
38439
|
+
text-decoration-color: currentColor;
|
|
38440
|
+
}
|
|
38418
38441
|
.status {
|
|
38419
38442
|
display: block;
|
|
38420
38443
|
margin-top: 0.3rem;
|
|
@@ -39563,6 +39586,10 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39563
39586
|
--words: 34rem;
|
|
39564
39587
|
--strip-h: 34svh;
|
|
39565
39588
|
}
|
|
39589
|
+
/* The room page has no figure to hold the strip's height in the flow. */
|
|
39590
|
+
.story--room .chapters {
|
|
39591
|
+
padding-top: var(--strip-h);
|
|
39592
|
+
}
|
|
39566
39593
|
.chapter.chapter--opening {
|
|
39567
39594
|
min-height: auto;
|
|
39568
39595
|
justify-content: flex-start;
|
|
@@ -39575,9 +39602,6 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39575
39602
|
font-size: 1.05rem;
|
|
39576
39603
|
margin-top: 1rem;
|
|
39577
39604
|
}
|
|
39578
|
-
.living-org[data-stage="0"] {
|
|
39579
|
-
background: none;
|
|
39580
|
-
}
|
|
39581
39605
|
.story:has(.figure:not([data-stage="0"])) .net-layer {
|
|
39582
39606
|
opacity: 0;
|
|
39583
39607
|
}
|
|
@@ -39746,7 +39770,6 @@ var story_default = `/* The story pages: chapters beside one drawing, under the
|
|
|
39746
39770
|
.story.is-asked .net-mark i {
|
|
39747
39771
|
animation: none;
|
|
39748
39772
|
}
|
|
39749
|
-
}
|
|
39750
39773
|
|
|
39751
39774
|
@media (prefers-reduced-motion: reduce) {
|
|
39752
39775
|
.net-kin,
|
|
@@ -40441,7 +40464,13 @@ var livingOrganism = organism({
|
|
|
40441
40464
|
...Object.fromEntries(economy.map((_2, i) => [`E${i + 1}`, i % 3 === 0 ? "lantern" : ""]))
|
|
40442
40465
|
},
|
|
40443
40466
|
stages: [
|
|
40444
|
-
{
|
|
40467
|
+
{
|
|
40468
|
+
L: one["L"] ?? [110, 300, 10, 1],
|
|
40469
|
+
T1: at(small[0], 5),
|
|
40470
|
+
T2: at(small[1], 5),
|
|
40471
|
+
T3: at(small[2], 5),
|
|
40472
|
+
...Object.fromEntries(net.map((p, i) => [`N${i + 1}`, at(p, 5)]))
|
|
40473
|
+
},
|
|
40445
40474
|
{
|
|
40446
40475
|
L: [C3, 300, 8, 1],
|
|
40447
40476
|
T1: at(team2[0], 6),
|
|
@@ -40484,7 +40513,19 @@ var livingOrganism = organism({
|
|
|
40484
40513
|
...uniqueEconomyLinks
|
|
40485
40514
|
],
|
|
40486
40515
|
visible: [
|
|
40487
|
-
[
|
|
40516
|
+
[
|
|
40517
|
+
"t12",
|
|
40518
|
+
"t23",
|
|
40519
|
+
"t31",
|
|
40520
|
+
"you-team",
|
|
40521
|
+
"team-net",
|
|
40522
|
+
"n12",
|
|
40523
|
+
"n23",
|
|
40524
|
+
"n34",
|
|
40525
|
+
"n45",
|
|
40526
|
+
"n51",
|
|
40527
|
+
"n13"
|
|
40528
|
+
],
|
|
40488
40529
|
["t12", "t23", "t31", "s1", "s2", "s3"],
|
|
40489
40530
|
["t12", "t23", "t31", "s1", "s2", "s3", "ai"],
|
|
40490
40531
|
[
|
|
@@ -55527,7 +55568,7 @@ var growthSchema = exports_external.object({
|
|
|
55527
55568
|
var ROOMS = {
|
|
55528
55569
|
You: "/brain",
|
|
55529
55570
|
Team: "/work",
|
|
55530
|
-
Network: "
|
|
55571
|
+
Network: "/ask"
|
|
55531
55572
|
};
|
|
55532
55573
|
function GrowthSection({
|
|
55533
55574
|
cap,
|
|
@@ -56482,40 +56523,6 @@ var BuildResultSchema = exports_external.object({
|
|
|
56482
56523
|
errors: exports_external.array(exports_external.string()).optional(),
|
|
56483
56524
|
warnings: exports_external.array(exports_external.string()).optional()
|
|
56484
56525
|
});
|
|
56485
|
-
// src/story/network.ts
|
|
56486
|
-
var DISC = { x: 50, y: 50, radius: 44 };
|
|
56487
|
-
var CHARACTER = 1.45;
|
|
56488
|
-
var GAP = 3;
|
|
56489
|
-
var r12 = (v2) => Math.round(v2 * 10) / 10;
|
|
56490
|
-
function placeNetwork(map6) {
|
|
56491
|
-
const shown = map6.nodes.filter((node2) => node2.status !== "archived");
|
|
56492
|
-
const max = proximityMaxDistance({ ...map6, nodes: shown });
|
|
56493
|
-
const placed2 = shown.map((node2) => {
|
|
56494
|
-
const point3 = proximityPoint(node2.distance, node2.bearing, max, DISC);
|
|
56495
|
-
return {
|
|
56496
|
-
id: node2.id,
|
|
56497
|
-
name: node2.name,
|
|
56498
|
-
x: r12(point3.x),
|
|
56499
|
-
y: r12(point3.y),
|
|
56500
|
-
reach: proximityReach(node2.distance, max)
|
|
56501
|
-
};
|
|
56502
|
-
});
|
|
56503
|
-
const span = (name) => name.length * CHARACTER + GAP;
|
|
56504
|
-
const room2 = (brain, dir) => (dir < 0 ? brain.x - GAP : 100 - brain.x - GAP) >= span(brain.name);
|
|
56505
|
-
const blocked = (brain, dir) => placed2.some((other) => other !== brain && Math.abs(other.y - brain.y) < 4 && (dir < 0 ? other.x < brain.x && brain.x - other.x < span(brain.name) : other.x > brain.x && other.x - brain.x < span(brain.name)));
|
|
56506
|
-
const brains = placed2.map((brain) => {
|
|
56507
|
-
const sides = brain.x < DISC.x ? [-1, 1] : [1, -1];
|
|
56508
|
-
const dir = sides.find((candidate) => room2(brain, candidate) && !blocked(brain, candidate));
|
|
56509
|
-
return {
|
|
56510
|
-
...brain,
|
|
56511
|
-
side: dir === undefined ? "above" : dir < 0 ? "left" : "right"
|
|
56512
|
-
};
|
|
56513
|
-
});
|
|
56514
|
-
const ids3 = new Set(brains.map((brain) => brain.id));
|
|
56515
|
-
const kin = map6.clusters.flatMap((cluster) => cluster.links.filter((link2) => ids3.has(link2.sourceId) && ids3.has(link2.targetId)).map((link2) => ({ from: link2.sourceId, to: link2.targetId })));
|
|
56516
|
-
return { brains, kin };
|
|
56517
|
-
}
|
|
56518
|
-
|
|
56519
56526
|
// src/opening.tsx
|
|
56520
56527
|
import { jsx as jsx56, jsxs as jsxs39, Fragment as Fragment21 } from "react/jsx-runtime";
|
|
56521
56528
|
var openingSchema = proximityMapDataSchema.extend({
|
|
@@ -56683,9 +56690,6 @@ function Opening(data) {
|
|
|
56683
56690
|
className: "opening__door",
|
|
56684
56691
|
href: data.ctaHref,
|
|
56685
56692
|
children: data.ctaLabel
|
|
56686
|
-
}),
|
|
56687
|
-
/* @__PURE__ */ jsx56(NetworkLayer, {
|
|
56688
|
-
...placeNetwork(data)
|
|
56689
56693
|
})
|
|
56690
56694
|
]
|
|
56691
56695
|
});
|
|
@@ -56908,6 +56912,40 @@ var askedTemplate = createTemplate({
|
|
|
56908
56912
|
layout: { component: Asked }
|
|
56909
56913
|
});
|
|
56910
56914
|
|
|
56915
|
+
// src/story/network.ts
|
|
56916
|
+
var DISC = { x: 50, y: 50, radius: 44 };
|
|
56917
|
+
var CHARACTER = 1.45;
|
|
56918
|
+
var GAP = 3;
|
|
56919
|
+
var r12 = (v2) => Math.round(v2 * 10) / 10;
|
|
56920
|
+
function placeNetwork(map6) {
|
|
56921
|
+
const shown = map6.nodes.filter((node2) => node2.status !== "archived");
|
|
56922
|
+
const max = proximityMaxDistance({ ...map6, nodes: shown });
|
|
56923
|
+
const placed2 = shown.map((node2) => {
|
|
56924
|
+
const point3 = proximityPoint(node2.distance, node2.bearing, max, DISC);
|
|
56925
|
+
return {
|
|
56926
|
+
id: node2.id,
|
|
56927
|
+
name: node2.name,
|
|
56928
|
+
x: r12(point3.x),
|
|
56929
|
+
y: r12(point3.y),
|
|
56930
|
+
reach: proximityReach(node2.distance, max)
|
|
56931
|
+
};
|
|
56932
|
+
});
|
|
56933
|
+
const span = (name) => name.length * CHARACTER + GAP;
|
|
56934
|
+
const room2 = (brain, dir) => (dir < 0 ? brain.x - GAP : 100 - brain.x - GAP) >= span(brain.name);
|
|
56935
|
+
const blocked = (brain, dir) => placed2.some((other) => other !== brain && Math.abs(other.y - brain.y) < 4 && (dir < 0 ? other.x < brain.x && brain.x - other.x < span(brain.name) : other.x > brain.x && other.x - brain.x < span(brain.name)));
|
|
56936
|
+
const brains = placed2.map((brain) => {
|
|
56937
|
+
const sides = brain.x < DISC.x ? [-1, 1] : [1, -1];
|
|
56938
|
+
const dir = sides.find((candidate) => room2(brain, candidate) && !blocked(brain, candidate));
|
|
56939
|
+
return {
|
|
56940
|
+
...brain,
|
|
56941
|
+
side: dir === undefined ? "above" : dir < 0 ? "left" : "right"
|
|
56942
|
+
};
|
|
56943
|
+
});
|
|
56944
|
+
const ids3 = new Set(brains.map((brain) => brain.id));
|
|
56945
|
+
const kin = map6.clusters.flatMap((cluster) => cluster.links.filter((link2) => ids3.has(link2.sourceId) && ids3.has(link2.targetId)).map((link2) => ({ from: link2.sourceId, to: link2.targetId })));
|
|
56946
|
+
return { brains, kin };
|
|
56947
|
+
}
|
|
56948
|
+
|
|
56911
56949
|
// src/ask-room.tsx
|
|
56912
56950
|
import { jsx as jsx58, jsxs as jsxs41, Fragment as Fragment25 } from "react/jsx-runtime";
|
|
56913
56951
|
var askRoomCopySchema = exports_external.object({
|
|
@@ -57943,4 +57981,4 @@ export {
|
|
|
57943
57981
|
workSections
|
|
57944
57982
|
};
|
|
57945
57983
|
|
|
57946
|
-
//# debugId=
|
|
57984
|
+
//# debugId=EF81243644295BA864756E2164756E21
|