@arcblock/did-connect-service 4.1.29 → 4.1.30

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.
@@ -22,5 +22,9 @@ export interface OgTemplateParams {
22
22
  * the same brand mark with a custom stroke.
23
23
  */
24
24
  export declare const getLogoSvg: (color: string) => string;
25
+ export interface SatoriNode {
26
+ type: string;
27
+ props: Record<string, unknown>;
28
+ }
25
29
  export declare const getTemplate: (params: OgTemplateParams) => Promise<unknown>;
26
30
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/og/templates.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,QAAQ,CAAC;CAClB;AAuCD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAe1C,CAAC;AA+TF,eAAO,MAAM,WAAW,GAAU,QAAQ,gBAAgB,KAAG,OAAO,CAAC,OAAO,CAiB3E,CAAC"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/og/templates.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,CAAC;IACrB,MAAM,EAAE,QAAQ,CAAC;CAClB;AA6CD;;;;;GAKG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAe1C,CAAC;AA+UF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AA2XD,eAAO,MAAM,WAAW,GAAU,QAAQ,gBAAgB,KAAG,OAAO,CAAC,OAAO,CAe3E,CAAC"}
@@ -1,23 +1,22 @@
1
- import { html } from "satori-html";
2
- import { __unsafeHTML } from "ultrahtml";
3
1
  import { getTextColor } from "./passport-svg.js";
4
- // HTML-escapes a plain interpolated string. Mirrors ultrahtml's own escape
5
- // map (`&`, `<`, `>` only — see `satori-html`'s `html` tag, which the
6
- // `png`/`svg` code paths route through) so that `format:"html"` output is
7
- // escaped identically to `format:"png"`/`format:"svg"`.
2
+ // ---------------------------------------------------------------------------
3
+ // format="html" rendering — plain string templating, escaped by hand. This
4
+ // path never touched satori-html/ultrahtml and is unaffected by #218; it is
5
+ // kept exactly as before.
6
+ // ---------------------------------------------------------------------------
7
+ // HTML-escapes a plain interpolated string (`&`, `<`, `>` only) so that
8
+ // `format:"html"` output is escaped identically to `format:"png"`/`"svg"`.
8
9
  const HTML_ESCAPE_MAP = { "&": "&amp;", "<": "&lt;", ">": "&gt;" };
9
10
  const escapeHtml = (value) => value.replace(/[&<>]/g, (ch) => HTML_ESCAPE_MAP[ch] ?? ch);
10
- // `gradientDecor()` returns either "" or an `__unsafeHTML(...)`-wrapped
11
- // object ({ value: string }, tagged non-enumerably by ultrahtml) for markup
12
- // that is fully static/internally-derived and must be emitted raw, matching
13
- // how satori-html's `html` tag treats the same wrapper.
14
- const isUnsafeHtml = (value) => typeof value === "object" &&
15
- value !== null &&
16
- "value" in value &&
17
- typeof value.value === "string";
18
- // Join the raw strings and values to reconstruct the original string. Values
19
- // are escaped the same way satori-html (via ultrahtml's `html` tag) escapes
20
- // them for the png/svg paths, so format:"html" carries no additional risk.
11
+ // Marks a string as pre-escaped / internally-derived markup that must be
12
+ // emitted raw by `join()` — used for gradientDecor's fully-static decorative
13
+ // markup (no user input reaches it).
14
+ const UNSAFE_HTML = Symbol("unsafeHtml");
15
+ const unsafeHtml = (value) => ({ [UNSAFE_HTML]: true, value });
16
+ const isUnsafeHtml = (value) => typeof value === "object" && value !== null && value[UNSAFE_HTML] === true;
17
+ // Join the raw strings and values to reconstruct the original HTML string.
18
+ // Values are escaped the same way the png/svg path escapes them (see
19
+ // `escapeText` below), so format:"html" carries no additional risk.
21
20
  const join = (strings, ...values) => {
22
21
  return strings.raw.reduce((result, str, i) => {
23
22
  const value = values[i];
@@ -93,11 +92,9 @@ const gradientDecor = (background, color) => {
93
92
  const stroke = foregroundColor(background, color);
94
93
  const mark = `<svg xmlns="http://www.w3.org/2000/svg" width="360" height="416" viewBox="0 0 45 52"><g fill="none" fill-rule="evenodd" stroke="${stroke}" stroke-width="0.6"><path d="M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"></path><path d="M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"></path></g></svg>`;
95
94
  const markUri = `data:image/svg+xml;base64,${Buffer.from(mark).toString("base64")}`;
96
- // __unsafeHTML: satori-html's tagged template escapes interpolated strings
97
- // (anti-injection); this wrapper marks the decor markup as trusted. The
98
- // markup is fully static except for `stroke`/`markUri`, both derived from
99
- // internal color math — no user input reaches it.
100
- return __unsafeHTML(`<div style="position: absolute; top: -320px; right: -180px; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 68%); display: flex;"></div>
95
+ // unsafeHtml: the markup is fully static except for `stroke`/`markUri`,
96
+ // both derived from internal color math — no user input reaches it.
97
+ return unsafeHtml(`<div style="position: absolute; top: -320px; right: -180px; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 68%); display: flex;"></div>
101
98
  <div style="position: absolute; bottom: -280px; left: -160px; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(circle, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 68%); display: flex;"></div>
102
99
  <img src="${markUri}" style="position: absolute; right: -36px; bottom: -64px; width: 360px; height: 416px; opacity: 0.14" />`);
103
100
  };
@@ -312,20 +309,302 @@ const getBannerTemplate = ({ width, height, logo, logoRounded, background, color
312
309
  </h2>
313
310
  </div>`;
314
311
  };
312
+ const node = (type, props = {}, children = []) => ({
313
+ type,
314
+ props: { ...props, children },
315
+ });
316
+ /** Style-object equivalent of `backgroundStyle()` above. */
317
+ const backgroundStyleProps = (background, color) => background
318
+ ? { backgroundImage: `url(${background})`, backgroundSize: "cover", backgroundPosition: "center" }
319
+ : { background: `linear-gradient(160deg, ${color.start} 0%, ${color.end} 100%)` };
320
+ /** VNode equivalent of `gradientDecor()` above — same markup, same paint order. */
321
+ const gradientDecorNodes = (background, color) => {
322
+ if (background)
323
+ return [];
324
+ const stroke = foregroundColor(background, color);
325
+ const mark = `<svg xmlns="http://www.w3.org/2000/svg" width="360" height="416" viewBox="0 0 45 52"><g fill="none" fill-rule="evenodd" stroke="${stroke}" stroke-width="0.6"><path d="M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25m-43.301 0l43.301-25"></path><path d="M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"></path></g></svg>`;
326
+ const markUri = `data:image/svg+xml;base64,${Buffer.from(mark).toString("base64")}`;
327
+ return [
328
+ node("div", {
329
+ style: {
330
+ position: "absolute",
331
+ top: "-320px",
332
+ right: "-180px",
333
+ width: "820px",
334
+ height: "820px",
335
+ borderRadius: "50%",
336
+ background: "radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 68%)",
337
+ display: "flex",
338
+ },
339
+ }),
340
+ node("div", {
341
+ style: {
342
+ position: "absolute",
343
+ bottom: "-280px",
344
+ left: "-160px",
345
+ width: "640px",
346
+ height: "640px",
347
+ borderRadius: "50%",
348
+ background: "radial-gradient(circle, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0) 68%)",
349
+ display: "flex",
350
+ },
351
+ }),
352
+ node("img", {
353
+ src: markUri,
354
+ style: { position: "absolute", right: "-36px", bottom: "-64px", width: "360px", height: "416px", opacity: 0.14 },
355
+ }),
356
+ ];
357
+ };
358
+ const buildDefaultNode = ({ width, height, logo, background, logoRounded, color, title, description, }) => {
359
+ const fg = foregroundColor(background, color);
360
+ return node("div", {
361
+ style: {
362
+ width: `${width}px`,
363
+ height: `${height}px`,
364
+ ...backgroundStyleProps(background, color),
365
+ display: "flex",
366
+ flexDirection: "column",
367
+ justifyContent: "center",
368
+ alignItems: "flex-start",
369
+ position: "relative",
370
+ overflow: "hidden",
371
+ },
372
+ }, [
373
+ ...gradientDecorNodes(background, color),
374
+ node("img", {
375
+ src: logo,
376
+ height: "90",
377
+ width: "90",
378
+ style: {
379
+ marginLeft: "96px",
380
+ height: "90px",
381
+ width: "90px",
382
+ ...(logoRounded ? { borderRadius: "50%" } : {}),
383
+ marginBottom: "64px",
384
+ },
385
+ }),
386
+ node("h2", {
387
+ style: {
388
+ fontSize: "48px",
389
+ letterSpacing: "-2px",
390
+ margin: "0 0 32px",
391
+ color: fg,
392
+ fontWeight: 500,
393
+ fontFamily: "Arial, sans-serif",
394
+ textAlign: "left",
395
+ padding: "0 96px",
396
+ },
397
+ }, title),
398
+ node("h3", {
399
+ style: {
400
+ fontSize: "2rem",
401
+ margin: "0",
402
+ color: fg,
403
+ opacity: 0.7,
404
+ fontWeight: 400,
405
+ fontFamily: "Arial, sans-serif",
406
+ textAlign: "left",
407
+ padding: "0 96px",
408
+ lineClamp: 3,
409
+ },
410
+ }, description),
411
+ ]);
412
+ };
413
+ const buildSectionNode = ({ width, height, logo, logoRounded, background, color, title, description, section, }) => {
414
+ const fg = foregroundColor(background, color);
415
+ const labelColor = background ? color.start : fg;
416
+ return node("div", {
417
+ style: {
418
+ width: `${width}px`,
419
+ height: `${height}px`,
420
+ ...backgroundStyleProps(background, color),
421
+ display: "flex",
422
+ flexDirection: "column",
423
+ justifyContent: "center",
424
+ alignItems: "flex-start",
425
+ position: "relative",
426
+ overflow: "hidden",
427
+ },
428
+ }, [
429
+ ...gradientDecorNodes(background, color),
430
+ node("img", {
431
+ src: logo,
432
+ height: "90",
433
+ width: "90",
434
+ style: {
435
+ marginLeft: "96px",
436
+ height: "90px",
437
+ width: "90px",
438
+ ...(logoRounded ? { borderRadius: "50%" } : {}),
439
+ marginBottom: "64px",
440
+ },
441
+ }),
442
+ node("p", {
443
+ style: {
444
+ fontSize: "1.5rem",
445
+ margin: "0",
446
+ color: labelColor,
447
+ fontWeight: 400,
448
+ fontFamily: "Arial, sans-serif",
449
+ textAlign: "left",
450
+ textTransform: "uppercase",
451
+ padding: "0 96px",
452
+ },
453
+ }, section),
454
+ node("h2", {
455
+ style: {
456
+ fontSize: "48px",
457
+ margin: "0 0 32px",
458
+ color: fg,
459
+ letterSpacing: "-2px",
460
+ fontWeight: 500,
461
+ fontFamily: "Arial, sans-serif",
462
+ textAlign: "left",
463
+ padding: "0 96px",
464
+ lineClamp: 2,
465
+ },
466
+ }, title),
467
+ node("h3", {
468
+ style: {
469
+ fontSize: "2rem",
470
+ margin: "0",
471
+ color: fg,
472
+ opacity: 0.7,
473
+ fontWeight: 400,
474
+ fontFamily: "Arial, sans-serif",
475
+ textAlign: "left",
476
+ padding: "0 96px",
477
+ lineClamp: 3,
478
+ },
479
+ }, description),
480
+ ]);
481
+ };
482
+ const buildCoverNode = ({ width, height, logo, logoRounded, color, title, description, cover, }) => {
483
+ const textColor = getTextColor(color.start);
484
+ // TODO: cover template hardcodes 630px panel height (carried from source); replace with ${height} when we generalize.
485
+ return node("div", { style: { width: `${width}px`, height: `${height}px`, display: "flex", background: color.start } }, [
486
+ node("div", { style: { display: "flex", height: `${height}px`, background: color.start, width: "45%" } }, [
487
+ node("div", {
488
+ style: {
489
+ marginLeft: "32px",
490
+ display: "flex",
491
+ flexDirection: "column",
492
+ alignItems: "flex-start",
493
+ justifyContent: "space-around",
494
+ },
495
+ }, [
496
+ node("h2", {
497
+ style: {
498
+ fontSize: "3rem",
499
+ color: textColor,
500
+ fontWeight: 400,
501
+ fontFamily: "Arial, sans-serif",
502
+ margin: "32px 32px 0 0",
503
+ textAlign: "left",
504
+ },
505
+ }, description),
506
+ node("div", { style: { display: "flex", justifyContent: "flex-start", alignItems: "center" } }, [
507
+ node("img", {
508
+ src: logo,
509
+ height: "60",
510
+ width: "60",
511
+ style: { height: "60px", width: "60px", ...(logoRounded ? { borderRadius: "50%" } : {}) },
512
+ }),
513
+ node("h3", {
514
+ style: {
515
+ fontSize: "2rem",
516
+ margin: "0 0 0 16px",
517
+ color: textColor,
518
+ fontWeight: 400,
519
+ fontFamily: "Arial, sans-serif",
520
+ textAlign: "left",
521
+ textTransform: "capitalize",
522
+ },
523
+ }, title),
524
+ ]),
525
+ ]),
526
+ ]),
527
+ node("div", { style: { display: "flex", height: "630px", width: "55%", backgroundColor: color.start } }, [
528
+ node("img", {
529
+ src: cover,
530
+ height: "630",
531
+ width: "100%",
532
+ style: { height: "630px", width: "100%", objectFit: "cover" },
533
+ }),
534
+ node("div", {
535
+ style: {
536
+ display: "flex",
537
+ background: color.start,
538
+ height: `${height * 2}px`,
539
+ width: "100px",
540
+ position: "absolute",
541
+ transform: "rotate(8deg)",
542
+ left: "-90px",
543
+ top: "-25px",
544
+ },
545
+ }),
546
+ ]),
547
+ ]);
548
+ };
549
+ const buildBannerNode = ({ width, height, logo, logoRounded, background, color, title, }) => {
550
+ const fg = foregroundColor(background, color);
551
+ return node("div", {
552
+ style: {
553
+ width: `${width}px`,
554
+ height: `${height}px`,
555
+ ...backgroundStyleProps(background, color),
556
+ display: "flex",
557
+ flexDirection: "row",
558
+ justifyContent: "center",
559
+ alignItems: "center",
560
+ position: "relative",
561
+ overflow: "hidden",
562
+ },
563
+ }, [
564
+ ...gradientDecorNodes(background, color),
565
+ node("img", {
566
+ src: logo,
567
+ height: "150",
568
+ width: "150",
569
+ style: {
570
+ height: "150px",
571
+ width: "150px",
572
+ ...(logoRounded ? { borderRadius: "50%" } : {}),
573
+ marginRight: "48px",
574
+ },
575
+ }),
576
+ node("h2", {
577
+ style: {
578
+ fontSize: "72px",
579
+ color: fg,
580
+ fontWeight: 500,
581
+ fontFamily: "Arial, sans-serif",
582
+ textAlign: "left",
583
+ lineClamp: 1,
584
+ },
585
+ }, title),
586
+ ]);
587
+ };
315
588
  export const getTemplate = async (params) => {
316
- const fn = params.format === "html" ? join : html;
317
- if (params.template === "default") {
318
- return getDefaultTemplate(params, fn);
319
- }
320
- if (params.template === "section") {
321
- return getSectionTemplate(params, fn);
322
- }
323
- if (params.template === "cover") {
324
- return getCoverTemplate(params, fn);
325
- }
326
- if (params.template === "banner") {
327
- return getBannerTemplate(params, fn);
589
+ if (params.format === "html") {
590
+ if (params.template === "default")
591
+ return getDefaultTemplate(params, join);
592
+ if (params.template === "section")
593
+ return getSectionTemplate(params, join);
594
+ if (params.template === "cover")
595
+ return getCoverTemplate(params, join);
596
+ if (params.template === "banner")
597
+ return getBannerTemplate(params, join);
598
+ throw new Error("Invalid open graph template");
328
599
  }
600
+ if (params.template === "default")
601
+ return buildDefaultNode(params);
602
+ if (params.template === "section")
603
+ return buildSectionNode(params);
604
+ if (params.template === "cover")
605
+ return buildCoverNode(params);
606
+ if (params.template === "banner")
607
+ return buildBannerNode(params);
329
608
  throw new Error("Invalid open graph template");
330
609
  };
331
610
  //# sourceMappingURL=templates.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/og/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoBjD,2EAA2E;AAC3E,sEAAsE;AACtE,0EAA0E;AAC1E,wDAAwD;AACxD,MAAM,eAAe,GAA2B,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC;AAC3F,MAAM,UAAU,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAEzG,wEAAwE;AACxE,4EAA4E;AAC5E,4EAA4E;AAC5E,wDAAwD;AACxD,MAAM,YAAY,GAAG,CAAC,KAAc,EAA8B,EAAE,CAClE,OAAO,KAAK,KAAK,QAAQ;IACzB,KAAK,KAAK,IAAI;IACd,OAAO,IAAI,KAAK;IAChB,OAAQ,KAA4B,CAAC,KAAK,KA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,QAAQ,KAAK,QAAQ;QAAE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IAEjE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;AACjD,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/did-connect-service",
3
- "version": "4.1.29",
3
+ "version": "4.1.30",
4
4
  "description": "Multi-runtime authentication service framework — Passkey, DID Connect, OAuth, Email, Team, RBAC",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -58,13 +58,11 @@
58
58
  "fast-json-stable-stringify": "^2.1.0",
59
59
  "hono": "^4.13.5",
60
60
  "satori": "^0.26.0",
61
- "satori-html": "^0.3.2",
62
61
  "sharp": "^0.35.4",
63
62
  "ufo": "^1.6.4",
64
- "ultrahtml": "^1.6.0",
65
63
  "valibot": "^1.4.2",
66
- "@arcblock/did-connect-core": "^4.1.29",
67
- "@arcblock/did-connect-js": "^4.1.29"
64
+ "@arcblock/did-connect-core": "^4.1.30",
65
+ "@arcblock/did-connect-js": "^4.1.30"
68
66
  },
69
67
  "optionalDependencies": {
70
68
  "@aigne/afs": "^1.11.0-beta.13"
@@ -74,6 +72,7 @@
74
72
  "@types/better-sqlite3": "^7.6.13",
75
73
  "better-sqlite3": "^12.8.0",
76
74
  "esbuild": "^0.28.1",
75
+ "ultrahtml": "^1.6.0",
77
76
  "vitest": "^4.1.11"
78
77
  },
79
78
  "files": [