@shopify/ui-extensions 2026.1.0-rc.1 → 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/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/navigation-api/navigation-api.d.ts +6 -0
- package/build/ts/surfaces/point-of-sale/api/navigation-api/navigation-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts +2 -0
- package/build/ts/surfaces/point-of-sale/api/standard/standard-api.d.ts.map +1 -1
- package/build/ts/surfaces/point-of-sale/api.d.ts +2 -1
- 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/navigation-api/navigation-api.ts +7 -0
- package/src/surfaces/point-of-sale/api/standard/standard-api.ts +2 -0
- package/src/surfaces/point-of-sale/api.ts +3 -0
- package/src/surfaces/point-of-sale/extension-targets.ts +17 -0
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,9 +7,11 @@ import {ProductSearchApi} from '../product-search-api/product-search-api';
|
|
|
7
7
|
import {PrintApi} from '../print-api/print-api';
|
|
8
8
|
import {StorageApi} from '../storage-api/storage-api';
|
|
9
9
|
import {PinPadApi} from '../pin-pad-api';
|
|
10
|
+
import type {I18n} from '../../../../api';
|
|
10
11
|
|
|
11
12
|
export type StandardApi<T> = {[key: string]: any} & {
|
|
12
13
|
extensionPoint: T;
|
|
14
|
+
i18n: I18n;
|
|
13
15
|
} & LocaleApi &
|
|
14
16
|
ToastApi &
|
|
15
17
|
SessionApi &
|
|
@@ -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';
|
|
@@ -76,6 +78,7 @@ export type {
|
|
|
76
78
|
CartUpdateInput,
|
|
77
79
|
Customer,
|
|
78
80
|
LineItem,
|
|
81
|
+
LineItemComponent,
|
|
79
82
|
Discount,
|
|
80
83
|
SetLineItemPropertiesInput,
|
|
81
84
|
SetLineItemDiscountInput,
|
|
@@ -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
|