@vectoriox/iox-ui 5.96.2 → 5.98.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commerce-core/index.d.ts +274 -2
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +312 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +2 -8
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1114 -223
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +115 -42
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/generation-core/index.d.ts +515 -17
- package/harness-core/index.d.ts +66 -6
- package/package.json +1 -1
- package/src/commerce-core/public-api.ts +2 -0
- package/src/commerce-core/shipping.ts +22 -0
- package/src/commerce-core/site-checkout.ts +406 -0
- package/src/commerce-core/variants.ts +20 -0
- package/src/composite-core/shop-runtime.ts +2 -8
- package/src/generation-core/audit-site.ts +8 -0
- package/src/generation-core/compose-site.ts +130 -4
- package/src/generation-core/nav-shape.ts +4 -2
- package/src/generation-core/patterns.ts +25 -1
- package/src/generation-core/pictures.ts +1 -1
- package/src/generation-core/plan-derived.ts +10 -5
- package/src/generation-core/plan-edits.ts +8 -7
- package/src/generation-core/plan-wire.ts +59 -10
- package/src/generation-core/plan-words.ts +18 -1
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/shop-plan.ts +165 -0
- package/src/generation-core/showcase.ts +29 -4
- package/src/generation-core/site-build-run.ts +25 -0
- package/src/generation-core/site-plan.model.ts +49 -1
- package/src/generation-core/site-spec.generated.ts +330 -2
- package/src/generation-core/stock-photos.ts +19 -2
- package/src/generation-core/validate-site-plan.ts +146 -8
- package/src/harness-core/business-types.ts +13 -0
- package/src/harness-core/harness-spec.generated.ts +69 -39
- package/src/harness-core/needs.ts +30 -1
- package/src/harness-core/site-reading.ts +8 -2
|
@@ -12,7 +12,8 @@ declare const SPEC_SITE_PLAN_SHAPE: {
|
|
|
12
12
|
readonly "locale?": "'en' | 'he' — the site's language (site.locales): every page's locale; 'he' reads right to left (absent = en)";
|
|
13
13
|
readonly design: "design";
|
|
14
14
|
readonly contentTypes: "contentType[]";
|
|
15
|
-
readonly dataSources: "(cmsDataSource | relativeDataSource)[] — merged by alias into the org library";
|
|
15
|
+
readonly dataSources: "(cmsDataSource | relativeDataSource | shopDataSource)[] — merged by alias into the org library";
|
|
16
|
+
readonly "shop?": "shop — what the business sells (commerce C-D21): its products are the studio's SHOP, never a content type; a plan with a shop is a whole store (product pages, the cart button and the cart drawer, the fixed checkout)";
|
|
16
17
|
readonly pages: "page[]";
|
|
17
18
|
readonly globals: "globals";
|
|
18
19
|
readonly "film?": "film — the owner's film as pictures (SC6b), set by the build and placed by placeFilm; never a model's";
|
|
@@ -107,6 +108,28 @@ declare const SPEC_SITE_PLAN_SHAPE: {
|
|
|
107
108
|
readonly "limit?": "integer ≥ 1";
|
|
108
109
|
readonly "filterByRouteParam?": "{ field, routeParam } — single only: the route param that picks the item";
|
|
109
110
|
};
|
|
111
|
+
readonly shopDataSource: {
|
|
112
|
+
readonly alias: "string — unique";
|
|
113
|
+
readonly type: "'shop'";
|
|
114
|
+
readonly mode: "'query' | 'single'";
|
|
115
|
+
readonly resource: "'products' | 'categories' — the shop's own list (generation-core ShopResource)";
|
|
116
|
+
readonly "limit?": "integer ≥ 1";
|
|
117
|
+
readonly "filterByRouteParam?": "{ field, routeParam } — single only: the field ('slug' or '_id') the route param matches";
|
|
118
|
+
};
|
|
119
|
+
readonly shop: {
|
|
120
|
+
readonly categories: "string[] — the categories, in order (each product's category; written by the plan, never invented beyond them)";
|
|
121
|
+
readonly products: "shopProduct[] — at most 6 sample products, by name: what the business sells. Never a price, stock, a fee or a claim — the owner sets those in the product editor";
|
|
122
|
+
};
|
|
123
|
+
readonly shopProduct: {
|
|
124
|
+
readonly name: "string — the product as the business would name it";
|
|
125
|
+
readonly category: "string — one of shop.categories";
|
|
126
|
+
readonly description: "string — one line about it, in the owner's voice; never a price, a size chart or a claim";
|
|
127
|
+
readonly options: "shopOption[] — how it varies (size, colour…); [] = one kind only";
|
|
128
|
+
};
|
|
129
|
+
readonly shopOption: {
|
|
130
|
+
readonly name: "string — the option's name (Size, Colour)";
|
|
131
|
+
readonly values: "string[] — its values, in order (S, M, L)";
|
|
132
|
+
};
|
|
110
133
|
readonly relativeDataSource: {
|
|
111
134
|
readonly alias: "string — unique";
|
|
112
135
|
readonly type: "'relative'";
|
|
@@ -162,6 +185,8 @@ declare const SPEC_SITE_ROLES: {
|
|
|
162
185
|
readonly meta: "a short line beside its name — a place, a price, a duration";
|
|
163
186
|
readonly date: "when — a year or a date";
|
|
164
187
|
readonly gallery: "its pictures (a list) — the item page's gallery";
|
|
188
|
+
readonly price: "its price — the shop's own field, shown through the money pipe in the studio currency";
|
|
189
|
+
readonly compareAt: "its earlier price, struck through beside the price (the shop's own field)";
|
|
165
190
|
};
|
|
166
191
|
declare const SPEC_SITE_REQUIRED_ROLES: readonly ["title"];
|
|
167
192
|
declare const SPEC_SITE_LOCALES: {
|
|
@@ -184,7 +209,7 @@ declare const SPEC_SITE_DENSITY_COPY: {
|
|
|
184
209
|
readonly regular: "standard";
|
|
185
210
|
readonly airy: "standard";
|
|
186
211
|
};
|
|
187
|
-
declare const SPEC_SITE_NEED_IDS: readonly ["collection", "detail", "services", "prices", "menu", "visit", "team", "about", "faq", "blog", "gallery", "booking-request", "sign-up-form", "contact"];
|
|
212
|
+
declare const SPEC_SITE_NEED_IDS: readonly ["collection", "products", "detail", "services", "prices", "menu", "visit", "team", "about", "faq", "blog", "gallery", "booking-request", "sign-up-form", "contact"];
|
|
188
213
|
declare const SPEC_SITE_ARCHETYPES: {
|
|
189
214
|
readonly home: {
|
|
190
215
|
readonly label: "Home";
|
|
@@ -1657,6 +1682,253 @@ declare const SPEC_SITE_PATTERNS: {
|
|
|
1657
1682
|
}];
|
|
1658
1683
|
};
|
|
1659
1684
|
};
|
|
1685
|
+
readonly "commerce.product-grid": {
|
|
1686
|
+
readonly family: "collection";
|
|
1687
|
+
readonly shop: true;
|
|
1688
|
+
readonly label: "Products, three across";
|
|
1689
|
+
readonly intent: "The products the shop sells as cards — picture, name and price — each linking to its own page.";
|
|
1690
|
+
readonly node: {
|
|
1691
|
+
readonly t: "Section";
|
|
1692
|
+
readonly es: "section";
|
|
1693
|
+
readonly c: readonly [{
|
|
1694
|
+
readonly t: "Container";
|
|
1695
|
+
readonly es: "box";
|
|
1696
|
+
readonly optional: "header";
|
|
1697
|
+
readonly lay: {
|
|
1698
|
+
readonly display: "flex";
|
|
1699
|
+
readonly justifyContent: "space-between";
|
|
1700
|
+
readonly alignItems: "baseline";
|
|
1701
|
+
readonly gap: "16px";
|
|
1702
|
+
readonly flexWrap: "wrap";
|
|
1703
|
+
};
|
|
1704
|
+
readonly c: readonly [{
|
|
1705
|
+
readonly t: "Heading";
|
|
1706
|
+
readonly es: "h2";
|
|
1707
|
+
readonly level: "h2";
|
|
1708
|
+
readonly slot: "title";
|
|
1709
|
+
readonly max: 52;
|
|
1710
|
+
readonly text: "New in";
|
|
1711
|
+
readonly enter: "heading";
|
|
1712
|
+
}, {
|
|
1713
|
+
readonly t: "Link";
|
|
1714
|
+
readonly es: "link";
|
|
1715
|
+
readonly href: "/shop";
|
|
1716
|
+
readonly slot: "more";
|
|
1717
|
+
readonly max: 28;
|
|
1718
|
+
readonly text: "Shop all";
|
|
1719
|
+
}];
|
|
1720
|
+
}, {
|
|
1721
|
+
readonly t: "Repeater";
|
|
1722
|
+
readonly src: "$binding";
|
|
1723
|
+
readonly lay: {
|
|
1724
|
+
readonly display: "grid";
|
|
1725
|
+
readonly gridTemplateColumns: "repeat(3, minmax(0, 1fr))";
|
|
1726
|
+
readonly gap: "var(--iox-space-gap)";
|
|
1727
|
+
};
|
|
1728
|
+
readonly resp: {
|
|
1729
|
+
readonly mobile: {
|
|
1730
|
+
readonly gridTemplateColumns: "minmax(0, 1fr)";
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
readonly c: readonly [{
|
|
1734
|
+
readonly t: "Container";
|
|
1735
|
+
readonly recipe: "card";
|
|
1736
|
+
readonly layout: "top";
|
|
1737
|
+
readonly parts: {
|
|
1738
|
+
readonly badge: false;
|
|
1739
|
+
readonly eyebrow: false;
|
|
1740
|
+
readonly text: false;
|
|
1741
|
+
readonly actions: false;
|
|
1742
|
+
};
|
|
1743
|
+
readonly detail: "item";
|
|
1744
|
+
readonly enter: "items";
|
|
1745
|
+
readonly binds: {
|
|
1746
|
+
readonly image: "item.@image?";
|
|
1747
|
+
readonly title: "item.@title";
|
|
1748
|
+
};
|
|
1749
|
+
readonly c: readonly [{
|
|
1750
|
+
readonly t: "Container";
|
|
1751
|
+
readonly recipe: "price";
|
|
1752
|
+
readonly binds: {
|
|
1753
|
+
readonly price: "item.@price";
|
|
1754
|
+
readonly compareAt: "item.@compareAt?";
|
|
1755
|
+
};
|
|
1756
|
+
}];
|
|
1757
|
+
}];
|
|
1758
|
+
}];
|
|
1759
|
+
readonly lay: {
|
|
1760
|
+
readonly display: "flex";
|
|
1761
|
+
readonly flexDirection: "column";
|
|
1762
|
+
readonly gap: "32px";
|
|
1763
|
+
};
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
readonly "commerce.featured": {
|
|
1767
|
+
readonly family: "collection";
|
|
1768
|
+
readonly shop: true;
|
|
1769
|
+
readonly label: "One product, its picture beside its words";
|
|
1770
|
+
readonly intent: "One product brought forward — its picture beside its name, price and a line — linking to its own page.";
|
|
1771
|
+
readonly node: {
|
|
1772
|
+
readonly t: "Section";
|
|
1773
|
+
readonly es: "section";
|
|
1774
|
+
readonly c: readonly [{
|
|
1775
|
+
readonly t: "Repeater";
|
|
1776
|
+
readonly src: "$binding";
|
|
1777
|
+
readonly limit: 1;
|
|
1778
|
+
readonly lay: {
|
|
1779
|
+
readonly display: "flex";
|
|
1780
|
+
readonly flexDirection: "column";
|
|
1781
|
+
readonly gap: "0px";
|
|
1782
|
+
};
|
|
1783
|
+
readonly c: readonly [{
|
|
1784
|
+
readonly t: "Container";
|
|
1785
|
+
readonly es: "box";
|
|
1786
|
+
readonly lay: {
|
|
1787
|
+
readonly display: "grid";
|
|
1788
|
+
readonly gridTemplateColumns: "1fr 1fr";
|
|
1789
|
+
readonly gap: "48px";
|
|
1790
|
+
readonly alignItems: "center";
|
|
1791
|
+
};
|
|
1792
|
+
readonly resp: {
|
|
1793
|
+
readonly mobile: {
|
|
1794
|
+
readonly gridTemplateColumns: "minmax(0, 1fr)";
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
readonly c: readonly [{
|
|
1798
|
+
readonly t: "Image";
|
|
1799
|
+
readonly es: "media";
|
|
1800
|
+
readonly bind: "item.@image?";
|
|
1801
|
+
readonly aspect: "4 / 5";
|
|
1802
|
+
}, {
|
|
1803
|
+
readonly t: "Container";
|
|
1804
|
+
readonly es: "box";
|
|
1805
|
+
readonly lay: {
|
|
1806
|
+
readonly display: "flex";
|
|
1807
|
+
readonly flexDirection: "column";
|
|
1808
|
+
readonly gap: "16px";
|
|
1809
|
+
};
|
|
1810
|
+
readonly c: readonly [{
|
|
1811
|
+
readonly t: "Text";
|
|
1812
|
+
readonly es: "eyebrow";
|
|
1813
|
+
readonly slot: "eyebrow";
|
|
1814
|
+
readonly max: 32;
|
|
1815
|
+
readonly text: "Featured";
|
|
1816
|
+
}, {
|
|
1817
|
+
readonly t: "Heading";
|
|
1818
|
+
readonly es: "h2";
|
|
1819
|
+
readonly level: "h2";
|
|
1820
|
+
readonly bind: "item.@title";
|
|
1821
|
+
readonly enter: "heading";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly t: "Container";
|
|
1824
|
+
readonly recipe: "price";
|
|
1825
|
+
readonly binds: {
|
|
1826
|
+
readonly price: "item.@price";
|
|
1827
|
+
readonly compareAt: "item.@compareAt?";
|
|
1828
|
+
};
|
|
1829
|
+
}, {
|
|
1830
|
+
readonly t: "Text";
|
|
1831
|
+
readonly es: "body";
|
|
1832
|
+
readonly bind: "item.@summary?";
|
|
1833
|
+
}, {
|
|
1834
|
+
readonly t: "Container";
|
|
1835
|
+
readonly es: "box";
|
|
1836
|
+
readonly lay: {
|
|
1837
|
+
readonly display: "flex";
|
|
1838
|
+
readonly flexWrap: "wrap";
|
|
1839
|
+
readonly gap: "12px";
|
|
1840
|
+
readonly alignItems: "center";
|
|
1841
|
+
};
|
|
1842
|
+
readonly c: readonly [{
|
|
1843
|
+
readonly t: "ButtonBlock";
|
|
1844
|
+
readonly es: "button-primary";
|
|
1845
|
+
readonly detail: "item";
|
|
1846
|
+
readonly slot: "action";
|
|
1847
|
+
readonly max: 24;
|
|
1848
|
+
readonly text: "See it";
|
|
1849
|
+
}];
|
|
1850
|
+
}];
|
|
1851
|
+
}];
|
|
1852
|
+
}];
|
|
1853
|
+
}];
|
|
1854
|
+
};
|
|
1855
|
+
};
|
|
1856
|
+
readonly "commerce.product-detail": {
|
|
1857
|
+
readonly family: "detail";
|
|
1858
|
+
readonly shop: true;
|
|
1859
|
+
readonly label: "A product — its picture, price, options and Add to cart";
|
|
1860
|
+
readonly intent: "One product on its own page: picture, name, price, its line, its options, quantity, Add to cart and Buy now.";
|
|
1861
|
+
readonly node: {
|
|
1862
|
+
readonly t: "Section";
|
|
1863
|
+
readonly es: "section";
|
|
1864
|
+
readonly c: readonly [{
|
|
1865
|
+
readonly t: "Container";
|
|
1866
|
+
readonly es: "box";
|
|
1867
|
+
readonly lay: {
|
|
1868
|
+
readonly display: "grid";
|
|
1869
|
+
readonly gridTemplateColumns: "1.1fr 0.9fr";
|
|
1870
|
+
readonly gap: "48px";
|
|
1871
|
+
readonly alignItems: "start";
|
|
1872
|
+
};
|
|
1873
|
+
readonly resp: {
|
|
1874
|
+
readonly mobile: {
|
|
1875
|
+
readonly gridTemplateColumns: "minmax(0, 1fr)";
|
|
1876
|
+
};
|
|
1877
|
+
};
|
|
1878
|
+
readonly c: readonly [{
|
|
1879
|
+
readonly t: "Image";
|
|
1880
|
+
readonly es: "media";
|
|
1881
|
+
readonly bind: "route.@image?";
|
|
1882
|
+
readonly aspect: "4 / 5";
|
|
1883
|
+
readonly enter: "media";
|
|
1884
|
+
}, {
|
|
1885
|
+
readonly t: "Container";
|
|
1886
|
+
readonly es: "box";
|
|
1887
|
+
readonly lay: {
|
|
1888
|
+
readonly display: "flex";
|
|
1889
|
+
readonly flexDirection: "column";
|
|
1890
|
+
readonly gap: "20px";
|
|
1891
|
+
};
|
|
1892
|
+
readonly c: readonly [{
|
|
1893
|
+
readonly t: "Heading";
|
|
1894
|
+
readonly es: "h1";
|
|
1895
|
+
readonly level: "h1";
|
|
1896
|
+
readonly bind: "route.@title";
|
|
1897
|
+
readonly enter: "heading";
|
|
1898
|
+
}, {
|
|
1899
|
+
readonly t: "Container";
|
|
1900
|
+
readonly recipe: "price";
|
|
1901
|
+
}, {
|
|
1902
|
+
readonly t: "Text";
|
|
1903
|
+
readonly es: "body";
|
|
1904
|
+
readonly bind: "route.@summary?";
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly t: "Container";
|
|
1907
|
+
readonly recipe: "variants";
|
|
1908
|
+
}, {
|
|
1909
|
+
readonly t: "Container";
|
|
1910
|
+
readonly es: "box";
|
|
1911
|
+
readonly lay: {
|
|
1912
|
+
readonly display: "flex";
|
|
1913
|
+
readonly flexWrap: "nowrap";
|
|
1914
|
+
readonly gap: "12px";
|
|
1915
|
+
readonly alignItems: "stretch";
|
|
1916
|
+
};
|
|
1917
|
+
readonly c: readonly [{
|
|
1918
|
+
readonly t: "Container";
|
|
1919
|
+
readonly recipe: "quantity";
|
|
1920
|
+
}, {
|
|
1921
|
+
readonly t: "ButtonBlock";
|
|
1922
|
+
readonly recipe: "add";
|
|
1923
|
+
}];
|
|
1924
|
+
}, {
|
|
1925
|
+
readonly t: "ButtonBlock";
|
|
1926
|
+
readonly recipe: "buyNow";
|
|
1927
|
+
}];
|
|
1928
|
+
}];
|
|
1929
|
+
}];
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1660
1932
|
readonly "feature.triad": {
|
|
1661
1933
|
readonly family: "feature";
|
|
1662
1934
|
readonly label: "Three services";
|
|
@@ -4728,6 +5000,18 @@ declare const SPEC_SITE_LIBRARY: readonly [{
|
|
|
4728
5000
|
readonly id: "collection.list-detail";
|
|
4729
5001
|
readonly family: "collection";
|
|
4730
5002
|
readonly composed: true;
|
|
5003
|
+
}, {
|
|
5004
|
+
readonly id: "commerce.product-grid";
|
|
5005
|
+
readonly family: "collection";
|
|
5006
|
+
readonly composed: true;
|
|
5007
|
+
}, {
|
|
5008
|
+
readonly id: "commerce.featured";
|
|
5009
|
+
readonly family: "collection";
|
|
5010
|
+
readonly composed: true;
|
|
5011
|
+
}, {
|
|
5012
|
+
readonly id: "commerce.product-detail";
|
|
5013
|
+
readonly family: "detail";
|
|
5014
|
+
readonly composed: true;
|
|
4731
5015
|
}, {
|
|
4732
5016
|
readonly id: "story.long-form";
|
|
4733
5017
|
readonly family: "story";
|
|
@@ -5898,8 +6182,14 @@ declare enum ContentRole {
|
|
|
5898
6182
|
Image = "image",
|
|
5899
6183
|
Meta = "meta",
|
|
5900
6184
|
Date = "date",
|
|
5901
|
-
Gallery = "gallery"
|
|
6185
|
+
Gallery = "gallery",
|
|
6186
|
+
/** Commerce C-D21: the shop's own price — played only by the shop's fields (`SHOP_ROLES`), never a content type's. */
|
|
6187
|
+
Price = "price",
|
|
6188
|
+
/** Commerce C-D21: the shop's earlier price, struck through. */
|
|
6189
|
+
CompareAt = "compareAt"
|
|
5902
6190
|
}
|
|
6191
|
+
/** The roles only the shop plays (contract `site.roles` less `planShape.roles`): a content type never names them. */
|
|
6192
|
+
declare const SHOP_ONLY_CONTENT_ROLES: ReadonlyArray<`${ContentRole}`>;
|
|
5903
6193
|
/** What each role means, verbatim from the contract — what the model reads. */
|
|
5904
6194
|
declare const CONTENT_ROLE_MEANINGS: Readonly<Record<`${ContentRole}`, string>>;
|
|
5905
6195
|
declare const REQUIRED_CONTENT_ROLES: ReadonlyArray<`${ContentRole}`>;
|
|
@@ -5923,7 +6213,14 @@ declare function contentTypePreviewFields(type: Pick<ContentTypePlan, 'roles'>):
|
|
|
5923
6213
|
declare function roleField(type: Pick<ContentTypePlan, 'roles'> | null | undefined, role: string): string | undefined;
|
|
5924
6214
|
declare enum PlanDataSourceType {
|
|
5925
6215
|
Cms = "cms",
|
|
5926
|
-
Relative = "relative"
|
|
6216
|
+
Relative = "relative",
|
|
6217
|
+
/** Commerce C-D21 (shop-aware A-D1): the studio's SHOP — products a visitor buys are never a content type. */
|
|
6218
|
+
Shop = "shop"
|
|
6219
|
+
}
|
|
6220
|
+
/** The shop lists a plan's shop source may read (closed, so a plan can never name `orders`). */
|
|
6221
|
+
declare enum ShopResource {
|
|
6222
|
+
Products = "products",
|
|
6223
|
+
Categories = "categories"
|
|
5927
6224
|
}
|
|
5928
6225
|
declare enum PlanDataSourceMode {
|
|
5929
6226
|
Query = "query",
|
|
@@ -5954,7 +6251,36 @@ interface RelativeDataSourcePlan {
|
|
|
5954
6251
|
/** The collection the subject is located within. */
|
|
5955
6252
|
readonly within: string;
|
|
5956
6253
|
}
|
|
5957
|
-
|
|
6254
|
+
/** Commerce C-D21: a list of the shop (or one row of it, by a route param) — derived from the plan's `shop`, never asked. */
|
|
6255
|
+
interface ShopDataSourcePlan {
|
|
6256
|
+
readonly alias: string;
|
|
6257
|
+
readonly type: `${PlanDataSourceType.Shop}`;
|
|
6258
|
+
readonly mode: `${PlanDataSourceMode}`;
|
|
6259
|
+
readonly resource: `${ShopResource}`;
|
|
6260
|
+
readonly limit?: number;
|
|
6261
|
+
readonly filterByRouteParam?: {
|
|
6262
|
+
readonly field: string;
|
|
6263
|
+
readonly routeParam: string;
|
|
6264
|
+
};
|
|
6265
|
+
}
|
|
6266
|
+
type DataSourcePlan = CmsDataSourcePlan | RelativeDataSourcePlan | ShopDataSourcePlan;
|
|
6267
|
+
/** One way a product varies (Size: S, M, L). */
|
|
6268
|
+
interface ShopOptionPlan {
|
|
6269
|
+
readonly name: string;
|
|
6270
|
+
readonly values: ReadonlyArray<string>;
|
|
6271
|
+
}
|
|
6272
|
+
/** A sample product, by name (commerce §3j): never a price, stock or a fee — the owner sets those. */
|
|
6273
|
+
interface ShopProductPlan {
|
|
6274
|
+
readonly name: string;
|
|
6275
|
+
readonly category: string;
|
|
6276
|
+
readonly description: string;
|
|
6277
|
+
readonly options: ReadonlyArray<ShopOptionPlan>;
|
|
6278
|
+
}
|
|
6279
|
+
/** What the business sells (commerce C-D21): its categories and up to six sample products. */
|
|
6280
|
+
interface ShopPlan {
|
|
6281
|
+
readonly categories: ReadonlyArray<string>;
|
|
6282
|
+
readonly products: ReadonlyArray<ShopProductPlan>;
|
|
6283
|
+
}
|
|
5958
6284
|
interface PageSectionPlan {
|
|
5959
6285
|
readonly pattern: string;
|
|
5960
6286
|
readonly slots?: Readonly<Record<string, string>>;
|
|
@@ -6042,6 +6368,9 @@ interface SitePlan {
|
|
|
6042
6368
|
readonly dataSources: ReadonlyArray<DataSourcePlan>;
|
|
6043
6369
|
readonly pages: ReadonlyArray<PagePlan>;
|
|
6044
6370
|
readonly globals: Readonly<Record<`${GlobalSlot}`, string>>;
|
|
6371
|
+
/** Commerce C-D21: what the business sells — present = the site is a whole store (shop sources, product pages, the
|
|
6372
|
+
* cart button in the header, the cart drawer). */
|
|
6373
|
+
readonly shop?: ShopPlan;
|
|
6045
6374
|
/** SC6b: the owner's film as pictures, set by the build and placed by `placeFilm` — never a model's. */
|
|
6046
6375
|
readonly film?: PlanFilm;
|
|
6047
6376
|
/** M7: what every picture made for the site shares (a world and its five parts) — set by the generation from the
|
|
@@ -6275,6 +6604,8 @@ interface PatternNode {
|
|
|
6275
6604
|
readonly phoneTracks?: ReadonlyArray<PatternTrack>;
|
|
6276
6605
|
/** SC6b: the Video a film pattern plays the owner's film in (its `frames`). */
|
|
6277
6606
|
readonly film?: boolean;
|
|
6607
|
+
/** Commerce G1: a Repeater shows at most this many rows of its source (`commerce.featured`: the newest one). */
|
|
6608
|
+
readonly limit?: number;
|
|
6278
6609
|
}
|
|
6279
6610
|
/**
|
|
6280
6611
|
* SC6: one scene-core track as the contract writes it — `{ prop, keys: [[progress, value]], from? }`. Typed here, not
|
|
@@ -6299,7 +6630,19 @@ declare enum PatternRecipe {
|
|
|
6299
6630
|
/** CC3: the accessible carousel — a named Slider whose controls are parts, one quote per slide (placeholders). */
|
|
6300
6631
|
Carousel = "carousel",
|
|
6301
6632
|
/** CC3: the Lightbox — a Dialog holding a Slider over the node's `src` (the gallery's own source). */
|
|
6302
|
-
Lightbox = "lightbox"
|
|
6633
|
+
Lightbox = "lightbox",
|
|
6634
|
+
/** Commerce G1 (E1c `SHOP_RECIPES`): the product's price — its own on a product page (`$variant`), the row's in a
|
|
6635
|
+
* list (`binds`: `price`, `compareAt`). */
|
|
6636
|
+
Price = "price",
|
|
6637
|
+
Variants = "variants",
|
|
6638
|
+
Quantity = "quantity",
|
|
6639
|
+
Add = "add",
|
|
6640
|
+
BuyNow = "buyNow"
|
|
6641
|
+
}
|
|
6642
|
+
/** A price recipe's `binds` keys → the part each binds (E1c `ShopBindTarget`). */
|
|
6643
|
+
declare enum PriceBindTarget {
|
|
6644
|
+
Price = "price",
|
|
6645
|
+
CompareAt = "compareAt"
|
|
6303
6646
|
}
|
|
6304
6647
|
/** A recipe node's `binds` keys → the part each binds (Card v2). */
|
|
6305
6648
|
declare enum CardBindTarget {
|
|
@@ -6333,6 +6676,9 @@ interface SitePattern {
|
|
|
6333
6676
|
readonly scene?: boolean;
|
|
6334
6677
|
/** SC6b: a Scene that plays the owner's film. Placed by `placeFilm`, never chosen: no manifest or wire lists it. */
|
|
6335
6678
|
readonly film?: boolean;
|
|
6679
|
+
/** Commerce G1: a store section — it reads the shop (its products, a product's price and variants). Listed only to
|
|
6680
|
+
* a business that sells. */
|
|
6681
|
+
readonly shop?: boolean;
|
|
6336
6682
|
readonly node: PatternNode;
|
|
6337
6683
|
}
|
|
6338
6684
|
declare const SITE_PATTERNS: Readonly<Record<string, SitePattern>>;
|
|
@@ -6442,10 +6788,14 @@ interface PatternManifestEntry {
|
|
|
6442
6788
|
form: boolean;
|
|
6443
6789
|
/** SC6: it holds the page as it scrolls — one per page, the home page and at most one other. */
|
|
6444
6790
|
scene?: boolean;
|
|
6791
|
+
/** Commerce G1: a store section — it binds the shop's sources. */
|
|
6792
|
+
shop?: boolean;
|
|
6445
6793
|
}
|
|
6446
6794
|
interface PatternManifestOptions {
|
|
6447
6795
|
/** The site's How animated: below `SCENE_LEVEL` the Scenes are left out — a model cannot choose what it never sees. */
|
|
6448
6796
|
animate?: string | null;
|
|
6797
|
+
/** Commerce G1: whether the business sells — when false the store sections are left out; absent, all of them. */
|
|
6798
|
+
sells?: boolean;
|
|
6449
6799
|
}
|
|
6450
6800
|
/**
|
|
6451
6801
|
* The composed library as the model reads it — every pattern, its budgets under `density` (M1-3's manifest). Given the
|
|
@@ -6708,7 +7058,20 @@ declare enum SitePlanIssueCode {
|
|
|
6708
7058
|
/** M8 gate 2: which pages are composed — the home page and at most one other that is no per-item page. */
|
|
6709
7059
|
Compose = "compose",
|
|
6710
7060
|
/** M8 gate 2: a composed page's layout (`checkLayout`'s issues, each at its path under `layout`). */
|
|
6711
|
-
Layout = "layout"
|
|
7061
|
+
Layout = "layout",
|
|
7062
|
+
/** Commerce C-D21: what the business sells — a selling business without its products, one that sells nothing with a
|
|
7063
|
+
* shop, a product past the sixth, a shop source with no shop, or a content type named after a shop list. */
|
|
7064
|
+
Shop = "shop",
|
|
7065
|
+
/** Commerce C-D21: a selling site has a product page — a page at a `:slug` route reading the shop's one product. */
|
|
7066
|
+
ProductPage = "product-page",
|
|
7067
|
+
/** Commerce C-D21: a price, a stock count or a fee written into what the business sells — the owner sets those. */
|
|
7068
|
+
Price = "price"
|
|
7069
|
+
}
|
|
7070
|
+
/** What the validator is told about the business (iox-cms's reading), beyond the plan itself. */
|
|
7071
|
+
interface SitePlanContext {
|
|
7072
|
+
/** True: the business sells (the reading's need `products`) — the plan must name what. False: it sells nothing — the
|
|
7073
|
+
* plan holds no shop. Absent: the plan is judged as written (a template, a stored plan). */
|
|
7074
|
+
readonly sells?: boolean;
|
|
6712
7075
|
}
|
|
6713
7076
|
type SitePlanIssue = PathIssue<SitePlanIssueCode>;
|
|
6714
7077
|
interface SitePlanValidation {
|
|
@@ -6728,7 +7091,7 @@ declare function nextSourceOf(sources: Map<string, {
|
|
|
6728
7091
|
op?: string;
|
|
6729
7092
|
}>, routeSource: string): string | null;
|
|
6730
7093
|
/** Check a Site Plan against the plan shape and the pattern library. Never throws, never repairs. */
|
|
6731
|
-
declare function validateSitePlan(plan: unknown): SitePlanValidation;
|
|
7094
|
+
declare function validateSitePlan(plan: unknown, ctx?: SitePlanContext): SitePlanValidation;
|
|
6732
7095
|
/** Throw a `SitePlanError` carrying every issue unless the plan is valid. */
|
|
6733
7096
|
declare function assertValidSitePlan(plan: unknown): void;
|
|
6734
7097
|
/**
|
|
@@ -6884,6 +7247,40 @@ interface ComposedSite {
|
|
|
6884
7247
|
routes: ComposedRoute[];
|
|
6885
7248
|
placeholders: ComposedPlaceholder[];
|
|
6886
7249
|
issues: ComposeIssue[];
|
|
7250
|
+
/** Commerce C-D21: what the build writes into the studio's SHOP (never a content type) — null when it sells nothing. */
|
|
7251
|
+
shop: ComposedShop | null;
|
|
7252
|
+
}
|
|
7253
|
+
/** A sample product as the build writes it through the shop's own write path (its slug made there, from its title). */
|
|
7254
|
+
interface ComposedProduct {
|
|
7255
|
+
title: string;
|
|
7256
|
+
/** The category's label (the build writes the categories first and links each product to its own). */
|
|
7257
|
+
category: string;
|
|
7258
|
+
description: string;
|
|
7259
|
+
options: Array<{
|
|
7260
|
+
name: string;
|
|
7261
|
+
values: string[];
|
|
7262
|
+
}>;
|
|
7263
|
+
/** Whether it varies, and its variants by name (one per combination; sold, no price, no stock — the owner's). */
|
|
7264
|
+
productVariants: boolean;
|
|
7265
|
+
variants: Array<{
|
|
7266
|
+
name: string;
|
|
7267
|
+
enable: true;
|
|
7268
|
+
}>;
|
|
7269
|
+
/** Never a number (shop-aware §3i, T4): the price is the owner's — a sample's blocks Publish until it is set. */
|
|
7270
|
+
pricing: {
|
|
7271
|
+
price: null;
|
|
7272
|
+
compareat: null;
|
|
7273
|
+
};
|
|
7274
|
+
/** Its picture, once the build placed one (a stock photo, the owner's, a made one) — absent until then. */
|
|
7275
|
+
mainImage?: string;
|
|
7276
|
+
isSample: true;
|
|
7277
|
+
isPublished: true;
|
|
7278
|
+
}
|
|
7279
|
+
interface ComposedShop {
|
|
7280
|
+
categories: Array<{
|
|
7281
|
+
label: string;
|
|
7282
|
+
}>;
|
|
7283
|
+
products: ComposedProduct[];
|
|
6887
7284
|
}
|
|
6888
7285
|
/** `{sampleImage:k}` — a bundled abstract sample image, never a stock photo (plan §6b). */
|
|
6889
7286
|
declare const SAMPLE_IMAGE_REF: RegExp;
|
|
@@ -6901,6 +7298,9 @@ declare function layoutGalleryLists(plan: SitePlan): LayoutGalleryList[];
|
|
|
6901
7298
|
declare function layoutGallerySources(plan: SitePlan): string[];
|
|
6902
7299
|
/** A NEW Form stamped from a forms-core preset, exactly as a pattern's preset form is (premium M8: a layout's form layer). */
|
|
6903
7300
|
declare function composePresetForm(id: string, presetId: string, owner: string): SerializedNode;
|
|
7301
|
+
/** The ids the composer gives them (the header's bag; the drawer, a global after the page). */
|
|
7302
|
+
declare const SHOP_CART_BUTTON_ID = "header-cart";
|
|
7303
|
+
declare const SHOP_CART_DRAWER_ID = "cart";
|
|
6904
7304
|
/**
|
|
6905
7305
|
* Compose a Site Plan. Throws `SitePlanError` (every issue) when the plan does not validate — the
|
|
6906
7306
|
* composer never repairs a plan. `context` carries what the composer may not read for itself (the year).
|
|
@@ -7139,6 +7539,60 @@ interface PageData {
|
|
|
7139
7539
|
/** One entry per page of the plan, in plan order. */
|
|
7140
7540
|
declare function describePlanData(plan: SitePlan): PageData[];
|
|
7141
7541
|
|
|
7542
|
+
/**
|
|
7543
|
+
* Commerce C-D21 (track G1; shop-aware A-D1, A-D2): a selling business's products are the studio's SHOP — never a
|
|
7544
|
+
* content type of the plan. What a plan says about the shop is only WHAT the business sells (`plan.shop`: up to six
|
|
7545
|
+
* sample products by name, their categories, how they vary — never a price, stock or a fee). Everything that follows
|
|
7546
|
+
* from selling is derived here, never asked: the shop's data sources (the list, the newest, one product by its slug), the
|
|
7547
|
+
* roles its rows play (fixed — the shop's own fields), and that the site is a whole store (the composer's cart button and
|
|
7548
|
+
* cart drawer). Pure.
|
|
7549
|
+
*/
|
|
7550
|
+
/** The need a reading names for a business that sells (harness-core `NEEDS.products`). */
|
|
7551
|
+
declare const SHOP_NEED = "products";
|
|
7552
|
+
/** At most this many sample products in a plan (commerce §3j: "≤ 6 sample products by name"). */
|
|
7553
|
+
declare const SHOP_PRODUCTS_MAX = 6;
|
|
7554
|
+
/** The field each role is on a shop row — the storefront's own fields (iox-cms `storefront-projection.ts`). */
|
|
7555
|
+
declare const SHOP_ROLES: Readonly<Record<`${ShopResource}`, ContentRoles>>;
|
|
7556
|
+
/** The shop's fields as a pattern's list rules read them (`patternListGap`): its own, fixed. */
|
|
7557
|
+
declare const SHOP_FIELDS: Readonly<Record<`${ShopResource}`, ReadonlyArray<ContentFieldPlan>>>;
|
|
7558
|
+
/** The shop list as the composer and the validator read a content type: its fixed roles and fields. Never written. */
|
|
7559
|
+
declare function shopContentType(resource: `${ShopResource}`): ContentTypePlan;
|
|
7560
|
+
declare const isShopResource: (value: unknown) => value is `${ShopResource}`;
|
|
7561
|
+
/** The field a product page's route param matches (the shop's slug, shop-aware §3d). */
|
|
7562
|
+
declare const SHOP_SLUG_FIELD = "slug";
|
|
7563
|
+
/** How many products the shop's list shows (shop-aware §8: one page, no paging until Plan B). */
|
|
7564
|
+
declare const SHOP_LIST_LIMIT = 24;
|
|
7565
|
+
/** How many the newest list shows (a home page's row of cards). */
|
|
7566
|
+
declare const SHOP_LATEST_LIMIT = 3;
|
|
7567
|
+
/** The shop's sources a selling plan holds — derived (`derivedShopSources`), each by its part in the store. */
|
|
7568
|
+
declare enum ShopSourceRole {
|
|
7569
|
+
/** Every product (the shop page). */
|
|
7570
|
+
List = "list",
|
|
7571
|
+
/** The newest few (the home page). */
|
|
7572
|
+
Latest = "latest",
|
|
7573
|
+
/** One product, by the route's `:slug` (the product page). */
|
|
7574
|
+
Item = "item"
|
|
7575
|
+
}
|
|
7576
|
+
/** True when `plan` (a plan, or a part of one being written) says the business sells: its `shop` names a product. */
|
|
7577
|
+
declare function planSells(plan: unknown): boolean;
|
|
7578
|
+
/** The store's sources a plan holds, by role (the first of each) — the aliases the pages bind. */
|
|
7579
|
+
declare function shopSourceAliases(plan: unknown): Partial<Record<ShopSourceRole, string>>;
|
|
7580
|
+
/**
|
|
7581
|
+
* The shop sources a selling plan lacks (shop-aware A-D1, the derived-not-asked rule of `plan-derived.ts`): the list,
|
|
7582
|
+
* the newest and one product by its slug. Idempotent — a plan holding one of each gains nothing; a plan that sells
|
|
7583
|
+
* nothing gains nothing. Tolerates any value.
|
|
7584
|
+
*/
|
|
7585
|
+
declare function derivedShopSources(plan: unknown): DataSourcePlan[];
|
|
7586
|
+
/** The categories of a plan's products, in order, each once (what the wire derives from the products). */
|
|
7587
|
+
declare function shopCategoriesOf(products: ReadonlyArray<Pick<ShopProductPlan, 'category'>>): string[];
|
|
7588
|
+
/** True when `plan` holds a shop source (a whole store's data). */
|
|
7589
|
+
declare function planHasShopSource(plan: Pick<SitePlan, 'dataSources'>): boolean;
|
|
7590
|
+
/** A product's variants by name — one per combination of its options' values, in order (`Glaze-Sand-24 cm`'s shape, the
|
|
7591
|
+
* shop's own: `VARIANT_NAME_SEPARATOR`). No options: none (the shop keeps its one Default). */
|
|
7592
|
+
declare function variantNamesOf(options: ReadonlyArray<{
|
|
7593
|
+
readonly values: ReadonlyArray<string>;
|
|
7594
|
+
}>): string[];
|
|
7595
|
+
|
|
7142
7596
|
/**
|
|
7143
7597
|
* THE LIBRARY ON SHOW — every composed pattern, stamped by the real composer onto ordinary pages (one page per family,
|
|
7144
7598
|
* the item page holding the patterns that read a route item), over the Studio's content and sources. One plan per
|
|
@@ -7163,10 +7617,14 @@ declare function showcaseGlobals(): {
|
|
|
7163
7617
|
};
|
|
7164
7618
|
/** SC6: the Scene patterns — each shown alone on the home page of its own plan, as a site may hold one (validateScenes). */
|
|
7165
7619
|
declare function showcaseScenes(): string[];
|
|
7620
|
+
declare const SHOWCASE_SHOP: ShopPlan;
|
|
7621
|
+
/** The store patterns (`shop`), each on the page a store shows it on: a list on the shop page, one product on its own. */
|
|
7622
|
+
declare function showcaseStorePages(sources: Partial<Record<ShopSourceRole, string>>): PagePlan[];
|
|
7166
7623
|
/**
|
|
7167
7624
|
* The showcase as Site Plans — as many as it takes for every header and every footer to be composed once, then one per
|
|
7168
7625
|
* Scene pattern (SC6): its home page holds that Scene and nothing else, at How animated Expressive, the only level a
|
|
7169
|
-
* Scene is composed at; the film's Scene with a film (SC6b)
|
|
7626
|
+
* Scene is composed at; the film's Scene with a film (SC6b); then the store (commerce G1): the store patterns over the
|
|
7627
|
+
* shop's derived sources, with the bag in the header and the cart drawer.
|
|
7170
7628
|
*/
|
|
7171
7629
|
declare function showcasePlans(input: ShowcaseInput): SitePlan[];
|
|
7172
7630
|
|
|
@@ -7196,12 +7654,16 @@ declare enum BuildStep {
|
|
|
7196
7654
|
/** I2: the curated stock photos the plan's empty picture slots take, copied into the studio (never hot-linked). */
|
|
7197
7655
|
StockPhotos = "stock-photos",
|
|
7198
7656
|
Items = "items",
|
|
7657
|
+
/** Commerce G1: what the business sells, into the studio's SHOP — its categories, then sample products (no price). */
|
|
7658
|
+
Shop = "shop",
|
|
7199
7659
|
DataSources = "data-sources",
|
|
7200
7660
|
Pages = "pages",
|
|
7201
7661
|
Globals = "globals",
|
|
7202
7662
|
Look = "look"
|
|
7203
7663
|
}
|
|
7204
7664
|
declare const BUILD_STEPS: ReadonlyArray<BuildStep>;
|
|
7665
|
+
/** The steps a build of `plan` takes, in order: every one, the shop's only when the plan sells (commerce G1). */
|
|
7666
|
+
declare function buildStepsOf(plan: unknown): BuildStep[];
|
|
7205
7667
|
declare enum StepState {
|
|
7206
7668
|
Wait = "wait",
|
|
7207
7669
|
Run = "run",
|
|
@@ -7217,6 +7679,10 @@ declare enum CreatedKind {
|
|
|
7217
7679
|
/** A stock photo copied into the studio's storage (`media/stock/…`), with its assets row. */
|
|
7218
7680
|
StockPhoto = "stock-photo",
|
|
7219
7681
|
Item = "item",
|
|
7682
|
+
/** Commerce G1: a shop category the build added (one the studio had is reused, never recorded). */
|
|
7683
|
+
ShopCategory = "shop-category",
|
|
7684
|
+
/** Commerce G1: a sample product, written through the shop's own write path. */
|
|
7685
|
+
ShopProduct = "shop-product",
|
|
7220
7686
|
DataSource = "data-source",
|
|
7221
7687
|
Page = "page",
|
|
7222
7688
|
Global = "global",
|
|
@@ -7285,7 +7751,12 @@ declare enum BuildNoticeCode {
|
|
|
7285
7751
|
StockMissing = "stock-missing",
|
|
7286
7752
|
/** M7: a picture made for the site was refused by its review twice (or its second try did not fit the cost shown):
|
|
7287
7753
|
* stock or the empty box stands in, and the run says so. */
|
|
7288
|
-
PictureFallback = "picture-fallback"
|
|
7754
|
+
PictureFallback = "picture-fallback",
|
|
7755
|
+
/** Commerce G1 (shop-aware A-D9): the studio already sells products — the site shows them, and no sample is added. */
|
|
7756
|
+
ShopHasProducts = "shop-has-products",
|
|
7757
|
+
/** Commerce G1: the studio had never set its currency and VAT — the build stored the ones its language implies
|
|
7758
|
+
* (Hebrew: ILS and 18%), said here so the owner checks them in Settings ▸ General before setting prices. */
|
|
7759
|
+
ShopMoneyInferred = "shop-money-inferred"
|
|
7289
7760
|
}
|
|
7290
7761
|
interface BuildNotice {
|
|
7291
7762
|
code: string;
|
|
@@ -7354,6 +7825,8 @@ declare const buildKeys: {
|
|
|
7354
7825
|
readonly contentType: (name: string) => string;
|
|
7355
7826
|
readonly contentTypeFields: (name: string) => string;
|
|
7356
7827
|
readonly item: (contentType: string, n: number) => string;
|
|
7828
|
+
readonly shopCategory: (n: number) => string;
|
|
7829
|
+
readonly shopProduct: (n: number) => string;
|
|
7357
7830
|
readonly sampleImage: (n: number) => string;
|
|
7358
7831
|
readonly stockPhoto: (libraryKey: string) => string;
|
|
7359
7832
|
readonly dataSource: (alias: string) => string;
|
|
@@ -7383,6 +7856,9 @@ interface BuildStepFacts {
|
|
|
7383
7856
|
contentTypeActions: Partial<Record<ContentTypeAction, string[]>>;
|
|
7384
7857
|
/** Sample items, all types together. */
|
|
7385
7858
|
items: number;
|
|
7859
|
+
/** Commerce G1: sample products for the shop (0 = the plan sells nothing) and their categories. */
|
|
7860
|
+
products: number;
|
|
7861
|
+
categories: number;
|
|
7386
7862
|
/** Pages (template pages included) and their routes. */
|
|
7387
7863
|
pages: number;
|
|
7388
7864
|
routes: string[];
|
|
@@ -7445,7 +7921,10 @@ declare enum PlanWireEntry {
|
|
|
7445
7921
|
SlotText = "slotText",
|
|
7446
7922
|
SlotLink = "slotLink",
|
|
7447
7923
|
Globals = "globals",
|
|
7448
|
-
Direction = "direction"
|
|
7924
|
+
Direction = "direction",
|
|
7925
|
+
/** Commerce C-D21: one product the business sells, by name. */
|
|
7926
|
+
ShopProduct = "shopProduct",
|
|
7927
|
+
ShopOption = "shopOption"
|
|
7449
7928
|
}
|
|
7450
7929
|
/** The plan keys the model does not write, and where the expander takes each from. */
|
|
7451
7930
|
declare const PLAN_WIRE_DERIVED: Readonly<Record<string, string>>;
|
|
@@ -7475,6 +7954,8 @@ declare function wireContentTypeJsonSchema(options?: WireOptions): JsonSchema;
|
|
|
7475
7954
|
declare function wireDataSourceJsonSchema(): JsonSchema;
|
|
7476
7955
|
declare function wireSectionJsonSchema(): JsonSchema;
|
|
7477
7956
|
declare function wirePageJsonSchema(options?: WireOptions): JsonSchema;
|
|
7957
|
+
/** Commerce C-D21: one product the business sells, as the structure writes it — never a price, stock or a fee. */
|
|
7958
|
+
declare function wireShopProductJsonSchema(): JsonSchema;
|
|
7478
7959
|
/** The plan's top-level shape for one part (its keys only) — what that part's request shows and is built from. */
|
|
7479
7960
|
declare function planWirePartShape(part: PlanPart): ShapeEntry;
|
|
7480
7961
|
/**
|
|
@@ -7493,6 +7974,8 @@ interface PlanWireContext {
|
|
|
7493
7974
|
declare function expandWireField(wire: unknown): ContentFieldPlan | unknown;
|
|
7494
7975
|
declare function expandWireContentType(wire: unknown, options?: WireOptions): ContentTypePlan | unknown;
|
|
7495
7976
|
declare function expandWireDataSource(wire: unknown): DataSourcePlan | unknown;
|
|
7977
|
+
/** The structure's products → the plan's `shop`: the products as written, their categories derived; `[]` = it sells nothing. */
|
|
7978
|
+
declare function expandWireShop(wire: unknown): unknown;
|
|
7496
7979
|
declare function expandWireSection(wire: unknown): PageSectionPlan | unknown;
|
|
7497
7980
|
declare function expandWirePage(wire: unknown, options?: WireOptions): PagePlan | unknown;
|
|
7498
7981
|
/** A plan on the wire, by part — what each request answered. A part not written yet is absent. */
|
|
@@ -7744,7 +8227,10 @@ declare function patternListGap(pattern: SitePattern, fields: ReadonlyArray<Cont
|
|
|
7744
8227
|
* value: what is not a well-formed plan gains nothing, for the validator to judge as written.
|
|
7745
8228
|
*/
|
|
7746
8229
|
declare function derivedDataSources(plan: unknown): DataSourcePlan[];
|
|
7747
|
-
/**
|
|
8230
|
+
/**
|
|
8231
|
+
* `plan` with the data sources that follow from it appended: a selling plan's shop sources (`derivedShopSources`, commerce
|
|
8232
|
+
* C-D21), then those its pages need (`derivedDataSources`). The same object when it lacks none.
|
|
8233
|
+
*/
|
|
7748
8234
|
declare function withDerivedSources<T>(plan: T): T;
|
|
7749
8235
|
|
|
7750
8236
|
/**
|
|
@@ -7967,7 +8453,7 @@ declare function recomposeAsks(edits: ReadonlyArray<PlanEdit>): Record<string, s
|
|
|
7967
8453
|
/**
|
|
7968
8454
|
* Apply a set of edits to a plan — all of them, or none (any issue refuses the set and returns the plan unchanged). The
|
|
7969
8455
|
* sources only removed pages and sections read are dropped with them; sources nothing read before are kept; the sources
|
|
7970
|
-
* the pages now need and no model writes are derived (`
|
|
8456
|
+
* the pages now need and no model writes are derived (`withDerivedSources` — a page edit adding `project.next`, as the
|
|
7971
8457
|
* plan wire's expansion does, vectoriox/iox-cms#49). The result still has to pass `validateSitePlan`.
|
|
7972
8458
|
*/
|
|
7973
8459
|
declare function applyPlanEdits(plan: SitePlan, edits: ReadonlyArray<PlanEdit>): PlanEditResult;
|
|
@@ -8043,6 +8529,8 @@ declare function writtenTexts(plan: SitePlan): WrittenText[];
|
|
|
8043
8529
|
declare const HEBREW_PREFIXES = "[\u05D5\u05D4\u05D1\u05DC\u05DE\u05E9\u05DB]{0,2}";
|
|
8044
8530
|
/** A word (or phrase) as a whole-word pattern; Hebrew allows its one-letter prefixes. */
|
|
8045
8531
|
declare function wordPattern(word: string): RegExp;
|
|
8532
|
+
/** Every price written in `text` (commerce C-D21: what a business sells never carries one — the owner sets prices). */
|
|
8533
|
+
declare function pricesIn(text: string): string[];
|
|
8046
8534
|
/** The words to avoid and the facts never given, in every written text of the plan. */
|
|
8047
8535
|
declare function planWordIssues(plan: SitePlan, ctx: PlanWordContext): PlanWordIssue[];
|
|
8048
8536
|
|
|
@@ -8085,6 +8573,9 @@ declare enum SiteFindingCode {
|
|
|
8085
8573
|
UnfilledFact = "unfilled-fact",
|
|
8086
8574
|
CopyPlaceholder = "copy-placeholder",
|
|
8087
8575
|
SampleItems = "sample-items",
|
|
8576
|
+
/** Commerce G1 (shop-aware §3i): a sample product the build added still has no price — a price is a fact a buyer is
|
|
8577
|
+
* held to, so the owner sets it (or removes the sample) before the store goes live. */
|
|
8578
|
+
SamplePrice = "sample-price",
|
|
8088
8579
|
StockPhoto = "stock-photo",
|
|
8089
8580
|
/** M7: a picture made with AI for the site still stands where one of the studio's own could. */
|
|
8090
8581
|
MadePicture = "made-picture",
|
|
@@ -8155,6 +8646,11 @@ interface SiteAuditSnapshot {
|
|
|
8155
8646
|
id: string;
|
|
8156
8647
|
label?: string;
|
|
8157
8648
|
}>;
|
|
8649
|
+
/** Commerce G1: sample products (`isSample`) whose price is still not set. */
|
|
8650
|
+
unpricedSamples?: ReadonlyArray<{
|
|
8651
|
+
id: string;
|
|
8652
|
+
label?: string;
|
|
8653
|
+
}>;
|
|
8158
8654
|
/** Stock photos a build placed that are still on the page. */
|
|
8159
8655
|
stock?: ReadonlyArray<{
|
|
8160
8656
|
nodeId: string;
|
|
@@ -8447,7 +8943,7 @@ declare function stockSlots(plan: SitePlan, composed: Pick<ComposedSite, 'pages'
|
|
|
8447
8943
|
* The sample items' pictures a stock photo may fill: per content type with an `image` role, each MARKED sample whose
|
|
8448
8944
|
* image is still a bundled sample (`{sampleImage:k}`), with the type's and the item's own words.
|
|
8449
8945
|
*/
|
|
8450
|
-
declare function stockItemSlots(plan: Pick<SitePlan, 'contentTypes'>, composed: Pick<ComposedSite, 'items'>): StockItemSlot[];
|
|
8946
|
+
declare function stockItemSlots(plan: Pick<SitePlan, 'contentTypes'>, composed: Pick<ComposedSite, 'items'> & Partial<Pick<ComposedSite, 'shop'>>): StockItemSlot[];
|
|
8451
8947
|
type StockPlacement<T extends StockTarget = StockTarget> = T & {
|
|
8452
8948
|
photo: StockPhoto;
|
|
8453
8949
|
};
|
|
@@ -8483,6 +8979,8 @@ declare function applyStockPhotos(trees: ReadonlyArray<SerializedNode>, placed:
|
|
|
8483
8979
|
url: string;
|
|
8484
8980
|
alt: string;
|
|
8485
8981
|
}>): number;
|
|
8982
|
+
/** The sample rows a build gives pictures to, by list: the content types' items and (commerce G1) the shop's products. */
|
|
8983
|
+
declare function pictureItemsOf(composed: Pick<ComposedSite, 'items'> & Partial<Pick<ComposedSite, 'shop'>>): Record<string, ReadonlyArray<Record<string, unknown>>>;
|
|
8486
8984
|
/** Put the studio's copy of each photo into its sample item's image field. Returns the items changed. */
|
|
8487
8985
|
declare function applyStockItemPhotos(items: Readonly<Record<string, ReadonlyArray<Record<string, unknown>>>>, placed: ReadonlyArray<{
|
|
8488
8986
|
contentType: string;
|
|
@@ -8634,7 +9132,7 @@ interface PicturePlanOptions {
|
|
|
8634
9132
|
max?: number;
|
|
8635
9133
|
}
|
|
8636
9134
|
/** The ONE list of picture slots a build fills — its composed sections' empty pictures, then its sample items'. */
|
|
8637
|
-
declare function pictureTargets(plan: SitePlan, composed: Pick<ComposedSite, 'pages' | 'placeholders' | 'items'>): StockTarget[];
|
|
9135
|
+
declare function pictureTargets(plan: SitePlan, composed: Pick<ComposedSite, 'pages' | 'placeholders' | 'items'> & Partial<Pick<ComposedSite, 'shop'>>): StockTarget[];
|
|
8638
9136
|
/** A slot's stable key. */
|
|
8639
9137
|
declare function pictureSlotKey(target: StockTarget): string;
|
|
8640
9138
|
/** The nearest frame a model is asked for (by the ratio of ratios); a slot with no shape fills its box. */
|
|
@@ -9574,5 +10072,5 @@ declare function applyLayoutEdits(page: LayoutPage, edits: ReadonlyArray<LayoutE
|
|
|
9574
10072
|
/** The strict format a repair is asked in: `{ edits: [{ op, path, value }] }`, every key required. */
|
|
9575
10073
|
declare function layoutRepairJsonSchema(): JsonSchema;
|
|
9576
10074
|
|
|
9577
|
-
export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOWCASE_FILM, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
9578
|
-
export type { AddBarItemResult, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedRoute, ComposedSection, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|
|
10075
|
+
export { ACTION_START_SCALE, ACTIVE_BUILD_STATUSES, AI_REFUSAL_NEXT, AI_REFUSAL_STATUS, AI_STEPS, AI_STEP_LABELS, AI_STEP_NEEDS, AI_STEP_PART_TOKENS, AI_STEP_TYPICAL_TOKENS, ART_DIRECTION_PARTS, AiCallStatus, AiCapability, AiFeature, AiGenerationStage, AiKeyMode, AiLimit, AiNextKind, AiProviderId, AiRefusalCode, AiStep, BAR_ITEMS_MAX, BAR_ITEMS_MIN, BASELINE_ROLES, BUILD_STEPS, BaselineRole, BindScope, BuildNoticeCode, BuildStep, CONTENT_ROLE_MEANINGS, CREDITS_PER_USD, CardBindTarget, CheckSeverity, ComposeError, ComposeIssueCode, ContentFieldControl, ContentFieldType, ContentRole, ContentTypeAction, CreatedKind, DANGLING_LINK_CODES, DEFAULT_PHONE_MENU_BREAKPOINT, DEFAULT_SITE_LOCALE, ENTRANCE_EASING, ENTRANCE_ORIGIN_LOOK, ENTRANCE_TRIGGER, EntrancePart, EntranceSide, FACT_KEYS, FIELD_TYPE_OF_CONTROL, FILL_ASPECT, FILM_PATTERN, FINAL_GENERATION_STAGES, FINDING_SEVERITY, FilmUnplaced, GRAMMAR_TOO_LARGE_MESSAGE, GlobalSlot, HEBREW_PREFIXES, JSON_SCHEMA_BANNED_KEYWORDS, JsonSchemaShapeError, KeptReason, LAYOUT_ACCENT_TEXT, LAYOUT_BEAT_DELAY, LAYOUT_CHECK_VIEWPORT, LAYOUT_COLOUR_TOKEN, LAYOUT_COLUMN_GAP, LAYOUT_DEPTH_ON_PHONE, LAYOUT_DRIFT, LAYOUT_EASING, LAYOUT_ENTRANCE_MAX_MS, LAYOUT_FONT_SIZE, LAYOUT_GUTTER, LAYOUT_HIDDEN_OPACITY, LAYOUT_KINETIC_KINDS, LAYOUT_LINE_HEIGHT, LAYOUT_OPERATED, LAYOUT_PACE, LAYOUT_PHONE_BREAKPOINT, LAYOUT_PHONE_PADDING, LAYOUT_PHOTO_ASPECT, LAYOUT_READY_MADE_TOKEN, LAYOUT_RISE, LAYOUT_SCREEN_PX, LAYOUT_TEXT_KINDS, LAYOUT_TOOLTIP_TRAIT, LAYOUT_VIEWPORTS, LAYOUT_WIRE_AUTOPLAY_MS, LayoutAlign, LayoutBleed, LayoutButtonVariant, LayoutColour, LayoutColourMode, LayoutDepth, LayoutDial, LayoutEase, LayoutEditOp, LayoutEnter, LayoutGalleryEffect, LayoutGapCode, LayoutIssueCode, LayoutLayerKind, LayoutMendKind, LayoutNavKind, LayoutPace, LayoutPhotoShape, LayoutPhotoSource, LayoutRole, LayoutSectionKind, LayoutSequenceToken, LayoutSide, LayoutSignatureId, LayoutSize, LayoutSourceChoice, LayoutTrackProp, LayoutTransition, LayoutViewport, MAX_SITE_PICTURES, NAV_PART_LABELS, NAV_SHAPE_COPY, NEUTRAL_STYLE_PROPS, NODE_BASELINES, NO_TOKENS, NavPagesSource, NavRole, NavShape, NavShapeError, PAGE_ARCHETYPES, PHOTO_ANALYSIS_WIDTH, PHOTO_CALM_DETAIL, PHOTO_GRID, PHOTO_LIGHT_LUMINANCE, PICTURE_ASPECTS, PICTURE_NEVER, PICTURE_REAL_PLACE_FAMILIES, PICTURE_REROLL_EVERY, PICTURE_REVIEW_FORMAT, PICTURE_REVIEW_SHAPE, PICTURE_TEXT_CONTRAST, PICTURE_WORLDS, PICTURE_WORLD_IDS, PLAN_EDITS_ANSWER_SHAPES, PLAN_EDITS_PART_SCHEMA_NAMES, PLAN_EDIT_OP_PART, PLAN_EDIT_SHAPE, PLAN_EDIT_WIRE_KEYS, PLAN_PARTS, PLAN_PART_KEYS, PLAN_WIRE_DERIVED, PLAN_WIRE_PART_SCHEMA_NAMES, PLAN_WIRE_SHAPE, PRICING_PATTERN, PROOF_FINGERPRINTS, PUBLISH_BLOCKING_PLACEHOLDERS, PageDataKind, PathIssueCollector, PatternDirective, PatternGlobalPosition, PatternOpens, PatternPlaceholder, PatternRecipe, PhoneMenuBreakpoint, PhotoTone, PictureRefusal, PictureWorld, PlaceholderKind, PlanChangeAction, PlanChangeKind, PlanDataSourceMode, PlanDataSourceType, PlanEditIssueCode, PlanEditOp, PlanEditsOutcome, PlanPart, PlanWireEntry, PlanWireShapeError, PlanWordIssueCode, PreflightRefusalCode, PriceBindTarget, PublishRefusalCode, RENDER_CHECK, REQUIRED_CONTENT_ROLES, RelativeOp, SAMPLE_IMAGE_REF, SCENE_LEVEL, SCENE_OTHER_PAGES, SCRIM_BACKGROUND, SCRIM_COVER, SCRIM_LEVELS, SHOP_CART_BUTTON_ID, SHOP_CART_DRAWER_ID, SHOP_FIELDS, SHOP_LATEST_LIMIT, SHOP_LIST_LIMIT, SHOP_NEED, SHOP_ONLY_CONTENT_ROLES, SHOP_PRODUCTS_MAX, SHOP_ROLES, SHOP_SLUG_FIELD, SHOWCASE_FILM, SHOWCASE_SHOP, SITE_CHECKS, SITE_FACT_LABELS, SITE_HEADER_PATTERN, SITE_LIBRARY, SITE_LOCALES, SITE_NEED_IDS, SITE_PATTERNS, SITE_PLAN_VERSION, SITE_TEMPLATES, SPEC_SITE_ARCHETYPES, SPEC_SITE_COPY_LENGTHS, SPEC_SITE_DENSITY_COPY, SPEC_SITE_FACTS, SPEC_SITE_LAYOUT, SPEC_SITE_LIBRARY, SPEC_SITE_LOCALES, SPEC_SITE_NEED_IDS, SPEC_SITE_PATTERNS, SPEC_SITE_PICTURE_NEVER, SPEC_SITE_PICTURE_WORLDS, SPEC_SITE_PLAN_SHAPE, SPEC_SITE_REQUIRED_ROLES, SPEC_SITE_ROLES, SPEC_SITE_TEMPLATES, STOCK_FAMILIES, STOCK_FAMILY_INTENTS, STOCK_INTENT_ORDER, STOCK_INTENT_SUBJECTS, STOCK_ITEM_ASPECT, STOCK_MIN_KEPT, STOCK_PROVIDER_TERMS, STOCK_SEED_MARGIN, STOCK_SUBJECT_WORDS, STRICT_SCHEMA_BUDGET, STRICT_SCHEMA_LIMITS, STUDIO_TEMPLATE, ScrimLevel, SectionFallbackLastResort, SectionSwapAction, SectionSwapRule, ShopResource, ShopSourceRole, SiteBuildKind, SiteBuildStatus, SiteCheckId, SiteFindingCode, SiteLocale, SitePlanError, SitePlanIssueCode, SitePlanSourceKind, SiteTemplateError, SiteTemplateId, StepState, StockIntent, StockOrientation, StockProviderId, StockReviewFlag, StockReviewVerdict, StockSlotKind, StockSubject, WORDS_AREA_DEFAULT_SHARE, WordsEdge, addBarItem, addStockCredits, aiRefusalNext, aiStepParts, applyLayoutEdits, applyOwnPhotoGalleries, applyPictureScrims, applyPlanEdits, applyStockItemPhotos, applyStockPhotos, archetypeIssues, areaLuminance, artDirectionFor, artDirectionIssues, artDirectionPreamble, aspectRatioOf, assertStyleSlots, assertValidSitePlan, auditLayoutMotion, auditSite, barIconForRoute, blocksPublish, brandHueWord, buildKeys, buildStepFacts, buildStepsOf, builtHomePageId, calmParts, calmUnder, checkLayout, chooseScrim, composeContextOf, composeLayout, composeNavHeader, composePresetForm, composeSection, composeSite, contentTypeOfSource, contentTypePreviewFields, contentTypeToWire, copyLengthOf, costUsd, coverCrop, createSerializedNode, creditsOfUsd, dataSourceToWire, derivedBeats, derivedDataSources, derivedShopSources, describeInventoryForPrompt, describePlanData, describeShapeKey, driftAt, driftOverlap, emptyAreaPhrase, entranceAction, entranceInteraction, estimatePictures, estimateStepCredits, expandLayoutWire, expandPlanWire, expandWireContentType, expandWireDataSource, expandWireEdit, expandWireField, expandWirePage, expandWireSection, expandWireShop, failedBuildStep, fallBackBySection, fieldToWire, filmOfPlan, filmPlacement, findNavRoot, fingerprintOf, frameWords, isActiveBuild, isLayoutRule, isNonEmptyString, isPictureWorld, isPlainObject, isRtlLocale, isShopResource, jsonAnyOf, jsonBoolean, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonSchemaKeywords, jsonSchemaObjects, jsonShapedObject, jsonText, judgeLayoutRender, layerShownSpans, layoutBandScheme, layoutBoxPx, layoutColumnsVw, layoutDesignOf, layoutDialOf, layoutDriftPhoto, layoutElementStyle, layoutGalleryLists, layoutGallerySources, layoutGlideDepth, layoutHeldStill, layoutLookChanges, layoutLookOf, layoutMotionOf, layoutNodeClass, layoutOpeningDisplayMend, layoutOpeningDisplays, layoutPathSteps, layoutPhotoIds, layoutPresetColours, layoutPresetOf, layoutRepairJsonSchema, layoutRoomPx, layoutRuleEdge, layoutShapeHasPurpose, layoutStillLine, layoutTextFits, layoutTextWidthEm, layoutToWire, layoutVoidScreens, layoutVoids, layoutWireJsonSchema, luminanceOf, measureLayout, mendLayout, modelCanDo, moveBarItem, navPages, navShapeBreakpoint, navShapeOf, nextSourceOf, nodeBindPaths, orientationOfRatio, ownPhotoFit, pageToWire, parseLayoutPhotoId, parsePatternPath, parseSampleImageRef, pathAt, patternById, patternHasForm, patternLinkSlots, patternListGap, patternManifest, patternNeedsBinding, patternNodes, patternOptionalParts, patternRoleNeeds, patternScopes, patternSlotBudgets, patternSlots, patternTakesBinding, phoneGapBefore, phoneMenuPages, phoneWordsColour, photoInventory, photoShapeOf, pictureAspect, pictureItemsOf, picturePrompt, pictureRefusalOf, pictureRerolls, pictureReviewIssues, pictureReviewJsonSchema, pictureReviewPasses, pictureSlotKey, pictureTargets, pictureTryFits, pixelsUnder, placeFilm, planEditOps, planEditToWire, planEditWireGaps, planEditWireKeys, planEditWireOps, planEditWireShape, planEditsFromWire, planEditsJsonSchema, planEditsToWire, planEntrances, planFromTemplate, planHasShopSource, planLayoutPhotos, planNavShape, planOwnPhotos, planPartOfPath, planPartToWire, planPictures, planSells, planStockPhotos, planToWire, planWireGaps, planWirePartJsonSchema, planWirePartShape, planWordIssues, pricesIn, publishRefusal, publishVerdict, readyMadeColumn, recipeListBinds, recomposeAsks, releasedLayoutDefaults, removeBarItem, requiredAcknowledgements, requiredShapeKeys, roleField, routeMatches, routeParams, samenessIssues, sampleImageRef, scoreStockPhoto, screenFontSize, screenWordColumns, screenWordMisfit, screenWordOverflowPx, sectionEntrances, sectionPatternIds, sectionToWire, sectionsNamed, sequenceShare, sequenceTokenOf, setStyleProps, shapeKeys, shopCategoriesOf, shopContentType, shopSourceAliases, showcaseGlobals, showcasePages, showcasePlans, showcaseScenes, showcaseStorePages, shownTogether, signatureOf, siteNavPages, slotBudget, splitSide, stockCopyKey, stockCreditLine, stockCreditLines, stockCreditNode, stockCreditNodeId, stockFits, stockGroupOf, stockItemSlots, stockKept, stockPhotoRatio, stockPhotoSubject, stockPhotoUsable, stockPhotoWords, stockSlots, stockWord, stockWords, strictSchemaComplexity, strictSchemaRefusal, toneOf, typicalStepTokens, validatePlanEdits, validateSitePlan, variantNamesOf, walkSerialized, wireContentTypeJsonSchema, wireDataSourceJsonSchema, wireFieldJsonSchema, wirePageJsonSchema, wireSectionJsonSchema, wireShopProductJsonSchema, withDerivedSources, wordPattern, wordsOverPhotos, wordsOverPicture, writtenTexts };
|
|
10076
|
+
export type { AddBarItemResult, AiBuyCredits, AiEntitlementsView, AiMeter, AiModelEntry, AiRefusal, AiTokenCounts, AiTokenPrice, AreaLuminance, ArtDirection, AuditPage, AuditPlaceholder, BarItemsEditResult, BuildNotice, BuildStepError, BuildStepFacts, BuildStepRecord, CalmReading, CheckLayoutContext, CmsDataSourcePlan, ComposeContext, ComposeIssue, ComposeLayoutOptions, ComposedDataSource, ComposedItem, ComposedLayout, ComposedNavHeader, ComposedPage, ComposedPlaceholder, ComposedProduct, ComposedRoute, ComposedSection, ComposedShop, ComposedSite, ContentFieldPlan, ContentRoles, ContentSeedPlan, ContentTypePlan, CreateNodeOptions, CreatedRecord, DataSourcePlan, DriftBox, DriftLayer, DriftMeeting, DynamicKeysAsList, EntranceAction, EntranceActionOptions, EntranceInteraction, EntranceMark, EntranceSpec, EntranceStamp, FactKey, FilmPlacement, FilmTarget, FingerprintedPage, FrameRegion, JsonSchema, LayoutBandMove, LayoutColours, LayoutEdit, LayoutFingerprint, LayoutForm, LayoutGallery, LayoutGalleryList, LayoutGap, LayoutGivenAway, LayoutIssue, LayoutLayer, LayoutLook, LayoutMend, LayoutPage, LayoutPhotoAddress, LayoutReadyMade, LayoutRect, LayoutSection, LayoutSite, LayoutTrack, LayoutVoid, LayoutWire, LayoutWireLayer, LayoutWireSection, LayoutWireSlot, LayoutWireTrack, MeasuredLayer, MeasuredLayout, NavHeaderInput, NavHeaderOptions, NavPage, NavShapeOptions, NavShapeResult, NodeBaseline, OwnPhoto, OwnPhotoPlacement, PageArchetype, PageArchetypeId, PageArchetypeSlot, PageData, PageDataLine, PagePlan, PageSectionPlan, PageSeoPlan, PathIssue, PatternManifestEntry, PatternManifestOptions, PatternNode, PatternPath, PatternRoleNeed, PatternTrack, PhotoInventory, PhotoWordsArea, PicturePlan, PicturePlanOptions, PicturePromptContext, PictureReview, PictureSlot, PictureTryBudget, PictureWorldSpec, PicturesEstimate, PixelReading, PlacedFilm, PlainObject, PlanChange, PlanDirection, PlanEdit, PlanEditIssue, PlanEditResult, PlanEditsAnswer, PlanEntrancesInput, PlanFilm, PlanWireContext, PlanWireParts, PlanWordContext, PlanWordIssue, PreflightRefusal, PublishRefusal, RecipeListBinds, RelativeDataSourcePlan, ScrimChoice, SectionEntrances, SectionFallback, SectionInput, SectionJudge, SectionOptions, SectionSwap, SerializedBinding, SerializedNode, SerializedResponsive, ShapeEntry, ShapeIssueCodes, ShopDataSourcePlan, ShopOptionPlan, ShopPlan, ShopProductPlan, ShowcaseInput, SiteAudit, SiteAuditOptions, SiteAuditSnapshot, SiteBuildRun, SiteBusiness, SiteCheck, SiteFinding, SiteNeedId, SitePageRef, SitePattern, SitePlan, SitePlanContext, SitePlanIssue, SitePlanSource, SitePlanValidation, SiteTemplate, StockCredit, StockItemSlot, StockLink, StockNeed, StockPhoto, StockPhotoTraits, StockPlacement, StockPlanOptions, StockProviderTerms, StockReview, StockSlot, StockTarget, StrictSchemaComplexity, StrictSchemaRefusal, TemplatePlanInput, UndoKept, UndoPreview, UndoRecord, WireOptions, WordsArea, WrittenText };
|