@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopify/ui-extensions",
3
- "version": "2026.1.0-rc.1",
3
+ "version": "2026.1.0-rc.2",
4
4
  "scripts": {
5
5
  "docs:admin": "node ./docs/surfaces/admin/build-docs.mjs",
6
6
  "docs:checkout": "bash ./docs/surfaces/checkout/build-docs.sh",
@@ -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
+ }
@@ -35,3 +35,10 @@ export interface Navigation {
35
35
  */
36
36
  back(): void;
37
37
  }
38
+
39
+ export interface Window {
40
+ /**
41
+ * The close() method of the window interface closes the extension screen.
42
+ */
43
+ close(): void;
44
+ }
@@ -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