shopify-nuxt 0.0.1 → 0.0.3
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/LICENSE +21 -0
- package/README.md +293 -29
- package/dist/module.json +1 -1
- package/dist/module.mjs +25 -6
- package/dist/runtime/components/polaris/ShAvatar.vue +4 -2
- package/dist/runtime/components/polaris/ShBadge.vue +4 -2
- package/dist/runtime/components/polaris/ShBanner.vue +4 -2
- package/dist/runtime/components/polaris/ShBox.vue +4 -2
- package/dist/runtime/components/polaris/ShButton.d.vue.ts +11 -3
- package/dist/runtime/components/polaris/ShButton.vue +10 -2
- package/dist/runtime/components/polaris/ShButton.vue.d.ts +11 -3
- package/dist/runtime/components/polaris/ShButtonGroup.vue +4 -2
- package/dist/runtime/components/polaris/ShCheckbox.d.vue.ts +12 -5
- package/dist/runtime/components/polaris/ShCheckbox.vue +22 -5
- package/dist/runtime/components/polaris/ShCheckbox.vue.d.ts +12 -5
- package/dist/runtime/components/polaris/ShChip.vue +4 -2
- package/dist/runtime/components/polaris/ShChoice.vue +4 -2
- package/dist/runtime/components/polaris/ShChoiceList.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShChoiceList.vue +21 -3
- package/dist/runtime/components/polaris/ShChoiceList.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShClickable.vue +4 -2
- package/dist/runtime/components/polaris/ShClickableChip.vue +4 -2
- package/dist/runtime/components/polaris/ShColorField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShColorField.vue +24 -4
- package/dist/runtime/components/polaris/ShColorField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShColorPicker.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShColorPicker.vue +21 -3
- package/dist/runtime/components/polaris/ShColorPicker.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShDateField.d.vue.ts +20 -4
- package/dist/runtime/components/polaris/ShDateField.vue +25 -3
- package/dist/runtime/components/polaris/ShDateField.vue.d.ts +20 -4
- package/dist/runtime/components/polaris/ShDatePicker.d.vue.ts +18 -4
- package/dist/runtime/components/polaris/ShDatePicker.vue +24 -3
- package/dist/runtime/components/polaris/ShDatePicker.vue.d.ts +18 -4
- package/dist/runtime/components/polaris/ShDivider.vue +4 -2
- package/dist/runtime/components/polaris/ShDropZone.d.vue.ts +14 -4
- package/dist/runtime/components/polaris/ShDropZone.vue +22 -3
- package/dist/runtime/components/polaris/ShDropZone.vue.d.ts +14 -4
- package/dist/runtime/components/polaris/ShEmailField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShEmailField.vue +24 -4
- package/dist/runtime/components/polaris/ShEmailField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShGrid.vue +4 -2
- package/dist/runtime/components/polaris/ShGridItem.vue +4 -2
- package/dist/runtime/components/polaris/ShHeading.vue +4 -2
- package/dist/runtime/components/polaris/ShIcon.vue +4 -2
- package/dist/runtime/components/polaris/ShImage.vue +4 -2
- package/dist/runtime/components/polaris/ShLink.vue +4 -2
- package/dist/runtime/components/polaris/ShMenu.vue +4 -2
- package/dist/runtime/components/polaris/ShModal.vue +4 -2
- package/dist/runtime/components/polaris/ShMoneyField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShMoneyField.vue +24 -4
- package/dist/runtime/components/polaris/ShMoneyField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShNumberField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShNumberField.vue +24 -4
- package/dist/runtime/components/polaris/ShNumberField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShOption.vue +4 -2
- package/dist/runtime/components/polaris/ShOptionGroup.vue +4 -2
- package/dist/runtime/components/polaris/ShPage.vue +4 -2
- package/dist/runtime/components/polaris/ShParagraph.vue +4 -2
- package/dist/runtime/components/polaris/ShPasswordField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShPasswordField.vue +24 -4
- package/dist/runtime/components/polaris/ShPasswordField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShPopover.d.vue.ts +1 -0
- package/dist/runtime/components/polaris/ShPopover.vue +5 -2
- package/dist/runtime/components/polaris/ShPopover.vue.d.ts +1 -0
- package/dist/runtime/components/polaris/ShQueryContainer.vue +4 -2
- package/dist/runtime/components/polaris/ShSearchField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShSearchField.vue +24 -4
- package/dist/runtime/components/polaris/ShSearchField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShSection.vue +4 -2
- package/dist/runtime/components/polaris/ShSelect.d.vue.ts +12 -4
- package/dist/runtime/components/polaris/ShSelect.vue +22 -4
- package/dist/runtime/components/polaris/ShSelect.vue.d.ts +12 -4
- package/dist/runtime/components/polaris/ShSpinner.vue +4 -2
- package/dist/runtime/components/polaris/ShStack.vue +4 -2
- package/dist/runtime/components/polaris/ShSwitch.d.vue.ts +12 -5
- package/dist/runtime/components/polaris/ShSwitch.vue +22 -5
- package/dist/runtime/components/polaris/ShSwitch.vue.d.ts +12 -5
- package/dist/runtime/components/polaris/ShTable.vue +4 -2
- package/dist/runtime/components/polaris/ShTableHeader.vue +4 -2
- package/dist/runtime/components/polaris/ShTableRow.vue +4 -2
- package/dist/runtime/components/polaris/ShText.vue +4 -2
- package/dist/runtime/components/polaris/ShTextArea.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShTextArea.vue +24 -4
- package/dist/runtime/components/polaris/ShTextArea.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShTextField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShTextField.vue +24 -4
- package/dist/runtime/components/polaris/ShTextField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/ShThumbnail.vue +4 -2
- package/dist/runtime/components/polaris/ShTooltip.d.vue.ts +4 -1
- package/dist/runtime/components/polaris/ShTooltip.vue +6 -1
- package/dist/runtime/components/polaris/ShTooltip.vue.d.ts +4 -1
- package/dist/runtime/components/polaris/ShUrlField.d.vue.ts +16 -4
- package/dist/runtime/components/polaris/ShUrlField.vue +24 -4
- package/dist/runtime/components/polaris/ShUrlField.vue.d.ts +16 -4
- package/dist/runtime/components/polaris/utils.d.ts +7 -0
- package/dist/runtime/components/polaris/utils.js +13 -0
- package/dist/runtime/composables/useAppBridge.d.ts +4 -1
- package/dist/runtime/composables/useAppBridge.js +24 -13
- package/dist/runtime/composables/useShopifyFetch.js +3 -1
- package/dist/runtime/middleware/shopify-auth.js +10 -4
- package/dist/runtime/pages/auth-login.d.vue.ts +3 -0
- package/dist/runtime/pages/auth-login.vue +90 -0
- package/dist/runtime/pages/auth-login.vue.d.ts +3 -0
- package/dist/runtime/server/index.d.ts +2 -0
- package/dist/runtime/server/index.js +4 -0
- package/dist/runtime/server/plugins/shopify-defaults.d.ts +8 -0
- package/dist/runtime/server/plugins/shopify-defaults.js +12 -0
- package/dist/runtime/server/routes/auth-callback.d.ts +1 -1
- package/dist/runtime/server/routes/auth-exit-iframe.d.ts +1 -1
- package/dist/runtime/server/routes/auth-session-token.d.ts +1 -1
- package/dist/runtime/server/routes/auth.d.ts +1 -1
- package/dist/runtime/server/services/shopify.js +3 -3
- package/dist/runtime/server/utils/authenticate-admin.js +21 -6
- package/dist/runtime/server/utils/clients.d.ts +24 -5
- package/dist/runtime/server/utils/clients.js +21 -2
- package/dist/runtime/server/utils/helpers.js +13 -11
- package/dist/runtime/server/utils/unauthenticated-storefront.d.ts +1 -5
- package/dist/runtime/server/utils/unauthenticated-storefront.js +2 -8
- package/dist/runtime/types.d.ts +33 -2
- package/package.json +10 -5
- package/dist/runtime/components/ShopifyAppProvider.d.vue.ts +0 -13
- package/dist/runtime/components/ShopifyAppProvider.vue +0 -11
- package/dist/runtime/components/ShopifyAppProvider.vue.d.ts +0 -13
- package/dist/runtime/plugins/polaris.d.ts +0 -1
- package/dist/runtime/plugins/polaris.js +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shopify-nuxt",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Shopify app integration for Nuxt - authentication, webhooks, billing, and App Bridge",
|
|
5
|
-
"repository": "
|
|
5
|
+
"repository": "kiriminaja/shopify-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
+
"author": "KiriminAja",
|
|
8
9
|
"exports": {
|
|
9
10
|
".": {
|
|
10
11
|
"types": "./dist/types.d.mts",
|
|
@@ -31,9 +32,9 @@
|
|
|
31
32
|
],
|
|
32
33
|
"scripts": {
|
|
33
34
|
"prepack": "nuxt-module-build build",
|
|
34
|
-
"dev": "bun run dev:prepare &&
|
|
35
|
-
"dev:build": "nuxt build
|
|
36
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare
|
|
35
|
+
"dev": "bun run dev:prepare && cd playground && shopify app dev",
|
|
36
|
+
"dev:build": "cd playground && nuxt build",
|
|
37
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && cd playground && nuxt prepare",
|
|
37
38
|
"release": "bun run lint && bun run test && bun run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
38
39
|
"lint": "eslint .",
|
|
39
40
|
"test": "vitest run",
|
|
@@ -42,11 +43,15 @@
|
|
|
42
43
|
},
|
|
43
44
|
"dependencies": {
|
|
44
45
|
"@nuxt/kit": "^4.4.2",
|
|
46
|
+
"@shopify/admin-api-client": "^1.1.2",
|
|
45
47
|
"@shopify/app-bridge-types": "^0.7.0",
|
|
46
48
|
"@shopify/cli": "^3.92.1",
|
|
47
49
|
"@shopify/polaris-types": "^1.0.1",
|
|
48
50
|
"@shopify/shopify-api": "^13.0.0",
|
|
49
51
|
"@shopify/shopify-app-session-storage": "^5.0.0",
|
|
52
|
+
"@shopify/shopify-app-session-storage-memory": "^6.0.0",
|
|
53
|
+
"@shopify/storefront-api-client": "^1.0.10",
|
|
54
|
+
"h3": "^1.15.0",
|
|
50
55
|
"isbot": "^5.1.36"
|
|
51
56
|
},
|
|
52
57
|
"devDependencies": {
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare var __VLS_1: {};
|
|
2
|
-
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof __VLS_1) => any;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare var __VLS_1: {};
|
|
2
|
-
type __VLS_Slots = {} & {
|
|
3
|
-
default?: (props: typeof __VLS_1) => any;
|
|
4
|
-
};
|
|
5
|
-
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
-
declare const _default: typeof __VLS_export;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|