@shopify/ui-extensions
Advanced tools
Comparing version 0.0.0-unstable-20230201174926 to 0.0.0-unstable-20230203194854
export * from './api'; | ||
export * from './extension'; | ||
export * from './extension'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -6,7 +6,2 @@ import type { ExtensionPoints } from './extension-points'; | ||
} | ||
declare global { | ||
interface WorkerGlobalScope { | ||
readonly shopify: ShopifyGlobal; | ||
} | ||
} | ||
//# sourceMappingURL=globals.d.ts.map |
@@ -1,8 +0,6 @@ | ||
import type { RemoteComponentType } from '@remote-ui/core'; | ||
import type { ComponentsBuilder, AnyComponentBuilder } from '../../shared'; | ||
type ComponentTypes = typeof import('./components'); | ||
export type Components = { | ||
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never; | ||
}; | ||
export type AnyComponent = Components[keyof Components]; | ||
export type Components = ComponentsBuilder<ComponentTypes>; | ||
export type AnyComponent = AnyComponentBuilder<ComponentTypes>; | ||
export {}; | ||
//# sourceMappingURL=shared.d.ts.map |
{ | ||
"name": "@shopify/ui-extensions", | ||
"version": "0.0.0-unstable-20230201174926", | ||
"version": "0.0.0-unstable-20230203194854", | ||
"main": "index.js", | ||
@@ -12,2 +12,5 @@ "module": "index.mjs", | ||
"./build/ts/surfaces/checkout.d.ts" | ||
], | ||
"admin": [ | ||
"./build/ts/surfaces/admin.d.ts" | ||
] | ||
@@ -28,2 +31,8 @@ } | ||
"require": "./build/cjs/surfaces/checkout.js" | ||
}, | ||
"./admin": { | ||
"types": "./build/ts/surfaces/admin.d.ts", | ||
"esnext": "./build/esnext/surfaces/admin.esnext", | ||
"import": "./build/esm/surfaces/admin.mjs", | ||
"require": "./build/cjs/surfaces/admin.js" | ||
} | ||
@@ -30,0 +39,0 @@ }, |
@@ -7,3 +7,3 @@ # `@shopify/ui-extensions` | ||
Currently, this package only contains the extension APIs for the [`checkout` surface](./src/surfaces/checkout), but other Shopify surfaces will be added here soon. | ||
Currently, this package only contains the extension APIs for the [`checkout`](./src/surfaces/checkout) and [`admin`](./src/surfaces/admin) surfaces, but other Shopify surfaces will be added here soon. | ||
@@ -10,0 +10,0 @@ All extensions, regardless of where they appear in Shopify, make use the same [underlying technology](../../documentation/how-extensions-work.md), and most of the same “core” components (e.g., `BlockStack`, `Button`, `TextField`, etc) and capabilities (e.g., direct API access, session tokens). Separating APIs by surface makes it easier for a developer to see what is available to them in each context, and gives us a flexible system for introducing components and APIs available in only some areas of Shopify. |
export * from './api'; | ||
export * from './extension'; | ||
export * from './extension'; |
@@ -10,7 +10,1 @@ import type {ExtensionPoints} from './extension-points'; | ||
} | ||
declare global { | ||
interface WorkerGlobalScope { | ||
readonly shopify: ShopifyGlobal; | ||
} | ||
} |
@@ -1,14 +0,6 @@ | ||
import type {RemoteComponentType} from '@remote-ui/core'; | ||
import type {ComponentsBuilder, AnyComponentBuilder} from '../../shared'; | ||
type ComponentTypes = typeof import('./components'); | ||
export type Components = { | ||
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType< | ||
any, | ||
any | ||
> | ||
? ComponentTypes[K] | ||
: never; | ||
}; | ||
export type AnyComponent = Components[keyof Components]; | ||
export type Components = ComponentsBuilder<ComponentTypes>; | ||
export type AnyComponent = AnyComponentBuilder<ComponentTypes>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1158144
642
13428