@officexapp/catalog-types 0.1.1 → 0.1.3

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 (2) hide show
  1. package/dist/index.d.ts +23 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -482,6 +482,20 @@ export interface TopBarCountdown {
482
482
  /** Text shown when countdown expires */
483
483
  expired_text?: string;
484
484
  }
485
+ export interface TopBarAnnouncement {
486
+ /** Plain text content (ignored if html is set) */
487
+ text?: string;
488
+ /** Raw HTML content for the announcement strip */
489
+ html?: string;
490
+ /** Background color. Default: theme color */
491
+ bg_color?: string;
492
+ /** Text color. Default: "#ffffff" */
493
+ text_color?: string;
494
+ /** Extra CSS class names */
495
+ className?: string;
496
+ /** Inline style overrides */
497
+ style?: Record<string, string | number>;
498
+ }
485
499
  export interface TopBarConfig {
486
500
  /** false = hide the entire top bar. Default: true */
487
501
  enabled?: boolean;
@@ -495,7 +509,9 @@ export interface TopBarConfig {
495
509
  title_weight?: "light" | "normal" | "medium" | "semibold" | "bold";
496
510
  /** Countdown timer config */
497
511
  countdown?: TopBarCountdown;
498
- /** Raw HTML to render in the top bar */
512
+ /** Announcement banner strip above the nav row */
513
+ announcement?: TopBarAnnouncement;
514
+ /** Raw HTML to render in the top bar nav row (replaces default content) */
499
515
  custom_html?: string;
500
516
  /** Extra CSS class names */
501
517
  className?: string;
@@ -787,8 +803,13 @@ export interface CartSettings {
787
803
  title?: string;
788
804
  /** Override text for the "Proceed to Checkout" button in the cart drawer */
789
805
  checkout_button_text?: string;
790
- /** External URL to redirect to on checkout instead of the built-in checkout page.
806
+ /** External URL to navigate to on checkout instead of the built-in checkout page.
791
807
  * Supports {{field_id}} template variables (e.g. "https://pay.example.com?email={{email}}"). */
808
+ destination_url?: string;
809
+ /** Internal page ID to navigate to on checkout instead of the built-in checkout overlay.
810
+ * Use for pre-checkout pages (review, terms, trial signup) within the funnel. */
811
+ destination_page?: string;
812
+ /** @deprecated Use destination_url instead */
792
813
  checkout_url?: string;
793
814
  /** Position of the floating cart button (default: "bottom-right") */
794
815
  position?: CartPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@officexapp/catalog-types",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "TypeScript type definitions for CatalogKit schemas",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",