@hashicorp/react-components 0.0.0-canary.7a9d6e5 → 0.0.0-nightly.e8ac55b
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/package.json
CHANGED
|
@@ -44,7 +44,7 @@ Expect the new change to look like the following:
|
|
|
44
44
|
|
|
45
45
|
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
|
46
46
|
import HashiHead from '@hashicorp/react-head'
|
|
47
|
-
+ import { SegmentPreloadScript } from '@
|
|
47
|
+
+ import { SegmentPreloadScript } from '@web/react-components/src/components/consent-manager/scripts/segment'
|
|
48
48
|
// other imports
|
|
49
49
|
|
|
50
50
|
export default class MyDocument extends Document {
|
|
@@ -9,7 +9,7 @@ The loader also ships with a couple **presets**, which load in standard sets of
|
|
|
9
9
|
Code block below shows basic usage:
|
|
10
10
|
|
|
11
11
|
```js
|
|
12
|
-
import createConsentManager from '@
|
|
12
|
+
import createConsentManager from '@web/react-components/src/components/consent-manager/loader'
|
|
13
13
|
|
|
14
14
|
const { ConsentManager, openConsentManager } = createConsentManager({
|
|
15
15
|
preset: 'oss',
|
|
@@ -19,12 +19,11 @@ type CtaLink = ButtonProps & { href: string; __typename?: string }
|
|
|
19
19
|
|
|
20
20
|
type CtaDropdown = {
|
|
21
21
|
__typename?: string
|
|
22
|
-
text: string
|
|
23
22
|
submenu: { text: string; url: string }[]
|
|
24
23
|
buttonControls: ToggleButtonProps
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export type CtaLinkProps = Array<CtaLink>
|
|
26
|
+
export type CtaLinkProps = Array<CtaLink | CtaDropdown>
|
|
28
27
|
|
|
29
28
|
interface CtaLinksProps {
|
|
30
29
|
links: Array<CtaLink | CtaDropdown>
|