@slicemachine/adapter-next 0.3.18-dev-slice-templates-svelte-nuxt.4 → 0.3.18-dev-next-release.9

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.
@@ -1,5 +1,4 @@
1
- import { isFilled } from "@prismicio/client";
2
- import { PrismicRichText } from "@prismicio/react";
1
+ import { isFilled, asText } from "@prismicio/client";
3
2
  import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
4
3
 
5
4
  /**
@@ -19,7 +18,7 @@ const PascalNameToReplace = ({ slice }) => {
19
18
  <div className="es-bounded__content es-customer-logos__content">
20
19
  {isFilled.richText(slice.primary.eyebrowHeadline) && (
21
20
  <h2 className="es-customer-logos__heading">
22
- <PrismicRichText field={slice.primary.eyebrowHeadline} />
21
+ {asText(slice.primary.eyebrowHeadline)}
23
22
  </h2>
24
23
  )}
25
24
  {slice.items.length > 0 && (
@@ -28,7 +27,10 @@ const PascalNameToReplace = ({ slice }) => {
28
27
  (item) =>
29
28
  isFilled.image(item.image) && (
30
29
  <li key={item.image.url} className="es-customer-logos__logo">
31
- <PrismicNextLink field={item.link}>
30
+ <PrismicNextLink
31
+ field={item.link}
32
+ className="es-customer-logos__link"
33
+ >
32
34
  <PrismicNextImage
33
35
  field={item.image}
34
36
  height={26}
@@ -48,78 +50,77 @@ const PascalNameToReplace = ({ slice }) => {
48
50
  {slice.primary.callToActionLabel || "Learn more..."}
49
51
  </PrismicNextLink>
50
52
  </div>
51
-
52
53
  <style>
53
54
  {`
54
55
  .es-bounded {
55
- margin: 0px;
56
- min-width: 0px;
57
- position: relative;
58
- padding: 8vw 1.25rem;
56
+ margin: 0px;
57
+ min-width: 0px;
58
+ position: relative;
59
+ padding: 8vw 1.25rem;
59
60
  }
60
61
 
61
62
  .es-bounded__content {
62
- min-width: 0px;
63
- max-width: 90%;
64
- margin: 0px auto;
65
- font-family: system-ui, sans-serif;
63
+ min-width: 0px;
64
+ max-width: 90%;
65
+ margin: 0px auto;
66
+ font-family: system-ui, sans-serif;
66
67
  }
67
68
 
68
69
  .es-customer-logos {
69
- background-color: #f4f0ec;
70
- color: #333;
70
+ background-color: #f4f0ec;
71
+ color: #333;
71
72
  }
72
73
 
73
74
  .es-customer-logos__content {
74
- display: grid;
75
- gap: 2rem;
76
- justify-items: center;
75
+ display: grid;
76
+ gap: 2rem;
77
+ justify-items: center;
77
78
  }
78
79
 
79
80
  .es-customer-logos__heading {
80
- color: #8592e0;
81
- font-size: 1.5rem;
82
- font-weight: 500;
83
- text-align: center;
81
+ color: #8592e0;
82
+ font-size: 1.5rem;
83
+ font-weight: 500;
84
+ text-align: center;
84
85
  }
85
86
 
86
87
  .es-customer-logos__logos {
87
- display: grid;
88
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
89
- grid-column-gap: 1.25rem;
90
- grid-row-gap: 2rem;
91
- align-items: center;
92
- list-style-type: none;
93
- width: 100%;
88
+ display: grid;
89
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
90
+ grid-column-gap: 1.25rem;
91
+ grid-row-gap: 2rem;
92
+ align-items: center;
93
+ list-style-type: none;
94
+ width: 100%;
94
95
  }
95
96
 
96
97
  @media (min-width: 1200px) {
97
- .es-customer-logos__logos {
98
- margin-left: -3rem;
99
- }
98
+ .es-customer-logos__logos {
99
+ margin-left: -3rem;
100
+ }
100
101
  }
101
102
 
102
103
  .es-customer-logos__logo {
103
- margin: 0;
104
- display: flex;
105
- justify-content: center;
104
+ margin: 0;
105
+ display: flex;
106
+ justify-content: center;
106
107
  }
107
108
 
108
109
  @media (min-width: 1200px) {
109
- .es-customer-logos__logo {
110
- margin-left: 3rem;
111
- }
110
+ .es-customer-logos__logo {
111
+ margin-left: 3rem;
112
+ }
112
113
  }
113
114
 
114
115
  .es-customer-logos__logo__link__image {
115
- max-width: 10rem;
116
+ max-width: 10rem;
116
117
  }
117
118
 
118
119
  .es-customer-logos__button {
119
- justify-self: center;
120
- text-decoration: underline;
120
+ justify-self: center;
121
+ text-decoration: underline;
121
122
  }
122
- `}
123
+ `}
123
124
  </style>
124
125
  </section>
125
126
  );
@@ -1,6 +1,6 @@
1
- import { Content, isFilled } from "@prismicio/client";
2
- import { SliceComponentProps, PrismicRichText } from "@prismicio/react";
1
+ import { Content, isFilled, asText } from "@prismicio/client";
3
2
  import { PrismicNextLink, PrismicNextImage } from "@prismicio/next";
3
+ import { SliceComponentProps } from "@prismicio/react";
4
4
 
5
5
  export type PascalNameToReplaceProps =
6
6
  SliceComponentProps<Content.PascalNameToReplaceSlice>;
@@ -17,7 +17,7 @@ const PascalNameToReplace = ({
17
17
  <div className="es-bounded__content es-customer-logos__content">
18
18
  {isFilled.richText(slice.primary.eyebrowHeadline) && (
19
19
  <h2 className="es-customer-logos__heading">
20
- <PrismicRichText field={slice.primary.eyebrowHeadline} />
20
+ {asText(slice.primary.eyebrowHeadline)}
21
21
  </h2>
22
22
  )}
23
23
  {slice.items.length > 0 && (
@@ -26,7 +26,10 @@ const PascalNameToReplace = ({
26
26
  (item) =>
27
27
  isFilled.image(item.image) && (
28
28
  <li key={item.image.url} className="es-customer-logos__logo">
29
- <PrismicNextLink field={item.link}>
29
+ <PrismicNextLink
30
+ field={item.link}
31
+ className="es-customer-logos__link"
32
+ >
30
33
  <PrismicNextImage
31
34
  field={item.image}
32
35
  height={26}
@@ -46,78 +49,77 @@ const PascalNameToReplace = ({
46
49
  {slice.primary.callToActionLabel || "Learn more..."}
47
50
  </PrismicNextLink>
48
51
  </div>
49
-
50
52
  <style>
51
53
  {`
52
- .es-bounded {
53
- margin: 0px;
54
- min-width: 0px;
55
- position: relative;
56
- padding: 8vw 1.25rem;
57
- }
54
+ .es-bounded {
55
+ margin: 0px;
56
+ min-width: 0px;
57
+ position: relative;
58
+ padding: 8vw 1.25rem;
59
+ }
58
60
 
59
- .es-bounded__content {
60
- min-width: 0px;
61
- max-width: 90%;
62
- margin: 0px auto;
63
- font-family: system-ui, sans-serif;
64
- }
61
+ .es-bounded__content {
62
+ min-width: 0px;
63
+ max-width: 90%;
64
+ margin: 0px auto;
65
+ font-family: system-ui, sans-serif;
66
+ }
65
67
 
66
- .es-customer-logos {
67
- background-color: #f4f0ec;
68
- color: #333;
69
- }
70
-
71
- .es-customer-logos__content {
72
- display: grid;
73
- gap: 2rem;
74
- justify-items: center;
75
- }
76
-
77
- .es-customer-logos__heading {
78
- color: #8592e0;
79
- font-size: 1.5rem;
80
- font-weight: 500;
81
- text-align: center;
82
- }
83
-
84
- .es-customer-logos__logos {
85
- display: grid;
86
- grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
87
- grid-column-gap: 1.25rem;
88
- grid-row-gap: 2rem;
89
- align-items: center;
90
- list-style-type: none;
91
- width: 100%;
92
- }
93
-
94
- @media (min-width: 1200px) {
95
- .es-customer-logos__logos {
96
- margin-left: -3rem;
97
- }
98
- }
99
-
100
- .es-customer-logos__logo {
101
- margin: 0;
102
- display: flex;
103
- justify-content: center;
104
- }
105
-
106
- @media (min-width: 1200px) {
107
- .es-customer-logos__logo {
108
- margin-left: 3rem;
109
- }
110
- }
111
-
112
- .es-customer-logos__logo__link__image {
113
- max-width: 10rem;
114
- }
115
-
116
- .es-customer-logos__button {
117
- justify-self: center;
118
- text-decoration: underline;
119
- }
120
- `}
68
+ .es-customer-logos {
69
+ background-color: #f4f0ec;
70
+ color: #333;
71
+ }
72
+
73
+ .es-customer-logos__content {
74
+ display: grid;
75
+ gap: 2rem;
76
+ justify-items: center;
77
+ }
78
+
79
+ .es-customer-logos__heading {
80
+ color: #8592e0;
81
+ font-size: 1.5rem;
82
+ font-weight: 500;
83
+ text-align: center;
84
+ }
85
+
86
+ .es-customer-logos__logos {
87
+ display: grid;
88
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
89
+ grid-column-gap: 1.25rem;
90
+ grid-row-gap: 2rem;
91
+ align-items: center;
92
+ list-style-type: none;
93
+ width: 100%;
94
+ }
95
+
96
+ @media (min-width: 1200px) {
97
+ .es-customer-logos__logos {
98
+ margin-left: -3rem;
99
+ }
100
+ }
101
+
102
+ .es-customer-logos__logo {
103
+ margin: 0;
104
+ display: flex;
105
+ justify-content: center;
106
+ }
107
+
108
+ @media (min-width: 1200px) {
109
+ .es-customer-logos__logo {
110
+ margin-left: 3rem;
111
+ }
112
+ }
113
+
114
+ .es-customer-logos__logo__link__image {
115
+ max-width: 10rem;
116
+ }
117
+
118
+ .es-customer-logos__button {
119
+ justify-self: center;
120
+ text-decoration: underline;
121
+ }
122
+ `}
121
123
  </style>
122
124
  </section>
123
125
  );
@@ -19,6 +19,7 @@ const PascalNameToReplace = ({ slice }) => {
19
19
  >
20
20
  <div
21
21
  className={`
22
+ es-bounded__content
22
23
  es-fullpage-hero__content
23
24
  ${
24
25
  slice.variation === "imageRight"
@@ -72,6 +73,12 @@ const PascalNameToReplace = ({ slice }) => {
72
73
  position: relative;
73
74
  }
74
75
 
76
+ .es-bounded__content {
77
+ min-width: 0px;
78
+ max-width: 90%;
79
+ margin: 0px auto;
80
+ }
81
+
75
82
  .es-fullpage-hero {
76
83
  font-family: system-ui, sans-serif;
77
84
  background-color: #fff;
@@ -16,6 +16,7 @@ const PascalNameToReplace = ({
16
16
  >
17
17
  <div
18
18
  className={`
19
+ es-bounded__content
19
20
  es-fullpage-hero__content
20
21
  ${
21
22
  slice.variation === "imageRight"
@@ -69,6 +70,12 @@ const PascalNameToReplace = ({
69
70
  position: relative;
70
71
  }
71
72
 
73
+ .es-bounded__content {
74
+ min-width: 0px;
75
+ max-width: 90%;
76
+ margin: 0px auto;
77
+ }
78
+
72
79
  .es-fullpage-hero {
73
80
  font-family: system-ui, sans-serif;
74
81
  background-color: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slicemachine/adapter-next",
3
- "version": "0.3.18-dev-slice-templates-svelte-nuxt.4",
3
+ "version": "0.3.18-dev-next-release.9",
4
4
  "description": "Slice Machine adapter for Next.js.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -61,7 +61,7 @@
61
61
  "dependencies": {
62
62
  "@prismicio/simulator": "^0.1.4",
63
63
  "@prismicio/types-internal": "^2.0.0",
64
- "@slicemachine/plugin-kit": "^0.4.18-dev-slice-templates-svelte-nuxt.4",
64
+ "@slicemachine/plugin-kit": "^0.4.18-dev-next-release.9",
65
65
  "common-tags": "^1.8.2",
66
66
  "fp-ts": "^2.13.1",
67
67
  "io-ts": "^2.2.20",
@@ -104,5 +104,5 @@
104
104
  "engines": {
105
105
  "node": ">=14.15.0"
106
106
  },
107
- "gitHead": "f163d0041c77fd4a0a5afecdbdb3e87f850b0106"
107
+ "gitHead": "d8718ae0e086f5f1ee4429f4ff8e722ca4a483ea"
108
108
  }