@backgold/template-kit 0.1.0 → 0.1.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.
- package/dist/{chunk-KOB36GSF.js → chunk-RJAVFRC6.js} +9 -4
- package/dist/{constants-DvTNj4JI.d-Batjcj3Z.d.ts → constants-BAIo_Q5U.d-lQbj1e1-.d.ts} +11 -1
- package/dist/{content-api-CYeY0vU8.d.ts → content-api-Cox1-wz5.d.ts} +250 -3
- package/dist/contract/content-api-examples.d.ts +17 -3
- package/dist/contract/content-api-examples.js +146 -3
- package/dist/contract/content-api.d.ts +2 -2
- package/dist/contract/content-api.js +1 -1
- package/dist/contract/site-templates.d.ts +4 -3
- package/dist/contract/site-templates.js +1 -1
- package/package.json +5 -5
- package/src/components/chrome/Brand.astro +23 -16
- package/src/components/sections/About/credentials.ts +0 -10
- package/src/components/sections/About/index.astro +6 -3
- package/src/components/sections/About/left.astro +6 -3
- package/src/components/sections/About/letter.astro +6 -3
- package/src/components/sections/About/portrait.astro +2 -2
- package/src/components/sections/ContentPost/lesson.ts +14 -7
- package/src/components/sections/ContentPost/prose.astro +80 -0
- package/src/components/sections/Hero/cover.astro +9 -3
- package/src/components/sections/Hero/donate.astro +3 -3
- package/src/components/sections/Hero/index.astro +2 -2
- package/src/components/sections/Hero/overlap.astro +3 -3
- package/src/components/sections/Hero/split.astro +9 -6
- package/src/components/sections/Hero/statement.astro +3 -3
- package/src/components/sections/Hero/video.astro +3 -3
- package/src/components/sections/VoterTools/Lookup.astro +43 -0
- package/src/components/sections/VoterTools/dates.astro +9 -5
- package/src/components/sections/VoterTools/index.astro +12 -9
- package/src/components/sections/VoterTools/polling.astro +9 -6
- package/src/components/sections/VoterTools/voter-tools.ts +5 -4
- package/src/components/sections/index.ts +3 -0
- package/src/components/sections/modules/ModuleFrame.astro +4 -2
- package/src/components/store/CollectionPage.astro +40 -0
- package/src/components/store/ProductCard.astro +32 -0
- package/src/components/store/ProductGrid.astro +16 -0
- package/src/components/store/ProductPage.astro +146 -0
- package/src/components/store/StorePage.astro +137 -0
- package/src/components/store/StoreScript.astro +572 -0
- package/src/components/volunteer/props.ts +1 -1
- package/src/index.js +0 -1
- package/src/layouts/Site.astro +19 -3
- package/src/lib/chrome.ts +6 -4
- package/src/lib/donate-frame.ts +44 -4
- package/src/lib/live.ts +6 -5
- package/src/lib/section.ts +11 -0
- package/src/lib/shifts.ts +2 -1
- package/src/lib/store.ts +521 -0
- package/src/routes/catch-all.astro +168 -19
- package/src/styles/site.css +71 -0
- package/src/styles/store.css +634 -0
- package/src/template.ts +1 -1
- package/src/routes/volunteer.astro +0 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../vendor/backgold-contract/chunk-
|
|
1
|
+
// ../../vendor/backgold-contract/chunk-CUMSUDL3.js
|
|
2
2
|
var SITE_NAV_ITEM_TYPES = [
|
|
3
3
|
"page",
|
|
4
4
|
"section",
|
|
@@ -41,15 +41,17 @@ var COURSE_CONTENT_TYPE_KEY = "course";
|
|
|
41
41
|
var BLOG_CONTENT_TYPE_KEYS = ["post", "podcast", "video"];
|
|
42
42
|
var PARTY_CONTENT_TYPE_KEYS = ["plank", "team_member", "open_role"];
|
|
43
43
|
var NEWSLETTER_CONTENT_TYPE_KEY = "newsletter";
|
|
44
|
+
var COLLECTION_CONTENT_TYPE_KEY = "collection";
|
|
44
45
|
var BUILT_IN_CONTENT_TYPE_KEYS = [
|
|
45
46
|
...BLOG_CONTENT_TYPE_KEYS,
|
|
46
47
|
...PARTY_CONTENT_TYPE_KEYS,
|
|
47
48
|
NEWSLETTER_CONTENT_TYPE_KEY,
|
|
48
|
-
COURSE_CONTENT_TYPE_KEY
|
|
49
|
+
COURSE_CONTENT_TYPE_KEY,
|
|
50
|
+
COLLECTION_CONTENT_TYPE_KEY
|
|
49
51
|
];
|
|
50
52
|
var TEMPLATE_KEY_PATTERN = /^[a-z][a-z0-9-]{0,31}$/;
|
|
51
53
|
|
|
52
|
-
// ../../vendor/backgold-contract/chunk-
|
|
54
|
+
// ../../vendor/backgold-contract/chunk-CDHFMXGN.js
|
|
53
55
|
var SECTION_BANDS = ["plain", "tint", "panel", "wash", "contrast"];
|
|
54
56
|
var SECTION_BLEEDS = ["full", "contained"];
|
|
55
57
|
var SITE_CHROME_LAYOUTS = {
|
|
@@ -58,5 +60,8 @@ var SITE_CHROME_LAYOUTS = {
|
|
|
58
60
|
};
|
|
59
61
|
var VISITOR_SIGN_IN_PATH = "/_backgold/sign-in";
|
|
60
62
|
var VISITOR_PROGRESS_PATH = "/_backgold/progress";
|
|
63
|
+
var PRODUCT_ATTR_KEY_PATTERN = /^[a-z][a-z0-9_]{0,39}$/;
|
|
64
|
+
var PRODUCT_ATTR_VALUE_MAX = 200;
|
|
65
|
+
var PRODUCT_ATTR_FILTERS_MAX = 20;
|
|
61
66
|
|
|
62
|
-
export { BUILT_IN_CONTENT_TYPE_KEYS, SECTION_BANDS, SECTION_BLEEDS, SITE_AREA_KEY_RE, SITE_CHROME_LAYOUTS, SITE_NAV_ITEM_TYPES, SITE_NAV_SHOWS_ON, SITE_PAGE_MODULE_KINDS, SITE_SECTION_KINDS, SITE_SECTION_RULE_SHOWS_ON, TEMPLATE_KEY_PATTERN, VISITOR_PROGRESS_PATH, VISITOR_SIGN_IN_PATH };
|
|
67
|
+
export { BUILT_IN_CONTENT_TYPE_KEYS, PRODUCT_ATTR_FILTERS_MAX, PRODUCT_ATTR_KEY_PATTERN, PRODUCT_ATTR_VALUE_MAX, SECTION_BANDS, SECTION_BLEEDS, SITE_AREA_KEY_RE, SITE_CHROME_LAYOUTS, SITE_NAV_ITEM_TYPES, SITE_NAV_SHOWS_ON, SITE_PAGE_MODULE_KINDS, SITE_SECTION_KINDS, SITE_SECTION_RULE_SHOWS_ON, TEMPLATE_KEY_PATTERN, VISITOR_PROGRESS_PATH, VISITOR_SIGN_IN_PATH };
|
|
@@ -24,6 +24,16 @@ declare const SITE_SECTION_KINDS: readonly ["announcement", "pre_footer", "sideb
|
|
|
24
24
|
type SiteSectionKind = (typeof SITE_SECTION_KINDS)[number];
|
|
25
25
|
declare const SITE_SECTION_ROLES: readonly ["header", "footer"];
|
|
26
26
|
type SiteSectionRole = (typeof SITE_SECTION_ROLES)[number];
|
|
27
|
+
declare const PRODUCT_SHIP_TO: readonly ["buyer", "store", "third_party"];
|
|
28
|
+
type ProductShipTo = (typeof PRODUCT_SHIP_TO)[number];
|
|
29
|
+
declare const STORE_ATTRIBUTE_KINDS: readonly ["short_text", "long_text", "number", "boolean", "choice", "choices", "link", "date"];
|
|
30
|
+
type StoreAttributeKind = (typeof STORE_ATTRIBUTE_KINDS)[number];
|
|
31
|
+
declare const PRODUCT_AVAILABILITY: readonly ["in_stock", "low", "out", "preorder"];
|
|
32
|
+
type ProductAvailability = (typeof PRODUCT_AVAILABILITY)[number];
|
|
33
|
+
declare const SITEMAP_URL_KINDS: readonly ["page", "type_index", "entry", "store", "department", "product", "collection"];
|
|
34
|
+
type SitemapUrlKind = (typeof SITEMAP_URL_KINDS)[number];
|
|
35
|
+
declare const ITEM_QUESTION_SCOPES: readonly ["order", "unit"];
|
|
36
|
+
type ItemQuestionScope = (typeof ITEM_QUESTION_SCOPES)[number];
|
|
27
37
|
declare const CONTENT_FIELD_KINDS: readonly ["short_text", "long_text", "rich_text", "image", "pdf", "link", "date", "datetime", "boolean", "choice", "choices", "list", "reference"];
|
|
28
38
|
type ContentFieldKind = (typeof CONTENT_FIELD_KINDS)[number];
|
|
29
39
|
declare const CONTENT_ACCESS_LEVELS: readonly ["public", "signed_in", "members", "tag"];
|
|
@@ -35,4 +45,4 @@ type SiteMode = (typeof SITE_MODES)[number];
|
|
|
35
45
|
declare const BACKGOLD_SURFACE_PATHS: readonly ["donate", "join", "store", "events", "blog", "petition", "form", "poll", "frame", "run", "privacy", "sms-terms"];
|
|
36
46
|
type BackgoldSurfacePath = (typeof BACKGOLD_SURFACE_PATHS)[number];
|
|
37
47
|
|
|
38
|
-
export type { BackgoldSurfacePath as B, ContentAccessLevel as C, LiveStreamStatus as L, SiteNavItemType as S, BylineRoleLabel as a, SiteMenuKey as b, SiteNavShowsOn as c,
|
|
48
|
+
export type { BackgoldSurfacePath as B, ContentAccessLevel as C, ItemQuestionScope as I, LiveStreamStatus as L, ProductAvailability as P, SiteNavItemType as S, BylineRoleLabel as a, SiteMenuKey as b, SiteNavShowsOn as c, ProductShipTo as d, StoreAttributeKind as e, SiteSectionKind as f, SiteSectionRole as g, ShiftPublicState as h, ShiftPublicSubjectKind as i, SiteMode as j, SitemapUrlKind as k, ContentFieldKind as l };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BackgoldSurfacePath, C as ContentAccessLevel, a as BylineRoleLabel, L as LiveStreamStatus, b as SiteMenuKey, S as SiteNavItemType, c as SiteNavShowsOn, d as
|
|
1
|
+
import { B as BackgoldSurfacePath, P as ProductAvailability, C as ContentAccessLevel, a as BylineRoleLabel, L as LiveStreamStatus, b as SiteMenuKey, S as SiteNavItemType, c as SiteNavShowsOn, d as ProductShipTo, e as StoreAttributeKind, I as ItemQuestionScope, f as SiteSectionKind, g as SiteSectionRole, h as ShiftPublicState, i as ShiftPublicSubjectKind, j as SiteMode, k as SitemapUrlKind, l as ContentFieldKind } from './constants-BAIo_Q5U.d-lQbj1e1-.js';
|
|
2
2
|
|
|
3
3
|
/** The legal line a partner site must show. `required` is always true. */
|
|
4
4
|
interface ContentApiLegal {
|
|
@@ -698,6 +698,253 @@ interface EventLiveCounts {
|
|
|
698
698
|
interface EventsLiveResponse {
|
|
699
699
|
events: EventLiveCounts[];
|
|
700
700
|
}
|
|
701
|
+
/** One of a listing's photos, as the public photo route serves it. */
|
|
702
|
+
interface ProductPhoto {
|
|
703
|
+
url: string;
|
|
704
|
+
}
|
|
705
|
+
/** A tag on a listing: the term's taxonomy, slug and label. */
|
|
706
|
+
type ProductTerm = EntryTerm;
|
|
707
|
+
/**
|
|
708
|
+
* A node of a listing's department path (root first). `category_page` is
|
|
709
|
+
* false when the department's storefront page is switched off: GET /products
|
|
710
|
+
* does not list it and `?department=<its slug>` answers no listings, so a site
|
|
711
|
+
* names it without linking it.
|
|
712
|
+
*/
|
|
713
|
+
interface ProductDepartmentTerm extends EntryTerm {
|
|
714
|
+
category_page: boolean;
|
|
715
|
+
}
|
|
716
|
+
/** A collection a listing is in, as its page is addressed. */
|
|
717
|
+
interface ProductCollectionRef {
|
|
718
|
+
slug: string;
|
|
719
|
+
title: string;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* One sellable unit of a listing (ruling 2: every unit is an item with its
|
|
723
|
+
* own SKU, UPC and stock). `availability` is the word, never a count. The
|
|
724
|
+
* price is the one built; the island's live read wins when it differs.
|
|
725
|
+
*/
|
|
726
|
+
interface ProductItem {
|
|
727
|
+
id: string;
|
|
728
|
+
name: string;
|
|
729
|
+
sku: string | null;
|
|
730
|
+
/** The GTIN the structured data carries. */
|
|
731
|
+
upc: string | null;
|
|
732
|
+
price_cents: number;
|
|
733
|
+
compare_at_cents: number | null;
|
|
734
|
+
availability: ProductAvailability;
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* One listing as GET /products lists it and as a collection's grid carries
|
|
738
|
+
* it. `url` is the listing's page on the site (`/store/<slug>`), the one the
|
|
739
|
+
* site builds; `buy_url` is the page on BackGold where the cart and checkout
|
|
740
|
+
* live, for a site that builds no island.
|
|
741
|
+
*/
|
|
742
|
+
interface ProductSummary {
|
|
743
|
+
id: string;
|
|
744
|
+
slug: string;
|
|
745
|
+
name: string;
|
|
746
|
+
/** The grid copy, plain text; null when the listing has none. */
|
|
747
|
+
short_description: string | null;
|
|
748
|
+
url: string;
|
|
749
|
+
buy_url: string;
|
|
750
|
+
photos: ProductPhoto[];
|
|
751
|
+
/** The least and greatest item prices; equal for a single-item listing. */
|
|
752
|
+
price_from_cents: number;
|
|
753
|
+
price_to_cents: number;
|
|
754
|
+
/** The best word across the listing's items: in_stock if any item is, else low, preorder, out. */
|
|
755
|
+
availability: ProductAvailability;
|
|
756
|
+
/** The department path, root first; empty for an unclassified listing. */
|
|
757
|
+
department: ProductDepartmentTerm[];
|
|
758
|
+
tags: ProductTerm[];
|
|
759
|
+
collections: ProductCollectionRef[];
|
|
760
|
+
/** `service` for an offering with nothing to ship; null otherwise. */
|
|
761
|
+
offering_kind: string | null;
|
|
762
|
+
/** True when buying the listing ships something (a physical item that is not a service). */
|
|
763
|
+
ships: boolean;
|
|
764
|
+
/**
|
|
765
|
+
* True when buying the listing is a political contribution: its compliance
|
|
766
|
+
* treatment is full_price (the whole price) or above_cost (the markup over
|
|
767
|
+
* cost). False for commercial and for a listing with no treatment chosen.
|
|
768
|
+
* A site says so before the buyer adds it to the cart, and the shop page
|
|
769
|
+
* when any listing on it does.
|
|
770
|
+
*/
|
|
771
|
+
counts_as_contribution: boolean;
|
|
772
|
+
updated_at: string;
|
|
773
|
+
}
|
|
774
|
+
/** One attribute the listing's department asks for, with the listing's value. */
|
|
775
|
+
interface ProductAttribute {
|
|
776
|
+
key: string;
|
|
777
|
+
label: string;
|
|
778
|
+
kind: StoreAttributeKind;
|
|
779
|
+
value: string | string[] | boolean | null;
|
|
780
|
+
}
|
|
781
|
+
/** The listing's SEO fields; each falls back to the listing's own name, short copy and first photo. */
|
|
782
|
+
interface ProductSeo {
|
|
783
|
+
title: string;
|
|
784
|
+
description: string | null;
|
|
785
|
+
image_url: string | null;
|
|
786
|
+
}
|
|
787
|
+
/** GET /products/:slug — the listing for its own page. */
|
|
788
|
+
interface ProductDetail extends ProductSummary {
|
|
789
|
+
/** The long copy as sanitized HTML; empty when the listing has none. */
|
|
790
|
+
description_html: string;
|
|
791
|
+
/** The listing's manufacturer (an archived one still names it); null when it has none. */
|
|
792
|
+
manufacturer: {
|
|
793
|
+
name: string;
|
|
794
|
+
} | null;
|
|
795
|
+
/**
|
|
796
|
+
* Where the order goes: `buyer` (ships to the buyer, or nothing to ship),
|
|
797
|
+
* `store` (picked up at the store), `third_party` (ships to a licensed
|
|
798
|
+
* dealer the buyer names at checkout). One value, never a choice.
|
|
799
|
+
*/
|
|
800
|
+
ship_to: ProductShipTo;
|
|
801
|
+
items: ProductItem[];
|
|
802
|
+
attributes: ProductAttribute[];
|
|
803
|
+
seo: ProductSeo;
|
|
804
|
+
/** A schema.org Product (with its offers), ready to serialize into the page. */
|
|
805
|
+
structured_data: Record<string, unknown>;
|
|
806
|
+
/** Other listings from the same collections, at most eight. */
|
|
807
|
+
related: ProductSummary[];
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* A department node with its published-listing count, for the storefront's
|
|
811
|
+
* rail. Only departments whose storefront page is on are listed; `parent_id`
|
|
812
|
+
* names the nearest listed ancestor (null for none), so a node under a
|
|
813
|
+
* department whose page is off hangs from the department above that one.
|
|
814
|
+
*/
|
|
815
|
+
interface ProductDepartment {
|
|
816
|
+
id: string;
|
|
817
|
+
slug: string;
|
|
818
|
+
label: string;
|
|
819
|
+
parent_id: string | null;
|
|
820
|
+
position: number;
|
|
821
|
+
/** Published listings in this node and its descendants. */
|
|
822
|
+
count: number;
|
|
823
|
+
}
|
|
824
|
+
/** One value a facet offers, with the listings in scope that have it. */
|
|
825
|
+
interface ProductFacetValue {
|
|
826
|
+
/** The value as `?attr=<key>:<value>` names it: a choice's text, a number's decimal form, `true` or `false`. */
|
|
827
|
+
value: string;
|
|
828
|
+
/** Published listings in the page's scope with this value that match every other key's `?attr=` filter. */
|
|
829
|
+
count: number;
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* One filterable attribute on the department's path, for the storefront's
|
|
833
|
+
* filter panel. Its values are counted under every OTHER key's `?attr=`
|
|
834
|
+
* filter and never its own, so a chosen value's siblings keep their counts.
|
|
835
|
+
* Values run by count, most first, then by text; at most
|
|
836
|
+
* PRODUCT_FACET_VALUES_MAX of them.
|
|
837
|
+
*/
|
|
838
|
+
interface ProductFacet {
|
|
839
|
+
key: string;
|
|
840
|
+
label: string;
|
|
841
|
+
kind: StoreAttributeKind;
|
|
842
|
+
values: ProductFacetValue[];
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* GET /products — the published listings, newest first, one page at a time,
|
|
846
|
+
* with the department tree and the published collections the storefront's
|
|
847
|
+
* rail and bands draw from. `?department=<slug>` narrows to a node and its
|
|
848
|
+
* descendants; `?collection=<slug>` to a collection's members in its order;
|
|
849
|
+
* `?attr=<key>:<value>` (repeatable) to listings with that filterable
|
|
850
|
+
* attribute value — every key named must match, and a key named more than
|
|
851
|
+
* once matches any of its values (`attr=color:red&attr=color:blue&attr=size:m`
|
|
852
|
+
* is red or blue, and size m).
|
|
853
|
+
*
|
|
854
|
+
* `facets` answers a department page: with `?department=` naming a
|
|
855
|
+
* department whose storefront page is on, one facet per filterable attribute
|
|
856
|
+
* definition on its path, root first and each node's by position (a node
|
|
857
|
+
* below redefining a key wins, and may turn its filtering off). A facet's
|
|
858
|
+
* counts cover the department and every node under it, the collection when
|
|
859
|
+
* `?collection=` names one, and every other key's `?attr=` filter; a facet
|
|
860
|
+
* with no values is left out. Every page of a cursor carries the same
|
|
861
|
+
* facets: they are the scope's, not the page's. Empty without
|
|
862
|
+
* `?department=`.
|
|
863
|
+
*/
|
|
864
|
+
interface ProductsResponse {
|
|
865
|
+
products: ProductSummary[];
|
|
866
|
+
departments: ProductDepartment[];
|
|
867
|
+
collections: CollectionSummary[];
|
|
868
|
+
facets: ProductFacet[];
|
|
869
|
+
next_cursor: string | null;
|
|
870
|
+
}
|
|
871
|
+
/** An attribute key as `?attr=` names it: a department attribute definition's key. */
|
|
872
|
+
declare const PRODUCT_ATTR_KEY_PATTERN: RegExp;
|
|
873
|
+
/** The longest value one `?attr=` may name. */
|
|
874
|
+
declare const PRODUCT_ATTR_VALUE_MAX = 200;
|
|
875
|
+
/** The most `?attr=` parameters one GET /products takes. */
|
|
876
|
+
declare const PRODUCT_ATTR_FILTERS_MAX = 20;
|
|
877
|
+
interface ProductResponse {
|
|
878
|
+
product: ProductDetail;
|
|
879
|
+
areas: Areas;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* One checkout question an item asks (products.questions_json), in the form
|
|
883
|
+
* vocabulary the island renders with: the field's label, type and choices,
|
|
884
|
+
* and whether it is asked once per order or once per unit in the line.
|
|
885
|
+
*/
|
|
886
|
+
interface ProductQuestion {
|
|
887
|
+
label: string;
|
|
888
|
+
type: string;
|
|
889
|
+
required: boolean;
|
|
890
|
+
options: string[] | null;
|
|
891
|
+
placeholder: string | null;
|
|
892
|
+
help: string | null;
|
|
893
|
+
/** A `note` question's text, plain (the island escapes it and splits it into paragraphs); null for every other type. */
|
|
894
|
+
body: string | null;
|
|
895
|
+
/** True when a choice question (select, radio, checkboxes) takes a write-in; false otherwise. */
|
|
896
|
+
allow_other: boolean;
|
|
897
|
+
scope: ItemQuestionScope;
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* One listing's live read: each item's price, compare-at price and
|
|
901
|
+
* availability now, and the questions its line asks.
|
|
902
|
+
*/
|
|
903
|
+
interface ProductLive {
|
|
904
|
+
id: string;
|
|
905
|
+
items: Array<{
|
|
906
|
+
id: string;
|
|
907
|
+
price_cents: number;
|
|
908
|
+
compare_at_cents: number | null;
|
|
909
|
+
availability: ProductAvailability;
|
|
910
|
+
}>;
|
|
911
|
+
questions: ProductQuestion[];
|
|
912
|
+
}
|
|
913
|
+
/** GET /products/live?ids= — live price, availability and questions for the named listings; an id the site cannot read is omitted. Never versioned. */
|
|
914
|
+
interface ProductsLiveResponse {
|
|
915
|
+
products: ProductLive[];
|
|
916
|
+
}
|
|
917
|
+
/** One collection as GET /collections lists it and as a product's band carries it. */
|
|
918
|
+
interface CollectionSummary {
|
|
919
|
+
id: string;
|
|
920
|
+
slug: string;
|
|
921
|
+
title: string;
|
|
922
|
+
/** The intro line, plain text; null when the entry has none. */
|
|
923
|
+
intro: string | null;
|
|
924
|
+
/** The collection's page on the site (`/collections/<slug>`). */
|
|
925
|
+
url: string;
|
|
926
|
+
cover: {
|
|
927
|
+
url: string;
|
|
928
|
+
} | null;
|
|
929
|
+
/** Published listings in the collection. */
|
|
930
|
+
count: number;
|
|
931
|
+
updated_at: string;
|
|
932
|
+
}
|
|
933
|
+
/** GET /collections/:slug — the collection for its own page: the entry's body and the ordered grid. */
|
|
934
|
+
interface CollectionDetail extends CollectionSummary {
|
|
935
|
+
body: {
|
|
936
|
+
markdown: string;
|
|
937
|
+
};
|
|
938
|
+
products: ProductSummary[];
|
|
939
|
+
}
|
|
940
|
+
interface CollectionsResponse {
|
|
941
|
+
collections: CollectionSummary[];
|
|
942
|
+
next_cursor: string | null;
|
|
943
|
+
}
|
|
944
|
+
interface CollectionResponse {
|
|
945
|
+
collection: CollectionDetail;
|
|
946
|
+
areas: Areas;
|
|
947
|
+
}
|
|
701
948
|
/** What a public shift belongs to: a public event (its slug, as GET /events/:slug reads it), else `standalone` with no slug. */
|
|
702
949
|
interface ShiftSubject {
|
|
703
950
|
kind: ShiftPublicSubjectKind;
|
|
@@ -841,9 +1088,9 @@ interface RedirectsResponse {
|
|
|
841
1088
|
interface SitemapResponse {
|
|
842
1089
|
urls: Array<{
|
|
843
1090
|
url: string;
|
|
844
|
-
kind:
|
|
1091
|
+
kind: SitemapUrlKind;
|
|
845
1092
|
updated_at: string | null;
|
|
846
1093
|
}>;
|
|
847
1094
|
}
|
|
848
1095
|
|
|
849
|
-
export { type Areas as A, type
|
|
1096
|
+
export { type Areas as A, type EntryLock as B, type CollectionResponse as C, PRODUCT_ATTR_FILTERS_MAX as D, type EntriesResponse as E, PRODUCT_ATTR_KEY_PATTERN as F, PRODUCT_ATTR_VALUE_MAX as G, VISITOR_PROGRESS_PATH as H, VISITOR_SIGN_IN_PATH as I, type Visitor as J, type LessonResponse as L, type MenuResponse as M, type PageResponse as P, type RedirectsResponse as R, type SectionsResponse as S, type TermsResponse as T, type VisitorResponse as V, type AreasResponse as a, type AuthorResponse as b, type AuthorsResponse as c, type CollectionsResponse as d, type CourseResponse as e, type CoursesResponse as f, type EntryResponse as g, type EventResponse as h, type EventsResponse as i, type EventsLiveResponse as j, type LessonProgressResponse as k, type LiveResponse as l, type PagesResponse as m, type ProductResponse as n, type ProductsResponse as o, type ProductsLiveResponse as p, type ShiftsResponse as q, type ShiftsLiveResponse as r, type SiteResponse as s, type SitemapResponse as t, type TypesResponse as u, type VisitorExchangeResponse as v, type CourseDetail as w, type CourseLesson as x, type CourseProgress as y, type CourseSummary as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Areas, a as AreasResponse, b as AuthorResponse, c as AuthorsResponse, C as
|
|
2
|
-
import '../constants-
|
|
1
|
+
import { A as Areas, a as AreasResponse, b as AuthorResponse, c as AuthorsResponse, C as CollectionResponse, d as CollectionsResponse, e as CourseResponse, f as CoursesResponse, E as EntriesResponse, g as EntryResponse, h as EventResponse, i as EventsResponse, j as EventsLiveResponse, L as LessonResponse, k as LessonProgressResponse, l as LiveResponse, M as MenuResponse, P as PageResponse, m as PagesResponse, n as ProductResponse, o as ProductsResponse, p as ProductsLiveResponse, R as RedirectsResponse, S as SectionsResponse, q as ShiftsResponse, r as ShiftsLiveResponse, s as SiteResponse, t as SitemapResponse, T as TermsResponse, u as TypesResponse, V as VisitorResponse, v as VisitorExchangeResponse } from '../content-api-Cox1-wz5.js';
|
|
2
|
+
import '../constants-BAIo_Q5U.d-lQbj1e1-.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* One example of every headless Content API response, in the contract's own
|
|
@@ -41,6 +41,20 @@ declare const sitemapExample: SitemapResponse;
|
|
|
41
41
|
declare const eventsExample: EventsResponse;
|
|
42
42
|
declare const eventExample: EventResponse;
|
|
43
43
|
declare const eventsLiveExample: EventsLiveResponse;
|
|
44
|
+
/**
|
|
45
|
+
* The party's store at `?department=apparel&attr=fit:Unisex`: the tee (a
|
|
46
|
+
* fitted tee is the department's other listing), the department tree with
|
|
47
|
+
* counts, one collection, and the two facets Apparel defines — fabric,
|
|
48
|
+
* counted under the fit filter, and fit with Unisex chosen, whose sibling
|
|
49
|
+
* keeps its count because a facet is counted without its own key's filter.
|
|
50
|
+
*/
|
|
51
|
+
declare const productsExample: ProductsResponse;
|
|
52
|
+
/** The tee's own page: three sizes as items, the department's attributes, the JSON-LD, the sign as a related listing. */
|
|
53
|
+
declare const productExample: ProductResponse;
|
|
54
|
+
/** The island's read for the tee: the large just sold out, and the per-unit question the line asks. */
|
|
55
|
+
declare const productsLiveExample: ProductsLiveResponse;
|
|
56
|
+
declare const collectionsExample: CollectionsResponse;
|
|
57
|
+
declare const collectionExample: CollectionResponse;
|
|
44
58
|
/** Two open public shifts: one of the town hall's with room, one standalone that is full. */
|
|
45
59
|
declare const shiftsExample: ShiftsResponse;
|
|
46
60
|
declare const shiftsLiveExample: ShiftsLiveResponse;
|
|
@@ -55,4 +69,4 @@ declare const visitorExchangeExample: VisitorExchangeResponse;
|
|
|
55
69
|
/** Each response's example, by its OpenAPI schema name (the api's openapi-content.test.ts holds each against its schema). */
|
|
56
70
|
declare const CONTENT_API_EXAMPLES: Record<string, unknown>;
|
|
57
71
|
|
|
58
|
-
export { CONTENT_API_EXAMPLES, areasExample, areasResponseExample, authorExample, authorsExample, courseExample, coursesExample, entriesExample, entryExample, eventExample, eventsExample, eventsLiveExample, legalExample, lessonExample, lessonProgressExample, liveExample, menuExample, pageExample, pagesExample, redirectsExample, sectionsExample, shiftsExample, shiftsLiveExample, siteExample, sitemapExample, termsExample, typesExample, visitorExample, visitorExchangeExample };
|
|
72
|
+
export { CONTENT_API_EXAMPLES, areasExample, areasResponseExample, authorExample, authorsExample, collectionExample, collectionsExample, courseExample, coursesExample, entriesExample, entryExample, eventExample, eventsExample, eventsLiveExample, legalExample, lessonExample, lessonProgressExample, liveExample, menuExample, pageExample, pagesExample, productExample, productsExample, productsLiveExample, redirectsExample, sectionsExample, shiftsExample, shiftsLiveExample, siteExample, sitemapExample, termsExample, typesExample, visitorExample, visitorExchangeExample };
|
|
@@ -523,7 +523,11 @@ var sitemapExample = {
|
|
|
523
523
|
urls: [
|
|
524
524
|
{ url: "https://pinevalleyliberty.org/", kind: "page", updated_at: "2026-10-01T09:12:00.000Z" },
|
|
525
525
|
{ url: "https://pinevalleyliberty.org/blog", kind: "type_index", updated_at: "2026-09-29T12:05:00.000Z" },
|
|
526
|
-
{ url: "https://pinevalleyliberty.org/blog/levy-explained", kind: "entry", updated_at: "2026-09-29T12:05:00.000Z" }
|
|
526
|
+
{ url: "https://pinevalleyliberty.org/blog/levy-explained", kind: "entry", updated_at: "2026-09-29T12:05:00.000Z" },
|
|
527
|
+
{ url: "https://pinevalleyliberty.org/store", kind: "store", updated_at: "2026-10-28T15:10:00.000Z" },
|
|
528
|
+
{ url: "https://pinevalleyliberty.org/store/departments/apparel", kind: "department", updated_at: "2026-10-28T15:10:00.000Z" },
|
|
529
|
+
{ url: "https://pinevalleyliberty.org/store/pine-valley-tee", kind: "product", updated_at: "2026-10-28T15:10:00.000Z" },
|
|
530
|
+
{ url: "https://pinevalleyliberty.org/collections/fall-drop", kind: "collection", updated_at: "2026-10-28T15:12:00.000Z" }
|
|
527
531
|
]
|
|
528
532
|
};
|
|
529
533
|
var eventsExample = {
|
|
@@ -586,6 +590,140 @@ var eventsLiveExample = {
|
|
|
586
590
|
{ id: "evt_4m1", going: 88, seats_left: 12 }
|
|
587
591
|
]
|
|
588
592
|
};
|
|
593
|
+
var teeSummary = {
|
|
594
|
+
id: "prd_7h2",
|
|
595
|
+
slug: "pine-valley-tee",
|
|
596
|
+
name: "Pine Valley tee",
|
|
597
|
+
short_description: "Heavyweight cotton, printed in the county.",
|
|
598
|
+
url: "https://pinevalleyliberty.org/store/pine-valley-tee",
|
|
599
|
+
buy_url: "https://secure.backgold.com/s/pine-valley/pine-valley-tee",
|
|
600
|
+
photos: [{ url: "https://api.backgold.com/api/store-pages/pine-valley/photos/prd_7h2/pho_1" }],
|
|
601
|
+
price_from_cents: 2500,
|
|
602
|
+
price_to_cents: 2500,
|
|
603
|
+
availability: "in_stock",
|
|
604
|
+
department: [
|
|
605
|
+
{ taxonomy: "department", slug: "apparel", label: "Apparel", category_page: true },
|
|
606
|
+
{ taxonomy: "department", slug: "tees", label: "Tees", category_page: true }
|
|
607
|
+
],
|
|
608
|
+
tags: [{ taxonomy: "tag", slug: "new", label: "New" }],
|
|
609
|
+
collections: [{ slug: "fall-drop", title: "Fall drop" }],
|
|
610
|
+
offering_kind: null,
|
|
611
|
+
ships: true,
|
|
612
|
+
counts_as_contribution: true,
|
|
613
|
+
updated_at: "2026-10-28T15:10:00.000Z"
|
|
614
|
+
};
|
|
615
|
+
var yardSignSummary = {
|
|
616
|
+
id: "prd_9c4",
|
|
617
|
+
slug: "yard-sign",
|
|
618
|
+
name: "Yard sign",
|
|
619
|
+
short_description: "Two-sided, with the stake.",
|
|
620
|
+
url: "https://pinevalleyliberty.org/store/yard-sign",
|
|
621
|
+
buy_url: "https://secure.backgold.com/s/pine-valley/yard-sign",
|
|
622
|
+
photos: [{ url: "https://api.backgold.com/api/store-pages/pine-valley/photos/prd_9c4/pho_1" }],
|
|
623
|
+
price_from_cents: 1e3,
|
|
624
|
+
price_to_cents: 1e3,
|
|
625
|
+
availability: "low",
|
|
626
|
+
department: [{ taxonomy: "department", slug: "signs", label: "Signs", category_page: true }],
|
|
627
|
+
tags: [],
|
|
628
|
+
collections: [{ slug: "fall-drop", title: "Fall drop" }],
|
|
629
|
+
offering_kind: null,
|
|
630
|
+
ships: true,
|
|
631
|
+
counts_as_contribution: false,
|
|
632
|
+
updated_at: "2026-10-20T09:00:00.000Z"
|
|
633
|
+
};
|
|
634
|
+
var fallDrop = {
|
|
635
|
+
id: "col_3f1",
|
|
636
|
+
slug: "fall-drop",
|
|
637
|
+
title: "Fall drop",
|
|
638
|
+
intro: "What the county chapters are wearing this fall.",
|
|
639
|
+
url: "https://pinevalleyliberty.org/collections/fall-drop",
|
|
640
|
+
cover: { url: "https://api.backgold.com/lp-assets/org_pv/fall-drop.jpg" },
|
|
641
|
+
count: 2,
|
|
642
|
+
updated_at: "2026-10-28T15:12:00.000Z"
|
|
643
|
+
};
|
|
644
|
+
var productsExample = {
|
|
645
|
+
products: [teeSummary],
|
|
646
|
+
departments: [
|
|
647
|
+
{ id: "trm_a1", slug: "apparel", label: "Apparel", parent_id: null, position: 0, count: 2 },
|
|
648
|
+
{ id: "trm_a2", slug: "tees", label: "Tees", parent_id: "trm_a1", position: 0, count: 2 },
|
|
649
|
+
{ id: "trm_s1", slug: "signs", label: "Signs", parent_id: null, position: 1, count: 1 }
|
|
650
|
+
],
|
|
651
|
+
collections: [fallDrop],
|
|
652
|
+
facets: [
|
|
653
|
+
{ key: "fabric", label: "Fabric", kind: "short_text", values: [{ value: "100% cotton", count: 1 }] },
|
|
654
|
+
{
|
|
655
|
+
key: "fit",
|
|
656
|
+
label: "Fit",
|
|
657
|
+
kind: "choice",
|
|
658
|
+
values: [
|
|
659
|
+
{ value: "Fitted", count: 1 },
|
|
660
|
+
{ value: "Unisex", count: 1 }
|
|
661
|
+
]
|
|
662
|
+
}
|
|
663
|
+
],
|
|
664
|
+
next_cursor: null
|
|
665
|
+
};
|
|
666
|
+
var productExample = {
|
|
667
|
+
product: {
|
|
668
|
+
...teeSummary,
|
|
669
|
+
description_html: "<p>Printed by a union shop in Pine Valley. Wear it to the county fair.</p>",
|
|
670
|
+
manufacturer: { name: "Valley Union Print Co." },
|
|
671
|
+
ship_to: "buyer",
|
|
672
|
+
items: [
|
|
673
|
+
{ id: "itm_1", name: "S", sku: "PV-TEE-S", upc: null, price_cents: 2500, compare_at_cents: null, availability: "in_stock" },
|
|
674
|
+
{ id: "itm_2", name: "M", sku: "PV-TEE-M", upc: null, price_cents: 2500, compare_at_cents: null, availability: "in_stock" },
|
|
675
|
+
{ id: "itm_3", name: "L", sku: "PV-TEE-L", upc: null, price_cents: 2500, compare_at_cents: null, availability: "low" }
|
|
676
|
+
],
|
|
677
|
+
attributes: [
|
|
678
|
+
{ key: "fabric", label: "Fabric", kind: "short_text", value: "100% cotton" },
|
|
679
|
+
{ key: "fit", label: "Fit", kind: "choice", value: "Unisex" }
|
|
680
|
+
],
|
|
681
|
+
seo: {
|
|
682
|
+
title: "Pine Valley tee",
|
|
683
|
+
description: "Heavyweight cotton, printed in the county.",
|
|
684
|
+
image_url: "https://api.backgold.com/api/store-pages/pine-valley/photos/prd_7h2/pho_1"
|
|
685
|
+
},
|
|
686
|
+
structured_data: {
|
|
687
|
+
"@context": "https://schema.org",
|
|
688
|
+
"@type": "Product",
|
|
689
|
+
name: "Pine Valley tee",
|
|
690
|
+
description: "Heavyweight cotton, printed in the county.",
|
|
691
|
+
image: ["https://api.backgold.com/api/store-pages/pine-valley/photos/prd_7h2/pho_1"],
|
|
692
|
+
sku: "PV-TEE-S",
|
|
693
|
+
offers: [
|
|
694
|
+
{ "@type": "Offer", sku: "PV-TEE-S", price: "25.00", priceCurrency: "USD", availability: "https://schema.org/InStock", url: "https://pinevalleyliberty.org/store/pine-valley-tee" },
|
|
695
|
+
{ "@type": "Offer", sku: "PV-TEE-M", price: "25.00", priceCurrency: "USD", availability: "https://schema.org/InStock", url: "https://pinevalleyliberty.org/store/pine-valley-tee" },
|
|
696
|
+
{ "@type": "Offer", sku: "PV-TEE-L", price: "25.00", priceCurrency: "USD", availability: "https://schema.org/LimitedAvailability", url: "https://pinevalleyliberty.org/store/pine-valley-tee" }
|
|
697
|
+
]
|
|
698
|
+
},
|
|
699
|
+
related: [yardSignSummary]
|
|
700
|
+
},
|
|
701
|
+
areas: areasExample
|
|
702
|
+
};
|
|
703
|
+
var productsLiveExample = {
|
|
704
|
+
products: [
|
|
705
|
+
{
|
|
706
|
+
id: "prd_7h2",
|
|
707
|
+
items: [
|
|
708
|
+
{ id: "itm_1", price_cents: 2500, compare_at_cents: null, availability: "in_stock" },
|
|
709
|
+
{ id: "itm_2", price_cents: 2500, compare_at_cents: null, availability: "in_stock" },
|
|
710
|
+
{ id: "itm_3", price_cents: 2500, compare_at_cents: null, availability: "out" }
|
|
711
|
+
],
|
|
712
|
+
questions: [
|
|
713
|
+
{ label: "Chapter name to stitch", type: "text", required: false, options: null, placeholder: "Pine Valley", help: null, body: null, allow_other: false, scope: "unit" }
|
|
714
|
+
]
|
|
715
|
+
}
|
|
716
|
+
]
|
|
717
|
+
};
|
|
718
|
+
var collectionsExample = { collections: [fallDrop], next_cursor: null };
|
|
719
|
+
var collectionExample = {
|
|
720
|
+
collection: {
|
|
721
|
+
...fallDrop,
|
|
722
|
+
body: { markdown: "Two things every chapter asked for, in time for the fair season." },
|
|
723
|
+
products: [teeSummary, yardSignSummary]
|
|
724
|
+
},
|
|
725
|
+
areas: areasExample
|
|
726
|
+
};
|
|
589
727
|
var shiftsExample = {
|
|
590
728
|
shifts: [
|
|
591
729
|
{
|
|
@@ -777,7 +915,12 @@ var CONTENT_API_EXAMPLES = {
|
|
|
777
915
|
LessonResponse: lessonExample,
|
|
778
916
|
LessonProgressResponse: lessonProgressExample,
|
|
779
917
|
VisitorResponse: visitorExample,
|
|
780
|
-
VisitorExchangeResponse: visitorExchangeExample
|
|
918
|
+
VisitorExchangeResponse: visitorExchangeExample,
|
|
919
|
+
ProductsResponse: productsExample,
|
|
920
|
+
ProductResponse: productExample,
|
|
921
|
+
ProductsLiveResponse: productsLiveExample,
|
|
922
|
+
CollectionsResponse: collectionsExample,
|
|
923
|
+
CollectionResponse: collectionExample
|
|
781
924
|
};
|
|
782
925
|
|
|
783
|
-
export { CONTENT_API_EXAMPLES, areasExample, areasResponseExample, authorExample, authorsExample, courseExample, coursesExample, entriesExample, entryExample, eventExample, eventsExample, eventsLiveExample, legalExample, lessonExample, lessonProgressExample, liveExample, menuExample, pageExample, pagesExample, redirectsExample, sectionsExample, shiftsExample, shiftsLiveExample, siteExample, sitemapExample, termsExample, typesExample, visitorExample, visitorExchangeExample };
|
|
926
|
+
export { CONTENT_API_EXAMPLES, areasExample, areasResponseExample, authorExample, authorsExample, collectionExample, collectionsExample, courseExample, coursesExample, entriesExample, entryExample, eventExample, eventsExample, eventsLiveExample, legalExample, lessonExample, lessonProgressExample, liveExample, menuExample, pageExample, pagesExample, productExample, productsExample, productsLiveExample, redirectsExample, sectionsExample, shiftsExample, shiftsLiveExample, siteExample, sitemapExample, termsExample, typesExample, visitorExample, visitorExchangeExample };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as Areas,
|
|
2
|
-
export { C as ContentAccessLevel } from '../constants-
|
|
1
|
+
export { A as Areas, w as CourseDetail, x as CourseLesson, y as CourseProgress, z as CourseSummary, B as EntryLock, L as LessonResponse, D as PRODUCT_ATTR_FILTERS_MAX, F as PRODUCT_ATTR_KEY_PATTERN, G as PRODUCT_ATTR_VALUE_MAX, H as VISITOR_PROGRESS_PATH, I as VISITOR_SIGN_IN_PATH, J as Visitor } from '../content-api-Cox1-wz5.js';
|
|
2
|
+
export { C as ContentAccessLevel } from '../constants-BAIo_Q5U.d-lQbj1e1-.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { VISITOR_PROGRESS_PATH, VISITOR_SIGN_IN_PATH } from '../chunk-
|
|
1
|
+
export { PRODUCT_ATTR_FILTERS_MAX, PRODUCT_ATTR_KEY_PATTERN, PRODUCT_ATTR_VALUE_MAX, VISITOR_PROGRESS_PATH, VISITOR_SIGN_IN_PATH } from '../chunk-RJAVFRC6.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { S as SiteNavItemType } from '../constants-
|
|
2
|
+
import { S as SiteNavItemType } from '../constants-BAIo_Q5U.d-lQbj1e1-.js';
|
|
3
3
|
|
|
4
4
|
/** A starter menu link's Shows on rule; the pages are starter page slugs. */
|
|
5
5
|
declare const starterShowsOnSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -41,6 +41,7 @@ declare const siteTemplateManifestSchema: z.ZodObject<{
|
|
|
41
41
|
}, z.core.$catchall<z.ZodString>>;
|
|
42
42
|
entryLayouts: z.ZodRecord<z.ZodEnum<{
|
|
43
43
|
post: "post";
|
|
44
|
+
collection: "collection";
|
|
44
45
|
video: "video";
|
|
45
46
|
course: "course";
|
|
46
47
|
podcast: "podcast";
|
|
@@ -114,6 +115,7 @@ declare const siteTemplateManifestSchema: z.ZodObject<{
|
|
|
114
115
|
petition: "petition";
|
|
115
116
|
dates: "dates";
|
|
116
117
|
platform: "platform";
|
|
118
|
+
work: "work";
|
|
117
119
|
ladder: "ladder";
|
|
118
120
|
ballot: "ballot";
|
|
119
121
|
words: "words";
|
|
@@ -130,7 +132,6 @@ declare const siteTemplateManifestSchema: z.ZodObject<{
|
|
|
130
132
|
cases: "cases";
|
|
131
133
|
resources: "resources";
|
|
132
134
|
pathways: "pathways";
|
|
133
|
-
work: "work";
|
|
134
135
|
mediakit: "mediakit";
|
|
135
136
|
}>;
|
|
136
137
|
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -194,6 +195,7 @@ declare const siteTemplateManifestSchema: z.ZodObject<{
|
|
|
194
195
|
petition: "petition";
|
|
195
196
|
dates: "dates";
|
|
196
197
|
platform: "platform";
|
|
198
|
+
work: "work";
|
|
197
199
|
ladder: "ladder";
|
|
198
200
|
ballot: "ballot";
|
|
199
201
|
words: "words";
|
|
@@ -210,7 +212,6 @@ declare const siteTemplateManifestSchema: z.ZodObject<{
|
|
|
210
212
|
cases: "cases";
|
|
211
213
|
resources: "resources";
|
|
212
214
|
pathways: "pathways";
|
|
213
|
-
work: "work";
|
|
214
215
|
mediakit: "mediakit";
|
|
215
216
|
}>;
|
|
216
217
|
items: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SITE_AREA_KEY_RE, SECTION_BLEEDS, SECTION_BANDS, SITE_NAV_SHOWS_ON, SITE_NAV_ITEM_TYPES, SITE_PAGE_MODULE_KINDS, SITE_SECTION_RULE_SHOWS_ON, SITE_SECTION_KINDS, SITE_CHROME_LAYOUTS, BUILT_IN_CONTENT_TYPE_KEYS, TEMPLATE_KEY_PATTERN } from '../chunk-
|
|
1
|
+
import { SITE_AREA_KEY_RE, SECTION_BLEEDS, SECTION_BANDS, SITE_NAV_SHOWS_ON, SITE_NAV_ITEM_TYPES, SITE_PAGE_MODULE_KINDS, SITE_SECTION_RULE_SHOWS_ON, SITE_SECTION_KINDS, SITE_CHROME_LAYOUTS, BUILT_IN_CONTENT_TYPE_KEYS, TEMPLATE_KEY_PATTERN } from '../chunk-RJAVFRC6.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
var name = z.string().trim().min(1).max(120);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backgold/template-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "What every BackGold Astro template draws the same way: the section, entry and chrome components, the Site layout, the routes, lib and the stylesheets, shipped as source, with the Content API contract names they use.",
|
|
6
6
|
"type": "module",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"astro": "^7",
|
|
41
|
-
"@backgold/
|
|
42
|
-
"@backgold/
|
|
41
|
+
"@backgold/astro": "^0.4.3",
|
|
42
|
+
"@backgold/content": "^0.7.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@astrojs/check": "^0.9.10",
|
|
46
46
|
"astro": "^7.3.5",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
48
|
"tsup": "^8.5.1",
|
|
49
|
-
"@backgold/astro": "^0.4.
|
|
50
|
-
"@backgold/content": "^0.
|
|
49
|
+
"@backgold/astro": "^0.4.3",
|
|
50
|
+
"@backgold/content": "^0.7.0",
|
|
51
51
|
"@backgold/contract": "0.0.0"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|