@cloudscape-design/components 3.0.380 → 3.0.382
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/attribute-editor/interfaces.d.ts.map +1 -1
- package/attribute-editor/interfaces.js.map +1 -1
- package/attribute-editor/row.d.ts.map +1 -1
- package/attribute-editor/row.js +7 -1
- package/attribute-editor/row.js.map +1 -1
- package/container/interfaces.d.ts +2 -4
- package/container/interfaces.d.ts.map +1 -1
- package/container/interfaces.js.map +1 -1
- package/container/styles.css.js +28 -28
- package/container/styles.scoped.css +57 -52
- package/container/styles.selectors.js +28 -28
- package/internal/analytics/components/analytics-funnel.d.ts +1 -1
- package/internal/analytics/components/analytics-funnel.js +1 -1
- package/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/internal/components/masked-input/keyboard-handler.d.ts.map +1 -1
- package/internal/components/masked-input/keyboard-handler.js +4 -0
- package/internal/components/masked-input/keyboard-handler.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
- package/internal/hooks/use-visual-mode/index.js +6 -0
- package/internal/hooks/use-visual-mode/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/side-navigation/styles.css.js +28 -28
- package/side-navigation/styles.scoped.css +39 -38
- package/side-navigation/styles.selectors.js +28 -28
- package/wizard/internal.d.ts.map +1 -1
- package/wizard/internal.js +38 -1
- package/wizard/internal.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics-funnel.js","sourceRoot":"lib/default/","sources":["internal/analytics/components/analytics-funnel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GA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AA,oBAAoB,CAAC,OAAO,oEAAI,CAAC;aAClC;QACH,CAAC,CAAA,CAAC;QACF,MAAM,CAAC,gBAAgB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;QAClD,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAC9C,OAAO,GAAG,EAAE;YACV,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;YACrD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACnD,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,UAAU;QACV,mBAAmB;QACnB,eAAe;QACf,oBAAoB;KACrB,CAAC,CAAC;IAEH,OAAO,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAAiC,CAAC;AACnG,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\n\nimport {\n FunnelStepContext,\n FunnelSubStepContext,\n FunnelContext,\n FunnelContextValue,\n FunnelStepContextValue,\n FunnelState,\n FunnelSubStepContextValue,\n} from '../context/analytics-context';\nimport { useFunnel, useFunnelStep } from '../hooks/use-funnel';\nimport { useUniqueId } from '../../hooks/use-unique-id';\nimport { useVisualRefresh } from '../../hooks/use-visual-mode';\n\nimport { PACKAGE_VERSION } from '../../environment';\n\nimport { FunnelMetrics } from '../index';\nimport { FunnelProps, FunnelStepProps, SubStepConfiguration } from '../interfaces';\n\nimport {\n DATA_ATTR_FUNNEL_STEP,\n getFunnelNameSelector,\n getNameFromSelector,\n getSubStepAllSelector,\n getSubStepNameSelector,\n getSubStepSelector,\n} from '../selectors';\nimport { useDebounceCallback } from '../../hooks/use-debounce-callback';\n\nexport const FUNNEL_VERSION = '1.0';\n\ntype AnalyticsFunnelProps = { children?: React.ReactNode } & Pick<\n FunnelProps,\n 'funnelType' | 'optionalStepNumbers' | 'totalFunnelSteps'\n>;\n\nexport const AnalyticsFunnel = (props: AnalyticsFunnelProps) => {\n const { isInFunnel } = useFunnel();\n /*\n If the current funnel component is a Form (i.e. single-page funnel), it should\n defer its funnel-handling to a parent Form element, if present.\n Wizards (i.e. multi-page funnels) always take highest precedence for handling funnels,\n and do not defer to any other element.\n */\n if (isInFunnel && props.funnelType === 'single-page') {\n return <>{props.children}</>;\n }\n\n return <InnerAnalyticsFunnel {...props} />;\n};\n\nconst InnerAnalyticsFunnel = ({ children, ...props }: AnalyticsFunnelProps) => {\n const [funnelInteractionId, setFunnelInteractionId] = useState<string>('');\n const [submissionAttempt, setSubmissionAttempt] = useState(0);\n const isVisualRefresh = useVisualRefresh();\n const funnelState = useRef<FunnelState>('default');\n const errorCount = useRef<number>(0);\n const loadingButtonCount = useRef<number>(0);\n const wizardCount = useRef<number>(0);\n const latestFocusCleanupFunction = useRef<undefined | (() => void)>(undefined);\n\n // This useEffect hook is run once on component mount to initiate the funnel analytics.\n // It first calls the 'funnelStart' method from FunnelMetrics, providing all necessary details\n // about the funnel, and receives a unique interaction id.\n // This unique interaction id is then stored in the state for further use.\n //\n // On component unmount, it checks whether the funnel was successfully completed.\n // Based on this, it either calls 'funnelComplete' or 'funnelCancelled' method from FunnelMetrics.\n //\n // The eslint-disable is required as we deliberately want this effect to run only once on mount and unmount,\n // hence we do not provide any dependencies.\n useEffect(() => {\n /*\n We run this effect with a delay, in order to detect whether this funnel contains a Wizard.\n If it does contain a Wizard, that Wizard should take precedence for handling the funnel, and\n this current funnel component should do nothing.\n */\n const handle = setTimeout(() => {\n if (props.funnelType === 'single-page' && wizardCount.current > 0) {\n return;\n }\n\n // Reset the state, in case the component was re-mounted.\n funnelState.current = 'default';\n\n const funnelInteractionId = FunnelMetrics.funnelStart({\n funnelNameSelector: getFunnelNameSelector(),\n optionalStepNumbers: props.optionalStepNumbers,\n funnelType: props.funnelType,\n totalFunnelSteps: props.totalFunnelSteps,\n componentVersion: PACKAGE_VERSION,\n theme: isVisualRefresh ? 'vr' : 'classic',\n funnelVersion: FUNNEL_VERSION,\n });\n\n setFunnelInteractionId(funnelInteractionId);\n }, 1);\n\n /*\n A funnel counts as \"successful\" if it is unmounted after being \"complete\".\n */\n /* eslint-disable react-hooks/exhaustive-deps */\n return () => {\n clearTimeout(handle);\n if (props.funnelType === 'single-page' && wizardCount.current > 0) {\n return;\n }\n\n if (funnelState.current === 'validating') {\n // Finish the validation phase early.\n FunnelMetrics.funnelComplete({ funnelInteractionId });\n funnelState.current = 'complete';\n }\n\n if (funnelState.current === 'complete') {\n FunnelMetrics.funnelSuccessful({ funnelInteractionId });\n } else {\n FunnelMetrics.funnelCancelled({ funnelInteractionId });\n funnelState.current = 'cancelled';\n }\n };\n }, []);\n /* eslint-enable react-hooks/exhaustive-deps */\n\n const funnelSubmit = () => {\n funnelState.current = 'validating';\n\n /*\n When the user attempts to submit the form, we wait for 50 milliseconds before checking\n if any form validation errors are present. This value was chosen to give enough time\n for validation and rerendering to occur, but be low enough that the user will not\n be able to take further action in the meantime.\n */\n const VALIDATION_WAIT_DELAY = 50;\n /*\n Loading is expected to take longer than validation, so we can keep the pressure on the CPU low.\n */\n const LOADING_WAIT_DELAY = 100;\n\n const checkForCompleteness = () => {\n if (funnelState.current === 'complete') {\n return;\n }\n\n if (loadingButtonCount.current > 0) {\n setTimeout(checkForCompleteness, LOADING_WAIT_DELAY);\n return;\n }\n\n if (errorCount.current === 0) {\n /*\n If no validation errors are rendered, we treat the funnel as complete.\n */\n FunnelMetrics.funnelComplete({ funnelInteractionId });\n funnelState.current = 'complete';\n } else {\n funnelState.current = 'default';\n }\n };\n\n setTimeout(checkForCompleteness, VALIDATION_WAIT_DELAY);\n };\n\n const funnelNextOrSubmitAttempt = () => setSubmissionAttempt(i => i + 1);\n\n const funnelCancel = () => {};\n\n const funnelContextValue: FunnelContextValue = {\n funnelInteractionId,\n setFunnelInteractionId,\n funnelType: props.funnelType,\n optionalStepNumbers: props.optionalStepNumbers,\n totalFunnelSteps: props.totalFunnelSteps,\n funnelSubmit,\n funnelCancel,\n submissionAttempt,\n funnelNextOrSubmitAttempt,\n funnelState,\n errorCount,\n loadingButtonCount,\n latestFocusCleanupFunction,\n isInFunnel: true,\n wizardCount,\n };\n\n return <FunnelContext.Provider value={funnelContextValue}>{children}</FunnelContext.Provider>;\n};\n\ntype AnalyticsFunnelStepProps = {\n children?: React.ReactNode | ((props: FunnelStepContextValue) => React.ReactNode);\n} & Pick<FunnelStepProps, 'stepNumber' | 'stepNameSelector'>;\n\nexport const AnalyticsFunnelStep = (props: AnalyticsFunnelStepProps) => {\n /*\n This wrapper is used to apply a `key` property to the actual (inner) AnalyticsFunnelStep\n element. This allows us to keep the state and effects separate per step.\n */\n return <InnerAnalyticsFunnelStep {...props} key={props.stepNumber} />;\n};\n\nfunction useStepChangeListener(handler: (stepConfiguration: SubStepConfiguration[]) => void) {\n /*\n Chosen so that it's hopefully shorter than a user interaction, but gives enough time for the\n amount of containers to stabilise.\n */\n const SUBSTEP_CHANGE_DEBOUNCE = 50;\n\n const listenForSubStepChanges = useRef(false);\n useEffect(() => {\n // We prevent emitting the event on the first render.\n const handle = setTimeout(() => (listenForSubStepChanges.current = true), SUBSTEP_CHANGE_DEBOUNCE);\n\n return () => {\n clearTimeout(handle);\n listenForSubStepChanges.current = false;\n };\n }, []);\n\n /* We debounce this handler, so that multiple containers can change at once without causing \n too many events. */\n const stepChangeCallback = useDebounceCallback(() => {\n // We don't want to emit the event after the component has been unmounted.\n if (!listenForSubStepChanges.current) {\n return;\n }\n\n const subSteps = Array.from(document.querySelectorAll(getSubStepAllSelector())) as HTMLElement[];\n\n const subStepConfiguration = subSteps.map((substep, index) => {\n const name = substep.querySelector(getSubStepNameSelector())?.textContent ?? '';\n return {\n name,\n number: index + 1,\n };\n });\n\n handler(subStepConfiguration);\n }, SUBSTEP_CHANGE_DEBOUNCE);\n\n return stepChangeCallback;\n}\n\nconst InnerAnalyticsFunnelStep = ({ children, stepNumber, stepNameSelector }: AnalyticsFunnelStepProps) => {\n const { funnelInteractionId, funnelState, funnelType } = useFunnel();\n const parentStep = useFunnelStep();\n const parentStepExists = parentStep.isInStep;\n const parentStepFunnelInteractionId = parentStep.funnelInteractionId;\n\n const funnelStepProps = { [DATA_ATTR_FUNNEL_STEP]: stepNumber };\n\n const subStepCount = useRef<number>(0);\n\n const onStepChange = useStepChangeListener(subStepConfiguration => {\n if (!funnelInteractionId) {\n return;\n }\n const stepName = getNameFromSelector(stepNameSelector) ?? '';\n\n FunnelMetrics.funnelStepChange({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n totalSubSteps: subStepCount.current,\n subStepConfiguration,\n });\n });\n\n // This useEffect hook is used to track the start and completion of interaction with the step.\n // On mount, if there is a valid funnel interaction id, it calls the 'funnelStepStart' method from FunnelMetrics\n // to record the beginning of the interaction with the current step.\n // On unmount, it does a similar thing but this time calling 'funnelStepComplete' to record the completion of the interaction.\n useEffect(() => {\n if (!funnelInteractionId) {\n // This step is not inside an active funnel.\n return;\n }\n if (parentStepExists && parentStepFunnelInteractionId) {\n /*\n This step is inside another step, which already reports events as\n part of an active funnel (i.e. that step is not a parent of a Wizard).\n Thus, this current step does not need to report any events.\n */\n return;\n }\n\n const stepName = getNameFromSelector(stepNameSelector);\n\n if (funnelState.current === 'default') {\n FunnelMetrics.funnelStepStart({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n totalSubSteps: subStepCount.current,\n });\n }\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n if (funnelState.current !== 'cancelled') {\n FunnelMetrics.funnelStepComplete({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n totalSubSteps: subStepCount.current,\n });\n }\n };\n }, [\n funnelInteractionId,\n stepNumber,\n stepNameSelector,\n funnelState,\n parentStepExists,\n funnelType,\n parentStepFunnelInteractionId,\n ]);\n\n const contextValue: FunnelStepContextValue = {\n stepNumber,\n stepNameSelector,\n funnelStepProps,\n subStepCount,\n isInStep: true,\n funnelInteractionId,\n onStepChange,\n };\n\n /*\n If this step is inside another step which already reports events as part of an active\n funnel (i.e. that step is not a parent of a Wizard), the current step becomes invisible\n in the hierarchy by passing the context of its parent through.\n */\n const effectiveContextValue = parentStepExists && parentStepFunnelInteractionId ? parentStep : contextValue;\n\n return (\n <FunnelStepContext.Provider value={effectiveContextValue}>\n {typeof children === 'function' ? children(effectiveContextValue) : children}\n </FunnelStepContext.Provider>\n );\n};\ninterface AnalyticsFunnelSubStepProps {\n children?: React.ReactNode;\n}\n\nexport const AnalyticsFunnelSubStep = ({ children }: AnalyticsFunnelSubStepProps) => {\n const subStepId = useUniqueId('substep');\n const subStepSelector = getSubStepSelector(subStepId);\n const subStepNameSelector = getSubStepNameSelector(subStepId);\n const subStepRef = useRef<HTMLDivElement | null>(null);\n const { subStepCount, onStepChange } = useFunnelStep();\n const mousePressed = useRef<boolean>(false);\n const isFocusedSubStep = useRef<boolean>(false);\n const focusCleanupFunction = useRef<undefined | (() => void)>(undefined);\n const { funnelState, funnelInteractionId } = useFunnel();\n const { stepNumber, stepNameSelector } = useFunnelStep();\n\n const newContext: FunnelSubStepContextValue = {\n subStepSelector,\n subStepNameSelector,\n subStepId,\n subStepRef,\n mousePressed,\n isFocusedSubStep,\n focusCleanupFunction,\n isNestedSubStep: false,\n };\n\n const inheritedContext = { ...useContext(FunnelSubStepContext), isNestedSubStep: true };\n\n const isNested = Boolean(inheritedContext.subStepId);\n\n useEffect(() => {\n if (!isNested) {\n subStepCount.current++;\n onStepChange();\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n subStepCount.current--;\n onStepChange();\n };\n }\n }, [isNested, subStepCount, onStepChange]);\n\n const context = isNested ? inheritedContext : newContext;\n\n useEffect(() => {\n const onMouseDown = () => (mousePressed.current = true);\n\n const onMouseUp = async () => {\n mousePressed.current = false;\n\n if (!isFocusedSubStep.current) {\n return;\n }\n\n /*\n Some mouse events result in an element being focused. However,\n this happens only _after_ the onMouseUp event. We yield the\n event loop here, so that `document.activeElement` has the\n correct new value. \n */\n await new Promise(r => setTimeout(r, 1));\n\n if (!subStepRef.current || !subStepRef.current.contains(document.activeElement)) {\n isFocusedSubStep.current = false;\n\n /*\n Run this substep's own focus cleanup function if another substep\n hasn't already done it for us.\n */\n focusCleanupFunction.current?.();\n }\n };\n window.addEventListener('mousedown', onMouseDown);\n window.addEventListener('mouseup', onMouseUp);\n return () => {\n window.removeEventListener('mousedown', onMouseDown);\n window.removeEventListener('mouseup', onMouseUp);\n };\n }, [\n funnelInteractionId,\n funnelState,\n stepNameSelector,\n stepNumber,\n subStepNameSelector,\n subStepSelector,\n focusCleanupFunction,\n ]);\n\n return <FunnelSubStepContext.Provider value={context}>{children}</FunnelSubStepContext.Provider>;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"analytics-funnel.js","sourceRoot":"lib/default/","sources":["internal/analytics/components/analytics-funnel.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,GAKd,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,M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YACrD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACnD,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,mBAAmB;QACnB,WAAW;QACX,gBAAgB;QAChB,UAAU;QACV,mBAAmB;QACnB,eAAe;QACf,oBAAoB;KACrB,CAAC,CAAC;IAEH,OAAO,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,IAAG,QAAQ,CAAiC,CAAC;AACnG,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef, useState } from 'react';\n\nimport {\n FunnelStepContext,\n FunnelSubStepContext,\n FunnelContext,\n FunnelContextValue,\n FunnelStepContextValue,\n FunnelState,\n FunnelSubStepContextValue,\n} from '../context/analytics-context';\nimport { useFunnel, useFunnelStep } from '../hooks/use-funnel';\nimport { useUniqueId } from '../../hooks/use-unique-id';\nimport { useVisualRefresh } from '../../hooks/use-visual-mode';\n\nimport { PACKAGE_VERSION } from '../../environment';\n\nimport { FunnelMetrics } from '../index';\nimport { FunnelProps, FunnelStepProps, SubStepConfiguration } from '../interfaces';\n\nimport {\n DATA_ATTR_FUNNEL_STEP,\n getFunnelNameSelector,\n getNameFromSelector,\n getSubStepAllSelector,\n getSubStepNameSelector,\n getSubStepSelector,\n} from '../selectors';\nimport { useDebounceCallback } from '../../hooks/use-debounce-callback';\n\nexport const FUNNEL_VERSION = '1.1';\n\ntype AnalyticsFunnelProps = { children?: React.ReactNode } & Pick<\n FunnelProps,\n 'funnelType' | 'optionalStepNumbers' | 'totalFunnelSteps'\n>;\n\nexport const AnalyticsFunnel = (props: AnalyticsFunnelProps) => {\n const { isInFunnel } = useFunnel();\n /*\n If the current funnel component is a Form (i.e. single-page funnel), it should\n defer its funnel-handling to a parent Form element, if present.\n Wizards (i.e. multi-page funnels) always take highest precedence for handling funnels,\n and do not defer to any other element.\n */\n if (isInFunnel && props.funnelType === 'single-page') {\n return <>{props.children}</>;\n }\n\n return <InnerAnalyticsFunnel {...props} />;\n};\n\nconst InnerAnalyticsFunnel = ({ children, ...props }: AnalyticsFunnelProps) => {\n const [funnelInteractionId, setFunnelInteractionId] = useState<string>('');\n const [submissionAttempt, setSubmissionAttempt] = useState(0);\n const isVisualRefresh = useVisualRefresh();\n const funnelState = useRef<FunnelState>('default');\n const errorCount = useRef<number>(0);\n const loadingButtonCount = useRef<number>(0);\n const wizardCount = useRef<number>(0);\n const latestFocusCleanupFunction = useRef<undefined | (() => void)>(undefined);\n\n // This useEffect hook is run once on component mount to initiate the funnel analytics.\n // It first calls the 'funnelStart' method from FunnelMetrics, providing all necessary details\n // about the funnel, and receives a unique interaction id.\n // This unique interaction id is then stored in the state for further use.\n //\n // On component unmount, it checks whether the funnel was successfully completed.\n // Based on this, it either calls 'funnelComplete' or 'funnelCancelled' method from FunnelMetrics.\n //\n // The eslint-disable is required as we deliberately want this effect to run only once on mount and unmount,\n // hence we do not provide any dependencies.\n useEffect(() => {\n /*\n We run this effect with a delay, in order to detect whether this funnel contains a Wizard.\n If it does contain a Wizard, that Wizard should take precedence for handling the funnel, and\n this current funnel component should do nothing.\n */\n const handle = setTimeout(() => {\n if (props.funnelType === 'single-page' && wizardCount.current > 0) {\n return;\n }\n\n // Reset the state, in case the component was re-mounted.\n funnelState.current = 'default';\n\n const funnelInteractionId = FunnelMetrics.funnelStart({\n funnelNameSelector: getFunnelNameSelector(),\n optionalStepNumbers: props.optionalStepNumbers,\n funnelType: props.funnelType,\n totalFunnelSteps: props.totalFunnelSteps,\n componentVersion: PACKAGE_VERSION,\n theme: isVisualRefresh ? 'vr' : 'classic',\n funnelVersion: FUNNEL_VERSION,\n });\n\n setFunnelInteractionId(funnelInteractionId);\n }, 1);\n\n /*\n A funnel counts as \"successful\" if it is unmounted after being \"complete\".\n */\n /* eslint-disable react-hooks/exhaustive-deps */\n return () => {\n clearTimeout(handle);\n if (props.funnelType === 'single-page' && wizardCount.current > 0) {\n return;\n }\n\n if (funnelState.current === 'validating') {\n // Finish the validation phase early.\n FunnelMetrics.funnelComplete({ funnelInteractionId });\n funnelState.current = 'complete';\n }\n\n if (funnelState.current === 'complete') {\n FunnelMetrics.funnelSuccessful({ funnelInteractionId });\n } else {\n FunnelMetrics.funnelCancelled({ funnelInteractionId });\n funnelState.current = 'cancelled';\n }\n };\n }, []);\n /* eslint-enable react-hooks/exhaustive-deps */\n\n const funnelSubmit = () => {\n funnelState.current = 'validating';\n\n /*\n When the user attempts to submit the form, we wait for 50 milliseconds before checking\n if any form validation errors are present. This value was chosen to give enough time\n for validation and rerendering to occur, but be low enough that the user will not\n be able to take further action in the meantime.\n */\n const VALIDATION_WAIT_DELAY = 50;\n /*\n Loading is expected to take longer than validation, so we can keep the pressure on the CPU low.\n */\n const LOADING_WAIT_DELAY = 100;\n\n const checkForCompleteness = () => {\n if (funnelState.current === 'complete') {\n return;\n }\n\n if (loadingButtonCount.current > 0) {\n setTimeout(checkForCompleteness, LOADING_WAIT_DELAY);\n return;\n }\n\n if (errorCount.current === 0) {\n /*\n If no validation errors are rendered, we treat the funnel as complete.\n */\n FunnelMetrics.funnelComplete({ funnelInteractionId });\n funnelState.current = 'complete';\n } else {\n funnelState.current = 'default';\n }\n };\n\n setTimeout(checkForCompleteness, VALIDATION_WAIT_DELAY);\n };\n\n const funnelNextOrSubmitAttempt = () => setSubmissionAttempt(i => i + 1);\n\n const funnelCancel = () => {};\n\n const funnelContextValue: FunnelContextValue = {\n funnelInteractionId,\n setFunnelInteractionId,\n funnelType: props.funnelType,\n optionalStepNumbers: props.optionalStepNumbers,\n totalFunnelSteps: props.totalFunnelSteps,\n funnelSubmit,\n funnelCancel,\n submissionAttempt,\n funnelNextOrSubmitAttempt,\n funnelState,\n errorCount,\n loadingButtonCount,\n latestFocusCleanupFunction,\n isInFunnel: true,\n wizardCount,\n };\n\n return <FunnelContext.Provider value={funnelContextValue}>{children}</FunnelContext.Provider>;\n};\n\ntype AnalyticsFunnelStepProps = {\n children?: React.ReactNode | ((props: FunnelStepContextValue) => React.ReactNode);\n} & Pick<FunnelStepProps, 'stepNumber' | 'stepNameSelector'>;\n\nexport const AnalyticsFunnelStep = (props: AnalyticsFunnelStepProps) => {\n /*\n This wrapper is used to apply a `key` property to the actual (inner) AnalyticsFunnelStep\n element. This allows us to keep the state and effects separate per step.\n */\n return <InnerAnalyticsFunnelStep {...props} key={props.stepNumber} />;\n};\n\nfunction useStepChangeListener(handler: (stepConfiguration: SubStepConfiguration[]) => void) {\n /*\n Chosen so that it's hopefully shorter than a user interaction, but gives enough time for the\n amount of containers to stabilise.\n */\n const SUBSTEP_CHANGE_DEBOUNCE = 50;\n\n const listenForSubStepChanges = useRef(false);\n useEffect(() => {\n // We prevent emitting the event on the first render.\n const handle = setTimeout(() => (listenForSubStepChanges.current = true), SUBSTEP_CHANGE_DEBOUNCE);\n\n return () => {\n clearTimeout(handle);\n listenForSubStepChanges.current = false;\n };\n }, []);\n\n /* We debounce this handler, so that multiple containers can change at once without causing \n too many events. */\n const stepChangeCallback = useDebounceCallback(() => {\n // We don't want to emit the event after the component has been unmounted.\n if (!listenForSubStepChanges.current) {\n return;\n }\n\n const subSteps = Array.from(document.querySelectorAll<HTMLElement>(getSubStepAllSelector()));\n\n const subStepConfiguration = subSteps.map((substep, index) => {\n const name = substep.querySelector(getSubStepNameSelector())?.textContent ?? '';\n return {\n name,\n number: index + 1,\n };\n });\n\n handler(subStepConfiguration);\n }, SUBSTEP_CHANGE_DEBOUNCE);\n\n return stepChangeCallback;\n}\n\nconst InnerAnalyticsFunnelStep = ({ children, stepNumber, stepNameSelector }: AnalyticsFunnelStepProps) => {\n const { funnelInteractionId, funnelState, funnelType } = useFunnel();\n const parentStep = useFunnelStep();\n const parentStepExists = parentStep.isInStep;\n const parentStepFunnelInteractionId = parentStep.funnelInteractionId;\n\n const funnelStepProps = { [DATA_ATTR_FUNNEL_STEP]: stepNumber };\n\n const subStepCount = useRef<number>(0);\n\n const onStepChange = useStepChangeListener(subStepConfiguration => {\n if (!funnelInteractionId) {\n return;\n }\n const stepName = getNameFromSelector(stepNameSelector) ?? '';\n\n FunnelMetrics.funnelStepChange({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n totalSubSteps: subStepCount.current,\n subStepConfiguration,\n });\n });\n\n // This useEffect hook is used to track the start and completion of interaction with the step.\n // On mount, if there is a valid funnel interaction id, it calls the 'funnelStepStart' method from FunnelMetrics\n // to record the beginning of the interaction with the current step.\n // On unmount, it does a similar thing but this time calling 'funnelStepComplete' to record the completion of the interaction.\n useEffect(() => {\n if (!funnelInteractionId) {\n // This step is not inside an active funnel.\n return;\n }\n if (parentStepExists && parentStepFunnelInteractionId) {\n /*\n This step is inside another step, which already reports events as\n part of an active funnel (i.e. that step is not a parent of a Wizard).\n Thus, this current step does not need to report any events.\n */\n return;\n }\n\n const stepName = getNameFromSelector(stepNameSelector);\n\n if (funnelState.current === 'default') {\n FunnelMetrics.funnelStepStart({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n totalSubSteps: subStepCount.current,\n });\n }\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n if (funnelState.current !== 'cancelled') {\n FunnelMetrics.funnelStepComplete({\n funnelInteractionId,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n totalSubSteps: subStepCount.current,\n });\n }\n };\n }, [\n funnelInteractionId,\n stepNumber,\n stepNameSelector,\n funnelState,\n parentStepExists,\n funnelType,\n parentStepFunnelInteractionId,\n ]);\n\n const contextValue: FunnelStepContextValue = {\n stepNumber,\n stepNameSelector,\n funnelStepProps,\n subStepCount,\n isInStep: true,\n funnelInteractionId,\n onStepChange,\n };\n\n /*\n If this step is inside another step which already reports events as part of an active\n funnel (i.e. that step is not a parent of a Wizard), the current step becomes invisible\n in the hierarchy by passing the context of its parent through.\n */\n const effectiveContextValue = parentStepExists && parentStepFunnelInteractionId ? parentStep : contextValue;\n\n return (\n <FunnelStepContext.Provider value={effectiveContextValue}>\n {typeof children === 'function' ? children(effectiveContextValue) : children}\n </FunnelStepContext.Provider>\n );\n};\ninterface AnalyticsFunnelSubStepProps {\n children?: React.ReactNode;\n}\n\nexport const AnalyticsFunnelSubStep = ({ children }: AnalyticsFunnelSubStepProps) => {\n const subStepId = useUniqueId('substep');\n const subStepSelector = getSubStepSelector(subStepId);\n const subStepNameSelector = getSubStepNameSelector(subStepId);\n const subStepRef = useRef<HTMLDivElement | null>(null);\n const { subStepCount, onStepChange } = useFunnelStep();\n const mousePressed = useRef<boolean>(false);\n const isFocusedSubStep = useRef<boolean>(false);\n const focusCleanupFunction = useRef<undefined | (() => void)>(undefined);\n const { funnelState, funnelInteractionId } = useFunnel();\n const { stepNumber, stepNameSelector } = useFunnelStep();\n\n const newContext: FunnelSubStepContextValue = {\n subStepSelector,\n subStepNameSelector,\n subStepId,\n subStepRef,\n mousePressed,\n isFocusedSubStep,\n focusCleanupFunction,\n isNestedSubStep: false,\n };\n\n const inheritedContext = { ...useContext(FunnelSubStepContext), isNestedSubStep: true };\n\n const isNested = Boolean(inheritedContext.subStepId);\n\n useEffect(() => {\n if (!isNested) {\n subStepCount.current++;\n onStepChange();\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n subStepCount.current--;\n onStepChange();\n };\n }\n }, [isNested, subStepCount, onStepChange]);\n\n const context = isNested ? inheritedContext : newContext;\n\n useEffect(() => {\n const onMouseDown = () => (mousePressed.current = true);\n\n const onMouseUp = async () => {\n mousePressed.current = false;\n\n if (!isFocusedSubStep.current) {\n return;\n }\n\n /*\n Some mouse events result in an element being focused. However,\n this happens only _after_ the onMouseUp event. We yield the\n event loop here, so that `document.activeElement` has the\n correct new value. \n */\n await new Promise(r => setTimeout(r, 1));\n\n if (!subStepRef.current || !subStepRef.current.contains(document.activeElement)) {\n isFocusedSubStep.current = false;\n\n /*\n Run this substep's own focus cleanup function if another substep\n hasn't already done it for us.\n */\n focusCleanupFunction.current?.();\n }\n };\n window.addEventListener('mousedown', onMouseDown);\n window.addEventListener('mouseup', onMouseUp);\n return () => {\n window.removeEventListener('mousedown', onMouseDown);\n window.removeEventListener('mouseup', onMouseUp);\n };\n }, [\n funnelInteractionId,\n funnelState,\n stepNameSelector,\n stepNumber,\n subStepNameSelector,\n subStepSelector,\n focusCleanupFunction,\n ]);\n\n return <FunnelSubStepContext.Provider value={context}>{children}</FunnelSubStepContext.Provider>;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-handler.d.ts","sourceRoot":"lib/default/","sources":["internal/components/masked-input/keyboard-handler.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,iBACb,MAAM,UACZ,UAAU,kBACF,MAAM,gBACR,MAAM,KACnB,aAoCF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,iBACP,MAAM,OACf,MAAM,UACH,UAAU,kBACF,MAAM,gBACR,MAAM,KACnB,aAoBF,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,UAAU,UAAU,KAAG,
|
|
1
|
+
{"version":3,"file":"keyboard-handler.d.ts","sourceRoot":"lib/default/","sources":["internal/components/masked-input/keyboard-handler.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAE7C,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,iBACb,MAAM,UACZ,UAAU,kBACF,MAAM,gBACR,MAAM,KACnB,aAoCF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,iBACP,MAAM,OACf,MAAM,UACH,UAAU,kBACF,MAAM,gBACR,MAAM,KACnB,aAoBF,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,UAAU,UAAU,KAAG,aAQhE,CAAC"}
|
|
@@ -66,6 +66,10 @@ export const keyHandler = (initialValue, key, format, selectionStart, selectionE
|
|
|
66
66
|
return format.processKey(value, key, position);
|
|
67
67
|
};
|
|
68
68
|
export const enterHandler = (value, format) => {
|
|
69
|
+
// Do not autocomplete if input is empty
|
|
70
|
+
if (!value) {
|
|
71
|
+
return { value: '', position: 0 };
|
|
72
|
+
}
|
|
69
73
|
const autoCompletedValue = format.autoComplete(value);
|
|
70
74
|
const position = autoCompletedValue.length;
|
|
71
75
|
return { value: autoCompletedValue, position };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyboard-handler.js","sourceRoot":"lib/default/","sources":["internal/components/masked-input/keyboard-handler.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,MAAkB,EAClB,cAAsB,EACtB,YAAoB,EACL,EAAE;IACjB,MAAM,eAAe,GAAG,cAAc,KAAK,YAAY,CAAC;IACxD,IAAI,eAAe,EAAE;QACnB,MAAM,aAAa,GAAG,YAAY,KAAK,YAAY,CAAC,MAAM,CAAC;QAC3D,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,MAAM,CAAC,uBAAuB,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,CAAC,CAAC;SACnF;QAED,OAAO;YACL,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC;YAC5C,QAAQ,EAAE,cAAc;SACzB,CAAC;KACH;IAED,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,cAAc,CA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AAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;KACzC;IAED,IAAI,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE;QACxC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,CAAC,EAAE,CAAC;KAC1C;IAED,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,MAAkB,EAAiB,EAAE;IAC/E,MAAM,kBAAkB,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC;AACjD,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport MaskFormat from './utils/mask-format';\n\nexport interface HandlerResult {\n position: number;\n value: string;\n}\n\n/**\n * Handles character removal\n *\n * @param initialValue Current value of input\n * @param format MaskFormat object\n * @param selectionStart Starting index value of selection cursor\n * @param selectionEnd Ending Index value of selection cursor\n */\nexport const backspaceHandler = (\n initialValue: string,\n format: MaskFormat,\n selectionStart: number,\n selectionEnd: number\n): HandlerResult => {\n const multiCharDelete = selectionStart !== selectionEnd;\n if (multiCharDelete) {\n const isCursorAtEnd = selectionEnd === initialValue.length;\n if (!isCursorAtEnd) {\n return format.replaceDigitsWithZeroes(initialValue, selectionStart, selectionEnd);\n }\n\n return {\n value: initialValue.slice(0, selectionStart),\n position: selectionStart,\n };\n }\n\n const isSeparator = format.isSegmentStart(selectionStart);\n const atEnd = selectionStart === initialValue.length;\n\n if (!atEnd) {\n if (isSeparator) {\n return format.deleteSeparator(initialValue, selectionStart);\n } else {\n return format.deleteDigit(initialValue, selectionStart);\n }\n }\n\n if (isSeparator) {\n return {\n value: initialValue.slice(0, selectionStart - 2),\n position: selectionStart - 2,\n };\n }\n\n return {\n value: initialValue.slice(0, selectionStart - 1),\n position: selectionStart - 1,\n };\n};\n\n/**\n * Handle key down events\n *\n * @param initialValue Current value of input\n * @param key Key that was pressed\n * @param format MaskFormat object\n * @param selectionStart Starting index value of selection cursor\n * @param selectionEnd Ending Index value of selection cursor\n */\nexport const keyHandler = (\n initialValue: string,\n key: string,\n format: MaskFormat,\n selectionStart: number,\n selectionEnd: number\n): HandlerResult => {\n let value = initialValue;\n const position = selectionStart;\n\n // return if no more digits can be added at the end\n if (selectionStart === value.length && value.length === format.getMaxLength()) {\n return { value, position };\n }\n\n // if range is selected to the end, remove all of that selection first\n if (selectionStart !== value.length && selectionEnd === value.length) {\n const sliceEnd = format.isCursorAtSeparator(selectionStart) ? selectionStart + 1 : selectionStart;\n value = initialValue.slice(0, sliceEnd);\n }\n\n if (format.isCursorAtSeparator(position)) {\n return { value, position: position + 1 };\n }\n\n return format.processKey(value, key, position);\n};\n\nexport const enterHandler = (value: string, format: MaskFormat): HandlerResult => {\n const autoCompletedValue = format.autoComplete(value);\n const position = autoCompletedValue.length;\n return { value: autoCompletedValue, position };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"keyboard-handler.js","sourceRoot":"lib/default/","sources":["internal/components/masked-input/keyboard-handler.ts"],"names":[],"mappings":"AASA;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,YAAoB,EACpB,MAAkB,EAClB,cAAsB,EACtB,YAAoB,EACL,EAAE;IACjB,MAAM,eAAe,GAAG,cAAc,KAAK,YAAY,CAAC;IACxD,IAAI,eAAe,EAAE;QACnB,MAAM,aAAa,GAAG,YAAY,KAAK,YAAY,CAAC,MAAM,CAAC;QAC3D,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,MAAM,CAAC,uBAAuB,CAAC,YAAY,EAAE,cAAc,EAAE,YAAY,CA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AAY,KAAK,KAAK,CAAC,MAAM,EAAE;QACpE,MAAM,QAAQ,GAAG,MAAM,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;QAClG,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;KACzC;IAED,IAAI,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE;QACxC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,CAAC,EAAE,CAAC;KAC1C;IAED,OAAO,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,MAAkB,EAAiB,EAAE;IAC/E,wCAAwC;IACxC,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC;KACnC;IACD,MAAM,kBAAkB,GAAG,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,MAAM,CAAC;IAC3C,OAAO,EAAE,KAAK,EAAE,kBAAkB,EAAE,QAAQ,EAAE,CAAC;AACjD,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport MaskFormat from './utils/mask-format';\n\nexport interface HandlerResult {\n position: number;\n value: string;\n}\n\n/**\n * Handles character removal\n *\n * @param initialValue Current value of input\n * @param format MaskFormat object\n * @param selectionStart Starting index value of selection cursor\n * @param selectionEnd Ending Index value of selection cursor\n */\nexport const backspaceHandler = (\n initialValue: string,\n format: MaskFormat,\n selectionStart: number,\n selectionEnd: number\n): HandlerResult => {\n const multiCharDelete = selectionStart !== selectionEnd;\n if (multiCharDelete) {\n const isCursorAtEnd = selectionEnd === initialValue.length;\n if (!isCursorAtEnd) {\n return format.replaceDigitsWithZeroes(initialValue, selectionStart, selectionEnd);\n }\n\n return {\n value: initialValue.slice(0, selectionStart),\n position: selectionStart,\n };\n }\n\n const isSeparator = format.isSegmentStart(selectionStart);\n const atEnd = selectionStart === initialValue.length;\n\n if (!atEnd) {\n if (isSeparator) {\n return format.deleteSeparator(initialValue, selectionStart);\n } else {\n return format.deleteDigit(initialValue, selectionStart);\n }\n }\n\n if (isSeparator) {\n return {\n value: initialValue.slice(0, selectionStart - 2),\n position: selectionStart - 2,\n };\n }\n\n return {\n value: initialValue.slice(0, selectionStart - 1),\n position: selectionStart - 1,\n };\n};\n\n/**\n * Handle key down events\n *\n * @param initialValue Current value of input\n * @param key Key that was pressed\n * @param format MaskFormat object\n * @param selectionStart Starting index value of selection cursor\n * @param selectionEnd Ending Index value of selection cursor\n */\nexport const keyHandler = (\n initialValue: string,\n key: string,\n format: MaskFormat,\n selectionStart: number,\n selectionEnd: number\n): HandlerResult => {\n let value = initialValue;\n const position = selectionStart;\n\n // return if no more digits can be added at the end\n if (selectionStart === value.length && value.length === format.getMaxLength()) {\n return { value, position };\n }\n\n // if range is selected to the end, remove all of that selection first\n if (selectionStart !== value.length && selectionEnd === value.length) {\n const sliceEnd = format.isCursorAtSeparator(selectionStart) ? selectionStart + 1 : selectionStart;\n value = initialValue.slice(0, sliceEnd);\n }\n\n if (format.isCursorAtSeparator(position)) {\n return { value, position: position + 1 };\n }\n\n return format.processKey(value, key, position);\n};\n\nexport const enterHandler = (value: string, format: MaskFormat): HandlerResult => {\n // Do not autocomplete if input is empty\n if (!value) {\n return { value: '', position: 0 };\n }\n const autoCompletedValue = format.autoComplete(value);\n const position = autoCompletedValue.length;\n return { value: autoCompletedValue, position };\n};\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,gBAAgB,eAA+D,CAAC;AAM7F,wBAAgB,uBAAuB,SAEtC;AAMD,wBAAgB,uBAAuB,YAmBtC"}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { ALWAYS_VISUAL_REFRESH } from '../../environment';
|
|
4
4
|
import { isDevelopment } from '../../is-development';
|
|
5
5
|
import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
|
|
6
|
+
const awsuiVisualRefreshFlag = Symbol.for('awsui-visual-refresh-flag');
|
|
6
7
|
export const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useVisualRefreshDynamic;
|
|
7
8
|
// We expect VR is to be set only once and before the application is rendered.
|
|
8
9
|
let visualRefreshState = undefined;
|
|
@@ -14,8 +15,13 @@ function detectVisualRefresh() {
|
|
|
14
15
|
return typeof document !== 'undefined' && !!document.querySelector('.awsui-visual-refresh');
|
|
15
16
|
}
|
|
16
17
|
export function useVisualRefreshDynamic() {
|
|
18
|
+
var _a;
|
|
17
19
|
if (visualRefreshState === undefined) {
|
|
18
20
|
visualRefreshState = detectVisualRefresh();
|
|
21
|
+
if (!visualRefreshState && typeof window !== 'undefined' && ((_a = window[awsuiVisualRefreshFlag]) === null || _a === void 0 ? void 0 : _a.call(window))) {
|
|
22
|
+
document.body.classList.add('awsui-visual-refresh');
|
|
23
|
+
visualRefreshState = true;
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
if (isDevelopment) {
|
|
21
27
|
const newVisualRefreshState = detectVisualRefresh();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-visual-mode/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EA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AI,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC9F,CAAC;AAED,MAAM,UAAU,uBAAuB;;IACrC,IAAI,kBAAkB,KAAK,SAAS,EAAE;QACpC,kBAAkB,GAAG,mBAAmB,EAAE,CAAC;QAC3C,IAAI,CAAC,kBAAkB,IAAI,OAAO,MAAM,KAAK,WAAW,KAAI,MAAA,MAAM,CAAC,sBAAsB,CAAC,sDAAI,CAAA,EAAE;YAC9F,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;YACpD,kBAAkB,GAAG,IAAI,CAAC;SAC3B;KACF;IACD,IAAI,aAAa,EAAE;QACjB,MAAM,qBAAqB,GAAG,mBAAmB,EAAE,CAAC;QACpD,IAAI,qBAAqB,KAAK,kBAAkB,EAAE;YAChD,QAAQ,CACN,gBAAgB,EAChB,iEAAiE;gBAC/D,kGAAkG,CACrG,CAAC;SACH;KACF;IACD,OAAO,kBAAkB,CAAC;AAC5B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ALWAYS_VISUAL_REFRESH } from '../../environment';\nimport { isDevelopment } from '../../is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nconst awsuiVisualRefreshFlag = Symbol.for('awsui-visual-refresh-flag');\ninterface ExtendedWindow extends Window {\n [awsuiVisualRefreshFlag]?: () => boolean;\n}\ndeclare const window: ExtendedWindow;\n\nexport const useVisualRefresh = ALWAYS_VISUAL_REFRESH ? () => true : useVisualRefreshDynamic;\n\n// We expect VR is to be set only once and before the application is rendered.\nlet visualRefreshState: undefined | boolean = undefined;\n\n// for testing\nexport function clearVisualRefreshState() {\n visualRefreshState = undefined;\n}\n\nfunction detectVisualRefresh() {\n return typeof document !== 'undefined' && !!document.querySelector('.awsui-visual-refresh');\n}\n\nexport function useVisualRefreshDynamic() {\n if (visualRefreshState === undefined) {\n visualRefreshState = detectVisualRefresh();\n if (!visualRefreshState && typeof window !== 'undefined' && window[awsuiVisualRefreshFlag]?.()) {\n document.body.classList.add('awsui-visual-refresh');\n visualRefreshState = true;\n }\n }\n if (isDevelopment) {\n const newVisualRefreshState = detectVisualRefresh();\n if (newVisualRefreshState !== visualRefreshState) {\n warnOnce(\n 'Visual Refresh',\n 'Dynamic visual refresh change detected. This is not supported. ' +\n 'Make sure `awsui-visual-refresh` is attached to the `<body>` element before initial React render'\n );\n }\n }\n return visualRefreshState;\n}\n"]}
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header": "
|
|
6
|
-
"header-link": "awsui_header-
|
|
7
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
8
|
-
"header-link-text": "awsui_header-link-
|
|
9
|
-
"header-logo": "awsui_header-
|
|
10
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
11
|
-
"list-container": "awsui_list-
|
|
12
|
-
"list": "
|
|
13
|
-
"list-variant-root": "awsui_list-variant-
|
|
14
|
-
"list-variant-root--last": "awsui_list-variant-root--
|
|
15
|
-
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-
|
|
16
|
-
"list-item": "awsui_list-
|
|
17
|
-
"section": "
|
|
18
|
-
"expandable-link-group": "awsui_expandable-link-
|
|
19
|
-
"section--no-ident": "awsui_section--no-
|
|
20
|
-
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-
|
|
21
|
-
"refresh": "
|
|
22
|
-
"list-variant-section-group": "awsui_list-variant-section-
|
|
23
|
-
"section-group": "awsui_section-
|
|
24
|
-
"section-group-title": "awsui_section-group-
|
|
25
|
-
"link": "
|
|
26
|
-
"link-active": "awsui_link-
|
|
27
|
-
"info": "
|
|
28
|
-
"external-icon": "awsui_external-
|
|
29
|
-
"divider": "
|
|
30
|
-
"divider-default": "awsui_divider-
|
|
31
|
-
"divider-header": "awsui_divider-
|
|
4
|
+
"root": "awsui_root_l0dv0_40ke2_93",
|
|
5
|
+
"header": "awsui_header_l0dv0_40ke2_109",
|
|
6
|
+
"header-link": "awsui_header-link_l0dv0_40ke2_120",
|
|
7
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_40ke2_130",
|
|
8
|
+
"header-link-text": "awsui_header-link-text_l0dv0_40ke2_130",
|
|
9
|
+
"header-logo": "awsui_header-logo_l0dv0_40ke2_135",
|
|
10
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_40ke2_141",
|
|
11
|
+
"list-container": "awsui_list-container_l0dv0_40ke2_146",
|
|
12
|
+
"list": "awsui_list_l0dv0_40ke2_146",
|
|
13
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_40ke2_156",
|
|
14
|
+
"list-variant-root--last": "awsui_list-variant-root--last_l0dv0_40ke2_160",
|
|
15
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_40ke2_164",
|
|
16
|
+
"list-item": "awsui_list-item_l0dv0_40ke2_168",
|
|
17
|
+
"section": "awsui_section_l0dv0_40ke2_174",
|
|
18
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_40ke2_175",
|
|
19
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_40ke2_178",
|
|
20
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_40ke2_179",
|
|
21
|
+
"refresh": "awsui_refresh_l0dv0_40ke2_188",
|
|
22
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_40ke2_196",
|
|
23
|
+
"section-group": "awsui_section-group_l0dv0_40ke2_201",
|
|
24
|
+
"section-group-title": "awsui_section-group-title_l0dv0_40ke2_211",
|
|
25
|
+
"link": "awsui_link_l0dv0_40ke2_215",
|
|
26
|
+
"link-active": "awsui_link-active_l0dv0_40ke2_224",
|
|
27
|
+
"info": "awsui_info_l0dv0_40ke2_258",
|
|
28
|
+
"external-icon": "awsui_external-icon_l0dv0_40ke2_262",
|
|
29
|
+
"divider": "awsui_divider_l0dv0_40ke2_266",
|
|
30
|
+
"divider-default": "awsui_divider-default_l0dv0_40ke2_271",
|
|
31
|
+
"divider-header": "awsui_divider-header_l0dv0_40ke2_275"
|
|
32
32
|
};
|
|
33
33
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
93
|
+
.awsui_root_l0dv0_40ke2_93:not(#\9) {
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
95
|
border-collapse: separate;
|
|
96
96
|
border-spacing: 0;
|
|
@@ -132,7 +132,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
132
132
|
word-break: break-word;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.awsui_header_l0dv0_40ke2_109:not(#\9) {
|
|
136
136
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
137
137
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
138
138
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -143,7 +143,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
143
143
|
padding-right: calc(var(--space-scaled-xxl-wbot5q, 32px) + var(--space-xl-lmui9r, 24px));
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
.awsui_header-
|
|
146
|
+
.awsui_header-link_l0dv0_40ke2_120:not(#\9) {
|
|
147
147
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
148
148
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
149
149
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -153,77 +153,78 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
153
153
|
min-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
154
154
|
display: flex;
|
|
155
155
|
}
|
|
156
|
-
.awsui_header-link--has-
|
|
156
|
+
.awsui_header-link--has-logo_l0dv0_40ke2_130 > .awsui_header-link-text_l0dv0_40ke2_130:not(#\9) {
|
|
157
157
|
font-weight: 400;
|
|
158
|
+
align-self: center;
|
|
158
159
|
}
|
|
159
160
|
|
|
160
|
-
.awsui_header-
|
|
161
|
+
.awsui_header-logo_l0dv0_40ke2_135:not(#\9) {
|
|
161
162
|
margin-right: var(--space-s-34lx8l, 12px);
|
|
162
163
|
margin-top: var(--space-xxxs-zbmxqb, 2px);
|
|
163
164
|
max-width: calc(1.25 * var(--size-icon-big-zkdryd, 32px));
|
|
164
165
|
align-self: flex-start;
|
|
165
166
|
}
|
|
166
|
-
.awsui_header-logo--
|
|
167
|
+
.awsui_header-logo--stretched_l0dv0_40ke2_141:not(#\9) {
|
|
167
168
|
max-width: 100%;
|
|
168
169
|
margin-right: 0;
|
|
169
170
|
}
|
|
170
171
|
|
|
171
|
-
.awsui_list-
|
|
172
|
+
.awsui_list-container_l0dv0_40ke2_146:not(#\9) {
|
|
172
173
|
margin-top: var(--space-scaled-l-0hpmd7, 20px);
|
|
173
174
|
}
|
|
174
175
|
|
|
175
|
-
.
|
|
176
|
+
.awsui_list_l0dv0_40ke2_146:not(#\9) {
|
|
176
177
|
margin: 0;
|
|
177
178
|
padding: 0;
|
|
178
179
|
padding-left: var(--space-l-t419sm, 20px);
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
.awsui_list-variant-
|
|
182
|
+
.awsui_list-variant-root_l0dv0_40ke2_156:not(#\9) {
|
|
182
183
|
margin: 0;
|
|
183
184
|
padding: 0 var(--space-panel-side-right-xofg51, 24px) 0 var(--space-panel-nav-left-b1g0mt, 28px);
|
|
184
185
|
}
|
|
185
|
-
.awsui_list-variant-root--
|
|
186
|
+
.awsui_list-variant-root--last_l0dv0_40ke2_160:not(#\9) {
|
|
186
187
|
margin-bottom: var(--space-scaled-xxxl-fdg8ai, 40px);
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
.awsui_list-variant-expandable-link-
|
|
190
|
+
.awsui_list-variant-expandable-link-group_l0dv0_40ke2_164:not(#\9) {
|
|
190
191
|
padding-left: var(--space-xxxl-4x2gki, 40px);
|
|
191
192
|
}
|
|
192
193
|
|
|
193
|
-
.awsui_list-
|
|
194
|
+
.awsui_list-item_l0dv0_40ke2_168:not(#\9) {
|
|
194
195
|
margin: var(--space-scaled-xs-26e2du, 8px) 0;
|
|
195
196
|
padding: 0;
|
|
196
197
|
list-style: none;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
.
|
|
200
|
-
.awsui_expandable-link-
|
|
200
|
+
.awsui_section_l0dv0_40ke2_174:not(#\9),
|
|
201
|
+
.awsui_expandable-link-group_l0dv0_40ke2_175:not(#\9) {
|
|
201
202
|
margin-left: calc(-1 * var(--space-l-t419sm, 20px));
|
|
202
203
|
}
|
|
203
|
-
.awsui_section--no-
|
|
204
|
-
.awsui_expandable-link-group--no-
|
|
204
|
+
.awsui_section--no-ident_l0dv0_40ke2_178:not(#\9),
|
|
205
|
+
.awsui_expandable-link-group--no-ident_l0dv0_40ke2_179:not(#\9) {
|
|
205
206
|
margin-left: 0;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
|
-
.
|
|
209
|
+
.awsui_section_l0dv0_40ke2_174:not(#\9) {
|
|
209
210
|
margin-top: calc(var(--space-scaled-2x-l-ujnz41, 20px) - var(--border-divider-section-width-8a5uu9, 2px));
|
|
210
211
|
margin-bottom: calc(var(--space-scaled-2x-l-ujnz41, 20px) - var(--border-divider-section-width-8a5uu9, 2px));
|
|
211
212
|
/* stylelint-disable-next-line selector-max-type */
|
|
212
213
|
}
|
|
213
|
-
.
|
|
214
|
+
.awsui_section_l0dv0_40ke2_174.awsui_refresh_l0dv0_40ke2_188:not(#\9) {
|
|
214
215
|
margin-top: calc(var(--space-scaled-2x-m-owtj1o, 16px) - var(--border-divider-section-width-8a5uu9, 2px));
|
|
215
216
|
margin-bottom: calc(var(--space-scaled-2x-m-owtj1o, 16px) - var(--border-divider-section-width-8a5uu9, 2px));
|
|
216
217
|
}
|
|
217
|
-
.
|
|
218
|
+
.awsui_section_l0dv0_40ke2_174 > div:not(#\9) {
|
|
218
219
|
padding: 0;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
|
-
.awsui_list-variant-section-
|
|
222
|
+
.awsui_list-variant-section-group_l0dv0_40ke2_196:not(#\9) {
|
|
222
223
|
margin: 0;
|
|
223
224
|
padding: 0;
|
|
224
225
|
}
|
|
225
226
|
|
|
226
|
-
.awsui_section-
|
|
227
|
+
.awsui_section-group_l0dv0_40ke2_201:not(#\9) {
|
|
227
228
|
font-size: var(--font-size-heading-m-sjd256, 18px);
|
|
228
229
|
line-height: var(--line-height-heading-m-50evfk, 22px);
|
|
229
230
|
letter-spacing: var(--letter-spacing-heading-m-0w575i, -0.01em);
|
|
@@ -233,11 +234,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
233
234
|
margin: 0;
|
|
234
235
|
}
|
|
235
236
|
|
|
236
|
-
.awsui_section-group-
|
|
237
|
+
.awsui_section-group-title_l0dv0_40ke2_211:not(#\9) {
|
|
237
238
|
/* used in test-utils */
|
|
238
239
|
}
|
|
239
240
|
|
|
240
|
-
.
|
|
241
|
+
.awsui_link_l0dv0_40ke2_215:not(#\9) {
|
|
241
242
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
242
243
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
243
244
|
color: var(--color-text-body-secondary-so8znq, #414d5c);
|
|
@@ -246,30 +247,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
246
247
|
-moz-osx-font-smoothing: auto;
|
|
247
248
|
}
|
|
248
249
|
|
|
249
|
-
.awsui_link-
|
|
250
|
+
.awsui_link-active_l0dv0_40ke2_224:not(#\9) {
|
|
250
251
|
font-weight: var(--font-wayfinding-link-active-weight-rbmzei, 700);
|
|
251
252
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
252
253
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
253
254
|
color: var(--color-text-accent-n2acxv, #0972d3);
|
|
254
255
|
}
|
|
255
256
|
|
|
256
|
-
.awsui_header-
|
|
257
|
-
.
|
|
257
|
+
.awsui_header-link_l0dv0_40ke2_120:not(#\9),
|
|
258
|
+
.awsui_link_l0dv0_40ke2_215:not(#\9) {
|
|
258
259
|
text-decoration: none;
|
|
259
260
|
}
|
|
260
|
-
.awsui_header-
|
|
261
|
-
.
|
|
261
|
+
.awsui_header-link_l0dv0_40ke2_120:not(#\9):hover,
|
|
262
|
+
.awsui_link_l0dv0_40ke2_215:not(#\9):hover {
|
|
262
263
|
color: var(--color-text-accent-n2acxv, #0972d3);
|
|
263
264
|
}
|
|
264
|
-
.awsui_header-
|
|
265
|
-
.
|
|
265
|
+
.awsui_header-link_l0dv0_40ke2_120:not(#\9):focus,
|
|
266
|
+
.awsui_link_l0dv0_40ke2_215:not(#\9):focus {
|
|
266
267
|
outline: none;
|
|
267
268
|
}
|
|
268
|
-
.awsui_header-
|
|
269
|
+
.awsui_header-link_l0dv0_40ke2_120:not(#\9):hover, .awsui_header-link_l0dv0_40ke2_120:not(#\9):focus, .awsui_link_l0dv0_40ke2_215:not(#\9):hover, .awsui_link_l0dv0_40ke2_215:not(#\9):focus {
|
|
269
270
|
text-decoration: none;
|
|
270
271
|
}
|
|
271
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
272
|
-
body[data-awsui-focus-visible=true] .
|
|
272
|
+
body[data-awsui-focus-visible=true] .awsui_header-link_l0dv0_40ke2_120:not(#\9):focus,
|
|
273
|
+
body[data-awsui-focus-visible=true] .awsui_link_l0dv0_40ke2_215:not(#\9):focus {
|
|
273
274
|
outline: thin dotted;
|
|
274
275
|
outline: var(--border-link-focus-ring-outline-kkfop6, 0);
|
|
275
276
|
outline-offset: 2px;
|
|
@@ -278,23 +279,23 @@ body[data-awsui-focus-visible=true] .awsui_link_l0dv0_15mra_214:not(#\9):focus {
|
|
|
278
279
|
box-shadow: 0 0 0 var(--border-link-focus-ring-shadow-spread-v8hkrl, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
279
280
|
}
|
|
280
281
|
|
|
281
|
-
.
|
|
282
|
+
.awsui_info_l0dv0_40ke2_258:not(#\9) {
|
|
282
283
|
margin-left: var(--space-xs-zb16t3, 8px);
|
|
283
284
|
}
|
|
284
285
|
|
|
285
|
-
.awsui_external-
|
|
286
|
+
.awsui_external-icon_l0dv0_40ke2_262:not(#\9) {
|
|
286
287
|
margin-left: var(--space-xxs-p8yyaw, 4px);
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
.
|
|
290
|
+
.awsui_divider_l0dv0_40ke2_266:not(#\9) {
|
|
290
291
|
border: none;
|
|
291
292
|
border-top: var(--border-divider-section-width-8a5uu9, 2px) solid var(--color-border-divider-default-et9j7s, #e9ebed);
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
.awsui_divider-
|
|
295
|
+
.awsui_divider-default_l0dv0_40ke2_271:not(#\9) {
|
|
295
296
|
margin: var(--space-scaled-2x-xl-udij7m, 24px) calc(-1 * var(--space-s-34lx8l, 12px));
|
|
296
297
|
}
|
|
297
298
|
|
|
298
|
-
.awsui_divider-
|
|
299
|
+
.awsui_divider-header_l0dv0_40ke2_275:not(#\9) {
|
|
299
300
|
margin-top: 0;
|
|
300
301
|
}
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"header": "
|
|
7
|
-
"header-link": "awsui_header-
|
|
8
|
-
"header-link--has-logo": "awsui_header-link--has-
|
|
9
|
-
"header-link-text": "awsui_header-link-
|
|
10
|
-
"header-logo": "awsui_header-
|
|
11
|
-
"header-logo--stretched": "awsui_header-logo--
|
|
12
|
-
"list-container": "awsui_list-
|
|
13
|
-
"list": "
|
|
14
|
-
"list-variant-root": "awsui_list-variant-
|
|
15
|
-
"list-variant-root--last": "awsui_list-variant-root--
|
|
16
|
-
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-
|
|
17
|
-
"list-item": "awsui_list-
|
|
18
|
-
"section": "
|
|
19
|
-
"expandable-link-group": "awsui_expandable-link-
|
|
20
|
-
"section--no-ident": "awsui_section--no-
|
|
21
|
-
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-
|
|
22
|
-
"refresh": "
|
|
23
|
-
"list-variant-section-group": "awsui_list-variant-section-
|
|
24
|
-
"section-group": "awsui_section-
|
|
25
|
-
"section-group-title": "awsui_section-group-
|
|
26
|
-
"link": "
|
|
27
|
-
"link-active": "awsui_link-
|
|
28
|
-
"info": "
|
|
29
|
-
"external-icon": "awsui_external-
|
|
30
|
-
"divider": "
|
|
31
|
-
"divider-default": "awsui_divider-
|
|
32
|
-
"divider-header": "awsui_divider-
|
|
5
|
+
"root": "awsui_root_l0dv0_40ke2_93",
|
|
6
|
+
"header": "awsui_header_l0dv0_40ke2_109",
|
|
7
|
+
"header-link": "awsui_header-link_l0dv0_40ke2_120",
|
|
8
|
+
"header-link--has-logo": "awsui_header-link--has-logo_l0dv0_40ke2_130",
|
|
9
|
+
"header-link-text": "awsui_header-link-text_l0dv0_40ke2_130",
|
|
10
|
+
"header-logo": "awsui_header-logo_l0dv0_40ke2_135",
|
|
11
|
+
"header-logo--stretched": "awsui_header-logo--stretched_l0dv0_40ke2_141",
|
|
12
|
+
"list-container": "awsui_list-container_l0dv0_40ke2_146",
|
|
13
|
+
"list": "awsui_list_l0dv0_40ke2_146",
|
|
14
|
+
"list-variant-root": "awsui_list-variant-root_l0dv0_40ke2_156",
|
|
15
|
+
"list-variant-root--last": "awsui_list-variant-root--last_l0dv0_40ke2_160",
|
|
16
|
+
"list-variant-expandable-link-group": "awsui_list-variant-expandable-link-group_l0dv0_40ke2_164",
|
|
17
|
+
"list-item": "awsui_list-item_l0dv0_40ke2_168",
|
|
18
|
+
"section": "awsui_section_l0dv0_40ke2_174",
|
|
19
|
+
"expandable-link-group": "awsui_expandable-link-group_l0dv0_40ke2_175",
|
|
20
|
+
"section--no-ident": "awsui_section--no-ident_l0dv0_40ke2_178",
|
|
21
|
+
"expandable-link-group--no-ident": "awsui_expandable-link-group--no-ident_l0dv0_40ke2_179",
|
|
22
|
+
"refresh": "awsui_refresh_l0dv0_40ke2_188",
|
|
23
|
+
"list-variant-section-group": "awsui_list-variant-section-group_l0dv0_40ke2_196",
|
|
24
|
+
"section-group": "awsui_section-group_l0dv0_40ke2_201",
|
|
25
|
+
"section-group-title": "awsui_section-group-title_l0dv0_40ke2_211",
|
|
26
|
+
"link": "awsui_link_l0dv0_40ke2_215",
|
|
27
|
+
"link-active": "awsui_link-active_l0dv0_40ke2_224",
|
|
28
|
+
"info": "awsui_info_l0dv0_40ke2_258",
|
|
29
|
+
"external-icon": "awsui_external-icon_l0dv0_40ke2_262",
|
|
30
|
+
"divider": "awsui_divider_l0dv0_40ke2_266",
|
|
31
|
+
"divider-default": "awsui_divider-default_l0dv0_40ke2_271",
|
|
32
|
+
"divider-header": "awsui_divider-header_l0dv0_40ke2_275"
|
|
33
33
|
};
|
|
34
34
|
|
package/wizard/internal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,KAAK,mBAAmB,GAAG,WAAW,GAAG,0BAA0B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,eAAe,EAAE,yBAAyB,EAC1C,gBAAgB,EAChB,iBAAyB,EACzB,WAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["wizard/internal.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAWlF,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAI3C,KAAK,mBAAmB,GAAG,WAAW,GAAG,0BAA0B,CAAC;AAEpE,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,KAAK,EACL,eAAe,EAAE,yBAAyB,EAC1C,gBAAgB,EAChB,iBAAyB,EACzB,WAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,iBAAiB,EACjB,GAAG,IAAI,EACR,EAAE,mBAAmB,eAgJrB"}
|