Skip to content

Commit df3502f

Browse files
committed
fix: use window.addEventListener in deprecation messages, remove cart_update event reference
1 parent 59ee7ad commit df3502f

7 files changed

Lines changed: 63654 additions & 6 deletions

File tree

packages/ui-extensions/docs/surfaces/admin/generated/generated_docs_data.json

Lines changed: 32512 additions & 0 deletions
Large diffs are not rendered by default.

packages/ui-extensions/docs/surfaces/admin/generated/generated_static_pages.json

Lines changed: 625 additions & 0 deletions
Large diffs are not rendered by default.

packages/ui-extensions/docs/surfaces/point-of-sale/generated/generated_docs_data.json

Lines changed: 16177 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,202 @@
1+
[
2+
{
3+
"title": "Targets overview",
4+
"description": "\nA [target](/docs/apps/app-extensions/configuration#targets) represents where your POS UI extension will appear.\n",
5+
"id": "extension-targets-overview",
6+
"image": "/assets/landing-pages/templated-apis/hero.png",
7+
"darkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
8+
"tabletImage": "/assets/landing-pages/templated-apis/hero.png",
9+
"tabletDarkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
10+
"mobileImage": "/assets/landing-pages/templated-apis/hero.png",
11+
"mobileDarkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
12+
"sections": [
13+
{
14+
"type": "GenericAccordion",
15+
"title": "Smart grid",
16+
"anchorLink": "smart-grid",
17+
"sectionContent": "The smart grid. Learn more about [the smart grid](/docs/apps/pos#home-screen).",
18+
"accordionContent": [
19+
{
20+
"title": "Tile",
21+
"description": "\nDisplays a tile on the smart grid.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
22+
},
23+
{
24+
"title": "Modal",
25+
"description": "\nDisplays a modal when a tile is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
26+
}
27+
]
28+
},
29+
{
30+
"type": "GenericAccordion",
31+
"title": "Post-purchase",
32+
"anchorLink": "post-purchase",
33+
"sectionContent": "The post-purchase screen",
34+
"accordionContent": [
35+
{
36+
"title": "Menu item",
37+
"description": "\nDisplays a menu item on the post-purchase screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
38+
},
39+
{
40+
"title": "Action",
41+
"description": "\nDisplays a modal when a menu item is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
42+
},
43+
{
44+
"title": "Block",
45+
"description": "\nRenders a custom section within the native post purchase screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
46+
}
47+
]
48+
},
49+
{
50+
"type": "GenericAccordion",
51+
"title": "Customer details",
52+
"anchorLink": "customer-details",
53+
"sectionContent": "The customer details screen",
54+
"accordionContent": [
55+
{
56+
"title": "Menu item",
57+
"description": "\nDisplays a menu item on the customer details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
58+
},
59+
{
60+
"title": "Action",
61+
"description": "\nDisplays an action target modally when a menu item is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
62+
},
63+
{
64+
"title": "Block",
65+
"description": "\nRenders a custom section within the customer details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
66+
}
67+
]
68+
},
69+
{
70+
"type": "GenericAccordion",
71+
"title": "Product details",
72+
"anchorLink": "product-details",
73+
"sectionContent": "The product details screen",
74+
"accordionContent": [
75+
{
76+
"title": "Menu item",
77+
"description": "\nDisplays a menu item on the product details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
78+
},
79+
{
80+
"title": "Action",
81+
"description": "\nDisplays an action target modally when a menu item is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
82+
},
83+
{
84+
"title": "Block",
85+
"description": "\nRenders a custom section within the native product details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
86+
}
87+
]
88+
},
89+
{
90+
"type": "GenericAccordion",
91+
"title": "Order details",
92+
"anchorLink": "order-details",
93+
"sectionContent": "The order details screen",
94+
"accordionContent": [
95+
{
96+
"title": "Menu item",
97+
"description": "\nDisplays a menu item on the order details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
98+
},
99+
{
100+
"title": "Action",
101+
"description": "\nDisplays an action target modally when a menu item is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
102+
},
103+
{
104+
"title": "Block",
105+
"description": "\nRenders a custom section within the native order details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
106+
}
107+
]
108+
},
109+
{
110+
"type": "GenericAccordion",
111+
"title": "Draft Order details",
112+
"anchorLink": "draft-order-details",
113+
"sectionContent": "The draft order details screen",
114+
"accordionContent": [
115+
{
116+
"title": "Menu item",
117+
"description": "\nDisplays a menu item on the draft order details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
118+
},
119+
{
120+
"title": "Action",
121+
"description": "\nDisplays an action target modally when a menu item is tapped.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
122+
},
123+
{
124+
"title": "Block",
125+
"description": "\nRenders a custom section within the native draft order details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
126+
}
127+
]
128+
},
129+
{
130+
"type": "GenericAccordion",
131+
"title": "Cart line item details",
132+
"anchorLink": "cart-line-item-details",
133+
"sectionContent": "The cart line item details screen",
134+
"accordionContent": [
135+
{
136+
"title": "Action",
137+
"description": "\nDisplays an action target in the cart line item details screen.\n\nReview [all extension targets](/docs/api/pos-ui-extensions/targets).\n"
138+
}
139+
]
140+
}
141+
]
142+
},
143+
{
144+
"title": "POS UI extensions",
145+
"description": "The UI Extensions library enables individuals to build extensions that use interface elements and behaviors that mirror the look and feel of the POS retail experience. These elements render natively, providing the performance and accessibility inherent to a native app.",
146+
"id": "pos-ui-extensions",
147+
"image": "/assets/landing-pages/templated-apis/hero.png",
148+
"darkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
149+
"tabletImage": "/assets/landing-pages/templated-apis/hero.png",
150+
"tabletDarkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
151+
"mobileImage": "/assets/landing-pages/templated-apis/hero.png",
152+
"mobileDarkImage": "/assets/landing-pages/templated-apis/hero-dark.png",
153+
"sections": [
154+
{
155+
"type": "Generic",
156+
"anchorLink": "api-versioning",
157+
"title": "API versioning",
158+
"sectionContent": "POS UI extensions are built on a versioned API that receives regular updates with new features, improvements, and additional targets. We recommend using the latest supported API version to access the most current capabilities and ensure optimal compatibility with POS devices.\n\nYou can track new releases and update your extensions by referencing the [developer changelog](/changelog)."
159+
},
160+
{
161+
"type": "Generic",
162+
"anchorLink": "overview",
163+
"title": "Overview",
164+
"sectionContent": "Extend the Shopify POS with UI Extensions.",
165+
"sectionCard": [
166+
{
167+
"subtitle": "Extension targets",
168+
"name": "See all available extension targets",
169+
"url": "targets",
170+
"type": "pickaxe-1"
171+
},
172+
{
173+
"subtitle": "APIs",
174+
"name": "See all available APIs",
175+
"url": "apis",
176+
"type": "pickaxe-2"
177+
},
178+
{
179+
"subtitle": "Components",
180+
"name": "See all available components",
181+
"url": "components",
182+
"type": "blocks"
183+
}
184+
]
185+
},
186+
{
187+
"type": "Generic",
188+
"anchorLink": "getting-started",
189+
"title": "Getting Started",
190+
"sectionContent": "Get started with POS UI Extensions with Shopify CLI.",
191+
"sectionCard": [
192+
{
193+
"name": "Getting started guide",
194+
"subtitle": "Set up your development environment",
195+
"url": "/docs/apps/build/pos/getting-started",
196+
"type": "blocks"
197+
}
198+
]
199+
}
200+
]
201+
}
202+
]

0 commit comments

Comments
 (0)