@shopify/ui-extensions 2025.10.8 → 2026.1.0-rc.2
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/build/ts/surfaces/admin/components/Page/Page.ab.doc.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts +19 -0
- package/build/ts/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.d.ts.map +1 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts +1 -0
- package/build/ts/surfaces/point-of-sale/api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts +4 -1
- package/build/ts/surfaces/point-of-sale/extension-targets.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.menu-item.render.d.ts +8 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.action.render.d.ts +36 -0
- package/build/ts/surfaces/point-of-sale/targets/pos.register-details.block.render.d.ts +21 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/surfaces/point-of-sale/api/cash-drawer-api/cash-drawer-api.ts +19 -0
- package/src/surfaces/point-of-sale/api.ts +2 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +17 -0
- package/src/surfaces/admin/components/Page/examples/page-with-breadcrumbs-and-title.html +0 -7
- package/src/surfaces/admin/components/Page/examples/page-with-breadcrumbs-and-title.jsx +0 -7
- package/src/surfaces/admin/components/Page/examples/page-with-secondary-actions.html +0 -8
- package/src/surfaces/admin/components/Page/examples/page-with-secondary-actions.jsx +0 -8
package/package.json
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Cash Drawer API in POS UI extensions includes select cash drawer functionality.
|
|
3
|
+
*/
|
|
4
|
+
export interface CashDrawerApiContent {
|
|
5
|
+
/**
|
|
6
|
+
* Opens the connected cash drawer.
|
|
7
|
+
*
|
|
8
|
+
* @returns Void
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
open(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Interface for the Cash Drawer API
|
|
16
|
+
*/
|
|
17
|
+
export interface CashDrawerApi {
|
|
18
|
+
cashDrawer: CashDrawerApiContent;
|
|
19
|
+
}
|
|
@@ -7,6 +7,8 @@ export type {
|
|
|
7
7
|
|
|
8
8
|
export type {CartLineItemApi} from './api/cart-line-item-api/cart-line-item-api';
|
|
9
9
|
|
|
10
|
+
export type {CashDrawerApi} from './api/cash-drawer-api/cash-drawer-api';
|
|
11
|
+
|
|
10
12
|
export type {ActionApi, ActionApiContent} from './api/action-api/action-api';
|
|
11
13
|
|
|
12
14
|
export type {StandardApi} from './api/standard/standard-api';
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ProductApi,
|
|
20
20
|
OrderApi,
|
|
21
21
|
StorageApi,
|
|
22
|
+
CashDrawerApi,
|
|
22
23
|
} from './api';
|
|
23
24
|
import type {ActionExtensionComponents} from './components/targets/ActionExtensionComponents';
|
|
24
25
|
import type {BlockExtensionComponents} from './components/targets/BlockExtensionComponents';
|
|
@@ -191,6 +192,22 @@ export interface RenderExtensionTargets {
|
|
|
191
192
|
{[key: string]: any} & StorageApi & TransactionCompleteWithReprintData,
|
|
192
193
|
ReceiptComponents
|
|
193
194
|
>;
|
|
195
|
+
'pos.register-details.action.menu-item.render': RenderExtension<
|
|
196
|
+
StandardApi<'pos.register-details.action.menu-item.render'> &
|
|
197
|
+
ActionApi &
|
|
198
|
+
CashDrawerApi,
|
|
199
|
+
ActionExtensionComponents
|
|
200
|
+
>;
|
|
201
|
+
'pos.register-details.action.render': RenderExtension<
|
|
202
|
+
ActionTargetApi<'pos.register-details.action.render'> & CashDrawerApi,
|
|
203
|
+
BasicComponents
|
|
204
|
+
>;
|
|
205
|
+
'pos.register-details.block.render': RenderExtension<
|
|
206
|
+
StandardApi<'pos.register-details.block.render'> &
|
|
207
|
+
ActionApi &
|
|
208
|
+
CashDrawerApi,
|
|
209
|
+
BlockExtensionComponents
|
|
210
|
+
>;
|
|
194
211
|
}
|
|
195
212
|
|
|
196
213
|
export interface ExtensionTargets
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<s-page heading="Edit Product" inline-size="base">
|
|
2
|
-
<s-link slot="breadcrumb-actions" href="/products">Products</s-link>
|
|
3
|
-
<s-link slot="breadcrumb-actions" href="/products/123">Acme Widget</s-link>
|
|
4
|
-
<s-section>
|
|
5
|
-
<s-text>Update your product information and settings.</s-text>
|
|
6
|
-
</s-section>
|
|
7
|
-
</s-page>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<s-page heading="Edit Product" inlineSize="base">
|
|
2
|
-
<s-link slot="breadcrumb-actions" href="/products">Products</s-link>
|
|
3
|
-
<s-link slot="breadcrumb-actions" href="/products/123">Acme Widget</s-link>
|
|
4
|
-
<s-section>
|
|
5
|
-
<s-text>Update your product information and settings.</s-text>
|
|
6
|
-
</s-section>
|
|
7
|
-
</s-page>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<s-page heading="Products" inline-size="base">
|
|
2
|
-
<s-button slot="secondary-actions">Preview</s-button>
|
|
3
|
-
<s-button slot="secondary-actions">Duplicate</s-button>
|
|
4
|
-
<s-button slot="primary-action" variant="primary">Save</s-button>
|
|
5
|
-
<s-section>
|
|
6
|
-
<s-text>Manage your products and organize your catalog.</s-text>
|
|
7
|
-
</s-section>
|
|
8
|
-
</s-page>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<s-page heading="Products" inlineSize="base">
|
|
2
|
-
<s-button slot="secondary-actions">Preview</s-button>
|
|
3
|
-
<s-button slot="secondary-actions">Duplicate</s-button>
|
|
4
|
-
<s-button slot="primary-action" variant="primary">Save</s-button>
|
|
5
|
-
<s-section>
|
|
6
|
-
<s-text>Manage your products and organize your catalog.</s-text>
|
|
7
|
-
</s-section>
|
|
8
|
-
</s-page>
|