-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from CoreMedia/release-2406
Changes for Release 2406.0.0
- Loading branch information
Showing
40 changed files
with
11,364 additions
and
9,771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM node:20 | ||
RUN npm install -g pnpm@8 | ||
RUN npm install -g pnpm@9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
module.exports = { | ||
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(ts|tsx)"], | ||
addons: ["@storybook/addon-links", "@storybook/addon-essentials"], | ||
export default { | ||
stories: ["../src/**/*.stories.@(ts|tsx)"], | ||
addons: [ | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@chromatic-com/storybook" | ||
], | ||
|
||
framework: { | ||
name: "@storybook/react-vite", | ||
options: {} | ||
}, | ||
|
||
core: { | ||
disableTelemetry: true | ||
}, | ||
docs: { | ||
autodocs: true | ||
|
||
docs: {}, | ||
|
||
typescript: { | ||
reactDocgen: "react-docgen-typescript" | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { FC } from "react"; | ||
import { Helmet } from "react-helmet-async"; | ||
import log from "loglevel"; | ||
import { useSiteContextState } from "../../context/SiteContextProvider"; | ||
import { isPreview } from "../../utils/Preview/Preview"; | ||
|
||
const CmecTag: FC = () => { | ||
const { siteLocale, cmecConfig } = useSiteContextState(); | ||
let cmecVars = ""; | ||
|
||
/* no cmec configuration available, just load p13n */ | ||
if (!cmecConfig) { | ||
return <></>; | ||
} | ||
|
||
log.info("Loading CoreMedia Engagement Cloud Tag", cmecConfig.id, cmecConfig.url); | ||
|
||
cmecVars = `var bysideWebcare_webcare_id="${cmecConfig?.id}";`; | ||
const lang = new Intl.Locale(siteLocale); | ||
cmecVars += `var bysideWebcare_lang="${lang.language}";`; | ||
cmecVars += `var bysideWebcare_locale="${siteLocale}";`; | ||
if (isPreview()) { | ||
cmecVars += `var bysideWebcare_preview=true;`; | ||
} | ||
|
||
return ( | ||
<Helmet> | ||
<script>{cmecVars}</script> | ||
<script src={cmecConfig?.url}></script> | ||
</Helmet> | ||
); | ||
}; | ||
|
||
export default CmecTag; |
Oops, something went wrong.