astro-tractstack 2.3.3 → 2.3.4

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 (42) hide show
  1. package/bin/create-tractstack.js +5 -2
  2. package/dist/index.js +18 -0
  3. package/package.json +1 -1
  4. package/templates/custom/shopify/Cart.tsx +196 -104
  5. package/templates/custom/shopify/CartIcon.tsx +8 -8
  6. package/templates/custom/shopify/CheckoutModal.tsx +143 -66
  7. package/templates/custom/shopify/ShopifyCartManager.tsx +64 -19
  8. package/templates/custom/shopify/ShopifyCheckout.tsx +2 -26
  9. package/templates/custom/shopify/ShopifyProductGrid.tsx +8 -0
  10. package/templates/custom/shopify/ShopifyServiceList.tsx +25 -37
  11. package/templates/src/components/Header.astro +1 -1
  12. package/templates/src/components/compositor/Node.tsx +39 -9
  13. package/templates/src/components/compositor/nodes/CreativePane.tsx +175 -88
  14. package/templates/src/components/edit/pane/AddPanePanel.tsx +2 -2
  15. package/templates/src/components/edit/pane/AddPanePanel_new.tsx +6 -5
  16. package/templates/src/components/edit/pane/AddPanePanel_reuse.tsx +9 -15
  17. package/templates/src/components/edit/pane/ConfigPanePanel.tsx +1 -1
  18. package/templates/src/components/form/advanced/APIConfigSection.tsx +35 -8
  19. package/templates/src/components/form/brand/SiteConfigSection.tsx +9 -0
  20. package/templates/src/components/storykeep/Dashboard_Advanced.tsx +59 -23
  21. package/templates/src/components/storykeep/Dashboard_Shopify.tsx +257 -18
  22. package/templates/src/components/storykeep/controls/content/ProductTable.tsx +38 -24
  23. package/templates/src/components/storykeep/controls/content/ResourceForm.tsx +161 -66
  24. package/templates/src/components/storykeep/shopify/ShopifyDashboard.tsx +175 -48
  25. package/templates/src/components/storykeep/shopify/ShopifyDashboard_Bookings.tsx +5 -2
  26. package/templates/src/components/storykeep/shopify/ShopifyDashboard_Sales.tsx +479 -0
  27. package/templates/src/components/storykeep/shopify/ShopifyDashboard_Search.tsx +7 -3
  28. package/templates/src/layouts/Layout.astro +26 -0
  29. package/templates/src/pages/api/auth/logout.ts +35 -2
  30. package/templates/src/pages/api/sales/list.ts +66 -0
  31. package/templates/src/pages/api/sales/metrics.ts +60 -0
  32. package/templates/src/pages/context/[...contextSlug].astro +50 -31
  33. package/templates/src/pages/storykeep/advanced.astro +4 -1
  34. package/templates/src/stores/nodes.ts +8 -0
  35. package/templates/src/types/tractstack.ts +57 -0
  36. package/templates/src/utils/api/advancedConfig.ts +2 -1
  37. package/templates/src/utils/api/advancedHelpers.ts +4 -0
  38. package/templates/src/utils/api/brandConfig.ts +2 -0
  39. package/templates/src/utils/api/brandHelpers.ts +6 -0
  40. package/templates/src/utils/api/salesHelpers.ts +21 -0
  41. package/templates/src/utils/customHelpers.ts +285 -2
  42. package/utils/inject-files.ts +18 -0
@@ -822,6 +822,10 @@ export async function injectTemplateFiles(
822
822
  src: resolve('../templates/src/utils/api/bookingHelpers.ts'),
823
823
  dest: 'src/utils/api/bookingHelpers.ts',
824
824
  },
825
+ {
826
+ src: resolve('../templates/src/utils/api/salesHelpers.ts'),
827
+ dest: 'src/utils/api/salesHelpers.ts',
828
+ },
825
829
  {
826
830
  src: resolve('../templates/src/utils/api/menuHelpers.ts'),
827
831
  dest: 'src/utils/api/menuHelpers.ts',
@@ -960,6 +964,14 @@ export async function injectTemplateFiles(
960
964
  src: resolve('../templates/src/pages/api/booking/list.ts'),
961
965
  dest: 'src/pages/api/booking/list.ts',
962
966
  },
967
+ {
968
+ src: resolve('../templates/src/pages/api/sales/list.ts'),
969
+ dest: 'src/pages/api/sales/list.ts',
970
+ },
971
+ {
972
+ src: resolve('../templates/src/pages/api/sales/metrics.ts'),
973
+ dest: 'src/pages/api/sales/metrics.ts',
974
+ },
963
975
  {
964
976
  src: resolve('../templates/src/pages/api/booking/metrics.ts'),
965
977
  dest: 'src/pages/api/booking/metrics.ts',
@@ -1284,6 +1296,12 @@ export async function injectTemplateFiles(
1284
1296
  ),
1285
1297
  dest: 'src/components/storykeep/shopify/ShopifyDashboard_Emails.tsx',
1286
1298
  },
1299
+ {
1300
+ src: resolve(
1301
+ '../templates/src/components/storykeep/shopify/ShopifyDashboard_Sales.tsx'
1302
+ ),
1303
+ dest: 'src/components/storykeep/shopify/ShopifyDashboard_Sales.tsx',
1304
+ },
1287
1305
  {
1288
1306
  src: resolve(
1289
1307
  '../templates/src/components/storykeep/email-builder/EmailBuilder.tsx'