@griddo/cx 10.4.18 → 10.4.20

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 (70) hide show
  1. package/build/adapters/gatsby/index.d.ts +2 -0
  2. package/build/adapters/gatsby/utils.d.ts +26 -0
  3. package/build/adapters/index.d.ts +3 -0
  4. package/build/browser/index.d.ts +5 -0
  5. package/build/build-complete.d.ts +18 -0
  6. package/build/build-complete.js +22 -22
  7. package/build/index.d.ts +29 -0
  8. package/build/index.js +35 -35
  9. package/build/move-assets.d.ts +1 -0
  10. package/build/react/index.d.ts +2 -0
  11. package/build/reset-render.d.ts +1 -0
  12. package/build/reset-render.js +22 -22
  13. package/build/run-start-render.d.ts +1 -0
  14. package/build/run-start-render.js +35 -35
  15. package/build/services/auth.d.ts +21 -0
  16. package/build/services/distributors.d.ts +45 -0
  17. package/build/services/domains.d.ts +8 -0
  18. package/build/services/navigation.d.ts +77 -0
  19. package/build/services/robots.d.ts +21 -0
  20. package/build/services/settings.d.ts +23 -0
  21. package/build/services/sites.d.ts +42 -0
  22. package/build/services/store.d.ts +6 -0
  23. package/build/start-render.d.ts +3 -0
  24. package/build/start-render.js +35 -35
  25. package/build/types/api.d.ts +130 -0
  26. package/build/types/global.d.ts +78 -0
  27. package/build/types/navigation.d.ts +28 -0
  28. package/build/types/pages.d.ts +128 -0
  29. package/build/types/sites.d.ts +43 -0
  30. package/build/types/templates.d.ts +8 -0
  31. package/build/upload-search-content.d.ts +1 -0
  32. package/build/upload-search-content.js +50 -0
  33. package/build/utils/api.d.ts +23 -0
  34. package/build/utils/cache.d.ts +35 -0
  35. package/build/utils/create-build-data.d.ts +8 -0
  36. package/build/utils/domains.d.ts +5 -0
  37. package/build/utils/folders.d.ts +48 -0
  38. package/build/utils/health-checks.d.ts +7 -0
  39. package/build/utils/instance.d.ts +21 -0
  40. package/build/utils/messages.d.ts +2 -0
  41. package/build/utils/pages.d.ts +34 -0
  42. package/build/utils/searches.d.ts +14 -0
  43. package/build/utils/shared.d.ts +110 -0
  44. package/build/utils/sites.d.ts +36 -0
  45. package/build/utils/store.d.ts +79 -0
  46. package/build/utils/temp-utils.d.ts +10 -0
  47. package/cx.config.js +1 -1
  48. package/exporter/adapters/gatsby/index.ts +11 -10
  49. package/exporter/index.ts +6 -4
  50. package/exporter/services/robots.ts +4 -3
  51. package/exporter/services/store.ts +13 -4
  52. package/exporter/types/global.ts +1 -1
  53. package/exporter/upload-search-content.ts +38 -0
  54. package/exporter/utils/api.ts +2 -2
  55. package/exporter/utils/cache.ts +25 -11
  56. package/exporter/utils/create-build-data.ts +3 -10
  57. package/exporter/utils/folders.ts +14 -15
  58. package/exporter/utils/searches.ts +26 -10
  59. package/exporter/utils/shared.ts +33 -7
  60. package/exporter/utils/sites.ts +10 -10
  61. package/exporter/utils/store.ts +77 -27
  62. package/exporter/utils/temp-utils.ts +12 -11
  63. package/gatsby-config.ts +1 -1
  64. package/gatsby-node.ts +9 -10
  65. package/package.json +20 -11
  66. package/src/components/Head.tsx +1 -1
  67. package/src/components/template.tsx +1 -1
  68. package/src/gatsby-node-utils.ts +1 -1
  69. package/src/types.ts +1 -1
  70. package/tsconfig.json +26 -0
@@ -0,0 +1,2 @@
1
+ declare function runGatsbyAdapter(): Promise<void>;
2
+ export { runGatsbyAdapter };
@@ -0,0 +1,26 @@
1
+ import { Fields } from "@griddo/core";
2
+ declare const attempts: {
3
+ prepare: any;
4
+ restore: any;
5
+ data: any;
6
+ ssg: any;
7
+ relocation: any;
8
+ meta: any;
9
+ archive: any;
10
+ clean: any;
11
+ };
12
+ /**
13
+ * Return the assetPrefix url `assetPrefix/domain`
14
+ */
15
+ declare function getGatsbyAssetPrefixSlug(domain: string): string;
16
+ /**
17
+ * Format Cloudinary or DAM URL
18
+ *
19
+ * @param image The image url
20
+ * @param width With of the image
21
+ * @param height Height of the image
22
+ * @param format Format of the image
23
+ * @returns A composed URL for the Cloudinary or DAM service
24
+ */
25
+ declare function formatImage(image: Fields.Image | string, width: number, height: number, format?: string): string | null;
26
+ export { attempts, formatImage, getGatsbyAssetPrefixSlug };
@@ -0,0 +1,3 @@
1
+ import { runGatsbyAdapter } from "./gatsby";
2
+ export type Adapters = "gatsby";
3
+ export { runGatsbyAdapter };
@@ -0,0 +1,5 @@
1
+ import { Core } from "@griddo/core";
2
+ declare function filterBodyIntegrationFromPosition(integrations: Array<Core.PageIntegration>, position: "start" | "end"): string[];
3
+ declare function filterHeadIntegrations(integrations: Array<Core.PageIntegration>): string[];
4
+ declare function filterPositionIntegrations(integrations: Array<Core.PageIntegration>, position: "head" | "start" | "end"): string[];
5
+ export { filterBodyIntegrationFromPosition, filterHeadIntegrations, filterPositionIntegrations, };
@@ -0,0 +1,18 @@
1
+ type Report = {
2
+ authControl: {
3
+ Authorization: string;
4
+ "Cache-Control": string;
5
+ lang?: string | undefined;
6
+ } | undefined;
7
+ sites: Array<{
8
+ siteId: number;
9
+ publishHashes: Array<string>;
10
+ siteHash: string | null;
11
+ unpublishHashes: Array<string>;
12
+ }>;
13
+ };
14
+ /**
15
+ * Informa a la API del estado de publicación de los sites: published y unpublished.
16
+ */
17
+ export declare function buildComplete(report: Report): Promise<void>;
18
+ export {};