@syntrologie/adapt-overlays 2.4.0 → 2.5.1

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.
Files changed (118) hide show
  1. package/dist/WorkflowTracker.d.ts +10 -0
  2. package/dist/WorkflowTracker.d.ts.map +1 -0
  3. package/dist/WorkflowTracker.js +19 -0
  4. package/dist/WorkflowWidget.d.ts +70 -0
  5. package/dist/WorkflowWidget.d.ts.map +1 -0
  6. package/dist/WorkflowWidget.js +329 -0
  7. package/dist/cdn.d.ts +2 -2
  8. package/dist/celebrations/__tests__/engine.test.d.ts +2 -0
  9. package/dist/celebrations/__tests__/engine.test.d.ts.map +1 -0
  10. package/dist/celebrations/__tests__/engine.test.js +130 -0
  11. package/dist/celebrations/__tests__/executor.test.d.ts +2 -0
  12. package/dist/celebrations/__tests__/executor.test.d.ts.map +1 -0
  13. package/dist/celebrations/__tests__/executor.test.js +102 -0
  14. package/dist/celebrations/effects/__tests__/confetti.test.d.ts +2 -0
  15. package/dist/celebrations/effects/__tests__/confetti.test.d.ts.map +1 -0
  16. package/dist/celebrations/effects/__tests__/confetti.test.js +89 -0
  17. package/dist/celebrations/effects/__tests__/emoji-rain.test.d.ts +2 -0
  18. package/dist/celebrations/effects/__tests__/emoji-rain.test.d.ts.map +1 -0
  19. package/dist/celebrations/effects/__tests__/emoji-rain.test.js +88 -0
  20. package/dist/celebrations/effects/__tests__/fireworks.test.d.ts +2 -0
  21. package/dist/celebrations/effects/__tests__/fireworks.test.d.ts.map +1 -0
  22. package/dist/celebrations/effects/__tests__/fireworks.test.js +87 -0
  23. package/dist/celebrations/effects/__tests__/sparkles.test.d.ts +2 -0
  24. package/dist/celebrations/effects/__tests__/sparkles.test.d.ts.map +1 -0
  25. package/dist/celebrations/effects/__tests__/sparkles.test.js +79 -0
  26. package/dist/celebrations/effects/confetti.d.ts +3 -0
  27. package/dist/celebrations/effects/confetti.d.ts.map +1 -0
  28. package/dist/celebrations/effects/confetti.js +80 -0
  29. package/dist/celebrations/effects/emoji-rain.d.ts +3 -0
  30. package/dist/celebrations/effects/emoji-rain.d.ts.map +1 -0
  31. package/dist/celebrations/effects/emoji-rain.js +73 -0
  32. package/dist/celebrations/effects/fireworks.d.ts +3 -0
  33. package/dist/celebrations/effects/fireworks.d.ts.map +1 -0
  34. package/dist/celebrations/effects/fireworks.js +69 -0
  35. package/dist/celebrations/effects/sparkles.d.ts +3 -0
  36. package/dist/celebrations/effects/sparkles.d.ts.map +1 -0
  37. package/dist/celebrations/effects/sparkles.js +83 -0
  38. package/dist/celebrations/engine.d.ts +16 -0
  39. package/dist/celebrations/engine.d.ts.map +1 -0
  40. package/dist/celebrations/engine.js +89 -0
  41. package/dist/celebrations/index.d.ts +3 -0
  42. package/dist/celebrations/index.d.ts.map +1 -0
  43. package/dist/celebrations/index.js +73 -0
  44. package/dist/celebrations/types.d.ts +34 -0
  45. package/dist/celebrations/types.d.ts.map +1 -0
  46. package/dist/celebrations/types.js +1 -0
  47. package/dist/editor.d.ts.map +1 -1
  48. package/dist/editor.js +59 -5
  49. package/dist/executors/tour.d.ts +20 -0
  50. package/dist/executors/tour.d.ts.map +1 -0
  51. package/dist/executors/tour.js +335 -0
  52. package/dist/modal.d.ts +2 -0
  53. package/dist/modal.d.ts.map +1 -1
  54. package/dist/modal.js +18 -8
  55. package/dist/runtime.d.ts +25 -2
  56. package/dist/runtime.d.ts.map +1 -1
  57. package/dist/runtime.js +141 -24
  58. package/dist/schema.d.ts +684 -4
  59. package/dist/schema.d.ts.map +1 -1
  60. package/dist/schema.js +36 -0
  61. package/dist/summarize.d.ts.map +1 -1
  62. package/dist/summarize.js +15 -4
  63. package/dist/tooltip.d.ts.map +1 -1
  64. package/dist/tooltip.js +26 -12
  65. package/dist/tour-types.d.ts +34 -0
  66. package/dist/tour-types.d.ts.map +1 -0
  67. package/dist/tour-types.js +7 -0
  68. package/dist/types.d.ts +20 -85
  69. package/dist/types.d.ts.map +1 -1
  70. package/dist/workflow-types.d.ts +15 -0
  71. package/dist/workflow-types.d.ts.map +1 -0
  72. package/dist/workflow-types.js +1 -0
  73. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.d.ts +2 -0
  74. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.d.ts.map +1 -0
  75. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/AnchorPicker.test.js +224 -0
  76. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/ConditionStatusLine.test.js +102 -0
  77. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/DetectionBadge.test.js +58 -6
  78. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/DismissedSection.test.js +18 -0
  79. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/EditorCard.test.js +61 -2
  80. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/EditorPanelShell.test.js +478 -7
  81. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/ElementHighlight.test.js +54 -0
  82. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.d.ts +2 -0
  83. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.d.ts.map +1 -0
  84. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/selectorGenerator.test.js +257 -0
  85. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.d.ts +2 -0
  86. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.d.ts.map +1 -0
  87. package/node_modules/@syntrologie/shared-editor-ui/dist/__tests__/useTriggerWhenStatus.test.js +1015 -0
  88. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +1 -1
  89. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +4 -4
  90. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +1 -1
  91. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +2 -2
  92. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +2 -1
  93. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +1 -1
  94. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +20 -3
  95. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +10 -8
  96. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +1 -1
  97. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +350 -87
  98. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +1 -1
  99. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +3 -3
  100. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +1 -1
  101. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +1 -1
  102. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +1 -1
  103. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +1 -1
  104. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +5 -2
  105. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +24 -0
  106. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +1 -0
  107. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/{useShowWhenStatus.js → useTriggerWhenStatus.js} +18 -15
  108. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +3 -3
  109. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +1 -1
  110. package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +1 -1
  111. package/package.json +3 -2
  112. package/node_modules/@syntrologie/sdk-contracts/dist/index.d.ts +0 -26
  113. package/node_modules/@syntrologie/sdk-contracts/dist/index.js +0 -13
  114. package/node_modules/@syntrologie/sdk-contracts/dist/schemas.d.ts +0 -1428
  115. package/node_modules/@syntrologie/sdk-contracts/dist/schemas.js +0 -142
  116. package/node_modules/@syntrologie/sdk-contracts/package.json +0 -33
  117. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useShowWhenStatus.d.ts +0 -24
  118. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useShowWhenStatus.d.ts.map +0 -1
package/dist/schema.d.ts CHANGED
@@ -254,8 +254,8 @@ export declare const configSchema: z.ZodObject<{
254
254
  startStep: z.ZodOptional<z.ZodString>;
255
255
  autoStart: z.ZodOptional<z.ZodBoolean>;
256
256
  }, "strip", z.ZodTypeAny, {
257
- summary: string;
258
257
  tourId: string;
258
+ summary: string;
259
259
  steps: {
260
260
  id: string;
261
261
  action: Record<string, unknown>;
@@ -265,8 +265,8 @@ export declare const configSchema: z.ZodObject<{
265
265
  startStep?: string | undefined;
266
266
  autoStart?: boolean | undefined;
267
267
  }, {
268
- summary: string;
269
268
  tourId: string;
269
+ summary: string;
270
270
  steps: {
271
271
  id: string;
272
272
  action: Record<string, unknown>;
@@ -335,8 +335,8 @@ export declare const configSchema: z.ZodObject<{
335
335
  }[] | undefined;
336
336
  }[] | undefined;
337
337
  tours?: {
338
- summary: string;
339
338
  tourId: string;
339
+ summary: string;
340
340
  steps: {
341
341
  id: string;
342
342
  action: Record<string, unknown>;
@@ -405,8 +405,8 @@ export declare const configSchema: z.ZodObject<{
405
405
  }[] | undefined;
406
406
  }[] | undefined;
407
407
  tours?: {
408
- summary: string;
409
408
  tourId: string;
409
+ summary: string;
410
410
  steps: {
411
411
  id: string;
412
412
  action: Record<string, unknown>;
@@ -418,4 +418,684 @@ export declare const configSchema: z.ZodObject<{
418
418
  }[] | undefined;
419
419
  }>;
420
420
  export type OverlaysConfig = z.infer<typeof configSchema>;
421
+ export declare const actionStepSchemas: {
422
+ defName: string;
423
+ schema: z.ZodObject<{
424
+ kind: z.ZodLiteral<"overlays:celebrate">;
425
+ effect: z.ZodString;
426
+ duration: z.ZodOptional<z.ZodNumber>;
427
+ intensity: z.ZodOptional<z.ZodEnum<["light", "medium", "heavy"]>>;
428
+ colors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
429
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
430
+ label: z.ZodOptional<z.ZodString>;
431
+ triggerWhen: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
432
+ type: z.ZodLiteral<"rules">;
433
+ rules: z.ZodArray<z.ZodObject<{
434
+ conditions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
435
+ type: z.ZodLiteral<"page_url">;
436
+ url: z.ZodString;
437
+ }, "strip", z.ZodTypeAny, {
438
+ type: "page_url";
439
+ url: string;
440
+ }, {
441
+ type: "page_url";
442
+ url: string;
443
+ }>, z.ZodObject<{
444
+ type: z.ZodLiteral<"route">;
445
+ routeId: z.ZodString;
446
+ }, "strip", z.ZodTypeAny, {
447
+ type: "route";
448
+ routeId: string;
449
+ }, {
450
+ type: "route";
451
+ routeId: string;
452
+ }>, z.ZodObject<{
453
+ type: z.ZodLiteral<"anchor_visible">;
454
+ anchorId: z.ZodString;
455
+ state: z.ZodEnum<["visible", "present", "absent"]>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ type: "anchor_visible";
458
+ anchorId: string;
459
+ state: "visible" | "present" | "absent";
460
+ }, {
461
+ type: "anchor_visible";
462
+ anchorId: string;
463
+ state: "visible" | "present" | "absent";
464
+ }>, z.ZodObject<{
465
+ type: z.ZodLiteral<"event_occurred">;
466
+ eventName: z.ZodString;
467
+ withinMs: z.ZodOptional<z.ZodNumber>;
468
+ }, "strip", z.ZodTypeAny, {
469
+ type: "event_occurred";
470
+ eventName: string;
471
+ withinMs?: number | undefined;
472
+ }, {
473
+ type: "event_occurred";
474
+ eventName: string;
475
+ withinMs?: number | undefined;
476
+ }>, z.ZodObject<{
477
+ type: z.ZodLiteral<"state_equals">;
478
+ key: z.ZodString;
479
+ value: z.ZodUnknown;
480
+ }, "strip", z.ZodTypeAny, {
481
+ type: "state_equals";
482
+ key: string;
483
+ value?: unknown;
484
+ }, {
485
+ type: "state_equals";
486
+ key: string;
487
+ value?: unknown;
488
+ }>, z.ZodObject<{
489
+ type: z.ZodLiteral<"viewport">;
490
+ minWidth: z.ZodOptional<z.ZodNumber>;
491
+ maxWidth: z.ZodOptional<z.ZodNumber>;
492
+ minHeight: z.ZodOptional<z.ZodNumber>;
493
+ maxHeight: z.ZodOptional<z.ZodNumber>;
494
+ }, "strip", z.ZodTypeAny, {
495
+ type: "viewport";
496
+ minWidth?: number | undefined;
497
+ maxWidth?: number | undefined;
498
+ minHeight?: number | undefined;
499
+ maxHeight?: number | undefined;
500
+ }, {
501
+ type: "viewport";
502
+ minWidth?: number | undefined;
503
+ maxWidth?: number | undefined;
504
+ minHeight?: number | undefined;
505
+ maxHeight?: number | undefined;
506
+ }>, z.ZodObject<{
507
+ type: z.ZodLiteral<"session_metric">;
508
+ key: z.ZodString;
509
+ operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
510
+ threshold: z.ZodNumber;
511
+ }, "strip", z.ZodTypeAny, {
512
+ type: "session_metric";
513
+ key: string;
514
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
515
+ threshold: number;
516
+ }, {
517
+ type: "session_metric";
518
+ key: string;
519
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
520
+ threshold: number;
521
+ }>, z.ZodObject<{
522
+ type: z.ZodLiteral<"dismissed">;
523
+ key: z.ZodString;
524
+ inverted: z.ZodOptional<z.ZodBoolean>;
525
+ }, "strip", z.ZodTypeAny, {
526
+ type: "dismissed";
527
+ key: string;
528
+ inverted?: boolean | undefined;
529
+ }, {
530
+ type: "dismissed";
531
+ key: string;
532
+ inverted?: boolean | undefined;
533
+ }>, z.ZodObject<{
534
+ type: z.ZodLiteral<"cooldown_active">;
535
+ key: z.ZodString;
536
+ inverted: z.ZodOptional<z.ZodBoolean>;
537
+ }, "strip", z.ZodTypeAny, {
538
+ type: "cooldown_active";
539
+ key: string;
540
+ inverted?: boolean | undefined;
541
+ }, {
542
+ type: "cooldown_active";
543
+ key: string;
544
+ inverted?: boolean | undefined;
545
+ }>, z.ZodObject<{
546
+ type: z.ZodLiteral<"frequency_limit">;
547
+ key: z.ZodString;
548
+ limit: z.ZodNumber;
549
+ inverted: z.ZodOptional<z.ZodBoolean>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ type: "frequency_limit";
552
+ key: string;
553
+ limit: number;
554
+ inverted?: boolean | undefined;
555
+ }, {
556
+ type: "frequency_limit";
557
+ key: string;
558
+ limit: number;
559
+ inverted?: boolean | undefined;
560
+ }>, z.ZodObject<{
561
+ type: z.ZodLiteral<"event_count">;
562
+ key: z.ZodString;
563
+ operator: z.ZodEnum<["gte", "lte", "eq", "gt", "lt"]>;
564
+ count: z.ZodNumber;
565
+ withinMs: z.ZodOptional<z.ZodNumber>;
566
+ counter: z.ZodOptional<z.ZodObject<{
567
+ events: z.ZodArray<z.ZodString, "many">;
568
+ match: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
569
+ equals: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
570
+ contains: z.ZodOptional<z.ZodString>;
571
+ }, "strip", z.ZodTypeAny, {
572
+ equals?: string | number | boolean | undefined;
573
+ contains?: string | undefined;
574
+ }, {
575
+ equals?: string | number | boolean | undefined;
576
+ contains?: string | undefined;
577
+ }>>>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ events: string[];
580
+ match?: Record<string, {
581
+ equals?: string | number | boolean | undefined;
582
+ contains?: string | undefined;
583
+ }> | undefined;
584
+ }, {
585
+ events: string[];
586
+ match?: Record<string, {
587
+ equals?: string | number | boolean | undefined;
588
+ contains?: string | undefined;
589
+ }> | undefined;
590
+ }>>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ type: "event_count";
593
+ key: string;
594
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
595
+ count: number;
596
+ withinMs?: number | undefined;
597
+ counter?: {
598
+ events: string[];
599
+ match?: Record<string, {
600
+ equals?: string | number | boolean | undefined;
601
+ contains?: string | undefined;
602
+ }> | undefined;
603
+ } | undefined;
604
+ }, {
605
+ type: "event_count";
606
+ key: string;
607
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
608
+ count: number;
609
+ withinMs?: number | undefined;
610
+ counter?: {
611
+ events: string[];
612
+ match?: Record<string, {
613
+ equals?: string | number | boolean | undefined;
614
+ contains?: string | undefined;
615
+ }> | undefined;
616
+ } | undefined;
617
+ }>]>, "many">;
618
+ value: z.ZodUnknown;
619
+ }, "strip", z.ZodTypeAny, {
620
+ conditions: ({
621
+ type: "page_url";
622
+ url: string;
623
+ } | {
624
+ type: "route";
625
+ routeId: string;
626
+ } | {
627
+ type: "anchor_visible";
628
+ anchorId: string;
629
+ state: "visible" | "present" | "absent";
630
+ } | {
631
+ type: "event_occurred";
632
+ eventName: string;
633
+ withinMs?: number | undefined;
634
+ } | {
635
+ type: "state_equals";
636
+ key: string;
637
+ value?: unknown;
638
+ } | {
639
+ type: "viewport";
640
+ minWidth?: number | undefined;
641
+ maxWidth?: number | undefined;
642
+ minHeight?: number | undefined;
643
+ maxHeight?: number | undefined;
644
+ } | {
645
+ type: "session_metric";
646
+ key: string;
647
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
648
+ threshold: number;
649
+ } | {
650
+ type: "dismissed";
651
+ key: string;
652
+ inverted?: boolean | undefined;
653
+ } | {
654
+ type: "cooldown_active";
655
+ key: string;
656
+ inverted?: boolean | undefined;
657
+ } | {
658
+ type: "frequency_limit";
659
+ key: string;
660
+ limit: number;
661
+ inverted?: boolean | undefined;
662
+ } | {
663
+ type: "event_count";
664
+ key: string;
665
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
666
+ count: number;
667
+ withinMs?: number | undefined;
668
+ counter?: {
669
+ events: string[];
670
+ match?: Record<string, {
671
+ equals?: string | number | boolean | undefined;
672
+ contains?: string | undefined;
673
+ }> | undefined;
674
+ } | undefined;
675
+ })[];
676
+ value?: unknown;
677
+ }, {
678
+ conditions: ({
679
+ type: "page_url";
680
+ url: string;
681
+ } | {
682
+ type: "route";
683
+ routeId: string;
684
+ } | {
685
+ type: "anchor_visible";
686
+ anchorId: string;
687
+ state: "visible" | "present" | "absent";
688
+ } | {
689
+ type: "event_occurred";
690
+ eventName: string;
691
+ withinMs?: number | undefined;
692
+ } | {
693
+ type: "state_equals";
694
+ key: string;
695
+ value?: unknown;
696
+ } | {
697
+ type: "viewport";
698
+ minWidth?: number | undefined;
699
+ maxWidth?: number | undefined;
700
+ minHeight?: number | undefined;
701
+ maxHeight?: number | undefined;
702
+ } | {
703
+ type: "session_metric";
704
+ key: string;
705
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
706
+ threshold: number;
707
+ } | {
708
+ type: "dismissed";
709
+ key: string;
710
+ inverted?: boolean | undefined;
711
+ } | {
712
+ type: "cooldown_active";
713
+ key: string;
714
+ inverted?: boolean | undefined;
715
+ } | {
716
+ type: "frequency_limit";
717
+ key: string;
718
+ limit: number;
719
+ inverted?: boolean | undefined;
720
+ } | {
721
+ type: "event_count";
722
+ key: string;
723
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
724
+ count: number;
725
+ withinMs?: number | undefined;
726
+ counter?: {
727
+ events: string[];
728
+ match?: Record<string, {
729
+ equals?: string | number | boolean | undefined;
730
+ contains?: string | undefined;
731
+ }> | undefined;
732
+ } | undefined;
733
+ })[];
734
+ value?: unknown;
735
+ }>, "many">;
736
+ default: z.ZodUnknown;
737
+ }, "strip", z.ZodTypeAny, {
738
+ type: "rules";
739
+ rules: {
740
+ conditions: ({
741
+ type: "page_url";
742
+ url: string;
743
+ } | {
744
+ type: "route";
745
+ routeId: string;
746
+ } | {
747
+ type: "anchor_visible";
748
+ anchorId: string;
749
+ state: "visible" | "present" | "absent";
750
+ } | {
751
+ type: "event_occurred";
752
+ eventName: string;
753
+ withinMs?: number | undefined;
754
+ } | {
755
+ type: "state_equals";
756
+ key: string;
757
+ value?: unknown;
758
+ } | {
759
+ type: "viewport";
760
+ minWidth?: number | undefined;
761
+ maxWidth?: number | undefined;
762
+ minHeight?: number | undefined;
763
+ maxHeight?: number | undefined;
764
+ } | {
765
+ type: "session_metric";
766
+ key: string;
767
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
768
+ threshold: number;
769
+ } | {
770
+ type: "dismissed";
771
+ key: string;
772
+ inverted?: boolean | undefined;
773
+ } | {
774
+ type: "cooldown_active";
775
+ key: string;
776
+ inverted?: boolean | undefined;
777
+ } | {
778
+ type: "frequency_limit";
779
+ key: string;
780
+ limit: number;
781
+ inverted?: boolean | undefined;
782
+ } | {
783
+ type: "event_count";
784
+ key: string;
785
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
786
+ count: number;
787
+ withinMs?: number | undefined;
788
+ counter?: {
789
+ events: string[];
790
+ match?: Record<string, {
791
+ equals?: string | number | boolean | undefined;
792
+ contains?: string | undefined;
793
+ }> | undefined;
794
+ } | undefined;
795
+ })[];
796
+ value?: unknown;
797
+ }[];
798
+ default?: unknown;
799
+ }, {
800
+ type: "rules";
801
+ rules: {
802
+ conditions: ({
803
+ type: "page_url";
804
+ url: string;
805
+ } | {
806
+ type: "route";
807
+ routeId: string;
808
+ } | {
809
+ type: "anchor_visible";
810
+ anchorId: string;
811
+ state: "visible" | "present" | "absent";
812
+ } | {
813
+ type: "event_occurred";
814
+ eventName: string;
815
+ withinMs?: number | undefined;
816
+ } | {
817
+ type: "state_equals";
818
+ key: string;
819
+ value?: unknown;
820
+ } | {
821
+ type: "viewport";
822
+ minWidth?: number | undefined;
823
+ maxWidth?: number | undefined;
824
+ minHeight?: number | undefined;
825
+ maxHeight?: number | undefined;
826
+ } | {
827
+ type: "session_metric";
828
+ key: string;
829
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
830
+ threshold: number;
831
+ } | {
832
+ type: "dismissed";
833
+ key: string;
834
+ inverted?: boolean | undefined;
835
+ } | {
836
+ type: "cooldown_active";
837
+ key: string;
838
+ inverted?: boolean | undefined;
839
+ } | {
840
+ type: "frequency_limit";
841
+ key: string;
842
+ limit: number;
843
+ inverted?: boolean | undefined;
844
+ } | {
845
+ type: "event_count";
846
+ key: string;
847
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
848
+ count: number;
849
+ withinMs?: number | undefined;
850
+ counter?: {
851
+ events: string[];
852
+ match?: Record<string, {
853
+ equals?: string | number | boolean | undefined;
854
+ contains?: string | undefined;
855
+ }> | undefined;
856
+ } | undefined;
857
+ })[];
858
+ value?: unknown;
859
+ }[];
860
+ default?: unknown;
861
+ }>, z.ZodObject<{
862
+ type: z.ZodLiteral<"score">;
863
+ field: z.ZodString;
864
+ threshold: z.ZodNumber;
865
+ above: z.ZodUnknown;
866
+ below: z.ZodUnknown;
867
+ }, "strip", z.ZodTypeAny, {
868
+ type: "score";
869
+ threshold: number;
870
+ field: string;
871
+ above?: unknown;
872
+ below?: unknown;
873
+ }, {
874
+ type: "score";
875
+ threshold: number;
876
+ field: string;
877
+ above?: unknown;
878
+ below?: unknown;
879
+ }>, z.ZodObject<{
880
+ type: z.ZodLiteral<"model">;
881
+ modelId: z.ZodString;
882
+ inputs: z.ZodArray<z.ZodString, "many">;
883
+ outputMapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
884
+ default: z.ZodUnknown;
885
+ }, "strip", z.ZodTypeAny, {
886
+ type: "model";
887
+ modelId: string;
888
+ inputs: string[];
889
+ outputMapping: Record<string, unknown>;
890
+ default?: unknown;
891
+ }, {
892
+ type: "model";
893
+ modelId: string;
894
+ inputs: string[];
895
+ outputMapping: Record<string, unknown>;
896
+ default?: unknown;
897
+ }>, z.ZodObject<{
898
+ type: z.ZodLiteral<"external">;
899
+ endpoint: z.ZodString;
900
+ method: z.ZodOptional<z.ZodEnum<["GET", "POST"]>>;
901
+ default: z.ZodUnknown;
902
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
903
+ }, "strip", z.ZodTypeAny, {
904
+ type: "external";
905
+ endpoint: string;
906
+ default?: unknown;
907
+ method?: "GET" | "POST" | undefined;
908
+ timeoutMs?: number | undefined;
909
+ }, {
910
+ type: "external";
911
+ endpoint: string;
912
+ default?: unknown;
913
+ method?: "GET" | "POST" | undefined;
914
+ timeoutMs?: number | undefined;
915
+ }>]>>>;
916
+ }, "strict", z.ZodTypeAny, {
917
+ kind: "overlays:celebrate";
918
+ effect: string;
919
+ label?: string | undefined;
920
+ props?: Record<string, unknown> | undefined;
921
+ triggerWhen?: {
922
+ type: "rules";
923
+ rules: {
924
+ conditions: ({
925
+ type: "page_url";
926
+ url: string;
927
+ } | {
928
+ type: "route";
929
+ routeId: string;
930
+ } | {
931
+ type: "anchor_visible";
932
+ anchorId: string;
933
+ state: "visible" | "present" | "absent";
934
+ } | {
935
+ type: "event_occurred";
936
+ eventName: string;
937
+ withinMs?: number | undefined;
938
+ } | {
939
+ type: "state_equals";
940
+ key: string;
941
+ value?: unknown;
942
+ } | {
943
+ type: "viewport";
944
+ minWidth?: number | undefined;
945
+ maxWidth?: number | undefined;
946
+ minHeight?: number | undefined;
947
+ maxHeight?: number | undefined;
948
+ } | {
949
+ type: "session_metric";
950
+ key: string;
951
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
952
+ threshold: number;
953
+ } | {
954
+ type: "dismissed";
955
+ key: string;
956
+ inverted?: boolean | undefined;
957
+ } | {
958
+ type: "cooldown_active";
959
+ key: string;
960
+ inverted?: boolean | undefined;
961
+ } | {
962
+ type: "frequency_limit";
963
+ key: string;
964
+ limit: number;
965
+ inverted?: boolean | undefined;
966
+ } | {
967
+ type: "event_count";
968
+ key: string;
969
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
970
+ count: number;
971
+ withinMs?: number | undefined;
972
+ counter?: {
973
+ events: string[];
974
+ match?: Record<string, {
975
+ equals?: string | number | boolean | undefined;
976
+ contains?: string | undefined;
977
+ }> | undefined;
978
+ } | undefined;
979
+ })[];
980
+ value?: unknown;
981
+ }[];
982
+ default?: unknown;
983
+ } | {
984
+ type: "score";
985
+ threshold: number;
986
+ field: string;
987
+ above?: unknown;
988
+ below?: unknown;
989
+ } | {
990
+ type: "model";
991
+ modelId: string;
992
+ inputs: string[];
993
+ outputMapping: Record<string, unknown>;
994
+ default?: unknown;
995
+ } | {
996
+ type: "external";
997
+ endpoint: string;
998
+ default?: unknown;
999
+ method?: "GET" | "POST" | undefined;
1000
+ timeoutMs?: number | undefined;
1001
+ } | null | undefined;
1002
+ duration?: number | undefined;
1003
+ intensity?: "medium" | "light" | "heavy" | undefined;
1004
+ colors?: string[] | undefined;
1005
+ }, {
1006
+ kind: "overlays:celebrate";
1007
+ effect: string;
1008
+ label?: string | undefined;
1009
+ props?: Record<string, unknown> | undefined;
1010
+ triggerWhen?: {
1011
+ type: "rules";
1012
+ rules: {
1013
+ conditions: ({
1014
+ type: "page_url";
1015
+ url: string;
1016
+ } | {
1017
+ type: "route";
1018
+ routeId: string;
1019
+ } | {
1020
+ type: "anchor_visible";
1021
+ anchorId: string;
1022
+ state: "visible" | "present" | "absent";
1023
+ } | {
1024
+ type: "event_occurred";
1025
+ eventName: string;
1026
+ withinMs?: number | undefined;
1027
+ } | {
1028
+ type: "state_equals";
1029
+ key: string;
1030
+ value?: unknown;
1031
+ } | {
1032
+ type: "viewport";
1033
+ minWidth?: number | undefined;
1034
+ maxWidth?: number | undefined;
1035
+ minHeight?: number | undefined;
1036
+ maxHeight?: number | undefined;
1037
+ } | {
1038
+ type: "session_metric";
1039
+ key: string;
1040
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
1041
+ threshold: number;
1042
+ } | {
1043
+ type: "dismissed";
1044
+ key: string;
1045
+ inverted?: boolean | undefined;
1046
+ } | {
1047
+ type: "cooldown_active";
1048
+ key: string;
1049
+ inverted?: boolean | undefined;
1050
+ } | {
1051
+ type: "frequency_limit";
1052
+ key: string;
1053
+ limit: number;
1054
+ inverted?: boolean | undefined;
1055
+ } | {
1056
+ type: "event_count";
1057
+ key: string;
1058
+ operator: "gte" | "lte" | "eq" | "gt" | "lt";
1059
+ count: number;
1060
+ withinMs?: number | undefined;
1061
+ counter?: {
1062
+ events: string[];
1063
+ match?: Record<string, {
1064
+ equals?: string | number | boolean | undefined;
1065
+ contains?: string | undefined;
1066
+ }> | undefined;
1067
+ } | undefined;
1068
+ })[];
1069
+ value?: unknown;
1070
+ }[];
1071
+ default?: unknown;
1072
+ } | {
1073
+ type: "score";
1074
+ threshold: number;
1075
+ field: string;
1076
+ above?: unknown;
1077
+ below?: unknown;
1078
+ } | {
1079
+ type: "model";
1080
+ modelId: string;
1081
+ inputs: string[];
1082
+ outputMapping: Record<string, unknown>;
1083
+ default?: unknown;
1084
+ } | {
1085
+ type: "external";
1086
+ endpoint: string;
1087
+ default?: unknown;
1088
+ method?: "GET" | "POST" | undefined;
1089
+ timeoutMs?: number | undefined;
1090
+ } | null | undefined;
1091
+ duration?: number | undefined;
1092
+ intensity?: "medium" | "light" | "heavy" | undefined;
1093
+ colors?: string[] | undefined;
1094
+ }>;
1095
+ }[];
1096
+ export declare const tileWidgets: {
1097
+ widget: string;
1098
+ defName: string;
1099
+ propsSchema: z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>;
1100
+ }[];
421
1101
  //# sourceMappingURL=schema.d.ts.map