@shopify/shopify-app-remix 1.0.0-rc.1 → 1.0.0
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/README.md +73 -18
- package/build/cjs/adapters/node/index.js +10 -0
- package/build/cjs/auth/admin/authenticate.js +25 -30
- package/build/cjs/auth/const.js +0 -8
- package/build/cjs/auth/helpers/add-response-headers.js +13 -50
- package/build/cjs/auth/helpers/app-bridge-url.js +16 -0
- package/build/cjs/auth/helpers/ensure-cors-headers.js +24 -0
- package/build/cjs/auth/helpers/redirect-with-app-bridge-headers.js +3 -9
- package/build/cjs/auth/helpers/respond-to-options-request.js +19 -0
- package/build/cjs/auth/login/login.js +0 -6
- package/build/cjs/auth/public/authenticate.js +5 -1
- package/build/cjs/billing/request.js +1 -1
- package/build/cjs/boundary/error.js +12 -0
- package/build/cjs/boundary/headers.js +18 -0
- package/build/cjs/index.js +57 -8
- package/build/cjs/types.js +1 -0
- package/build/cjs/version.js +1 -1
- package/build/ts/adapters/node/index.js +6 -0
- package/build/ts/adapters/node/index.js.map +1 -1
- package/build/ts/auth/admin/authenticate.d.ts +0 -2
- package/build/ts/auth/admin/authenticate.d.ts.map +1 -1
- package/build/ts/auth/admin/authenticate.js +13 -25
- package/build/ts/auth/admin/authenticate.js.map +1 -1
- package/build/ts/auth/admin/types.d.ts +32 -13
- package/build/ts/auth/admin/types.d.ts.map +1 -1
- package/build/ts/auth/const.d.ts +1 -2
- package/build/ts/auth/const.d.ts.map +1 -1
- package/build/ts/auth/const.js +2 -3
- package/build/ts/auth/const.js.map +1 -1
- package/build/ts/auth/helpers/add-response-headers.d.ts +2 -3
- package/build/ts/auth/helpers/add-response-headers.d.ts.map +1 -1
- package/build/ts/auth/helpers/add-response-headers.js +16 -49
- package/build/ts/auth/helpers/add-response-headers.js.map +1 -1
- package/build/ts/auth/helpers/app-bridge-url.d.ts +3 -0
- package/build/ts/auth/helpers/app-bridge-url.d.ts.map +1 -0
- package/build/ts/auth/helpers/app-bridge-url.js +14 -0
- package/build/ts/auth/helpers/app-bridge-url.js.map +1 -0
- package/build/ts/auth/helpers/ensure-cors-headers.d.ts +6 -0
- package/build/ts/auth/helpers/ensure-cors-headers.d.ts.map +1 -0
- package/build/ts/auth/helpers/ensure-cors-headers.js +19 -0
- package/build/ts/auth/helpers/ensure-cors-headers.js.map +1 -0
- package/build/ts/auth/helpers/index.d.ts +11 -7
- package/build/ts/auth/helpers/index.d.ts.map +1 -1
- package/build/ts/auth/helpers/index.js +12 -15
- package/build/ts/auth/helpers/index.js.map +1 -1
- package/build/ts/auth/helpers/redirect-with-app-bridge-headers.d.ts +1 -1
- package/build/ts/auth/helpers/redirect-with-app-bridge-headers.d.ts.map +1 -1
- package/build/ts/auth/helpers/redirect-with-app-bridge-headers.js +3 -7
- package/build/ts/auth/helpers/redirect-with-app-bridge-headers.js.map +1 -1
- package/build/ts/auth/helpers/respond-to-options-request.d.ts +3 -0
- package/build/ts/auth/helpers/respond-to-options-request.d.ts.map +1 -0
- package/build/ts/auth/helpers/respond-to-options-request.js +17 -0
- package/build/ts/auth/helpers/respond-to-options-request.js.map +1 -0
- package/build/ts/auth/login/login.d.ts.map +1 -1
- package/build/ts/auth/login/login.js +0 -4
- package/build/ts/auth/login/login.js.map +1 -1
- package/build/ts/auth/public/authenticate.d.ts.map +1 -1
- package/build/ts/auth/public/authenticate.js +2 -0
- package/build/ts/auth/public/authenticate.js.map +1 -1
- package/build/ts/auth/public/types.d.ts +25 -2
- package/build/ts/auth/public/types.d.ts.map +1 -1
- package/build/ts/billing/request.js +1 -1
- package/build/ts/billing/request.js.map +1 -1
- package/build/ts/billing/types.d.ts +20 -12
- package/build/ts/billing/types.d.ts.map +1 -1
- package/build/ts/boundary/error.d.ts +2 -0
- package/build/ts/boundary/error.d.ts.map +1 -0
- package/build/ts/boundary/error.js +11 -0
- package/build/ts/boundary/error.js.map +1 -0
- package/build/ts/boundary/headers.d.ts +3 -0
- package/build/ts/boundary/headers.d.ts.map +1 -0
- package/build/ts/boundary/headers.js +13 -0
- package/build/ts/boundary/headers.js.map +1 -0
- package/build/ts/boundary/types.d.ts +4 -0
- package/build/ts/boundary/types.d.ts.map +1 -0
- package/build/ts/boundary/types.js +3 -0
- package/build/ts/boundary/types.js.map +1 -0
- package/build/ts/config-types.d.ts +28 -18
- package/build/ts/config-types.d.ts.map +1 -1
- package/build/ts/index.d.ts +39 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/index.js +56 -10
- package/build/ts/index.js.map +1 -1
- package/build/ts/types.d.ts +88 -122
- package/build/ts/types.d.ts.map +1 -1
- package/build/ts/types.js.map +1 -1
- package/build/ts/version.d.ts +1 -1
- package/build/ts/version.d.ts.map +1 -1
- package/build/ts/version.js +1 -1
- package/build/ts/version.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/ts/types.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare enum AppDistribution {
|
|
|
15
15
|
SingleMerchant = "single_merchant",
|
|
16
16
|
ShopifyAdmin = "shopify_admin"
|
|
17
17
|
}
|
|
18
|
+
export type MandatoryTopics = 'CUSTOMERS_DATA_REQUEST' | 'CUSTOMERS_REDACT' | 'SHOP_REDACT';
|
|
18
19
|
interface JSONObject {
|
|
19
20
|
[x: string]: JSONValue;
|
|
20
21
|
}
|
|
@@ -29,34 +30,17 @@ export interface LoginError {
|
|
|
29
30
|
shop?: LoginErrorType;
|
|
30
31
|
}
|
|
31
32
|
type Login = (request: Request) => Promise<LoginError | never>;
|
|
32
|
-
type
|
|
33
|
+
type AddDocumentResponseHeaders = (request: Request, headers: Headers) => void;
|
|
33
34
|
type AuthenticateAdmin<Config extends AppConfigArg, Resources extends ShopifyRestResources = ShopifyRestResources> = (request: Request) => Promise<AdminContext<Config, Resources>>;
|
|
34
35
|
type AuthenticatePublic = (request: Request) => Promise<PublicContext>;
|
|
35
36
|
type AuthenticateWebhook<Resources extends ShopifyRestResources = ShopifyRestResources, Topics = string | number | symbol> = (request: Request) => Promise<WebhookContext<Topics, Resources>>;
|
|
36
37
|
type RestResourcesType<Config extends AppConfigArg> = Config['restResources'] extends ShopifyRestResources ? Config['restResources'] : ShopifyRestResources;
|
|
37
38
|
type SessionStorageType<Config extends AppConfigArg> = Config['sessionStorage'] extends SessionStorage ? Config['sessionStorage'] : SessionStorage;
|
|
38
|
-
|
|
39
|
-
* An object your app can use to interact with Shopify.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
export interface ShopifyApp<Config extends AppConfigArg> {
|
|
39
|
+
export interface ShopifyAppBase<Config extends AppConfigArg> {
|
|
43
40
|
/**
|
|
44
41
|
* The SessionStorage instance your app is using.
|
|
45
42
|
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* Defaulting to `SQLiteSessionStorage`
|
|
50
|
-
* ```ts
|
|
51
|
-
* // app/shopify.server.ts
|
|
52
|
-
* import { shopifyApp } from "@shopify/shopify-app-remix";
|
|
53
|
-
*
|
|
54
|
-
* const shopify = shopifyApp({
|
|
55
|
-
* // ...etc
|
|
56
|
-
* })
|
|
57
|
-
*
|
|
58
|
-
* // shopify.sessionStorage is an instance of SQLiteSessionStorage
|
|
59
|
-
* ```
|
|
43
|
+
* An instance of the SessionStorage class you passed in as a config option.
|
|
60
44
|
*
|
|
61
45
|
* @example
|
|
62
46
|
* Using Prisma
|
|
@@ -75,43 +59,6 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
75
59
|
* ```
|
|
76
60
|
*/
|
|
77
61
|
sessionStorage: SessionStorageType<Config>;
|
|
78
|
-
/**
|
|
79
|
-
* Whether this app is allowed to display a login form to the merchant that calls shopify.login().
|
|
80
|
-
*
|
|
81
|
-
* If distribution is AppDistribution.ShopifyAdmin this is false.
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* Render a page containing a login form, only when allowed.
|
|
85
|
-
* ```ts
|
|
86
|
-
* // app/routes/*.ts
|
|
87
|
-
* import { shopify } from "~/shopify.server";
|
|
88
|
-
* import { Form, useLoaderData } from "@remix-run/react";
|
|
89
|
-
*
|
|
90
|
-
* export async function loader({ request }) {
|
|
91
|
-
* return json({ showForm: shopify.canUseLoginForm });
|
|
92
|
-
* }
|
|
93
|
-
*
|
|
94
|
-
* export default function Page() {
|
|
95
|
-
* const { showForm } = useLoaderData();
|
|
96
|
-
*
|
|
97
|
-
* if (showForm) {
|
|
98
|
-
* return (
|
|
99
|
-
* <Form method="post" action="/auth/login">
|
|
100
|
-
* <label>
|
|
101
|
-
* <span>Shop domain</span>
|
|
102
|
-
* <input type="text" name="shop" />
|
|
103
|
-
* <span>e.g: my-shop-domain.myshopify.com</span>
|
|
104
|
-
* </label>
|
|
105
|
-
* <button type="submit">Log in</button>
|
|
106
|
-
* </Form>
|
|
107
|
-
* );
|
|
108
|
-
* }
|
|
109
|
-
*
|
|
110
|
-
* return null;
|
|
111
|
-
* }
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
canUseLoginForm: boolean;
|
|
115
62
|
/**
|
|
116
63
|
* Adds the required Content Security Policy headers for Shopify apps to the given Headers object.
|
|
117
64
|
*
|
|
@@ -123,12 +70,14 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
123
70
|
* // ~/shopify.server.ts
|
|
124
71
|
* import { shopifyApp } from "@shopify/shopify-app-remix";
|
|
125
72
|
*
|
|
126
|
-
*
|
|
73
|
+
* const shopify = shopifyApp({
|
|
127
74
|
* // ...etc
|
|
128
75
|
* });
|
|
76
|
+
* export default shopify;
|
|
77
|
+
* export const addDocumentResponseheaders = shopify.addDocumentResponseheaders;
|
|
129
78
|
*
|
|
130
79
|
* // entry.server.tsx
|
|
131
|
-
* import {
|
|
80
|
+
* import { addDocumentResponseHeaders } from "~/shopify.server";
|
|
132
81
|
*
|
|
133
82
|
* export default function handleRequest(
|
|
134
83
|
* request: Request,
|
|
@@ -141,7 +90,7 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
141
90
|
* );
|
|
142
91
|
*
|
|
143
92
|
* responseHeaders.set("Content-Type", "text/html");
|
|
144
|
-
*
|
|
93
|
+
* addDocumentResponseHeaders(request, responseHeaders);
|
|
145
94
|
*
|
|
146
95
|
* return new Response("<!DOCTYPE html>" + markup, {
|
|
147
96
|
* status: responseStatusCode,
|
|
@@ -150,7 +99,7 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
150
99
|
* }
|
|
151
100
|
* ```
|
|
152
101
|
*/
|
|
153
|
-
|
|
102
|
+
addDocumentResponseHeaders: AddDocumentResponseHeaders;
|
|
154
103
|
/**
|
|
155
104
|
* Register webhook topics for a store using the given session. Most likely you want to use this in combination with the afterAuth hook.
|
|
156
105
|
*
|
|
@@ -159,7 +108,7 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
159
108
|
* ```ts
|
|
160
109
|
* import { DeliveryMethod, shopifyApp } from "@shopify/shopify-app-remix";
|
|
161
110
|
*
|
|
162
|
-
*
|
|
111
|
+
* const shopify = shopifyApp({
|
|
163
112
|
* hooks: {
|
|
164
113
|
* afterAuth: async ({ session }) => {
|
|
165
114
|
* shopify.registerWebhooks({ session });
|
|
@@ -176,57 +125,6 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
176
125
|
* ```
|
|
177
126
|
*/
|
|
178
127
|
registerWebhooks: RegisterWebhooks;
|
|
179
|
-
/**
|
|
180
|
-
* Log a merchant in, and redirect them to the app root. Will redirect the merchant to authentication if a shop is
|
|
181
|
-
* present in the URL search parameters or form data.
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* Providing a login form as a route that can handle GET and POST requests.
|
|
185
|
-
* export async function loader({ request }: LoaderArgs) {
|
|
186
|
-
* const errors = shopify.login(request);
|
|
187
|
-
*
|
|
188
|
-
* return json(errors);
|
|
189
|
-
* }
|
|
190
|
-
*
|
|
191
|
-
* export async function action({ request }: ActionArgs) {
|
|
192
|
-
* const errors = shopify.login(request);
|
|
193
|
-
*
|
|
194
|
-
* return json(errors);
|
|
195
|
-
* }
|
|
196
|
-
*
|
|
197
|
-
* export default function Auth() {
|
|
198
|
-
* const actionData = useActionData<typeof action>();
|
|
199
|
-
* const [shop, setShop] = useState("");
|
|
200
|
-
*
|
|
201
|
-
* return (
|
|
202
|
-
* <Page>
|
|
203
|
-
* <Card>
|
|
204
|
-
* <Form method="post">
|
|
205
|
-
* <FormLayout>
|
|
206
|
-
* <Text variant="headingMd" as="h2">
|
|
207
|
-
* Login
|
|
208
|
-
* </Text>
|
|
209
|
-
* <TextField
|
|
210
|
-
* type="text"
|
|
211
|
-
* name="shop"
|
|
212
|
-
* label="Shop domain"
|
|
213
|
-
* helpText="e.g: my-shop-domain.myshopify.com"
|
|
214
|
-
* value={shop}
|
|
215
|
-
* onChange={setShop}
|
|
216
|
-
* autoComplete="on"
|
|
217
|
-
* error={actionData?.errors.shop}
|
|
218
|
-
* />
|
|
219
|
-
* <Button submit primary>
|
|
220
|
-
* Submit
|
|
221
|
-
* </Button>
|
|
222
|
-
* </FormLayout>
|
|
223
|
-
* </Form>
|
|
224
|
-
* </Card>
|
|
225
|
-
* </Page>
|
|
226
|
-
* );
|
|
227
|
-
* }
|
|
228
|
-
*/
|
|
229
|
-
login: Login;
|
|
230
128
|
/**
|
|
231
129
|
* Ways to authenticate requests from different surfaces across Shopify.
|
|
232
130
|
*
|
|
@@ -249,17 +147,19 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
249
147
|
* import { LATEST_API_VERSION, shopifyApp } from "@shopify/shopify-app-remix";
|
|
250
148
|
* import { restResources } from "@shopify/shopify-api/rest/admin/2023-04";
|
|
251
149
|
*
|
|
252
|
-
*
|
|
150
|
+
* const shopify = shopifyApp({
|
|
253
151
|
* restResources,
|
|
254
152
|
* // ...etc
|
|
255
153
|
* });
|
|
154
|
+
* export default shopify;
|
|
155
|
+
* export const authenticate = shopify.authenticate;
|
|
256
156
|
*
|
|
257
157
|
* // app/routes/**\/*.jsx
|
|
258
158
|
* import { LoaderArgs, json } from "@remix-run/node";
|
|
259
|
-
* import {
|
|
159
|
+
* import { authenticate } from "../../shopify.server";
|
|
260
160
|
*
|
|
261
161
|
* export async function loader({ request }: LoaderArgs) {
|
|
262
|
-
* const {admin, session, sessionToken, billing} =
|
|
162
|
+
* const {admin, session, sessionToken, billing} = authenticate.admin(request);
|
|
263
163
|
*
|
|
264
164
|
* return json(await admin.rest.resources.Product.count({ session }));
|
|
265
165
|
* }
|
|
@@ -280,11 +180,11 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
280
180
|
* ```ts
|
|
281
181
|
* // app/routes/api/checkout.jsx
|
|
282
182
|
* import { LoaderArgs, json } from "@remix-run/node";
|
|
283
|
-
* import {
|
|
183
|
+
* import { authenticate } from "../../shopify.server";
|
|
284
184
|
* import { getWidgets } from "~/db/widgets";
|
|
285
185
|
*
|
|
286
186
|
* export async function loader({ request }: LoaderArgs) {
|
|
287
|
-
* const {sessionToken} =
|
|
187
|
+
* const {sessionToken} = authenticate.public(request);
|
|
288
188
|
*
|
|
289
189
|
* return json(await getWidgets(sessionToken));
|
|
290
190
|
* }
|
|
@@ -307,7 +207,7 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
307
207
|
* shopifyApp,
|
|
308
208
|
* } from "@shopify/shopify-app-remix";
|
|
309
209
|
*
|
|
310
|
-
*
|
|
210
|
+
* const shopify = shopifyApp({
|
|
311
211
|
* webhooks: {
|
|
312
212
|
* APP_UNINSTALLED: {
|
|
313
213
|
* deliveryMethod: DeliveryMethod.Http,
|
|
@@ -321,14 +221,16 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
321
221
|
* },
|
|
322
222
|
* // ...etc
|
|
323
223
|
* });
|
|
224
|
+
* export default shopify;
|
|
225
|
+
* export const authenticate = shopify.authenticate;
|
|
324
226
|
*
|
|
325
227
|
* // app/routes/webhooks.ts
|
|
326
228
|
* import { ActionArgs } from "@remix-run/node";
|
|
327
|
-
* import {
|
|
229
|
+
* import { authenticate } from "../shopify.server";
|
|
328
230
|
* import db from "../db.server";
|
|
329
231
|
*
|
|
330
232
|
* export const action = async ({ request }: ActionArgs) => {
|
|
331
|
-
* const { topic, shop, admin, payload } = await
|
|
233
|
+
* const { topic, shop, admin, payload } = await authenticate.webhook(request);
|
|
332
234
|
*
|
|
333
235
|
* switch (topic) {
|
|
334
236
|
* case "APP_UNINSTALLED":
|
|
@@ -348,6 +250,70 @@ export interface ShopifyApp<Config extends AppConfigArg> {
|
|
|
348
250
|
webhook: AuthenticateWebhook<RestResourcesType<Config>, keyof Config['webhooks'] | MandatoryTopics>;
|
|
349
251
|
};
|
|
350
252
|
}
|
|
351
|
-
|
|
253
|
+
interface ShopifyAppLogin {
|
|
254
|
+
/**
|
|
255
|
+
* Log a merchant in, and redirect them to the app root. Will redirect the merchant to authentication if a shop is
|
|
256
|
+
* present in the URL search parameters or form data.
|
|
257
|
+
*
|
|
258
|
+
* This function won't be present when the `distribution` config option is set to `AppDistribution.ShopifyAdmin`,
|
|
259
|
+
* because Admin apps aren't allowed to show a login page.
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* Providing a login form as a route that can handle GET and POST requests.
|
|
263
|
+
* export async function loader({ request }: LoaderArgs) {
|
|
264
|
+
* const errors = shopify.login(request);
|
|
265
|
+
*
|
|
266
|
+
* return json(errors);
|
|
267
|
+
* }
|
|
268
|
+
*
|
|
269
|
+
* export async function action({ request }: ActionArgs) {
|
|
270
|
+
* const errors = shopify.login(request);
|
|
271
|
+
*
|
|
272
|
+
* return json(errors);
|
|
273
|
+
* }
|
|
274
|
+
*
|
|
275
|
+
* export default function Auth() {
|
|
276
|
+
* const actionData = useActionData<typeof action>();
|
|
277
|
+
* const [shop, setShop] = useState("");
|
|
278
|
+
*
|
|
279
|
+
* return (
|
|
280
|
+
* <Page>
|
|
281
|
+
* <Card>
|
|
282
|
+
* <Form method="post">
|
|
283
|
+
* <FormLayout>
|
|
284
|
+
* <Text variant="headingMd" as="h2">
|
|
285
|
+
* Login
|
|
286
|
+
* </Text>
|
|
287
|
+
* <TextField
|
|
288
|
+
* type="text"
|
|
289
|
+
* name="shop"
|
|
290
|
+
* label="Shop domain"
|
|
291
|
+
* helpText="e.g: my-shop-domain.myshopify.com"
|
|
292
|
+
* value={shop}
|
|
293
|
+
* onChange={setShop}
|
|
294
|
+
* autoComplete="on"
|
|
295
|
+
* error={actionData?.errors.shop}
|
|
296
|
+
* />
|
|
297
|
+
* <Button submit primary>
|
|
298
|
+
* Submit
|
|
299
|
+
* </Button>
|
|
300
|
+
* </FormLayout>
|
|
301
|
+
* </Form>
|
|
302
|
+
* </Card>
|
|
303
|
+
* </Page>
|
|
304
|
+
* );
|
|
305
|
+
* }
|
|
306
|
+
*/
|
|
307
|
+
login: Login;
|
|
308
|
+
}
|
|
309
|
+
export type AdminApp<Config extends AppConfigArg> = ShopifyAppBase<Config>;
|
|
310
|
+
export type SingleMerchantApp<Config extends AppConfigArg> = ShopifyAppBase<Config> & ShopifyAppLogin;
|
|
311
|
+
export type AppStoreApp<Config extends AppConfigArg> = ShopifyAppBase<Config> & ShopifyAppLogin;
|
|
312
|
+
/**
|
|
313
|
+
* An object your app can use to interact with Shopify.
|
|
314
|
+
*
|
|
315
|
+
* By default, the app's distribution will be AppStore.
|
|
316
|
+
*/
|
|
317
|
+
export type ShopifyApp<Config extends AppConfigArg> = Config['distribution'] extends AppDistribution.ShopifyAdmin ? AdminApp<Config> : Config['distribution'] extends AppDistribution.SingleMerchant ? SingleMerchantApp<Config> : Config['distribution'] extends AppDistribution.AppStore ? AppStoreApp<Config> : AppStoreApp<Config>;
|
|
352
318
|
export {};
|
|
353
319
|
//# sourceMappingURL=types.d.ts.map
|
package/build/ts/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAA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":";;;AA6BA,+CAA+C;AAC/C,sFAAsF;AACtF,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,yCAAsB,CAAA;IACtB,qDAAkC,CAAA;IAClC,iDAA8B,CAAA;AAChC,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":";;;AA6BA,+CAA+C;AAC/C,sFAAsF;AACtF,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,yCAAsB,CAAA;IACtB,qDAAkC,CAAA;IAClC,iDAA8B,CAAA;AAChC,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAiBD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,8CAA4B,CAAA;IAC5B,8CAA4B,CAAA;AAC9B,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|
package/build/ts/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SHOPIFY_REMIX_LIBRARY_VERSION = "1.0.0
|
|
1
|
+
export declare const SHOPIFY_REMIX_LIBRARY_VERSION = "1.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,UAAU,CAAC"}
|
package/build/ts/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SHOPIFY_REMIX_LIBRARY_VERSION = void 0;
|
|
4
|
-
exports.SHOPIFY_REMIX_LIBRARY_VERSION = '1.0.0
|
|
4
|
+
exports.SHOPIFY_REMIX_LIBRARY_VERSION = '1.0.0';
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/build/ts/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GAAG,OAAO,CAAC"}
|