@squiz/dx-page-contents-lib 1.70.2 → 1.70.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.
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { CustomLayout } from './custom-layout';
2
3
  export declare const PageLayout: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
3
4
  name: z.ZodLiteral<"layout-raw">;
4
5
  content: z.ZodObject<{
@@ -2349,10 +2350,663 @@ export declare const PageLayout: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
2349
2350
  })[];
2350
2351
  };
2351
2352
  name: "two-column";
2353
+ }>, z.ZodObject<{
2354
+ name: z.ZodLiteral<"custom-layout">;
2355
+ config: z.ZodObject<{
2356
+ rootWrapper: z.ZodObject<{
2357
+ tag: z.ZodString;
2358
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2359
+ }, "strip", z.ZodTypeAny, {
2360
+ tag: string;
2361
+ classes?: string[] | undefined;
2362
+ }, {
2363
+ tag: string;
2364
+ classes?: string[] | undefined;
2365
+ }>;
2366
+ nodeWrapper: z.ZodOptional<z.ZodObject<{
2367
+ tag: z.ZodString;
2368
+ classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2369
+ }, "strip", z.ZodTypeAny, {
2370
+ tag: string;
2371
+ classes?: string[] | undefined;
2372
+ }, {
2373
+ tag: string;
2374
+ classes?: string[] | undefined;
2375
+ }>>;
2376
+ }, "strip", z.ZodTypeAny, {
2377
+ rootWrapper: {
2378
+ tag: string;
2379
+ classes?: string[] | undefined;
2380
+ };
2381
+ nodeWrapper?: {
2382
+ tag: string;
2383
+ classes?: string[] | undefined;
2384
+ } | undefined;
2385
+ }, {
2386
+ rootWrapper: {
2387
+ tag: string;
2388
+ classes?: string[] | undefined;
2389
+ };
2390
+ nodeWrapper?: {
2391
+ tag: string;
2392
+ classes?: string[] | undefined;
2393
+ } | undefined;
2394
+ }>;
2395
+ content: z.ZodObject<{
2396
+ main: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodType<{
2397
+ value: string;
2398
+ type: "text";
2399
+ } | {
2400
+ type: "matrix-image";
2401
+ matrixDomain: string;
2402
+ matrixAssetId: string;
2403
+ attributes?: (Record<string, string> & {
2404
+ src?: undefined;
2405
+ }) | undefined;
2406
+ formattingOptions?: {
2407
+ alignment: "left" | "center" | "right" | "justify";
2408
+ } | undefined;
2409
+ matrixIdentifier?: string | undefined;
2410
+ } | {
2411
+ type: "dam-image";
2412
+ damSystemType: "bynder";
2413
+ damSystemIdentifier: string;
2414
+ damObjectId: string;
2415
+ attributes?: (Record<string, string> & {
2416
+ src?: undefined;
2417
+ }) | undefined;
2418
+ formattingOptions?: {
2419
+ alignment: "left" | "center" | "right" | "justify";
2420
+ } | undefined;
2421
+ damAdditional?: {
2422
+ variant?: string | undefined;
2423
+ } | undefined;
2424
+ } | {
2425
+ type: "component";
2426
+ componentId: string;
2427
+ componentSet: string;
2428
+ componentType?: "server" | "edge" | undefined;
2429
+ contentItem?: {
2430
+ id: string;
2431
+ } | {
2432
+ content: Record<string, unknown>;
2433
+ schemaName: string;
2434
+ } | undefined;
2435
+ } | (({
2436
+ type: "tag";
2437
+ tag: string;
2438
+ attributes?: Record<string, string> | undefined;
2439
+ font?: {
2440
+ bold?: boolean | undefined;
2441
+ italics?: boolean | undefined;
2442
+ underline?: boolean | undefined;
2443
+ color?: string | undefined;
2444
+ size?: string | undefined;
2445
+ fontFamily?: string | undefined;
2446
+ } | undefined;
2447
+ formattingOptions?: {
2448
+ alignment: "left" | "center" | "right" | "justify";
2449
+ } | undefined;
2450
+ } | {
2451
+ type: "fragment";
2452
+ } | {
2453
+ type: "link-to-matrix-asset";
2454
+ matrixDomain: string;
2455
+ matrixAssetId: string;
2456
+ target: "_blank" | "_self" | "_parent" | "_top";
2457
+ attributes?: (Record<string, string> & {
2458
+ target?: undefined;
2459
+ href?: undefined;
2460
+ }) | undefined;
2461
+ formattingOptions?: {
2462
+ alignment: "left" | "center" | "right" | "justify";
2463
+ } | undefined;
2464
+ matrixIdentifier?: string | undefined;
2465
+ }) & {
2466
+ children: import("../layout-content").LayoutContentNodes[];
2467
+ }), z.ZodTypeDef, {
2468
+ value: string;
2469
+ type: "text";
2470
+ } | {
2471
+ type: "tag";
2472
+ tag: string;
2473
+ attributes?: Record<string, string> | undefined;
2474
+ font?: {
2475
+ bold?: boolean | undefined;
2476
+ italics?: boolean | undefined;
2477
+ underline?: boolean | undefined;
2478
+ color?: string | undefined;
2479
+ size?: string | undefined;
2480
+ fontFamily?: string | undefined;
2481
+ } | undefined;
2482
+ formattingOptions?: {
2483
+ alignment: "left" | "center" | "right" | "justify";
2484
+ } | undefined;
2485
+ } | {
2486
+ type: "fragment";
2487
+ } | {
2488
+ type: "link-to-matrix-asset";
2489
+ matrixDomain: string;
2490
+ matrixAssetId: string;
2491
+ target: "_blank" | "_self" | "_parent" | "_top";
2492
+ attributes?: (Record<string, string> & {
2493
+ target?: undefined;
2494
+ href?: undefined;
2495
+ }) | undefined;
2496
+ formattingOptions?: {
2497
+ alignment: "left" | "center" | "right" | "justify";
2498
+ } | undefined;
2499
+ matrixIdentifier?: string | undefined;
2500
+ } | {
2501
+ type: "matrix-image";
2502
+ matrixDomain: string;
2503
+ matrixAssetId: string;
2504
+ attributes?: (Record<string, string> & {
2505
+ src?: undefined;
2506
+ }) | undefined;
2507
+ formattingOptions?: {
2508
+ alignment: "left" | "center" | "right" | "justify";
2509
+ } | undefined;
2510
+ matrixIdentifier?: string | undefined;
2511
+ } | {
2512
+ type: "dam-image";
2513
+ damSystemType: "bynder";
2514
+ damSystemIdentifier: string;
2515
+ damObjectId: string;
2516
+ attributes?: (Record<string, string> & {
2517
+ src?: undefined;
2518
+ }) | undefined;
2519
+ formattingOptions?: {
2520
+ alignment: "left" | "center" | "right" | "justify";
2521
+ } | undefined;
2522
+ damAdditional?: {
2523
+ variant?: string | undefined;
2524
+ } | undefined;
2525
+ } | {
2526
+ type: "component";
2527
+ componentId: string;
2528
+ componentSet: string;
2529
+ componentType?: "server" | "edge" | undefined;
2530
+ contentItem?: {
2531
+ id: string;
2532
+ } | {
2533
+ content: Record<string, unknown>;
2534
+ schemaName: string;
2535
+ } | undefined;
2536
+ }>, z.ZodType<import("../layout-content").LayoutVariationNode, z.ZodTypeDef, {
2537
+ type: "variation";
2538
+ default: {};
2539
+ }>]>, "many">, (import("../layout-content").LayoutVariationNode | ({
2540
+ value: string;
2541
+ type: "text";
2542
+ } | {
2543
+ type: "matrix-image";
2544
+ matrixDomain: string;
2545
+ matrixAssetId: string;
2546
+ attributes?: (Record<string, string> & {
2547
+ src?: undefined;
2548
+ }) | undefined;
2549
+ formattingOptions?: {
2550
+ alignment: "left" | "center" | "right" | "justify";
2551
+ } | undefined;
2552
+ matrixIdentifier?: string | undefined;
2553
+ } | {
2554
+ type: "dam-image";
2555
+ damSystemType: "bynder";
2556
+ damSystemIdentifier: string;
2557
+ damObjectId: string;
2558
+ attributes?: (Record<string, string> & {
2559
+ src?: undefined;
2560
+ }) | undefined;
2561
+ formattingOptions?: {
2562
+ alignment: "left" | "center" | "right" | "justify";
2563
+ } | undefined;
2564
+ damAdditional?: {
2565
+ variant?: string | undefined;
2566
+ } | undefined;
2567
+ } | {
2568
+ type: "component";
2569
+ componentId: string;
2570
+ componentSet: string;
2571
+ componentType?: "server" | "edge" | undefined;
2572
+ contentItem?: {
2573
+ id: string;
2574
+ } | {
2575
+ content: Record<string, unknown>;
2576
+ schemaName: string;
2577
+ } | undefined;
2578
+ } | (({
2579
+ type: "tag";
2580
+ tag: string;
2581
+ attributes?: Record<string, string> | undefined;
2582
+ font?: {
2583
+ bold?: boolean | undefined;
2584
+ italics?: boolean | undefined;
2585
+ underline?: boolean | undefined;
2586
+ color?: string | undefined;
2587
+ size?: string | undefined;
2588
+ fontFamily?: string | undefined;
2589
+ } | undefined;
2590
+ formattingOptions?: {
2591
+ alignment: "left" | "center" | "right" | "justify";
2592
+ } | undefined;
2593
+ } | {
2594
+ type: "fragment";
2595
+ } | {
2596
+ type: "link-to-matrix-asset";
2597
+ matrixDomain: string;
2598
+ matrixAssetId: string;
2599
+ target: "_blank" | "_self" | "_parent" | "_top";
2600
+ attributes?: (Record<string, string> & {
2601
+ target?: undefined;
2602
+ href?: undefined;
2603
+ }) | undefined;
2604
+ formattingOptions?: {
2605
+ alignment: "left" | "center" | "right" | "justify";
2606
+ } | undefined;
2607
+ matrixIdentifier?: string | undefined;
2608
+ }) & {
2609
+ children: import("../layout-content").LayoutContentNodes[];
2610
+ })))[], ({
2611
+ value: string;
2612
+ type: "text";
2613
+ } | {
2614
+ type: "tag";
2615
+ tag: string;
2616
+ attributes?: Record<string, string> | undefined;
2617
+ font?: {
2618
+ bold?: boolean | undefined;
2619
+ italics?: boolean | undefined;
2620
+ underline?: boolean | undefined;
2621
+ color?: string | undefined;
2622
+ size?: string | undefined;
2623
+ fontFamily?: string | undefined;
2624
+ } | undefined;
2625
+ formattingOptions?: {
2626
+ alignment: "left" | "center" | "right" | "justify";
2627
+ } | undefined;
2628
+ } | {
2629
+ type: "fragment";
2630
+ } | {
2631
+ type: "link-to-matrix-asset";
2632
+ matrixDomain: string;
2633
+ matrixAssetId: string;
2634
+ target: "_blank" | "_self" | "_parent" | "_top";
2635
+ attributes?: (Record<string, string> & {
2636
+ target?: undefined;
2637
+ href?: undefined;
2638
+ }) | undefined;
2639
+ formattingOptions?: {
2640
+ alignment: "left" | "center" | "right" | "justify";
2641
+ } | undefined;
2642
+ matrixIdentifier?: string | undefined;
2643
+ } | {
2644
+ type: "matrix-image";
2645
+ matrixDomain: string;
2646
+ matrixAssetId: string;
2647
+ attributes?: (Record<string, string> & {
2648
+ src?: undefined;
2649
+ }) | undefined;
2650
+ formattingOptions?: {
2651
+ alignment: "left" | "center" | "right" | "justify";
2652
+ } | undefined;
2653
+ matrixIdentifier?: string | undefined;
2654
+ } | {
2655
+ type: "dam-image";
2656
+ damSystemType: "bynder";
2657
+ damSystemIdentifier: string;
2658
+ damObjectId: string;
2659
+ attributes?: (Record<string, string> & {
2660
+ src?: undefined;
2661
+ }) | undefined;
2662
+ formattingOptions?: {
2663
+ alignment: "left" | "center" | "right" | "justify";
2664
+ } | undefined;
2665
+ damAdditional?: {
2666
+ variant?: string | undefined;
2667
+ } | undefined;
2668
+ } | {
2669
+ type: "component";
2670
+ componentId: string;
2671
+ componentSet: string;
2672
+ componentType?: "server" | "edge" | undefined;
2673
+ contentItem?: {
2674
+ id: string;
2675
+ } | {
2676
+ content: Record<string, unknown>;
2677
+ schemaName: string;
2678
+ } | undefined;
2679
+ } | {
2680
+ type: "variation";
2681
+ default: {};
2682
+ })[]>;
2683
+ }, "strip", z.ZodTypeAny, {
2684
+ main: (import("../layout-content").LayoutVariationNode | ({
2685
+ value: string;
2686
+ type: "text";
2687
+ } | {
2688
+ type: "matrix-image";
2689
+ matrixDomain: string;
2690
+ matrixAssetId: string;
2691
+ attributes?: (Record<string, string> & {
2692
+ src?: undefined;
2693
+ }) | undefined;
2694
+ formattingOptions?: {
2695
+ alignment: "left" | "center" | "right" | "justify";
2696
+ } | undefined;
2697
+ matrixIdentifier?: string | undefined;
2698
+ } | {
2699
+ type: "dam-image";
2700
+ damSystemType: "bynder";
2701
+ damSystemIdentifier: string;
2702
+ damObjectId: string;
2703
+ attributes?: (Record<string, string> & {
2704
+ src?: undefined;
2705
+ }) | undefined;
2706
+ formattingOptions?: {
2707
+ alignment: "left" | "center" | "right" | "justify";
2708
+ } | undefined;
2709
+ damAdditional?: {
2710
+ variant?: string | undefined;
2711
+ } | undefined;
2712
+ } | {
2713
+ type: "component";
2714
+ componentId: string;
2715
+ componentSet: string;
2716
+ componentType?: "server" | "edge" | undefined;
2717
+ contentItem?: {
2718
+ id: string;
2719
+ } | {
2720
+ content: Record<string, unknown>;
2721
+ schemaName: string;
2722
+ } | undefined;
2723
+ } | (({
2724
+ type: "tag";
2725
+ tag: string;
2726
+ attributes?: Record<string, string> | undefined;
2727
+ font?: {
2728
+ bold?: boolean | undefined;
2729
+ italics?: boolean | undefined;
2730
+ underline?: boolean | undefined;
2731
+ color?: string | undefined;
2732
+ size?: string | undefined;
2733
+ fontFamily?: string | undefined;
2734
+ } | undefined;
2735
+ formattingOptions?: {
2736
+ alignment: "left" | "center" | "right" | "justify";
2737
+ } | undefined;
2738
+ } | {
2739
+ type: "fragment";
2740
+ } | {
2741
+ type: "link-to-matrix-asset";
2742
+ matrixDomain: string;
2743
+ matrixAssetId: string;
2744
+ target: "_blank" | "_self" | "_parent" | "_top";
2745
+ attributes?: (Record<string, string> & {
2746
+ target?: undefined;
2747
+ href?: undefined;
2748
+ }) | undefined;
2749
+ formattingOptions?: {
2750
+ alignment: "left" | "center" | "right" | "justify";
2751
+ } | undefined;
2752
+ matrixIdentifier?: string | undefined;
2753
+ }) & {
2754
+ children: import("../layout-content").LayoutContentNodes[];
2755
+ })))[];
2756
+ }, {
2757
+ main: ({
2758
+ value: string;
2759
+ type: "text";
2760
+ } | {
2761
+ type: "tag";
2762
+ tag: string;
2763
+ attributes?: Record<string, string> | undefined;
2764
+ font?: {
2765
+ bold?: boolean | undefined;
2766
+ italics?: boolean | undefined;
2767
+ underline?: boolean | undefined;
2768
+ color?: string | undefined;
2769
+ size?: string | undefined;
2770
+ fontFamily?: string | undefined;
2771
+ } | undefined;
2772
+ formattingOptions?: {
2773
+ alignment: "left" | "center" | "right" | "justify";
2774
+ } | undefined;
2775
+ } | {
2776
+ type: "fragment";
2777
+ } | {
2778
+ type: "link-to-matrix-asset";
2779
+ matrixDomain: string;
2780
+ matrixAssetId: string;
2781
+ target: "_blank" | "_self" | "_parent" | "_top";
2782
+ attributes?: (Record<string, string> & {
2783
+ target?: undefined;
2784
+ href?: undefined;
2785
+ }) | undefined;
2786
+ formattingOptions?: {
2787
+ alignment: "left" | "center" | "right" | "justify";
2788
+ } | undefined;
2789
+ matrixIdentifier?: string | undefined;
2790
+ } | {
2791
+ type: "matrix-image";
2792
+ matrixDomain: string;
2793
+ matrixAssetId: string;
2794
+ attributes?: (Record<string, string> & {
2795
+ src?: undefined;
2796
+ }) | undefined;
2797
+ formattingOptions?: {
2798
+ alignment: "left" | "center" | "right" | "justify";
2799
+ } | undefined;
2800
+ matrixIdentifier?: string | undefined;
2801
+ } | {
2802
+ type: "dam-image";
2803
+ damSystemType: "bynder";
2804
+ damSystemIdentifier: string;
2805
+ damObjectId: string;
2806
+ attributes?: (Record<string, string> & {
2807
+ src?: undefined;
2808
+ }) | undefined;
2809
+ formattingOptions?: {
2810
+ alignment: "left" | "center" | "right" | "justify";
2811
+ } | undefined;
2812
+ damAdditional?: {
2813
+ variant?: string | undefined;
2814
+ } | undefined;
2815
+ } | {
2816
+ type: "component";
2817
+ componentId: string;
2818
+ componentSet: string;
2819
+ componentType?: "server" | "edge" | undefined;
2820
+ contentItem?: {
2821
+ id: string;
2822
+ } | {
2823
+ content: Record<string, unknown>;
2824
+ schemaName: string;
2825
+ } | undefined;
2826
+ } | {
2827
+ type: "variation";
2828
+ default: {};
2829
+ })[];
2830
+ }>;
2831
+ }, "strip", z.ZodTypeAny, {
2832
+ content: {
2833
+ main: (import("../layout-content").LayoutVariationNode | ({
2834
+ value: string;
2835
+ type: "text";
2836
+ } | {
2837
+ type: "matrix-image";
2838
+ matrixDomain: string;
2839
+ matrixAssetId: string;
2840
+ attributes?: (Record<string, string> & {
2841
+ src?: undefined;
2842
+ }) | undefined;
2843
+ formattingOptions?: {
2844
+ alignment: "left" | "center" | "right" | "justify";
2845
+ } | undefined;
2846
+ matrixIdentifier?: string | undefined;
2847
+ } | {
2848
+ type: "dam-image";
2849
+ damSystemType: "bynder";
2850
+ damSystemIdentifier: string;
2851
+ damObjectId: string;
2852
+ attributes?: (Record<string, string> & {
2853
+ src?: undefined;
2854
+ }) | undefined;
2855
+ formattingOptions?: {
2856
+ alignment: "left" | "center" | "right" | "justify";
2857
+ } | undefined;
2858
+ damAdditional?: {
2859
+ variant?: string | undefined;
2860
+ } | undefined;
2861
+ } | {
2862
+ type: "component";
2863
+ componentId: string;
2864
+ componentSet: string;
2865
+ componentType?: "server" | "edge" | undefined;
2866
+ contentItem?: {
2867
+ id: string;
2868
+ } | {
2869
+ content: Record<string, unknown>;
2870
+ schemaName: string;
2871
+ } | undefined;
2872
+ } | (({
2873
+ type: "tag";
2874
+ tag: string;
2875
+ attributes?: Record<string, string> | undefined;
2876
+ font?: {
2877
+ bold?: boolean | undefined;
2878
+ italics?: boolean | undefined;
2879
+ underline?: boolean | undefined;
2880
+ color?: string | undefined;
2881
+ size?: string | undefined;
2882
+ fontFamily?: string | undefined;
2883
+ } | undefined;
2884
+ formattingOptions?: {
2885
+ alignment: "left" | "center" | "right" | "justify";
2886
+ } | undefined;
2887
+ } | {
2888
+ type: "fragment";
2889
+ } | {
2890
+ type: "link-to-matrix-asset";
2891
+ matrixDomain: string;
2892
+ matrixAssetId: string;
2893
+ target: "_blank" | "_self" | "_parent" | "_top";
2894
+ attributes?: (Record<string, string> & {
2895
+ target?: undefined;
2896
+ href?: undefined;
2897
+ }) | undefined;
2898
+ formattingOptions?: {
2899
+ alignment: "left" | "center" | "right" | "justify";
2900
+ } | undefined;
2901
+ matrixIdentifier?: string | undefined;
2902
+ }) & {
2903
+ children: import("../layout-content").LayoutContentNodes[];
2904
+ })))[];
2905
+ };
2906
+ name: "custom-layout";
2907
+ config: {
2908
+ rootWrapper: {
2909
+ tag: string;
2910
+ classes?: string[] | undefined;
2911
+ };
2912
+ nodeWrapper?: {
2913
+ tag: string;
2914
+ classes?: string[] | undefined;
2915
+ } | undefined;
2916
+ };
2917
+ }, {
2918
+ content: {
2919
+ main: ({
2920
+ value: string;
2921
+ type: "text";
2922
+ } | {
2923
+ type: "tag";
2924
+ tag: string;
2925
+ attributes?: Record<string, string> | undefined;
2926
+ font?: {
2927
+ bold?: boolean | undefined;
2928
+ italics?: boolean | undefined;
2929
+ underline?: boolean | undefined;
2930
+ color?: string | undefined;
2931
+ size?: string | undefined;
2932
+ fontFamily?: string | undefined;
2933
+ } | undefined;
2934
+ formattingOptions?: {
2935
+ alignment: "left" | "center" | "right" | "justify";
2936
+ } | undefined;
2937
+ } | {
2938
+ type: "fragment";
2939
+ } | {
2940
+ type: "link-to-matrix-asset";
2941
+ matrixDomain: string;
2942
+ matrixAssetId: string;
2943
+ target: "_blank" | "_self" | "_parent" | "_top";
2944
+ attributes?: (Record<string, string> & {
2945
+ target?: undefined;
2946
+ href?: undefined;
2947
+ }) | undefined;
2948
+ formattingOptions?: {
2949
+ alignment: "left" | "center" | "right" | "justify";
2950
+ } | undefined;
2951
+ matrixIdentifier?: string | undefined;
2952
+ } | {
2953
+ type: "matrix-image";
2954
+ matrixDomain: string;
2955
+ matrixAssetId: string;
2956
+ attributes?: (Record<string, string> & {
2957
+ src?: undefined;
2958
+ }) | undefined;
2959
+ formattingOptions?: {
2960
+ alignment: "left" | "center" | "right" | "justify";
2961
+ } | undefined;
2962
+ matrixIdentifier?: string | undefined;
2963
+ } | {
2964
+ type: "dam-image";
2965
+ damSystemType: "bynder";
2966
+ damSystemIdentifier: string;
2967
+ damObjectId: string;
2968
+ attributes?: (Record<string, string> & {
2969
+ src?: undefined;
2970
+ }) | undefined;
2971
+ formattingOptions?: {
2972
+ alignment: "left" | "center" | "right" | "justify";
2973
+ } | undefined;
2974
+ damAdditional?: {
2975
+ variant?: string | undefined;
2976
+ } | undefined;
2977
+ } | {
2978
+ type: "component";
2979
+ componentId: string;
2980
+ componentSet: string;
2981
+ componentType?: "server" | "edge" | undefined;
2982
+ contentItem?: {
2983
+ id: string;
2984
+ } | {
2985
+ content: Record<string, unknown>;
2986
+ schemaName: string;
2987
+ } | undefined;
2988
+ } | {
2989
+ type: "variation";
2990
+ default: {};
2991
+ })[];
2992
+ };
2993
+ name: "custom-layout";
2994
+ config: {
2995
+ rootWrapper: {
2996
+ tag: string;
2997
+ classes?: string[] | undefined;
2998
+ };
2999
+ nodeWrapper?: {
3000
+ tag: string;
3001
+ classes?: string[] | undefined;
3002
+ } | undefined;
3003
+ };
2352
3004
  }>]>;
2353
3005
  export type PageLayout = z.infer<typeof PageLayout>;
3006
+ export type CustomLayout = z.infer<typeof CustomLayout>;
2354
3007
  export declare const LAYOUT_TEMPLATES: {
2355
3008
  'layout-raw': string;
2356
3009
  'single-column': string;
2357
3010
  'two-column': string;
3011
+ 'custom-layout': string;
2358
3012
  };
@@ -5,10 +5,13 @@ const zod_1 = require("zod");
5
5
  const raw_layout_1 = require("./raw.layout");
6
6
  const single_column_layout_1 = require("./single-column.layout");
7
7
  const two_column_layout_1 = require("./two-column.layout");
8
- exports.PageLayout = zod_1.z.discriminatedUnion('name', [raw_layout_1.RawLayout, single_column_layout_1.SingleColumnLayout, two_column_layout_1.TwoColumnLayout]);
8
+ const custom_layout_1 = require("./custom-layout");
9
+ const custom_layout_2 = require("./custom-layout");
10
+ exports.PageLayout = zod_1.z.discriminatedUnion('name', [raw_layout_1.RawLayout, single_column_layout_1.SingleColumnLayout, two_column_layout_1.TwoColumnLayout, custom_layout_2.CustomLayout]);
9
11
  exports.LAYOUT_TEMPLATES = {
10
12
  'layout-raw': raw_layout_1.TEMPLATE,
11
13
  'single-column': single_column_layout_1.TEMPLATE,
12
14
  'two-column': two_column_layout_1.TEMPLATE,
15
+ 'custom-layout': custom_layout_1.CUSTOM_LAYOUT_TEMPLATE,
13
16
  };
14
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAAkE;AAClE,iEAA8F;AAC9F,2DAAqF;AAExE,QAAA,UAAU,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,sBAAS,EAAE,yCAAkB,EAAE,mCAAe,CAAC,CAAC,CAAC;AAG5F,QAAA,gBAAgB,GAAG;IAC9B,YAAY,EAAE,qBAAW;IACzB,eAAe,EAAE,+BAAoB;IACrC,YAAY,EAAE,4BAAiB;CAChC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/layouts/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,6CAAkE;AAClE,iEAA8F;AAC9F,2DAAqF;AACrF,mDAAiF;AACjF,mDAA+C;AAElC,QAAA,UAAU,GAAG,OAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE,CAAC,sBAAS,EAAE,yCAAkB,EAAE,mCAAe,EAAE,4BAAY,CAAC,CAAC,CAAC;AAK1G,QAAA,gBAAgB,GAAG;IAC9B,YAAY,EAAE,qBAAW;IACzB,eAAe,EAAE,+BAAoB;IACrC,YAAY,EAAE,4BAAiB;IAC/B,eAAe,EAAE,sCAAoB;CACtC,CAAC"}