@shopify/ui-extensions-server-kit 0.0.0-nightly-20250924132627 → 0.0.0-nightly-20260124060818
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/CHANGELOG.md +7 -1
- package/README.md +2 -1
- package/dist/context/ExtensionServerProvider.d.ts +2 -1
- package/dist/testing/MockExtensionServerProvider.d.ts +2 -1
- package/dist/testing/extensions.cjs.js +1 -1
- package/dist/testing/extensions.es.js +3 -2
- package/dist/types.d.ts +4 -0
- package/node_modules/@shopify/ui-extensions-test-utils/dist/render.d.ts +1 -1
- package/node_modules/@shopify/ui-extensions-test-utils/dist/renderHook.d.ts +1 -1
- package/node_modules/@types/react/README.md +4 -5
- package/node_modules/@types/react/canary.d.ts +166 -0
- package/node_modules/@types/react/experimental.d.ts +21 -86
- package/node_modules/@types/react/global.d.ts +146 -137
- package/node_modules/@types/react/index.d.ts +2738 -1370
- package/node_modules/@types/react/jsx-dev-runtime.d.ts +45 -2
- package/node_modules/@types/react/jsx-runtime.d.ts +36 -2
- package/node_modules/@types/react/package.json +111 -54
- package/node_modules/@types/react/ts5.0/canary.d.ts +166 -0
- package/node_modules/@types/react/ts5.0/experimental.d.ts +127 -0
- package/node_modules/@types/react/ts5.0/global.d.ts +160 -0
- package/node_modules/@types/react/ts5.0/index.d.ts +4530 -0
- package/node_modules/@types/react/ts5.0/jsx-dev-runtime.d.ts +44 -0
- package/node_modules/@types/react/ts5.0/jsx-runtime.d.ts +35 -0
- package/package.json +2 -2
- package/src/testing/extensions.ts +1 -0
- package/src/types.ts +5 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from "./";
|
|
2
|
+
export { Fragment } from "./";
|
|
3
|
+
|
|
4
|
+
export namespace JSX {
|
|
5
|
+
interface Element extends React.JSX.Element {}
|
|
6
|
+
interface ElementClass extends React.JSX.ElementClass {}
|
|
7
|
+
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
8
|
+
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
9
|
+
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
10
|
+
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
11
|
+
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
12
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface JSXSource {
|
|
16
|
+
/**
|
|
17
|
+
* The source file where the element originates from.
|
|
18
|
+
*/
|
|
19
|
+
fileName?: string | undefined;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The line number where the element was created.
|
|
23
|
+
*/
|
|
24
|
+
lineNumber?: number | undefined;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The column number where the element was created.
|
|
28
|
+
*/
|
|
29
|
+
columnNumber?: number | undefined;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Create a React element.
|
|
34
|
+
*
|
|
35
|
+
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
36
|
+
*/
|
|
37
|
+
export function jsxDEV(
|
|
38
|
+
type: React.ElementType,
|
|
39
|
+
props: unknown,
|
|
40
|
+
key: React.Key | undefined,
|
|
41
|
+
isStatic: boolean,
|
|
42
|
+
source?: JSXSource,
|
|
43
|
+
self?: unknown,
|
|
44
|
+
): React.ReactElement;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as React from "./";
|
|
2
|
+
export { Fragment } from "./";
|
|
3
|
+
|
|
4
|
+
export namespace JSX {
|
|
5
|
+
interface Element extends React.JSX.Element {}
|
|
6
|
+
interface ElementClass extends React.JSX.ElementClass {}
|
|
7
|
+
interface ElementAttributesProperty extends React.JSX.ElementAttributesProperty {}
|
|
8
|
+
interface ElementChildrenAttribute extends React.JSX.ElementChildrenAttribute {}
|
|
9
|
+
type LibraryManagedAttributes<C, P> = React.JSX.LibraryManagedAttributes<C, P>;
|
|
10
|
+
interface IntrinsicAttributes extends React.JSX.IntrinsicAttributes {}
|
|
11
|
+
interface IntrinsicClassAttributes<T> extends React.JSX.IntrinsicClassAttributes<T> {}
|
|
12
|
+
interface IntrinsicElements extends React.JSX.IntrinsicElements {}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a React element.
|
|
17
|
+
*
|
|
18
|
+
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
19
|
+
*/
|
|
20
|
+
export function jsx(
|
|
21
|
+
type: React.ElementType,
|
|
22
|
+
props: unknown,
|
|
23
|
+
key?: React.Key,
|
|
24
|
+
): React.ReactElement;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Create a React element.
|
|
28
|
+
*
|
|
29
|
+
* You should not use this function directly. Use JSX and a transpiler instead.
|
|
30
|
+
*/
|
|
31
|
+
export function jsxs(
|
|
32
|
+
type: React.ElementType,
|
|
33
|
+
props: unknown,
|
|
34
|
+
key?: React.Key,
|
|
35
|
+
): React.ReactElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/ui-extensions-server-kit",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260124060818",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"jsdom": "^20.0.3",
|
|
51
51
|
"react": "^17.0.2",
|
|
52
52
|
"vi-fetch": "^0.8.0",
|
|
53
|
-
"vite": "6.
|
|
53
|
+
"vite": "6.4.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"react": "^17.0.2"
|
|
@@ -54,6 +54,7 @@ export function mockExtension(obj: DeepPartial<ExtensionPayload> = {}): Extensio
|
|
|
54
54
|
// in a generalized, non-surprising way
|
|
55
55
|
extensionPoints: obj.extensionPoints as any,
|
|
56
56
|
capabilities: obj.capabilities as any,
|
|
57
|
+
supportedFeatures: obj.supportedFeatures as any,
|
|
57
58
|
localization: obj.localization as any,
|
|
58
59
|
authenticatedRedirectStartUrl: obj.authenticatedRedirectStartUrl as any,
|
|
59
60
|
authenticatedRedirectRedirectUrls: obj.authenticatedRedirectRedirectUrls as any,
|
package/src/types.ts
CHANGED
|
@@ -143,6 +143,7 @@ export interface ExtensionPayload {
|
|
|
143
143
|
handle: string
|
|
144
144
|
extensionPoints: ExtensionPoints
|
|
145
145
|
capabilities?: Capabilities
|
|
146
|
+
supportedFeatures: ExtensionSupportedFeatures
|
|
146
147
|
authenticatedRedirectStartUrl?: string
|
|
147
148
|
authenticatedRedirectRedirectUrls?: string[]
|
|
148
149
|
localization?: FlattenedLocalization | Localization | null
|
|
@@ -158,6 +159,10 @@ export interface ExtensionPayload {
|
|
|
158
159
|
}
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
export interface ExtensionSupportedFeatures {
|
|
163
|
+
offlineMode: boolean
|
|
164
|
+
}
|
|
165
|
+
|
|
161
166
|
export enum Status {
|
|
162
167
|
Success = 'success',
|
|
163
168
|
}
|