@pega/cosmos-react-work 10.0.0-build.9.13 → 10.0.0-build.9.15
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/lib/components/GenAICoach/GenAICoach.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.js +2 -2
- package/lib/components/GenAICoach/GenAICoach.js.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.d.ts +2 -0
- package/lib/components/GenAICoach/GenAICoach.types.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAICoach.types.js.map +1 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.d.ts.map +1 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.js +8 -1
- package/lib/components/GenAICoach/GenAIMessageFeedback.js.map +1 -1
- package/lib/components/HeroBanner/HeroBanner.d.ts +7 -0
- package/lib/components/HeroBanner/HeroBanner.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.js +63 -0
- package/lib/components/HeroBanner/HeroBanner.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.styles.d.ts +35 -0
- package/lib/components/HeroBanner/HeroBanner.styles.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.styles.js +118 -0
- package/lib/components/HeroBanner/HeroBanner.styles.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.d.ts +2 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.js +11 -0
- package/lib/components/HeroBanner/HeroBanner.test-ids.js.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.types.d.ts +51 -0
- package/lib/components/HeroBanner/HeroBanner.types.d.ts.map +1 -0
- package/lib/components/HeroBanner/HeroBanner.types.js +2 -0
- package/lib/components/HeroBanner/HeroBanner.types.js.map +1 -0
- package/lib/components/HeroBanner/index.d.ts +3 -0
- package/lib/components/HeroBanner/index.d.ts.map +1 -0
- package/lib/components/HeroBanner/index.js +2 -0
- package/lib/components/HeroBanner/index.js.map +1 -0
- package/lib/components/HeroBanner/utils.d.ts +20 -0
- package/lib/components/HeroBanner/utils.d.ts.map +1 -0
- package/lib/components/HeroBanner/utils.js +125 -0
- package/lib/components/HeroBanner/utils.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeroBanner.types.js","sourceRoot":"","sources":["../../../src/components/HeroBanner/HeroBanner.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { Ref } from 'react';\n\nimport type { BaseProps, NoChildrenProp, TestIdProp } from '@pega/cosmos-react-core';\n\nexport type HeroBannerMediaAlignment = 'left' | 'right';\n\nexport type HeroBannerMediaSize = 'auto' | 'cover' | 'contain';\n\nexport type HeroBannerMediaPosition =\n | 'center'\n | 'top'\n | 'right'\n | 'bottom'\n | 'left'\n | 'top left'\n | 'top right'\n | 'bottom right'\n | 'bottom left';\n\nexport type HeroBannerMediaRepeat = 'no-repeat' | 'repeat' | 'repeat-x' | 'repeat-y';\n\nexport interface HeroBannerAction {\n /** Text of the button. */\n label: string;\n /** Web address the button opens. Addresses that are not http(s) are not rendered as an active button. */\n href: string;\n /** Opens the address in a new tab when true; otherwise it opens in the current tab. */\n external?: boolean;\n}\n\nexport interface HeroBannerMedia {\n /** Image source, rendered as a decorative background. */\n src: string;\n /** Side of the text the media appears on. */\n alignment?: HeroBannerMediaAlignment;\n size?: HeroBannerMediaSize;\n position?: HeroBannerMediaPosition;\n repeat?: HeroBannerMediaRepeat;\n}\n\nexport interface HeroBannerColors {\n /** Solid color, gradient, or image (`url(...)`). */\n background?: string;\n heading?: string;\n subheading?: string;\n body?: string;\n button?: string;\n /** Color with transparency. Gradients and images are ignored. */\n overlay?: string;\n}\n\nexport interface HeroBannerProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** Heading text, rendered as a level 2 heading. */\n heading?: string;\n /** Text under the heading. */\n subheading?: string;\n /** Plain body text. */\n body?: string;\n /** Primary button. */\n action?: HeroBannerAction;\n /** Decorative media shown beside the text. */\n media?: HeroBannerMedia;\n /** Overrides of the theme styling values. Missing or invalid values use the theme. */\n colors?: HeroBannerColors;\n /** Whether to fill the height of the parent element. */\n fitToParent?: boolean;\n ref?: Ref<HTMLElement>;\n}\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default } from './HeroBanner';
|
|
2
|
+
export type { HeroBannerProps, HeroBannerAction, HeroBannerColors, HeroBannerMedia, HeroBannerMediaAlignment, HeroBannerMediaPosition, HeroBannerMediaRepeat, HeroBannerMediaSize } from './HeroBanner.types';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/HeroBanner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,wBAAwB,EACxB,uBAAuB,EACvB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/HeroBanner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC","sourcesContent":["export { default } from './HeroBanner';\nexport type {\n HeroBannerProps,\n HeroBannerAction,\n HeroBannerColors,\n HeroBannerMedia,\n HeroBannerMediaAlignment,\n HeroBannerMediaPosition,\n HeroBannerMediaRepeat,\n HeroBannerMediaSize\n} from './HeroBanner.types';\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** Builds a CSS `url()` from a source, escaping it so the value cannot end the string or declaration. */
|
|
2
|
+
export declare const toCssUrl: (source: string) => string;
|
|
3
|
+
/**
|
|
4
|
+
* Whether an image source can be shown: an http(s) or blob address, an embedded image, or a
|
|
5
|
+
* relative address (application-managed images). Anything else is never used.
|
|
6
|
+
*/
|
|
7
|
+
export declare const isSafeImageSource: (source?: string) => boolean;
|
|
8
|
+
/** Returns a solid color (hex, rgb(a) or hsl(a)) when valid, otherwise undefined. */
|
|
9
|
+
export declare const toColorCss: (value?: string) => string | undefined;
|
|
10
|
+
/** Returns a color with transparency, or `transparent`, when valid. Gradients and images are never valid. */
|
|
11
|
+
export declare const toOverlayCss: (value?: string) => string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Returns a solid color (opaque or with transparency), `transparent`, a gradient, or an image as safe CSS
|
|
14
|
+
* when valid, otherwise undefined.
|
|
15
|
+
* Images are rebuilt from their parts so only allowed position, size, and repeat values are used.
|
|
16
|
+
*/
|
|
17
|
+
export declare const toBackgroundCss: (value?: string) => string | undefined;
|
|
18
|
+
/** Whether an address resolves to http or https; relative addresses count as the page's own. */
|
|
19
|
+
export declare const isSafeHref: (href?: string) => boolean;
|
|
20
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/HeroBanner/utils.ts"],"names":[],"mappings":"AAqDA,yGAAyG;AACzG,eAAO,MAAM,QAAQ,GAAI,QAAQ,MAAM,WAGtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,SAAS,MAAM,KAAG,OAWnD,CAAC;AAEF,qFAAqF;AACrF,eAAO,MAAM,UAAU,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,SAGpD,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,SAOtD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,MAAM,GAAG,SA0BzD,CAAC;AAEF,gGAAgG;AAChG,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,OAU1C,CAAC"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { disallowedURI } from '@pega/cosmos-react-core';
|
|
2
|
+
const positions = [
|
|
3
|
+
'center',
|
|
4
|
+
'top',
|
|
5
|
+
'right',
|
|
6
|
+
'bottom',
|
|
7
|
+
'left',
|
|
8
|
+
'top left',
|
|
9
|
+
'top right',
|
|
10
|
+
'bottom right',
|
|
11
|
+
'bottom left'
|
|
12
|
+
];
|
|
13
|
+
const sizes = ['auto', 'cover', 'contain'];
|
|
14
|
+
const repeats = ['no-repeat', 'repeat', 'repeat-x', 'repeat-y', 'space', 'round'];
|
|
15
|
+
const hexColor = /^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$/i;
|
|
16
|
+
const functionalColor = /^(?:rgba?|hsla?)\(\s*[\d.]+%?(?:deg)?\s*[\s,]\s*[\d.]+%?\s*[\s,]\s*[\d.]+%?\s*(?:[,/]\s*[\d.]+%?\s*)?\)$/i;
|
|
17
|
+
const gradient = /^(?:repeating-)?(?:linear|radial|conic)-gradient\([#%.,()\s\w+/-]*\)$/i;
|
|
18
|
+
const allowedGradientFunctions = new Set([
|
|
19
|
+
'linear-gradient',
|
|
20
|
+
'repeating-linear-gradient',
|
|
21
|
+
'radial-gradient',
|
|
22
|
+
'repeating-radial-gradient',
|
|
23
|
+
'conic-gradient',
|
|
24
|
+
'repeating-conic-gradient',
|
|
25
|
+
'rgb',
|
|
26
|
+
'rgba',
|
|
27
|
+
'hsl',
|
|
28
|
+
'hsla'
|
|
29
|
+
]);
|
|
30
|
+
// The shape produced by the background picker for images: url(<address>) <position> / <size> <repeat>
|
|
31
|
+
const image = /^url\((['"]?)([^'")\s]+)\1\)\s+([a-z ]+?)\s*\/\s*([a-z]+)\s+([a-z-]+)$/i;
|
|
32
|
+
const hasBalancedParentheses = (value) => {
|
|
33
|
+
let depth = 0;
|
|
34
|
+
return ([...value].every(char => {
|
|
35
|
+
if (char === '(')
|
|
36
|
+
depth += 1;
|
|
37
|
+
if (char === ')')
|
|
38
|
+
depth -= 1;
|
|
39
|
+
return depth >= 0;
|
|
40
|
+
}) && depth === 0);
|
|
41
|
+
};
|
|
42
|
+
const isGradient = (value) => gradient.test(value) &&
|
|
43
|
+
hasBalancedParentheses(value) &&
|
|
44
|
+
[...value.matchAll(/([a-z-]+)\(/gi)].every(([, name]) => allowedGradientFunctions.has(name.toLowerCase()));
|
|
45
|
+
/** Builds a CSS `url()` from a source, escaping it so the value cannot end the string or declaration. */
|
|
46
|
+
export const toCssUrl = (source) => {
|
|
47
|
+
const escaped = source.replace(/["\\\n\r\f<>]/g, char => `\\${char.charCodeAt(0).toString(16)} `);
|
|
48
|
+
return `url("${escaped}")`;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Whether an image source can be shown: an http(s) or blob address, an embedded image, or a
|
|
52
|
+
* relative address (application-managed images). Anything else is never used.
|
|
53
|
+
*/
|
|
54
|
+
export const isSafeImageSource = (source) => {
|
|
55
|
+
const value = source?.trim();
|
|
56
|
+
if (!value || disallowedURI.test(value))
|
|
57
|
+
return false;
|
|
58
|
+
if (/^data:image\//i.test(value))
|
|
59
|
+
return true;
|
|
60
|
+
try {
|
|
61
|
+
const { protocol } = new URL(value, 'https://placeholder.invalid');
|
|
62
|
+
return protocol === 'http:' || protocol === 'https:' || protocol === 'blob:';
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
/** Returns a solid color (hex, rgb(a) or hsl(a)) when valid, otherwise undefined. */
|
|
69
|
+
export const toColorCss = (value) => {
|
|
70
|
+
const color = value?.trim();
|
|
71
|
+
return color && (hexColor.test(color) || functionalColor.test(color)) ? color : undefined;
|
|
72
|
+
};
|
|
73
|
+
/** Returns a color with transparency, or `transparent`, when valid. Gradients and images are never valid. */
|
|
74
|
+
export const toOverlayCss = (value) => {
|
|
75
|
+
const overlay = value?.trim();
|
|
76
|
+
if (!overlay)
|
|
77
|
+
return undefined;
|
|
78
|
+
if (overlay.toLowerCase() === 'transparent' || toColorCss(overlay)) {
|
|
79
|
+
return overlay;
|
|
80
|
+
}
|
|
81
|
+
return undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Returns a solid color (opaque or with transparency), `transparent`, a gradient, or an image as safe CSS
|
|
85
|
+
* when valid, otherwise undefined.
|
|
86
|
+
* Images are rebuilt from their parts so only allowed position, size, and repeat values are used.
|
|
87
|
+
*/
|
|
88
|
+
export const toBackgroundCss = (value) => {
|
|
89
|
+
const background = value?.trim();
|
|
90
|
+
if (!background)
|
|
91
|
+
return undefined;
|
|
92
|
+
if (background.toLowerCase() === 'transparent' ||
|
|
93
|
+
toColorCss(background) ||
|
|
94
|
+
isGradient(background)) {
|
|
95
|
+
return background;
|
|
96
|
+
}
|
|
97
|
+
const match = image.exec(background);
|
|
98
|
+
if (!match)
|
|
99
|
+
return undefined;
|
|
100
|
+
const [, , source, position, size, repeat] = match;
|
|
101
|
+
if (!isSafeImageSource(source))
|
|
102
|
+
return undefined;
|
|
103
|
+
const lowerPosition = position.toLowerCase();
|
|
104
|
+
const lowerSize = size.toLowerCase();
|
|
105
|
+
const lowerRepeat = repeat.toLowerCase();
|
|
106
|
+
return positions.includes(lowerPosition) &&
|
|
107
|
+
sizes.includes(lowerSize) &&
|
|
108
|
+
repeats.includes(lowerRepeat)
|
|
109
|
+
? `${toCssUrl(source)} ${lowerPosition} / ${lowerSize} ${lowerRepeat}`
|
|
110
|
+
: undefined;
|
|
111
|
+
};
|
|
112
|
+
/** Whether an address resolves to http or https; relative addresses count as the page's own. */
|
|
113
|
+
export const isSafeHref = (href) => {
|
|
114
|
+
const value = href?.trim();
|
|
115
|
+
if (!value || disallowedURI.test(value))
|
|
116
|
+
return false;
|
|
117
|
+
try {
|
|
118
|
+
const { protocol } = new URL(value, 'https://placeholder.invalid');
|
|
119
|
+
return protocol === 'http:' || protocol === 'https:';
|
|
120
|
+
}
|
|
121
|
+
catch {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/HeroBanner/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,SAAS,GAAG;IAChB,QAAQ;IACR,KAAK;IACL,OAAO;IACP,QAAQ;IACR,MAAM;IACN,UAAU;IACV,WAAW;IACX,cAAc;IACd,aAAa;CACd,CAAC;AACF,MAAM,KAAK,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC;AAC3C,MAAM,OAAO,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAElF,MAAM,QAAQ,GAAG,4CAA4C,CAAC;AAC9D,MAAM,eAAe,GACnB,2GAA2G,CAAC;AAC9G,MAAM,QAAQ,GAAG,wEAAwE,CAAC;AAC1F,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAC;IACvC,iBAAiB;IACjB,2BAA2B;IAC3B,iBAAiB;IACjB,2BAA2B;IAC3B,gBAAgB;IAChB,0BAA0B;IAC1B,KAAK;IACL,MAAM;IACN,KAAK;IACL,MAAM;CACP,CAAC,CAAC;AACH,sGAAsG;AACtG,MAAM,KAAK,GAAG,yEAAyE,CAAC;AAExF,MAAM,sBAAsB,GAAG,CAAC,KAAa,EAAE,EAAE;IAC/C,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,OAAO,CACL,CAAC,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QACtB,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,IA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n 'top right',\n 'bottom right',\n 'bottom left'\n];\nconst sizes = ['auto', 'cover', 'contain'];\nconst repeats = ['no-repeat', 'repeat', 'repeat-x', 'repeat-y', 'space', 'round'];\n\nconst hexColor = /^#(?:[\\da-f]{3,4}|[\\da-f]{6}|[\\da-f]{8})$/i;\nconst functionalColor =\n /^(?:rgba?|hsla?)\\(\\s*[\\d.]+%?(?:deg)?\\s*[\\s,]\\s*[\\d.]+%?\\s*[\\s,]\\s*[\\d.]+%?\\s*(?:[,/]\\s*[\\d.]+%?\\s*)?\\)$/i;\nconst gradient = /^(?:repeating-)?(?:linear|radial|conic)-gradient\\([#%.,()\\s\\w+/-]*\\)$/i;\nconst allowedGradientFunctions = new Set([\n 'linear-gradient',\n 'repeating-linear-gradient',\n 'radial-gradient',\n 'repeating-radial-gradient',\n 'conic-gradient',\n 'repeating-conic-gradient',\n 'rgb',\n 'rgba',\n 'hsl',\n 'hsla'\n]);\n// The shape produced by the background picker for images: url(<address>) <position> / <size> <repeat>\nconst image = /^url\\((['\"]?)([^'\")\\s]+)\\1\\)\\s+([a-z ]+?)\\s*\\/\\s*([a-z]+)\\s+([a-z-]+)$/i;\n\nconst hasBalancedParentheses = (value: string) => {\n let depth = 0;\n return (\n [...value].every(char => {\n if (char === '(') depth += 1;\n if (char === ')') depth -= 1;\n return depth >= 0;\n }) && depth === 0\n );\n};\n\nconst isGradient = (value: string) =>\n gradient.test(value) &&\n hasBalancedParentheses(value) &&\n [...value.matchAll(/([a-z-]+)\\(/gi)].every(([, name]) =>\n allowedGradientFunctions.has(name.toLowerCase())\n );\n\n/** Builds a CSS `url()` from a source, escaping it so the value cannot end the string or declaration. */\nexport const toCssUrl = (source: string) => {\n const escaped = source.replace(/[\"\\\\\\n\\r\\f<>]/g, char => `\\\\${char.charCodeAt(0).toString(16)} `);\n return `url(\"${escaped}\")`;\n};\n\n/**\n * Whether an image source can be shown: an http(s) or blob address, an embedded image, or a\n * relative address (application-managed images). Anything else is never used.\n */\nexport const isSafeImageSource = (source?: string): boolean => {\n const value = source?.trim();\n if (!value || disallowedURI.test(value)) return false;\n if (/^data:image\\//i.test(value)) return true;\n\n try {\n const { protocol } = new URL(value, 'https://placeholder.invalid');\n return protocol === 'http:' || protocol === 'https:' || protocol === 'blob:';\n } catch {\n return false;\n }\n};\n\n/** Returns a solid color (hex, rgb(a) or hsl(a)) when valid, otherwise undefined. */\nexport const toColorCss = (value?: string): string | undefined => {\n const color = value?.trim();\n return color && (hexColor.test(color) || functionalColor.test(color)) ? color : undefined;\n};\n\n/** Returns a color with transparency, or `transparent`, when valid. Gradients and images are never valid. */\nexport const toOverlayCss = (value?: string): string | undefined => {\n const overlay = value?.trim();\n if (!overlay) return undefined;\n if (overlay.toLowerCase() === 'transparent' || toColorCss(overlay)) {\n return overlay;\n }\n return undefined;\n};\n\n/**\n * Returns a solid color (opaque or with transparency), `transparent`, a gradient, or an image as safe CSS\n * when valid, otherwise undefined.\n * Images are rebuilt from their parts so only allowed position, size, and repeat values are used.\n */\nexport const toBackgroundCss = (value?: string): string | undefined => {\n const background = value?.trim();\n if (!background) return undefined;\n if (\n background.toLowerCase() === 'transparent' ||\n toColorCss(background) ||\n isGradient(background)\n ) {\n return background;\n }\n\n const match = image.exec(background);\n if (!match) return undefined;\n\n const [, , source, position, size, repeat] = match;\n if (!isSafeImageSource(source)) return undefined;\n\n const lowerPosition = position.toLowerCase();\n const lowerSize = size.toLowerCase();\n const lowerRepeat = repeat.toLowerCase();\n\n return positions.includes(lowerPosition) &&\n sizes.includes(lowerSize) &&\n repeats.includes(lowerRepeat)\n ? `${toCssUrl(source)} ${lowerPosition} / ${lowerSize} ${lowerRepeat}`\n : undefined;\n};\n\n/** Whether an address resolves to http or https; relative addresses count as the page's own. */\nexport const isSafeHref = (href?: string): boolean => {\n const value = href?.trim();\n if (!value || disallowedURI.test(value)) return false;\n\n try {\n const { protocol } = new URL(value, 'https://placeholder.invalid');\n return protocol === 'http:' || protocol === 'https:';\n } catch {\n return false;\n }\n};\n"]}
|
package/lib/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export { default as GenAICoach } from './components/GenAICoach';
|
|
|
22
22
|
export * from './components/GenAICoach';
|
|
23
23
|
export { default as Glimpse } from './components/Glimpse';
|
|
24
24
|
export * from './components/Glimpse';
|
|
25
|
+
export { default as HeroBanner } from './components/HeroBanner';
|
|
26
|
+
export * from './components/HeroBanner';
|
|
25
27
|
export { default as HierarchicalAssignments } from './components/HierarchicalAssignments';
|
|
26
28
|
export * from './components/HierarchicalAssignments';
|
|
27
29
|
export { default as IntelligentGuidance } from './components/IntelligentGuidance';
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,O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AC"}
|
package/lib/index.js
CHANGED
|
@@ -23,6 +23,8 @@ export { default as GenAICoach } from './components/GenAICoach';
|
|
|
23
23
|
export * from './components/GenAICoach';
|
|
24
24
|
export { default as Glimpse } from './components/Glimpse';
|
|
25
25
|
export * from './components/Glimpse';
|
|
26
|
+
export { default as HeroBanner } from './components/HeroBanner';
|
|
27
|
+
export * from './components/HeroBanner';
|
|
26
28
|
export { default as HierarchicalAssignments } from './components/HierarchicalAssignments';
|
|
27
29
|
export * from './components/HierarchicalAssignments';
|
|
28
30
|
export { default as IntelligentGuidance } from './components/IntelligentGuidance';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,E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AAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC","sourcesContent":["// This file is autogenerated. Any changes will be overwritten.\nexport { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as Article } from './components/Article';\nexport * from './components/Article';\nexport { default as ArticleList } from './components/ArticleList';\nexport * from './components/ArticleList';\nexport { default as Assignments } from './components/Assignments';\nexport * from './components/Assignments';\nexport { default as CaseHierarchy } from './components/CaseHierarchy';\nexport * from './components/CaseHierarchy';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as GenAICoach } from './components/GenAICoach';\nexport * from './components/GenAICoach';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as HierarchicalAssignments } from './components/HierarchicalAssignments';\nexport * from './components/HierarchicalAssignments';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as InteractionNotification } from './components/InteractionNotification';\nexport { default as MasterDetail } from './components/MasterDetail';\nexport * from './components/MasterDetail';\nexport { default as Predictions } from './components/Predictions';\nexport * from './components/Predictions';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Shortcuts } from './components/Shortcuts';\nexport * from './components/Shortcuts';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as UtilitiesLayout } from './components/UtilitiesLayout';\nexport * from './components/UtilitiesLayout';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC1E,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,4BAA4B,CAAC;AACtE,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AACtC,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAChF,cAAc,iCAAiC,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACpE,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,M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port { default as AppAnnouncement } from './components/AppAnnouncement';\nexport * from './components/AppAnnouncement';\nexport { default as Article } from './components/Article';\nexport * from './components/Article';\nexport { default as ArticleList } from './components/ArticleList';\nexport * from './components/ArticleList';\nexport { default as Assignments } from './components/Assignments';\nexport * from './components/Assignments';\nexport { default as CaseHierarchy } from './components/CaseHierarchy';\nexport * from './components/CaseHierarchy';\nexport { default as CasePreview } from './components/CasePreview';\nexport * from './components/CasePreview';\nexport { default as CaseView } from './components/CaseView';\nexport * from './components/CaseView';\nexport { default as ConfigurableLayout } from './components/ConfigurableLayout';\nexport * from './components/ConfigurableLayout';\nexport { default as Confirmation } from './components/Confirmation';\nexport * from './components/Confirmation';\nexport { default as Details } from './components/Details';\nexport * from './components/Details';\nexport { default as GenAICoach } from './components/GenAICoach';\nexport * from './components/GenAICoach';\nexport { default as Glimpse } from './components/Glimpse';\nexport * from './components/Glimpse';\nexport { default as HeroBanner } from './components/HeroBanner';\nexport * from './components/HeroBanner';\nexport { default as HierarchicalAssignments } from './components/HierarchicalAssignments';\nexport * from './components/HierarchicalAssignments';\nexport { default as IntelligentGuidance } from './components/IntelligentGuidance';\nexport * from './components/IntelligentGuidance';\nexport { default as InteractionNotification } from './components/InteractionNotification';\nexport { default as MasterDetail } from './components/MasterDetail';\nexport * from './components/MasterDetail';\nexport { default as Predictions } from './components/Predictions';\nexport * from './components/Predictions';\nexport { default as SearchResults } from './components/SearchResults';\nexport * from './components/SearchResults';\nexport { default as Shortcuts } from './components/Shortcuts';\nexport * from './components/Shortcuts';\nexport { default as Stages } from './components/Stages';\nexport * from './components/Stages';\nexport { default as Stakeholders } from './components/Stakeholders';\nexport * from './components/Stakeholders';\nexport { default as Tags } from './components/Tags';\nexport * from './components/Tags';\nexport { default as Tasks } from './components/Tasks';\nexport * from './components/Tasks';\nexport { default as UtilitiesLayout } from './components/UtilitiesLayout';\nexport * from './components/UtilitiesLayout';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/cosmos-react-work",
|
|
3
|
-
"version": "10.0.0-build.9.
|
|
3
|
+
"version": "10.0.0-build.9.15",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "Pegasystems",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"build": "tsc -b tsconfig.build.json"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@pega/cosmos-react-core": "10.0.0-build.9.
|
|
18
|
-
"@pega/cosmos-react-rte": "10.0.0-build.9.
|
|
17
|
+
"@pega/cosmos-react-core": "10.0.0-build.9.15",
|
|
18
|
+
"@pega/cosmos-react-rte": "10.0.0-build.9.15",
|
|
19
19
|
"@types/react": "^17.0.62 || ^18.3.3",
|
|
20
20
|
"@types/react-dom": "^17.0.20 || ^18.3.0",
|
|
21
21
|
"polished": "^4.1.0",
|