@uptrademedia/site-kit 1.0.1 → 1.0.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 (159) hide show
  1. package/dist/SetupWizard-Cki06kB0.d.mts +12 -0
  2. package/dist/SetupWizard-Cki06kB0.d.ts +12 -0
  3. package/dist/analytics/index.d.mts +87 -0
  4. package/dist/analytics/index.d.ts +87 -0
  5. package/dist/blog/index.d.mts +24 -0
  6. package/dist/blog/index.d.ts +24 -0
  7. package/dist/blog/index.js.map +1 -1
  8. package/dist/blog/index.mjs.map +1 -1
  9. package/dist/chunk-2IHTEKHU.mjs +332 -0
  10. package/dist/chunk-2IHTEKHU.mjs.map +1 -0
  11. package/dist/chunk-5R4R3WDP.js +1451 -0
  12. package/dist/chunk-5R4R3WDP.js.map +1 -0
  13. package/dist/{chunk-RV7H3I6J.js → chunk-ADHVEFWD.js} +68 -2
  14. package/dist/chunk-ADHVEFWD.js.map +1 -0
  15. package/dist/chunk-BGJLOJ7T.mjs +605 -0
  16. package/dist/chunk-BGJLOJ7T.mjs.map +1 -0
  17. package/dist/chunk-BZBJVG5Y.js +88 -0
  18. package/dist/chunk-BZBJVG5Y.js.map +1 -0
  19. package/dist/{chunk-COI6GOX2.mjs → chunk-DOHML47I.mjs} +3 -3
  20. package/dist/chunk-DOHML47I.mjs.map +1 -0
  21. package/dist/chunk-DRFTRTKV.js +809 -0
  22. package/dist/chunk-DRFTRTKV.js.map +1 -0
  23. package/dist/chunk-EL5QTAA3.mjs +805 -0
  24. package/dist/chunk-EL5QTAA3.mjs.map +1 -0
  25. package/dist/chunk-GAJLEDRD.js +334 -0
  26. package/dist/chunk-GAJLEDRD.js.map +1 -0
  27. package/dist/{chunk-3MUOUXHV.js → chunk-K2HWVOEO.js} +3 -3
  28. package/dist/chunk-K2HWVOEO.js.map +1 -0
  29. package/dist/chunk-O2OHHBUD.js +997 -0
  30. package/dist/chunk-O2OHHBUD.js.map +1 -0
  31. package/dist/chunk-QAYJV4KK.js +608 -0
  32. package/dist/chunk-QAYJV4KK.js.map +1 -0
  33. package/dist/{chunk-FEBYQGY4 2.mjs → chunk-SMUFNQLM.mjs} +67 -3
  34. package/dist/chunk-SMUFNQLM.mjs.map +1 -0
  35. package/dist/chunk-VDMZZL2O.mjs +83 -0
  36. package/dist/chunk-VDMZZL2O.mjs.map +1 -0
  37. package/dist/chunk-XFRPT5ZX.mjs +1449 -0
  38. package/dist/chunk-XFRPT5ZX.mjs.map +1 -0
  39. package/dist/chunk-XQJX252G.mjs +981 -0
  40. package/dist/chunk-XQJX252G.mjs.map +1 -0
  41. package/dist/commerce/index.d.mts +168 -0
  42. package/dist/commerce/index.d.ts +168 -0
  43. package/dist/commerce/index.js +38 -38
  44. package/dist/commerce/index.mjs +1 -1
  45. package/dist/commerce/server.d.mts +98 -0
  46. package/dist/commerce/server.d.ts +98 -0
  47. package/dist/engage/index.d.mts +27 -0
  48. package/dist/engage/index.d.ts +27 -0
  49. package/dist/engage/index.js +7 -40
  50. package/dist/engage/index.js.map +1 -1
  51. package/dist/engage/index.mjs +1 -41
  52. package/dist/engage/index.mjs.map +1 -1
  53. package/dist/forms/index.d.mts +437 -0
  54. package/dist/forms/index.d.ts +437 -0
  55. package/dist/forms/index.js +13 -5
  56. package/dist/forms/index.js.map +1 -1
  57. package/dist/forms/index.mjs +2 -2
  58. package/dist/forms/index.mjs.map +1 -1
  59. package/dist/{generators-7Y5ABRYV 2.mjs → generators-TO2FKJR6.mjs} +134 -3
  60. package/dist/generators-TO2FKJR6.mjs.map +1 -0
  61. package/dist/{generators-GWIYCA5M.js → generators-YZWIGHCO.js} +135 -2
  62. package/dist/generators-YZWIGHCO.js.map +1 -0
  63. package/dist/images/index.d.mts +133 -0
  64. package/dist/images/index.d.ts +133 -0
  65. package/dist/images/index.js +41 -0
  66. package/dist/images/index.js.map +1 -0
  67. package/dist/images/index.mjs +8 -0
  68. package/dist/images/index.mjs.map +1 -0
  69. package/dist/index.d.mts +649 -0
  70. package/dist/index.d.ts +649 -0
  71. package/dist/index.js +1355 -104
  72. package/dist/index.js.map +1 -1
  73. package/dist/index.mjs +1242 -76
  74. package/dist/index.mjs.map +1 -1
  75. package/dist/redirects/index.d.mts +72 -0
  76. package/dist/redirects/index.d.ts +72 -0
  77. package/dist/redirects/index.js +25 -0
  78. package/dist/redirects/index.js.map +1 -0
  79. package/dist/redirects/index.mjs +4 -0
  80. package/dist/redirects/index.mjs.map +1 -0
  81. package/dist/routing-BWjUF7lp.d.ts +105 -0
  82. package/dist/routing-CgmRi9tD.d.mts +105 -0
  83. package/dist/{scanner-MF7P3CDE 2.mjs → scanner-AZV5I6US.mjs} +123 -4
  84. package/dist/scanner-AZV5I6US.mjs.map +1 -0
  85. package/dist/{scanner-NT6YG4TD 2.js → scanner-ETJAMIT7.js} +124 -3
  86. package/dist/scanner-ETJAMIT7.js.map +1 -0
  87. package/dist/seo/index.d.mts +273 -0
  88. package/dist/seo/index.d.ts +273 -0
  89. package/dist/seo/server.d.mts +89 -0
  90. package/dist/seo/server.d.ts +89 -0
  91. package/dist/setup/client.d.mts +60 -0
  92. package/dist/setup/client.d.ts +60 -0
  93. package/dist/setup/client.js +30 -0
  94. package/dist/setup/client.js.map +1 -0
  95. package/dist/setup/client.mjs +5 -0
  96. package/dist/setup/client.mjs.map +1 -0
  97. package/dist/setup/index.d.mts +5 -0
  98. package/dist/setup/index.d.ts +5 -0
  99. package/dist/setup/index.js +28 -1043
  100. package/dist/setup/index.js.map +1 -1
  101. package/dist/setup/index.mjs +3 -1043
  102. package/dist/setup/index.mjs.map +1 -1
  103. package/dist/setup/server.d.mts +14 -0
  104. package/dist/setup/server.d.ts +14 -0
  105. package/dist/setup/server.js +13 -0
  106. package/dist/setup/server.js.map +1 -0
  107. package/dist/setup/server.mjs +4 -0
  108. package/dist/setup/server.mjs.map +1 -0
  109. package/dist/sitemap/index.d.mts +78 -0
  110. package/dist/sitemap/index.d.ts +78 -0
  111. package/dist/types-BDojCvvL.d.mts +156 -0
  112. package/dist/types-BDojCvvL.d.ts +156 -0
  113. package/dist/types-BmzutFwy.d.mts +227 -0
  114. package/dist/types-BmzutFwy.d.ts +227 -0
  115. package/dist/types-C0pJGfbH.d.mts +155 -0
  116. package/dist/types-C0pJGfbH.d.ts +155 -0
  117. package/dist/types-DA_Kocle.d.mts +127 -0
  118. package/dist/types-DA_Kocle.d.ts +127 -0
  119. package/dist/types-lFLKKn0G.d.mts +163 -0
  120. package/dist/types-lFLKKn0G.d.ts +163 -0
  121. package/dist/types-nB206tPK.d.mts +309 -0
  122. package/dist/types-nB206tPK.d.ts +309 -0
  123. package/dist/useEventModal-6U1pF3_g.d.mts +209 -0
  124. package/dist/useEventModal-BA8g-1-P.d.ts +209 -0
  125. package/package.json +21 -1
  126. package/dist/chunk-3MUOUXHV.js.map +0 -1
  127. package/dist/chunk-4HVYXYQL 2.mjs +0 -255
  128. package/dist/chunk-4HVYXYQL.mjs +0 -255
  129. package/dist/chunk-4HVYXYQL.mjs.map +0 -1
  130. package/dist/chunk-COI6GOX2.mjs.map +0 -1
  131. package/dist/chunk-EQCVQC35.js 2.map +0 -1
  132. package/dist/chunk-FEBYQGY4.mjs +0 -251
  133. package/dist/chunk-FEBYQGY4.mjs.map +0 -1
  134. package/dist/chunk-NYKRE2FL 2.mjs +0 -31
  135. package/dist/chunk-NYKRE2FL.mjs 2.map +0 -1
  136. package/dist/chunk-RV7H3I6J.js 2.map +0 -1
  137. package/dist/chunk-RV7H3I6J.js.map +0 -1
  138. package/dist/chunk-TUKGA3UK.js +0 -257
  139. package/dist/chunk-TUKGA3UK.js 2.map +0 -1
  140. package/dist/chunk-TUKGA3UK.js.map +0 -1
  141. package/dist/generators-7Y5ABRYV.mjs +0 -161
  142. package/dist/generators-7Y5ABRYV.mjs 2.map +0 -1
  143. package/dist/generators-7Y5ABRYV.mjs.map +0 -1
  144. package/dist/generators-GWIYCA5M.js 2.map +0 -1
  145. package/dist/generators-GWIYCA5M.js.map +0 -1
  146. package/dist/index 2.mjs +0 -74
  147. package/dist/index.js 2.map +0 -1
  148. package/dist/migrator-V6KS75EA 2.mjs +0 -265
  149. package/dist/migrator-V6KS75EA.mjs 2.map +0 -1
  150. package/dist/migrator-XKM7YQCY.js 2.map +0 -1
  151. package/dist/scanner-MF7P3CDE.mjs +0 -14386
  152. package/dist/scanner-MF7P3CDE.mjs 2.map +0 -1
  153. package/dist/scanner-MF7P3CDE.mjs.map +0 -1
  154. package/dist/scanner-NT6YG4TD.js +0 -14397
  155. package/dist/scanner-NT6YG4TD.js 2.map +0 -1
  156. package/dist/scanner-NT6YG4TD.js.map +0 -1
  157. package/dist/web-vitals-BH55V7EJ.js 2.map +0 -1
  158. package/dist/web-vitals-RJYPWAR3 2.mjs +0 -241
  159. package/dist/web-vitals-RJYPWAR3.mjs 2.map +0 -1
@@ -0,0 +1,89 @@
1
+ export { g as generateSitemap, r as registerLocalSitemap } from '../routing-BWjUF7lp.js';
2
+ export { A as ABTest, i as ABTestResult, F as FAQItem, j as GetABVariantOptions, G as GetManagedMetadataOptions, l as GetRedirectOptions, p as GetRobotsOptions, r as GetSitemapEntriesOptions, g as ManagedContentBlock, h as ManagedContentProps, c as ManagedFAQData, d as ManagedFAQProps, f as ManagedInternalLinksProps, e as ManagedLink, M as ManagedMetadataResult, k as ManagedRedirect, b as ManagedSchemaProps, m as ManagedScript, n as ManagedScriptsProps, R as RedirectResult, o as RobotsDirective, S as SEOPageData, a as SchemaMarkup, q as SitemapEntry, U as UptradeSEOConfig } from '../types-BmzutFwy.js';
3
+ import 'next';
4
+
5
+ /**
6
+ * @uptrade/site-kit/seo - API Functions
7
+ *
8
+ * All SEO data fetching goes through Portal API with API key auth.
9
+ * These functions are designed for server-side use (RSC/SSR).
10
+ */
11
+ /**
12
+ * Fetch SEO page data - cached per request
13
+ */
14
+ declare const getSEOPageData: (projectId: string, path: string) => Promise<any>;
15
+ /**
16
+ * Fetch schema markups for a page - cached per request
17
+ */
18
+ declare const getSchemaMarkups: (projectId: string, path: string, options?: {
19
+ includeTypes?: string[];
20
+ excludeTypes?: string[];
21
+ }) => Promise<any[]>;
22
+ /**
23
+ * Fetch FAQ data for a page - cached per request
24
+ */
25
+ declare const getFAQData: (projectId: string, path: string) => Promise<any>;
26
+ /**
27
+ * Fetch internal links for a page - cached per request
28
+ */
29
+ declare const getInternalLinks: (projectId: string, sourcePath: string, options?: {
30
+ position?: string;
31
+ limit?: number;
32
+ }) => Promise<any[]>;
33
+ /**
34
+ * Fetch content block - cached per request
35
+ */
36
+ declare const getContentBlock: (projectId: string, path: string, section: string) => Promise<any>;
37
+ /**
38
+ * Fetch A/B test and determine variant - cached per request
39
+ */
40
+ declare const getABTest: (projectId: string, path: string, field: string) => Promise<any>;
41
+ /**
42
+ * Record A/B test impression
43
+ */
44
+ declare function recordABImpression(testId: string, variant: 'a' | 'b', sessionId?: string): Promise<void>;
45
+ /**
46
+ * Fetch redirect for a path - cached per request
47
+ */
48
+ declare const getRedirectData: (projectId: string, path: string) => Promise<any>;
49
+ /**
50
+ * Fetch managed scripts - cached per request
51
+ */
52
+ declare const getManagedScripts: (projectId: string, position: string, currentPath?: string) => Promise<any[]>;
53
+ /**
54
+ * Fetch robots directive for a page - cached per request
55
+ */
56
+ declare const getRobotsData: (projectId: string, path: string) => Promise<any>;
57
+ /**
58
+ * Fetch sitemap entries - cached per request
59
+ */
60
+ declare const getSitemapEntries: (projectId: string, options?: {
61
+ publishedOnly?: boolean;
62
+ }) => Promise<any[]>;
63
+ /**
64
+ * Register/sync sitemap entries from the client site
65
+ * Call this at build time to populate seo_pages from your sitemap.xml
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * // scripts/register-sitemap.ts (run at build time)
70
+ * import { registerSitemap } from '@uptrade/seo/server'
71
+ *
72
+ * await registerSitemap([
73
+ * { path: '/', priority: 1.0, changefreq: 'daily' },
74
+ * { path: '/about', priority: 0.8, changefreq: 'weekly' },
75
+ * ])
76
+ * ```
77
+ */
78
+ declare function registerSitemap(entries: Array<{
79
+ path: string;
80
+ title?: string;
81
+ priority?: number;
82
+ changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
83
+ }>): Promise<{
84
+ success: boolean;
85
+ created: number;
86
+ updated: number;
87
+ }>;
88
+
89
+ export { getABTest, getContentBlock, getFAQData, getInternalLinks, getManagedScripts, getRedirectData, getRobotsData, getSEOPageData, getSchemaMarkups, getSitemapEntries, recordABImpression, registerSitemap };
@@ -0,0 +1,60 @@
1
+ export { S as SetupWizard, S as UptradeSetup } from '../SetupWizard-Cki06kB0.mjs';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ /**
5
+ * Integration Code Generator
6
+ *
7
+ * Generates site-kit integration code snippets based on enabled modules.
8
+ * Used by SetupWizard and can be called standalone.
9
+ */
10
+ interface IntegrationSnippet {
11
+ module: string;
12
+ snippetType: 'install' | 'layout' | 'component' | 'page' | 'api-route' | 'env';
13
+ title: string;
14
+ description?: string;
15
+ filePath?: string;
16
+ code: string;
17
+ language: 'typescript' | 'tsx' | 'bash' | 'env';
18
+ order: number;
19
+ required: boolean;
20
+ }
21
+ interface GeneratorContext {
22
+ projectId: string;
23
+ projectName?: string;
24
+ apiUrl?: string;
25
+ enabledModules: string[];
26
+ brand?: {
27
+ primaryColor?: string;
28
+ secondaryColor?: string;
29
+ businessName?: string;
30
+ };
31
+ }
32
+ /**
33
+ * Generate all integration code snippets for enabled modules
34
+ */
35
+ declare function generateIntegrationCode(context: GeneratorContext): IntegrationSnippet[];
36
+ /**
37
+ * Get snippets grouped by module
38
+ */
39
+ declare function getSnippetsByModule(snippets: IntegrationSnippet[]): Record<string, IntegrationSnippet[]>;
40
+
41
+ /**
42
+ * IntegrationCodeView - Display generated site-kit integration code
43
+ *
44
+ * Shows code snippets grouped by module with copy functionality.
45
+ * Can be used in setup wizards or admin dashboards.
46
+ */
47
+ interface IntegrationCodeViewProps {
48
+ projectId: string;
49
+ enabledModules: string[];
50
+ apiUrl?: string;
51
+ brand?: {
52
+ primaryColor?: string;
53
+ businessName?: string;
54
+ };
55
+ className?: string;
56
+ onCopy?: (code: string, title: string) => void;
57
+ }
58
+ declare function IntegrationCodeView({ projectId, enabledModules, apiUrl, brand, className, onCopy, }: IntegrationCodeViewProps): react_jsx_runtime.JSX.Element;
59
+
60
+ export { type GeneratorContext, IntegrationCodeView, type IntegrationCodeViewProps, type IntegrationSnippet, generateIntegrationCode, getSnippetsByModule };
@@ -0,0 +1,60 @@
1
+ export { S as SetupWizard, S as UptradeSetup } from '../SetupWizard-Cki06kB0.js';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ /**
5
+ * Integration Code Generator
6
+ *
7
+ * Generates site-kit integration code snippets based on enabled modules.
8
+ * Used by SetupWizard and can be called standalone.
9
+ */
10
+ interface IntegrationSnippet {
11
+ module: string;
12
+ snippetType: 'install' | 'layout' | 'component' | 'page' | 'api-route' | 'env';
13
+ title: string;
14
+ description?: string;
15
+ filePath?: string;
16
+ code: string;
17
+ language: 'typescript' | 'tsx' | 'bash' | 'env';
18
+ order: number;
19
+ required: boolean;
20
+ }
21
+ interface GeneratorContext {
22
+ projectId: string;
23
+ projectName?: string;
24
+ apiUrl?: string;
25
+ enabledModules: string[];
26
+ brand?: {
27
+ primaryColor?: string;
28
+ secondaryColor?: string;
29
+ businessName?: string;
30
+ };
31
+ }
32
+ /**
33
+ * Generate all integration code snippets for enabled modules
34
+ */
35
+ declare function generateIntegrationCode(context: GeneratorContext): IntegrationSnippet[];
36
+ /**
37
+ * Get snippets grouped by module
38
+ */
39
+ declare function getSnippetsByModule(snippets: IntegrationSnippet[]): Record<string, IntegrationSnippet[]>;
40
+
41
+ /**
42
+ * IntegrationCodeView - Display generated site-kit integration code
43
+ *
44
+ * Shows code snippets grouped by module with copy functionality.
45
+ * Can be used in setup wizards or admin dashboards.
46
+ */
47
+ interface IntegrationCodeViewProps {
48
+ projectId: string;
49
+ enabledModules: string[];
50
+ apiUrl?: string;
51
+ brand?: {
52
+ primaryColor?: string;
53
+ businessName?: string;
54
+ };
55
+ className?: string;
56
+ onCopy?: (code: string, title: string) => void;
57
+ }
58
+ declare function IntegrationCodeView({ projectId, enabledModules, apiUrl, brand, className, onCopy, }: IntegrationCodeViewProps): react_jsx_runtime.JSX.Element;
59
+
60
+ export { type GeneratorContext, IntegrationCodeView, type IntegrationCodeViewProps, type IntegrationSnippet, generateIntegrationCode, getSnippetsByModule };
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var chunkDRFTRTKV_js = require('../chunk-DRFTRTKV.js');
4
+ var chunk5R4R3WDP_js = require('../chunk-5R4R3WDP.js');
5
+ require('../chunk-EQCVQC35.js');
6
+
7
+
8
+
9
+ Object.defineProperty(exports, "IntegrationCodeView", {
10
+ enumerable: true,
11
+ get: function () { return chunkDRFTRTKV_js.IntegrationCodeView; }
12
+ });
13
+ Object.defineProperty(exports, "generateIntegrationCode", {
14
+ enumerable: true,
15
+ get: function () { return chunkDRFTRTKV_js.generateIntegrationCode; }
16
+ });
17
+ Object.defineProperty(exports, "getSnippetsByModule", {
18
+ enumerable: true,
19
+ get: function () { return chunkDRFTRTKV_js.getSnippetsByModule; }
20
+ });
21
+ Object.defineProperty(exports, "SetupWizard", {
22
+ enumerable: true,
23
+ get: function () { return chunk5R4R3WDP_js.SetupWizard; }
24
+ });
25
+ Object.defineProperty(exports, "UptradeSetup", {
26
+ enumerable: true,
27
+ get: function () { return chunk5R4R3WDP_js.SetupWizard; }
28
+ });
29
+ //# sourceMappingURL=client.js.map
30
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"client.js"}
@@ -0,0 +1,5 @@
1
+ export { IntegrationCodeView, generateIntegrationCode, getSnippetsByModule } from '../chunk-EL5QTAA3.mjs';
2
+ export { SetupWizard, SetupWizard as UptradeSetup } from '../chunk-XFRPT5ZX.mjs';
3
+ import '../chunk-NYKRE2FL.mjs';
4
+ //# sourceMappingURL=client.mjs.map
5
+ //# sourceMappingURL=client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"client.mjs"}
@@ -0,0 +1,5 @@
1
+ export { S as SetupWizard, S as UptradeSetup } from '../SetupWizard-Cki06kB0.mjs';
2
+ export { handleRequest } from './server.mjs';
3
+ export { GeneratorContext, IntegrationCodeView, IntegrationCodeViewProps, IntegrationSnippet, generateIntegrationCode, getSnippetsByModule } from './client.mjs';
4
+ import 'react/jsx-runtime';
5
+ import 'next/server';
@@ -0,0 +1,5 @@
1
+ export { S as SetupWizard, S as UptradeSetup } from '../SetupWizard-Cki06kB0.js';
2
+ export { handleRequest } from './server.js';
3
+ export { GeneratorContext, IntegrationCodeView, IntegrationCodeViewProps, IntegrationSnippet, generateIntegrationCode, getSnippetsByModule } from './client.js';
4
+ import 'react/jsx-runtime';
5
+ import 'next/server';