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.
- package/bin/create-tractstack.js +5 -2
- package/dist/index.js +18 -0
- package/package.json +1 -1
- package/templates/custom/shopify/Cart.tsx +196 -104
- package/templates/custom/shopify/CartIcon.tsx +8 -8
- package/templates/custom/shopify/CheckoutModal.tsx +143 -66
- package/templates/custom/shopify/ShopifyCartManager.tsx +64 -19
- package/templates/custom/shopify/ShopifyCheckout.tsx +2 -26
- package/templates/custom/shopify/ShopifyProductGrid.tsx +8 -0
- package/templates/custom/shopify/ShopifyServiceList.tsx +25 -37
- package/templates/src/components/Header.astro +1 -1
- package/templates/src/components/compositor/Node.tsx +39 -9
- package/templates/src/components/compositor/nodes/CreativePane.tsx +175 -88
- package/templates/src/components/edit/pane/AddPanePanel.tsx +2 -2
- package/templates/src/components/edit/pane/AddPanePanel_new.tsx +6 -5
- package/templates/src/components/edit/pane/AddPanePanel_reuse.tsx +9 -15
- package/templates/src/components/edit/pane/ConfigPanePanel.tsx +1 -1
- package/templates/src/components/form/advanced/APIConfigSection.tsx +35 -8
- package/templates/src/components/form/brand/SiteConfigSection.tsx +9 -0
- package/templates/src/components/storykeep/Dashboard_Advanced.tsx +59 -23
- package/templates/src/components/storykeep/Dashboard_Shopify.tsx +257 -18
- package/templates/src/components/storykeep/controls/content/ProductTable.tsx +38 -24
- package/templates/src/components/storykeep/controls/content/ResourceForm.tsx +161 -66
- package/templates/src/components/storykeep/shopify/ShopifyDashboard.tsx +175 -48
- package/templates/src/components/storykeep/shopify/ShopifyDashboard_Bookings.tsx +5 -2
- package/templates/src/components/storykeep/shopify/ShopifyDashboard_Sales.tsx +479 -0
- package/templates/src/components/storykeep/shopify/ShopifyDashboard_Search.tsx +7 -3
- package/templates/src/layouts/Layout.astro +26 -0
- package/templates/src/pages/api/auth/logout.ts +35 -2
- package/templates/src/pages/api/sales/list.ts +66 -0
- package/templates/src/pages/api/sales/metrics.ts +60 -0
- package/templates/src/pages/context/[...contextSlug].astro +50 -31
- package/templates/src/pages/storykeep/advanced.astro +4 -1
- package/templates/src/stores/nodes.ts +8 -0
- package/templates/src/types/tractstack.ts +57 -0
- package/templates/src/utils/api/advancedConfig.ts +2 -1
- package/templates/src/utils/api/advancedHelpers.ts +4 -0
- package/templates/src/utils/api/brandConfig.ts +2 -0
- package/templates/src/utils/api/brandHelpers.ts +6 -0
- package/templates/src/utils/api/salesHelpers.ts +21 -0
- package/templates/src/utils/customHelpers.ts +285 -2
- package/utils/inject-files.ts +18 -0
package/utils/inject-files.ts
CHANGED
|
@@ -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'
|