@pega/cosmos-react-core 9.5.4 → 9.6.1

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 +1 @@
1
- {"version":3,"file":"PreviewManager.js","sourceRoot":"","sources":["../../../src/components/Preview/PreviewManager.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAQ1C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAanE,MAAM,OAAO,GAAG,CACd,QAA8B,EAC9B,OAAiC,EACR,EAAE;IAC3B,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,QAAQ;YACX,oCAAoC;YACpC,6EAA6E;YAC7E,OAAO,CAAC,OAAO,CAAC,OAA2C,CAAC,CAAC;QAE/D,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAC5B,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,EAAE;gBACvB,CAAC,CAAC;oBACE,GAAG,OAAO;oBACV,KAAK,EAAE,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,EAAE;oBAC7C,OAAO,EAAE;wBACP,GAAG,OAAO,CAAC,OAAO;wBAClB,GAAG,OAAO,CAAC,OAAO;wBAClB,YAAY,EAAE;4BACZ,GAAG,OAAO,CAAC,OAAO,EAAE,YAAY;4BAChC,GA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AAE,aACtE,QAAQ,EACR,aAAa,IACU,GACT,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useReducer, useState, useMemo, useContext, useRef, useEffect, memo } from 'react';\nimport type { ComponentType, Dispatch, Context, MutableRefObject, SetStateAction } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { createUID, windowIsAvailable } from '../../utils';\nimport '../../init';\nimport { useConfiguration } from '../../hooks';\nimport type { DeferInfer } from '../../types';\n\nimport PreviewPanel from './PreviewPanel';\nimport type {\n PreviewOptions,\n PreviewManagerContextValue,\n PreviewMethods,\n PreviewObject,\n PreviewManagerProps\n} from './Preview.types';\nimport { PreviewContext, PreviewManagerContext } from './Contexts';\n\ndeclare module '../../init' {\n export interface CosmosGlobals {\n previewManagerContext?: Context<PreviewManagerContextValue>;\n }\n}\n\ntype PreviewReducerPayload<P extends object> =\n | { type: 'create'; preview: PreviewObject<P> }\n | { type: 'update'; id: string; props: Partial<P>; options?: Partial<PreviewOptions> }\n | { type: 'unmount'; id: string };\n\nconst reducer = <P extends object>(\n previews: PreviewObject[] | [],\n payload: PreviewReducerPayload<P>\n): PreviewObject<object>[] => {\n switch (payload.type) {\n case 'create':\n // Stub for multiple preview support\n // return [...previews, payload.preview as unknown as PreviewObject<object>];\n return [payload.preview as unknown as PreviewObject<object>];\n\n case 'update':\n return previews.map(preview =>\n preview.id === payload.id\n ? {\n ...preview,\n props: { ...preview.props, ...payload.props },\n options: {\n ...preview.options,\n ...payload.options,\n previewProps: {\n ...preview.options?.previewProps,\n ...payload.options?.previewProps\n }\n }\n }\n : preview\n );\n\n case 'unmount':\n return previews.filter(preview => preview.id !== payload.id);\n\n default:\n return previews;\n }\n};\n\nconst WrappedPreview = memo(\n ({\n Component,\n props,\n options,\n previewStateSetter,\n previewTriggerRef,\n methods\n }: PreviewObject & {\n previewStateSetter: Dispatch<SetStateAction<boolean>>;\n previewTriggerRef: MutableRefObject<HTMLElement | null>;\n }) => {\n const optionsRef = useRef(options);\n optionsRef.current = options;\n\n // This state change is required to transition the case preview in.\n const [open, setOpen] = useState(false);\n const openRef = useRef(false);\n\n const cleanupPreview = () => {\n setOpen(false);\n openRef.current = false;\n previewStateSetter(false);\n optionsRef.current?.previewProps.onAfterClose?.();\n methods.unmountPreview();\n };\n\n useEffect(() => {\n setOpen(true);\n openRef.current = true;\n previewStateSetter(true);\n return () => {\n // Guard with openRef so we don't double-fire if already closed via the close button.\n if (openRef.current) {\n optionsRef.current?.previewProps.onBeforeClose?.();\n cleanupPreview();\n }\n };\n }, []);\n\n return (\n <PreviewContext.Provider\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n value={{\n initialized: true,\n previewTriggerRef,\n ...methods\n }}\n >\n <PreviewPanel\n open={open}\n {...options?.previewProps}\n onAfterClose={() => {\n cleanupPreview();\n }}\n >\n <Component {...(props as Record<string, unknown>)} />\n </PreviewPanel>\n </PreviewContext.Provider>\n );\n }\n);\n\nconst PreviewManager = ({ children }: PreviewManagerProps) => {\n const [previews, dispatch] = useReducer(reducer, []);\n const [previewActive, setPreviewActive] = useState(false);\n const previewTriggerRef = useRef<HTMLElement | null>(null);\n const { portalTarget } = useConfiguration();\n\n const providerValue = useMemo(\n () => ({\n previewActive,\n setPreviewActive,\n createPreview: <P extends object>(\n Component: ComponentType<P>,\n props?: DeferInfer<P>,\n options?: PreviewOptions\n ): PreviewMethods<P> => {\n const id = createUID();\n\n const methods = {\n updatePreview: (updatedProps: Partial<P>, updatedOptions?: Partial<PreviewOptions>) => {\n (dispatch as Dispatch<PreviewReducerPayload<P>>)({\n type: 'update',\n id,\n props: updatedProps,\n options: updatedOptions\n });\n },\n unmountPreview: () => {\n dispatch({ type: 'unmount', id });\n }\n };\n\n (dispatch as Dispatch<PreviewReducerPayload<P>>)({\n type: 'create',\n preview: {\n id,\n Component,\n methods,\n props: (props ?? {}) as P,\n options\n }\n });\n\n return methods;\n },\n PreviewContext,\n initialized: true\n }),\n [previewActive]\n );\n\n const context = windowIsAvailable\n ? window.cosmos.previewManagerContext ?? PreviewManagerContext\n : PreviewManagerContext;\n const priorCtx = useContext(context);\n\n // Don't create additional Preview managers.\n if (priorCtx.initialized) return <context.Provider value={priorCtx}>{children}</context.Provider>;\n\n const previewPortal =\n portalTarget && previews.length > 0\n ? createPortal(\n previews.map(preview => (\n <WrappedPreview\n {...preview}\n key={preview.id}\n previewStateSetter={setPreviewActive}\n previewTriggerRef={previewTriggerRef}\n />\n )),\n portalTarget\n )\n : null;\n\n return (\n <context.Provider value={providerValue}>\n {/* eslint-disable-next-line react/jsx-no-constructed-context-values */}\n <PreviewContext.Provider value={{ initialized: false, previewTriggerRef }}>\n {children}\n {previewPortal}\n </PreviewContext.Provider>\n </context.Provider>\n );\n};\n\nexport default PreviewManager;\n"]}
1
+ {"version":3,"file":"PreviewManager.js","sourceRoot":"","sources":["../../../src/components/Preview/PreviewManager.tsx"],"names":[],"mappings":";;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE3F,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG9D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAQ1C,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAcnE,MAAM,OAAO,GAAG,CACd,QAA8B,EAC9B,OAAiC,EACR,EAAE;IAC3B,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;QACrB,KAAK,QAAQ;YACX,oCAAoC;YACpC,6EAA6E;YAC7E,OAAO,CAAC,OAAO,CAAC,OAA2C,CAAC,CAAC;QAE/D,KAAK,QAAQ;YAC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,CAAC,qBAAqB,IAAI,qBAAqB;QAC9D,CAAC,CAAC,qBAAqB,CAAC;IAC1B,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAErC,4CAA4C;IAC5C,IAAI,QAAQ,CAAC,WAAW;QAAE,OAAO,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,YAAG,QAAQ,GAAoB,CAAC;IAElG,MAAM,aAAa,GACjB,YAAY,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC;QACjC,CAAC,CAAC,YAAY,CACV,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CACtB,eAAC,cAAc,OACT,OAAO,EACX,GAAG,EAAE,OAAO,CAAC,EAAE,EACf,kBAAkB,EAAE,gBAAgB,EACpC,iBAAiB,EAAE,iBAAiB,GACpC,CACH,CAAC,EACF,YAAY,CACb;QACH,CAAC,CAAC,IAAI,CAAC;IAEX,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,YAEpC,MAAC,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE,aACtE,QAAQ,EACR,aAAa,IACU,GACT,CACpB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["import { useReducer, useState, useMemo, useContext, useRef, useEffect, memo } from 'react';\nimport type { ComponentType, Dispatch, Context, MutableRefObject, SetStateAction } from 'react';\nimport { createPortal } from 'react-dom';\n\nimport { createUID, windowIsAvailable } from '../../utils';\nimport '../../init';\nimport { useBreakpoint, useConfiguration } from '../../hooks';\nimport type { DeferInfer } from '../../types';\n\nimport PreviewPanel from './PreviewPanel';\nimport type {\n PreviewOptions,\n PreviewManagerContextValue,\n PreviewMethods,\n PreviewObject,\n PreviewManagerProps\n} from './Preview.types';\nimport { PreviewContext, PreviewManagerContext } from './Contexts';\n\ndeclare module '../../init' {\n export interface CosmosGlobals {\n previewManagerContext?: Context<PreviewManagerContextValue>;\n }\n}\n\ntype PreviewReducerPayload<P extends object> =\n | { type: 'create'; preview: PreviewObject<P> }\n | { type: 'update'; id: string; props: Partial<P>; options?: Partial<PreviewOptions> }\n | { type: 'unmount'; id: string }\n | { type: 'clear' };\n\nconst reducer = <P extends object>(\n previews: PreviewObject[] | [],\n payload: PreviewReducerPayload<P>\n): PreviewObject<object>[] => {\n switch (payload.type) {\n case 'create':\n // Stub for multiple preview support\n // return [...previews, payload.preview as unknown as PreviewObject<object>];\n return [payload.preview as unknown as PreviewObject<object>];\n\n case 'update':\n return previews.map(preview =>\n preview.id === payload.id\n ? {\n ...preview,\n props: { ...preview.props, ...payload.props },\n options: {\n ...preview.options,\n ...payload.options,\n previewProps: {\n ...preview.options?.previewProps,\n ...payload.options?.previewProps\n }\n }\n }\n : preview\n );\n\n case 'unmount':\n return previews.filter(preview => preview.id !== payload.id);\n\n case 'clear':\n return [];\n\n default:\n return previews;\n }\n};\n\nconst WrappedPreview = memo(\n ({\n Component,\n props,\n options,\n previewStateSetter,\n previewTriggerRef,\n methods\n }: PreviewObject & {\n previewStateSetter: Dispatch<SetStateAction<boolean>>;\n previewTriggerRef: MutableRefObject<HTMLElement | null>;\n }) => {\n const optionsRef = useRef(options);\n optionsRef.current = options;\n\n // This state change is required to transition the case preview in.\n const [open, setOpen] = useState(false);\n const openRef = useRef(false);\n\n const cleanupPreview = () => {\n setOpen(false);\n openRef.current = false;\n previewStateSetter(false);\n optionsRef.current?.previewProps.onAfterClose?.();\n methods.unmountPreview();\n };\n\n useEffect(() => {\n setOpen(true);\n openRef.current = true;\n previewStateSetter(true);\n return () => {\n // Guard with openRef so we don't double-fire if already closed via the close button.\n if (openRef.current) {\n optionsRef.current?.previewProps.onBeforeClose?.();\n cleanupPreview();\n }\n };\n }, []);\n\n return (\n <PreviewContext.Provider\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n value={{\n initialized: true,\n previewTriggerRef,\n ...methods\n }}\n >\n <PreviewPanel\n open={open}\n {...options?.previewProps}\n onAfterClose={() => {\n cleanupPreview();\n }}\n >\n <Component {...(props as Record<string, unknown>)} />\n </PreviewPanel>\n </PreviewContext.Provider>\n );\n }\n);\n\nconst PreviewManager = ({ children }: PreviewManagerProps) => {\n const [previews, dispatch] = useReducer(reducer, []);\n const [previewActive, setPreviewActive] = useState(false);\n const previewTriggerRef = useRef<HTMLElement | null>(null);\n const { portalTarget } = useConfiguration();\n const isSmallOrAbove = useBreakpoint('sm');\n\n // Dismiss all previews when screen size reflows below sm breakpoint\n useEffect(() => {\n if (!isSmallOrAbove && previews.length > 0) {\n dispatch({ type: 'clear' });\n }\n }, [isSmallOrAbove, previews.length]);\n\n const providerValue = useMemo(\n () => ({\n previewActive,\n setPreviewActive,\n createPreview: <P extends object>(\n Component: ComponentType<P>,\n props?: DeferInfer<P>,\n options?: PreviewOptions\n ): PreviewMethods<P> => {\n const id = createUID();\n\n const methods = {\n updatePreview: (updatedProps: Partial<P>, updatedOptions?: Partial<PreviewOptions>) => {\n (dispatch as Dispatch<PreviewReducerPayload<P>>)({\n type: 'update',\n id,\n props: updatedProps,\n options: updatedOptions\n });\n },\n unmountPreview: () => {\n dispatch({ type: 'unmount', id });\n }\n };\n\n (dispatch as Dispatch<PreviewReducerPayload<P>>)({\n type: 'create',\n preview: {\n id,\n Component,\n methods,\n props: (props ?? {}) as P,\n options\n }\n });\n\n return methods;\n },\n PreviewContext,\n initialized: true\n }),\n [previewActive]\n );\n\n const context = windowIsAvailable\n ? window.cosmos.previewManagerContext ?? PreviewManagerContext\n : PreviewManagerContext;\n const priorCtx = useContext(context);\n\n // Don't create additional Preview managers.\n if (priorCtx.initialized) return <context.Provider value={priorCtx}>{children}</context.Provider>;\n\n const previewPortal =\n portalTarget && previews.length > 0\n ? createPortal(\n previews.map(preview => (\n <WrappedPreview\n {...preview}\n key={preview.id}\n previewStateSetter={setPreviewActive}\n previewTriggerRef={previewTriggerRef}\n />\n )),\n portalTarget\n )\n : null;\n\n return (\n <context.Provider value={providerValue}>\n {/* eslint-disable-next-line react/jsx-no-constructed-context-values */}\n <PreviewContext.Provider value={{ initialized: false, previewTriggerRef }}>\n {children}\n {previewPortal}\n </PreviewContext.Provider>\n </context.Provider>\n );\n};\n\nexport default PreviewManager;\n"]}
@@ -165,6 +165,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
165
165
  resize_noun: string;
166
166
  search_noun: string;
167
167
  actions_for: string;
168
+ edit_for: string;
168
169
  edited: string;
169
170
  deleted: string;
170
171
  done: string;
@@ -1 +1 @@
1
- {"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAGZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -161,6 +161,7 @@ declare const _default: {
161
161
  resize_noun: string;
162
162
  search_noun: string;
163
163
  actions_for: string;
164
+ edit_for: string;
164
165
  edited: string;
165
166
  deleted: string;
166
167
  done: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../src/i18n/default.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgvDE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyOxB,6CAA6C;;;;;;;;;;;;;;IAgB7C,6CAA6C;;;;;;;;IAS7C,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwGzC,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA2C/B,wCAAwC;;IAGxC,oCAAoC;;;;;;;;IASpC,oCAAoC;;;;;;IAOpC,uCAAuC;;;;;;;;;;;IAavC,6CAA6C;;;;;;;IAQ7C,uCAAuC;;;;;;;;IAUvC,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvrE3C,wBAuuEE"}
@@ -169,6 +169,8 @@ export default {
169
169
  search_noun: 'Search {0}',
170
170
  /* Contextual actions label */
171
171
  actions_for: 'Actions - {0}',
172
+ /* Contextual edit label */
173
+ edit_for: 'Edit - {0}',
172
174
  /* States */
173
175
  edited: 'Edited {0}',
174
176
  deleted: '{0} deleted',