@shopify/cli-hydrogen 5.2.0 → 5.2.2

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 (33) hide show
  1. package/dist/commands/hydrogen/dev.js +1 -2
  2. package/dist/commands/hydrogen/generate/route.test.js +0 -1
  3. package/dist/commands/hydrogen/init.js +3 -3
  4. package/dist/commands/hydrogen/preview.js +1 -2
  5. package/dist/generator-templates/starter/app/entry.server.tsx +9 -1
  6. package/dist/generator-templates/starter/app/root.tsx +9 -6
  7. package/dist/generator-templates/starter/app/routes/blogs._index.tsx +1 -1
  8. package/dist/generator-templates/starter/app/routes/collections.$handle.tsx +1 -1
  9. package/dist/generator-templates/starter/package.json +5 -5
  10. package/dist/generator-templates/starter/storefrontapi.generated.d.ts +2 -2
  11. package/dist/generator-templates/starter/tsconfig.json +1 -0
  12. package/dist/lib/file.js +1 -1
  13. package/dist/lib/flags.js +3 -3
  14. package/dist/lib/format-code.js +4 -4
  15. package/dist/lib/graphql/admin/client.js +18 -0
  16. package/dist/lib/graphql/admin/client.test.js +28 -3
  17. package/dist/lib/mini-oxygen.js +1 -0
  18. package/dist/lib/setups/css/index.js +4 -2
  19. package/dist/lib/setups/routes/generate.js +11 -28
  20. package/dist/lib/setups/routes/generate.test.js +1 -3
  21. package/dist/lib/transpile-ts.js +4 -3
  22. package/dist/virtual-routes/components/HydrogenLogoBaseBW.jsx +22 -19
  23. package/dist/virtual-routes/components/HydrogenLogoBaseColor.jsx +37 -33
  24. package/dist/virtual-routes/components/IconBanner.jsx +282 -279
  25. package/dist/virtual-routes/components/IconDiscord.jsx +11 -10
  26. package/dist/virtual-routes/components/IconError.jsx +51 -48
  27. package/dist/virtual-routes/components/IconGithub.jsx +13 -12
  28. package/dist/virtual-routes/components/IconTwitter.jsx +11 -10
  29. package/dist/virtual-routes/components/Layout.jsx +2 -1
  30. package/dist/virtual-routes/routes/index.jsx +194 -105
  31. package/dist/virtual-routes/virtual-root.jsx +62 -8
  32. package/oclif.manifest.json +3 -3
  33. package/package.json +4 -4
@@ -1,42 +1,46 @@
1
- import * as React from "react";
2
- const HydrogenLogoBaseColor = (props) => /* @__PURE__ */ React.createElement(
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ const HydrogenLogoBaseColor = (props) => /* @__PURE__ */ jsxs(
3
3
  "svg",
4
4
  {
5
5
  width: 76,
6
6
  height: 81,
7
7
  fill: "none",
8
8
  xmlns: "http://www.w3.org/2000/svg",
9
- ...props
10
- },
11
- /* @__PURE__ */ React.createElement(
12
- "path",
13
- {
14
- d: "M37.817 80.149 0 60.057l12.934-6.817 14.561 7.733 12.218-6.441-14.561-7.733 12.933-6.833 37.818 20.091-12.934 6.817-13.757-7.307-12.236 6.457 13.775 7.308-12.934 6.817Z",
15
- fill: "#000"
16
- }
17
- ),
18
- /* @__PURE__ */ React.createElement(
19
- "path",
20
- {
21
- d: "M37.818 40.183 0 20.092l12.934-6.818 14.562 7.733 12.218-6.441-14.562-7.733L38.086 0l37.817 20.091-12.934 6.817-13.756-7.307-12.236 6.457 13.774 7.308-12.933 6.817Z",
22
- fill: "url(#a)"
23
- }
24
- ),
25
- /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement(
26
- "linearGradient",
27
- {
28
- id: "a",
29
- x1: 74.48,
30
- y1: 21.654,
31
- x2: 18.735,
32
- y2: 51.694,
33
- gradientUnits: "userSpaceOnUse"
34
- },
35
- /* @__PURE__ */ React.createElement("stop", { offset: 2e-3, stopColor: "#430470" }),
36
- /* @__PURE__ */ React.createElement("stop", { offset: 0.385, stopColor: "#8E01F0" }),
37
- /* @__PURE__ */ React.createElement("stop", { offset: 0.635, stopColor: "#354CF6" }),
38
- /* @__PURE__ */ React.createElement("stop", { offset: 1, stopColor: "#01FFFF" })
39
- ))
9
+ ...props,
10
+ children: [
11
+ /* @__PURE__ */ jsx(
12
+ "path",
13
+ {
14
+ d: "M37.817 80.149 0 60.057l12.934-6.817 14.561 7.733 12.218-6.441-14.561-7.733 12.933-6.833 37.818 20.091-12.934 6.817-13.757-7.307-12.236 6.457 13.775 7.308-12.934 6.817Z",
15
+ fill: "#000"
16
+ }
17
+ ),
18
+ /* @__PURE__ */ jsx(
19
+ "path",
20
+ {
21
+ d: "M37.818 40.183 0 20.092l12.934-6.818 14.562 7.733 12.218-6.441-14.562-7.733L38.086 0l37.817 20.091-12.934 6.817-13.756-7.307-12.236 6.457 13.774 7.308-12.933 6.817Z",
22
+ fill: "url(#a)"
23
+ }
24
+ ),
25
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
26
+ "linearGradient",
27
+ {
28
+ id: "a",
29
+ x1: 74.48,
30
+ y1: 21.654,
31
+ x2: 18.735,
32
+ y2: 51.694,
33
+ gradientUnits: "userSpaceOnUse",
34
+ children: [
35
+ /* @__PURE__ */ jsx("stop", { offset: 2e-3, stopColor: "#430470" }),
36
+ /* @__PURE__ */ jsx("stop", { offset: 0.385, stopColor: "#8E01F0" }),
37
+ /* @__PURE__ */ jsx("stop", { offset: 0.635, stopColor: "#354CF6" }),
38
+ /* @__PURE__ */ jsx("stop", { offset: 1, stopColor: "#01FFFF" })
39
+ ]
40
+ }
41
+ ) })
42
+ ]
43
+ }
40
44
  );
41
45
  export {
42
46
  HydrogenLogoBaseColor