@idle-screens/savers-classic 2.0.0 → 3.0.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { SaverPlugin } from '@idle-screens/core';
1
+ import { SaverPlugin, ControlTrack } from '@idle-screens/core';
2
2
 
3
3
  /** The Flying Toasters saver plugin. */
4
4
  declare const toasters: SaverPlugin;
@@ -32,11 +32,11 @@ declare const bouncingBall: SaverPlugin;
32
32
  /** The logo saver plugin. */
33
33
  declare const logo: SaverPlugin;
34
34
 
35
- /** The "Out to Lunch" messages saver plugin. */
35
+ /** The consolidated messages saver plugin (marquee + drift modes). */
36
36
  declare const messages: SaverPlugin;
37
-
38
- /** The "Macintosh" messages saver plugin. */
39
- declare const messages2: SaverPlugin;
37
+ /** A demo control-track: the lunch marquee hands over to the Macintosh drift
38
+ * and back, glow breathing across the cut. Deterministic. */
39
+ declare const messagesDemoTrack: ControlTrack;
40
40
 
41
41
  declare const pipes: SaverPlugin;
42
42
 
@@ -51,7 +51,6 @@ declare const reactionDiffusion: SaverPlugin;
51
51
  /** The Mystify bouncing-polygon saver plugin. */
52
52
  declare const mystify: SaverPlugin;
53
53
 
54
- /** All classic savers, for bulk registration. */
55
54
  declare const CLASSIC_SAVERS: SaverPlugin[];
56
55
 
57
- export { CLASSIC_SAVERS, bouncingBall, bsod, dvd, fadeOut, fish, fluid, flurry, globe, hardRain, logo, messages, messages2, mystify, pipes, rainstorm, reactionDiffusion, spotlight, toasters, warp };
56
+ export { CLASSIC_SAVERS, bouncingBall, bsod, dvd, fadeOut, fish, fluid, flurry, globe, hardRain, logo, messages, messagesDemoTrack, mystify, pipes, rainstorm, reactionDiffusion, spotlight, toasters, warp };
package/dist/index.js CHANGED
@@ -3,13 +3,15 @@ import {
3
3
  flurry,
4
4
  globe,
5
5
  hardRain,
6
+ messages,
7
+ messagesDemoTrack,
6
8
  mystify,
7
9
  pipes,
8
10
  rainstorm,
9
11
  reactionDiffusion,
10
12
  spotlight,
11
13
  warp
12
- } from "./chunk-MIVXP2IL.js";
14
+ } from "./chunk-RMW74SYX.js";
13
15
 
14
16
  // src/toasters.ts
15
17
  var toastersManifest = {
@@ -20,6 +22,11 @@ var toastersManifest = {
20
22
  costTier: "low",
21
23
  motionIntensity: "moderate",
22
24
  reducedMotionFallback: "static",
25
+ attribution: {
26
+ source: 'After Dark "Flying Toasters" \u2014 Berkeley Systems (1989)',
27
+ license: "MIT port; reference CSS MIT (Bryan Braun); embedded sprites (c) Berkeley Systems, included under fair use \u2014 see CREDITS.md",
28
+ url: "https://github.com/bryanbraun/after-dark-css"
29
+ },
23
30
  a11y: { flashSafe: true }
24
31
  };
25
32
  var TOASTER_SPRITE = "data:image/gif;base64,R0lGODlhAAFAAOMFAMDAwDMzAGZmM2YzAMwzAP///+7u7szMzLq6upmZmYeHh2ZmZlRUVBEREQAAAP///yH5BAEKAA8ALAAAAAAAAUAAAAT+8MlJazXY2M27/2AojmRpnmiqflnhZmssz3Rt37jUuvzh58CgcEgc7ly+Q2KZKDqf0CgUw0Mye9KsdssdUavKauHXpRQymrJ6jTOIe0my+ghj2+8n99vHbE76gH5GX2B8f4FMd4iJdotLQoQ9SzwOS3GXl4JtkUkJBZUJmKJKXJajmaWhp3GaNXpvPKZxAbS1taybsC6ySba+uFC8Pr62wE/CB8S3nTavb8LEA9LTAQ0NrALZMpGxqr2+09TW2NpA0ODhA9XXndkCQee26erj7eUp3LuX6AT9/WgGMCWgdQ+FM32z5EnzRwCgQILvbHgbpnDhPzQPAxScMTFZxQH+/hxmgojv4MQGtSxexIDJgcuRGvGJOZlSJcZLLh3AjCiDJq1wKwPifMmKIA2fAYA2zNCSaCejeaogBRlSaByX1rI2yMkKJU8vUuOg/El1aVOt1rh28rpialmWQ9FudaqErQq3VOFedSBXLR+7I84g9DE2adW9WOVqJTomAeAQX6YeTpKTr+KsjOvGPOH2ImLLl+f6aPyYRGezlHOGTqvz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GJENQqYSKtbiKuOgIHUJ5VvAba8crNTiLqVgNqxh4t3IrGAiEu9cB4+EVjGaLt0gL0Zgq09iEJnCNzaiNbMiN3ZgpGMgEmPQFGMAB4hiMwmiO5yiC+TcGlWeGg0QG4piNz8iER/WD1Ph0KbCP/NSPBfiPbEiNA8mM/GiQ/wiQ5qeOACEmH0CQxGSQgacMBdJF+Qd63dFkEsCMhTGLOwKQGHmL1GiKFcmJI7kOgHeSz2h+QagCIglPLmmSMNmA4Dgn5wUCNclJN5mTq9h+icIbI/iRaRD+kuJYky95kjJpfjOQFSw5lU2JkU/JeFG5lFSJkzEZkK6XlTXJjFXpkEC4kcZoj8SXSlopH2Opk145kzQglSJJi1x5lTsZl2tJl11pl3AJllPJlnX5lhrBNiIoTq/gBoy0lGrIl3QoeDIgl+twh4yZkY4ZA5AplZAnmJRZjTSpmJKpmUfVTIx4mB6gGC9nl6UHBKY5dagZfaopF6fplamZA6uZmU+ZmjdEj/UINxWJFg/XmFAnBLAZm/8IBcPJmptZmbTpm8R5VB1gM7oZLiOAmQ+pksLZcsXJBdT5kF2wndm5HGYpOingnHhAnndgnnaAniKAf76IB+75nvC5noQjqQvtGJ/2eZ/4CZ1dhJ/82Z/vqTY4cwYK4J8EWqBrADEdEAEAOw==";
@@ -290,6 +297,11 @@ var fishManifest = {
290
297
  costTier: "low",
291
298
  motionIntensity: "calm",
292
299
  reducedMotionFallback: "static",
300
+ attribution: {
301
+ source: 'After Dark "Fish!" \u2014 Berkeley Systems (1990)',
302
+ license: "MIT port; reference CSS MIT (Bryan Braun); embedded sprites (c) Berkeley Systems, included under fair use \u2014 see CREDITS.md",
303
+ url: "https://github.com/bryanbraun/after-dark-css"
304
+ },
293
305
  a11y: { flashSafe: true }
294
306
  };
295
307
  var PIECES2 = [
@@ -392,6 +404,11 @@ var fadeOutManifest = {
392
404
  costTier: "idle",
393
405
  motionIntensity: "calm",
394
406
  reducedMotionFallback: "static",
407
+ attribution: {
408
+ source: 'After Dark "Fade Away" \u2014 concept by Berkeley Systems',
409
+ license: "MIT port; reference CSS MIT (Bryan Braun)",
410
+ url: "https://github.com/bryanbraun/after-dark-css"
411
+ },
395
412
  a11y: { flashSafe: true, notes: "A slow, smooth 40s dim to black; no flashing." }
396
413
  };
397
414
  var CSS = `
@@ -458,6 +475,11 @@ var bouncingBallManifest = {
458
475
  costTier: "idle",
459
476
  motionIntensity: "calm",
460
477
  reducedMotionFallback: "static",
478
+ attribution: {
479
+ source: 'After Dark "Bouncing Ball" \u2014 concept by Berkeley Systems',
480
+ license: "MIT port; reference CSS MIT (Bryan Braun)",
481
+ url: "https://github.com/bryanbraun/after-dark-css"
482
+ },
461
483
  a11y: { flashSafe: true, notes: "A single ball gliding smoothly; no flashing." }
462
484
  };
463
485
  var CSS2 = `
@@ -529,6 +551,11 @@ var logoManifest = {
529
551
  costTier: "idle",
530
552
  motionIntensity: "calm",
531
553
  reducedMotionFallback: "static",
554
+ attribution: {
555
+ source: "After Dark \u2014 concept by Berkeley Systems",
556
+ license: "MIT port; reference CSS MIT (Bryan Braun)",
557
+ url: "https://github.com/bryanbraun/after-dark-css"
558
+ },
532
559
  a11y: { flashSafe: true, notes: "A wordmark gliding smoothly; no flashing." }
533
560
  };
534
561
  var CSS3 = `
@@ -599,175 +626,6 @@ var logo = {
599
626
  mount: (ctx) => new LogoInstance(ctx)
600
627
  };
601
628
 
602
- // src/messages.ts
603
- var messagesManifest = {
604
- id: "messages",
605
- label: "Messages",
606
- passthrough: false,
607
- minBackend: "css",
608
- costTier: "idle",
609
- motionIntensity: "calm",
610
- reducedMotionFallback: "static",
611
- a11y: { flashSafe: true, notes: "Text crawls smoothly; no flashing." }
612
- };
613
- var MESSAGE = "OUT TO LUNCH";
614
- var CSS4 = `
615
- .is-messages {
616
- position: absolute;
617
- inset: 0;
618
- overflow: hidden;
619
- background: #000;
620
- }
621
- .is-messages .message {
622
- white-space: nowrap;
623
- margin: 0;
624
- position: absolute;
625
- font-family: 'Times New Roman', 'Georgia', serif;
626
- font-size: 20px;
627
- color: #fff;
628
- animation:
629
- is-messages-marquee 10s linear infinite,
630
- is-messages-move 30s steps(3) infinite;
631
- }
632
- .is-messages.is-paused .message {
633
- animation-play-state: paused !important;
634
- }
635
- @keyframes is-messages-marquee {
636
- 0% { text-indent: 100%; }
637
- 100% { text-indent: -150px; }
638
- }
639
- @keyframes is-messages-move {
640
- from { top: 20%; }
641
- to { top: 100%; }
642
- }
643
- `;
644
- var MessagesInstance = class {
645
- root;
646
- style;
647
- constructor(ctx) {
648
- this.style = document.createElement("style");
649
- this.style.textContent = CSS4;
650
- ctx.host.appendChild(this.style);
651
- this.root = document.createElement("div");
652
- this.root.className = "is-messages";
653
- this.root.setAttribute("aria-hidden", "true");
654
- const msg = document.createElement("h2");
655
- msg.className = "message";
656
- msg.textContent = MESSAGE;
657
- this.root.appendChild(msg);
658
- ctx.host.appendChild(this.root);
659
- this.setPaused(ctx.reducedMotion);
660
- }
661
- setPaused(paused) {
662
- this.root.classList.toggle("is-paused", paused);
663
- }
664
- resize(_width, _height) {
665
- }
666
- dispose() {
667
- this.root.remove();
668
- this.style.remove();
669
- }
670
- };
671
- var messages = {
672
- manifest: messagesManifest,
673
- mount: (ctx) => new MessagesInstance(ctx)
674
- };
675
-
676
- // src/messages2.ts
677
- var messages2Manifest = {
678
- id: "messages2",
679
- label: "Messages II",
680
- passthrough: false,
681
- minBackend: "css",
682
- costTier: "idle",
683
- motionIntensity: "calm",
684
- reducedMotionFallback: "static",
685
- a11y: { flashSafe: true, notes: "Text drifts smoothly; no flashing." }
686
- };
687
- var MESSAGE2 = "Why are you staring at my Macintosh?";
688
- var CSS5 = `
689
- .is-messages2 {
690
- position: absolute;
691
- inset: 0;
692
- overflow: hidden;
693
- background: #000;
694
- }
695
- .is-messages2 .message {
696
- display: block;
697
- width: 467px;
698
- margin: 0;
699
- color: #fff;
700
- position: absolute;
701
- font-family: 'Times New Roman', 'Georgia', serif;
702
- font-size: 20px;
703
- animation:
704
- is-messages2-moveX 8s linear 0s infinite alternate,
705
- is-messages2-moveY 17.3s linear 0s infinite alternate;
706
- }
707
- .is-messages2.is-paused .message {
708
- animation-play-state: paused !important;
709
- }
710
-
711
- /* Responsive for less than 600px width screen size */
712
- @media screen and (max-width: 600px) {
713
- .is-messages2 .message {
714
- width: 160px;
715
- height: 85px;
716
- }
717
- @keyframes is-messages2-moveX {
718
- from { left: 0; }
719
- to { left: calc(100% - 160px); }
720
- }
721
- @keyframes is-messages2-moveY {
722
- from { top: 0; }
723
- to { top: calc(100% - 85px); }
724
- }
725
- }
726
-
727
- /* Responsive for greater than 600px width screen size */
728
- @media screen and (min-width: 600px) {
729
- @keyframes is-messages2-moveX {
730
- from { left: 0; }
731
- to { left: calc(100% - 467px); }
732
- }
733
- @keyframes is-messages2-moveY {
734
- from { top: 0; }
735
- to { top: calc(100% - 26px); }
736
- }
737
- }
738
- `;
739
- var Messages2Instance = class {
740
- root;
741
- style;
742
- constructor(ctx) {
743
- this.style = document.createElement("style");
744
- this.style.textContent = CSS5;
745
- ctx.host.appendChild(this.style);
746
- this.root = document.createElement("div");
747
- this.root.className = "is-messages2";
748
- this.root.setAttribute("aria-hidden", "true");
749
- const msg = document.createElement("h2");
750
- msg.className = "message";
751
- msg.textContent = MESSAGE2;
752
- this.root.appendChild(msg);
753
- ctx.host.appendChild(this.root);
754
- this.setPaused(ctx.reducedMotion);
755
- }
756
- setPaused(paused) {
757
- this.root.classList.toggle("is-paused", paused);
758
- }
759
- resize(_width, _height) {
760
- }
761
- dispose() {
762
- this.root.remove();
763
- this.style.remove();
764
- }
765
- };
766
- var messages2 = {
767
- manifest: messages2Manifest,
768
- mount: (ctx) => new Messages2Instance(ctx)
769
- };
770
-
771
629
  // src/bsod.ts
772
630
  var bsodManifest = {
773
631
  id: "bsod",
@@ -879,7 +737,7 @@ press the Restart button.</pre></div>`
879
737
  </div></div>`
880
738
  }
881
739
  ];
882
- var CSS6 = `
740
+ var CSS4 = `
883
741
  .is-bsod-root {
884
742
  position: absolute;
885
743
  inset: 0;
@@ -1011,7 +869,7 @@ var BsodInstance = class {
1011
869
  timerId = null;
1012
870
  constructor(ctx) {
1013
871
  this.style = document.createElement("style");
1014
- this.style.textContent = CSS6;
872
+ this.style.textContent = CSS4;
1015
873
  ctx.host.appendChild(this.style);
1016
874
  this.root = document.createElement("div");
1017
875
  this.root.className = "is-bsod-root";
@@ -1086,7 +944,6 @@ var CLASSIC_SAVERS = [
1086
944
  bouncingBall,
1087
945
  logo,
1088
946
  messages,
1089
- messages2,
1090
947
  pipes,
1091
948
  bsod,
1092
949
  flurry,
@@ -1107,7 +964,7 @@ export {
1107
964
  hardRain,
1108
965
  logo,
1109
966
  messages,
1110
- messages2,
967
+ messagesDemoTrack,
1111
968
  mystify,
1112
969
  pipes,
1113
970
  rainstorm,