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.
Files changed (126) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +293 -29
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +25 -6
  5. package/dist/runtime/components/polaris/ShAvatar.vue +4 -2
  6. package/dist/runtime/components/polaris/ShBadge.vue +4 -2
  7. package/dist/runtime/components/polaris/ShBanner.vue +4 -2
  8. package/dist/runtime/components/polaris/ShBox.vue +4 -2
  9. package/dist/runtime/components/polaris/ShButton.d.vue.ts +11 -3
  10. package/dist/runtime/components/polaris/ShButton.vue +10 -2
  11. package/dist/runtime/components/polaris/ShButton.vue.d.ts +11 -3
  12. package/dist/runtime/components/polaris/ShButtonGroup.vue +4 -2
  13. package/dist/runtime/components/polaris/ShCheckbox.d.vue.ts +12 -5
  14. package/dist/runtime/components/polaris/ShCheckbox.vue +22 -5
  15. package/dist/runtime/components/polaris/ShCheckbox.vue.d.ts +12 -5
  16. package/dist/runtime/components/polaris/ShChip.vue +4 -2
  17. package/dist/runtime/components/polaris/ShChoice.vue +4 -2
  18. package/dist/runtime/components/polaris/ShChoiceList.d.vue.ts +12 -4
  19. package/dist/runtime/components/polaris/ShChoiceList.vue +21 -3
  20. package/dist/runtime/components/polaris/ShChoiceList.vue.d.ts +12 -4
  21. package/dist/runtime/components/polaris/ShClickable.vue +4 -2
  22. package/dist/runtime/components/polaris/ShClickableChip.vue +4 -2
  23. package/dist/runtime/components/polaris/ShColorField.d.vue.ts +16 -4
  24. package/dist/runtime/components/polaris/ShColorField.vue +24 -4
  25. package/dist/runtime/components/polaris/ShColorField.vue.d.ts +16 -4
  26. package/dist/runtime/components/polaris/ShColorPicker.d.vue.ts +12 -4
  27. package/dist/runtime/components/polaris/ShColorPicker.vue +21 -3
  28. package/dist/runtime/components/polaris/ShColorPicker.vue.d.ts +12 -4
  29. package/dist/runtime/components/polaris/ShDateField.d.vue.ts +20 -4
  30. package/dist/runtime/components/polaris/ShDateField.vue +25 -3
  31. package/dist/runtime/components/polaris/ShDateField.vue.d.ts +20 -4
  32. package/dist/runtime/components/polaris/ShDatePicker.d.vue.ts +18 -4
  33. package/dist/runtime/components/polaris/ShDatePicker.vue +24 -3
  34. package/dist/runtime/components/polaris/ShDatePicker.vue.d.ts +18 -4
  35. package/dist/runtime/components/polaris/ShDivider.vue +4 -2
  36. package/dist/runtime/components/polaris/ShDropZone.d.vue.ts +14 -4
  37. package/dist/runtime/components/polaris/ShDropZone.vue +22 -3
  38. package/dist/runtime/components/polaris/ShDropZone.vue.d.ts +14 -4
  39. package/dist/runtime/components/polaris/ShEmailField.d.vue.ts +16 -4
  40. package/dist/runtime/components/polaris/ShEmailField.vue +24 -4
  41. package/dist/runtime/components/polaris/ShEmailField.vue.d.ts +16 -4
  42. package/dist/runtime/components/polaris/ShGrid.vue +4 -2
  43. package/dist/runtime/components/polaris/ShGridItem.vue +4 -2
  44. package/dist/runtime/components/polaris/ShHeading.vue +4 -2
  45. package/dist/runtime/components/polaris/ShIcon.vue +4 -2
  46. package/dist/runtime/components/polaris/ShImage.vue +4 -2
  47. package/dist/runtime/components/polaris/ShLink.vue +4 -2
  48. package/dist/runtime/components/polaris/ShMenu.vue +4 -2
  49. package/dist/runtime/components/polaris/ShModal.vue +4 -2
  50. package/dist/runtime/components/polaris/ShMoneyField.d.vue.ts +16 -4
  51. package/dist/runtime/components/polaris/ShMoneyField.vue +24 -4
  52. package/dist/runtime/components/polaris/ShMoneyField.vue.d.ts +16 -4
  53. package/dist/runtime/components/polaris/ShNumberField.d.vue.ts +16 -4
  54. package/dist/runtime/components/polaris/ShNumberField.vue +24 -4
  55. package/dist/runtime/components/polaris/ShNumberField.vue.d.ts +16 -4
  56. package/dist/runtime/components/polaris/ShOption.vue +4 -2
  57. package/dist/runtime/components/polaris/ShOptionGroup.vue +4 -2
  58. package/dist/runtime/components/polaris/ShPage.vue +4 -2
  59. package/dist/runtime/components/polaris/ShParagraph.vue +4 -2
  60. package/dist/runtime/components/polaris/ShPasswordField.d.vue.ts +16 -4
  61. package/dist/runtime/components/polaris/ShPasswordField.vue +24 -4
  62. package/dist/runtime/components/polaris/ShPasswordField.vue.d.ts +16 -4
  63. package/dist/runtime/components/polaris/ShPopover.d.vue.ts +1 -0
  64. package/dist/runtime/components/polaris/ShPopover.vue +5 -2
  65. package/dist/runtime/components/polaris/ShPopover.vue.d.ts +1 -0
  66. package/dist/runtime/components/polaris/ShQueryContainer.vue +4 -2
  67. package/dist/runtime/components/polaris/ShSearchField.d.vue.ts +16 -4
  68. package/dist/runtime/components/polaris/ShSearchField.vue +24 -4
  69. package/dist/runtime/components/polaris/ShSearchField.vue.d.ts +16 -4
  70. package/dist/runtime/components/polaris/ShSection.vue +4 -2
  71. package/dist/runtime/components/polaris/ShSelect.d.vue.ts +12 -4
  72. package/dist/runtime/components/polaris/ShSelect.vue +22 -4
  73. package/dist/runtime/components/polaris/ShSelect.vue.d.ts +12 -4
  74. package/dist/runtime/components/polaris/ShSpinner.vue +4 -2
  75. package/dist/runtime/components/polaris/ShStack.vue +4 -2
  76. package/dist/runtime/components/polaris/ShSwitch.d.vue.ts +12 -5
  77. package/dist/runtime/components/polaris/ShSwitch.vue +22 -5
  78. package/dist/runtime/components/polaris/ShSwitch.vue.d.ts +12 -5
  79. package/dist/runtime/components/polaris/ShTable.vue +4 -2
  80. package/dist/runtime/components/polaris/ShTableHeader.vue +4 -2
  81. package/dist/runtime/components/polaris/ShTableRow.vue +4 -2
  82. package/dist/runtime/components/polaris/ShText.vue +4 -2
  83. package/dist/runtime/components/polaris/ShTextArea.d.vue.ts +16 -4
  84. package/dist/runtime/components/polaris/ShTextArea.vue +24 -4
  85. package/dist/runtime/components/polaris/ShTextArea.vue.d.ts +16 -4
  86. package/dist/runtime/components/polaris/ShTextField.d.vue.ts +16 -4
  87. package/dist/runtime/components/polaris/ShTextField.vue +24 -4
  88. package/dist/runtime/components/polaris/ShTextField.vue.d.ts +16 -4
  89. package/dist/runtime/components/polaris/ShThumbnail.vue +4 -2
  90. package/dist/runtime/components/polaris/ShTooltip.d.vue.ts +4 -1
  91. package/dist/runtime/components/polaris/ShTooltip.vue +6 -1
  92. package/dist/runtime/components/polaris/ShTooltip.vue.d.ts +4 -1
  93. package/dist/runtime/components/polaris/ShUrlField.d.vue.ts +16 -4
  94. package/dist/runtime/components/polaris/ShUrlField.vue +24 -4
  95. package/dist/runtime/components/polaris/ShUrlField.vue.d.ts +16 -4
  96. package/dist/runtime/components/polaris/utils.d.ts +7 -0
  97. package/dist/runtime/components/polaris/utils.js +13 -0
  98. package/dist/runtime/composables/useAppBridge.d.ts +4 -1
  99. package/dist/runtime/composables/useAppBridge.js +24 -13
  100. package/dist/runtime/composables/useShopifyFetch.js +3 -1
  101. package/dist/runtime/middleware/shopify-auth.js +10 -4
  102. package/dist/runtime/pages/auth-login.d.vue.ts +3 -0
  103. package/dist/runtime/pages/auth-login.vue +90 -0
  104. package/dist/runtime/pages/auth-login.vue.d.ts +3 -0
  105. package/dist/runtime/server/index.d.ts +2 -0
  106. package/dist/runtime/server/index.js +4 -0
  107. package/dist/runtime/server/plugins/shopify-defaults.d.ts +8 -0
  108. package/dist/runtime/server/plugins/shopify-defaults.js +12 -0
  109. package/dist/runtime/server/routes/auth-callback.d.ts +1 -1
  110. package/dist/runtime/server/routes/auth-exit-iframe.d.ts +1 -1
  111. package/dist/runtime/server/routes/auth-session-token.d.ts +1 -1
  112. package/dist/runtime/server/routes/auth.d.ts +1 -1
  113. package/dist/runtime/server/services/shopify.js +3 -3
  114. package/dist/runtime/server/utils/authenticate-admin.js +21 -6
  115. package/dist/runtime/server/utils/clients.d.ts +24 -5
  116. package/dist/runtime/server/utils/clients.js +21 -2
  117. package/dist/runtime/server/utils/helpers.js +13 -11
  118. package/dist/runtime/server/utils/unauthenticated-storefront.d.ts +1 -5
  119. package/dist/runtime/server/utils/unauthenticated-storefront.js +2 -8
  120. package/dist/runtime/types.d.ts +33 -2
  121. package/package.json +10 -5
  122. package/dist/runtime/components/ShopifyAppProvider.d.vue.ts +0 -13
  123. package/dist/runtime/components/ShopifyAppProvider.vue +0 -11
  124. package/dist/runtime/components/ShopifyAppProvider.vue.d.ts +0 -13
  125. package/dist/runtime/plugins/polaris.d.ts +0 -1
  126. 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.1",
3
+ "version": "0.0.3",
4
4
  "description": "Shopify app integration for Nuxt - authentication, webhooks, billing, and App Bridge",
5
- "repository": "yanuaraditia/shopify-nuxt",
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 && nuxt dev playground",
35
- "dev:build": "nuxt build playground",
36
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
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,11 +0,0 @@
1
- <template>
2
- <div>
3
- <slot />
4
- </div>
5
- </template>
6
-
7
- <script setup>
8
- defineOptions({
9
- name: "ShopifyAppProvider"
10
- });
11
- </script>
@@ -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