This commit is contained in:
Chris Trevino 2022-09-14 14:33:30 -07:00
Родитель 88c6db15f5
Коммит efc7b424c2
18 изменённых файлов: 38 добавлений и 6 удалений

Просмотреть файл

@ -31,6 +31,7 @@
"clean": "turbo run clean --parallel",
"test": "turbo run test",
"lint": "turbo run lint",
"lint_fix": "turbo run lint_fix",
"start": "turbo run start --parallel",
"ci": "turbo run ci",
"stories": "yarn start:storybook",

Просмотреть файл

@ -19,6 +19,7 @@
"build": "essex build --skipExportCheck --docs",
"clean": "essex clean",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -30,6 +30,7 @@
"clean": "essex clean dist docs",
"build": "essex build --docs",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"dependencies": {

Просмотреть файл

@ -23,6 +23,7 @@
"clean": "essex clean dist lib",
"build": "essex build --mode dual --skipExportCheck --docs",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -15,6 +15,7 @@
"build": "essex build --skipExportCheck --docs",
"clean": "essex clean",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"dependencies": {

Просмотреть файл

@ -17,6 +17,7 @@
"clean": "essex clean",
"test": "NODE_OPTIONS=--experimental-vm-modules yarn node $(yarn bin jest) --runInBand",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"dependencies": {

Просмотреть файл

@ -19,6 +19,7 @@
"build": "essex build --docs",
"clean": "essex clean",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -16,6 +16,7 @@
"clean": "essex clean",
"test": "NODE_OPTIONS=--experimental-vm-modules yarn node $(yarn bin jest) --runInBand",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -3,7 +3,7 @@
* Licensed under the MIT license. See LICENSE file in the project.
*/
import cx from 'classnames'
import React, { createElement } from 'react'
import { createElement } from 'react'
export interface DefaultsObject {
id?: string

Просмотреть файл

@ -1,4 +1,4 @@
import React, { useState, useCallback, useMemo } from 'react'
import { useState, useCallback, useMemo } from 'react'
import { Toggle } from '@fluentui/react'
import { ThemeVariant, loadById } from '@thematic/core'
import { ApplicationStyles } from '@thematic/react'

Просмотреть файл

@ -13,6 +13,7 @@
"clean": "essex clean",
"build": "essex build --docs",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -16,6 +16,7 @@
"build": "essex build --skipExportCheck --docs",
"clean": "essex clean",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -16,6 +16,7 @@
"build": "essex build --skipExportCheck --docs",
"clean": "essex clean",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"dependencies": {

Просмотреть файл

@ -75,7 +75,7 @@ export const CollapsiblePanel: React.FC<CollapsiblePanelProps> = ({
: 'none',
...styles.contents,
}),
[expanded, theme],
[expanded, theme, styles.contents],
)
return (
<div>
@ -180,7 +180,7 @@ const HeaderContainer: React.FC<{
borderBottom,
...style,
}
}, [first, last, expanded, theme])
}, [first, last, expanded, theme, style])
return (
<div style={_style} onClick={onClick} onKeyDown={onKeyDown} role="group">
{children}

Просмотреть файл

@ -60,9 +60,20 @@ export function useLoadMSFTCookieScript({
const cookieBannerPlaceholderElement = document.getElementById(
cookieConsentBannerId,
)!
)
if (!cookieBannerPlaceholderElement) {
throw new Error(
`Error loading cookie-banner placeholder element. Failed to find element with id ${cookieConsentBannerId} in the DOM.`,
)
}
window.WcpConsent!.init(
if (!window.WcpConsent) {
throw new Error(
`WcpConsent is undefined - did you include the script tag?`,
)
}
window.WcpConsent.init(
language,
cookieBannerPlaceholderElement,
function initializeConsentManager(err, consentManager) {
@ -82,6 +93,10 @@ export function useLoadMSFTCookieScript({
void initialize()
}, [
cookieConsentBannerId,
cookieScriptSrc,
cookieScriptTagId,
maxScriptLoadingTimeMs,
language,
theme,
onConsentChange,

Просмотреть файл

@ -17,6 +17,7 @@
"build": "essex build --docs",
"test": "NODE_OPTIONS=--experimental-vm-modules yarn node $(yarn bin jest) --runInBand",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -19,6 +19,7 @@
"clean": "essex clean",
"build": "essex build --docs",
"lint": "essex lint",
"lint_fix": "essex lint --fix",
"release": "yarn npm publish --tolerate-republish --access public"
},
"devDependencies": {

Просмотреть файл

@ -14,6 +14,10 @@
"dependsOn": [],
"outputs": []
},
"lint_fix": {
"dependsOn": [],
"outputs": []
},
"bundle": {
"dependsOn": [],
"outputs": ["storybook_static/**"]