@backstage/ui 0.10.0 → 0.11.0-next.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/css/styles.css +43 -17
  3. package/dist/components/Box/Box.esm.js +13 -6
  4. package/dist/components/Box/Box.esm.js.map +1 -1
  5. package/dist/components/Box/Box.module.css.esm.js +1 -1
  6. package/dist/components/Box/definition.esm.js +4 -1
  7. package/dist/components/Box/definition.esm.js.map +1 -1
  8. package/dist/components/Button/Button.esm.js +12 -1
  9. package/dist/components/Button/Button.esm.js.map +1 -1
  10. package/dist/components/Button/Button.module.css.esm.js +1 -1
  11. package/dist/components/Flex/Flex.esm.js +14 -6
  12. package/dist/components/Flex/Flex.esm.js.map +1 -1
  13. package/dist/components/Flex/Flex.module.css.esm.js +1 -1
  14. package/dist/components/Flex/definition.esm.js +4 -1
  15. package/dist/components/Flex/definition.esm.js.map +1 -1
  16. package/dist/components/Grid/Grid.esm.js +27 -12
  17. package/dist/components/Grid/Grid.esm.js.map +1 -1
  18. package/dist/components/Grid/Grid.module.css.esm.js +2 -2
  19. package/dist/components/Grid/definition.esm.js +8 -2
  20. package/dist/components/Grid/definition.esm.js.map +1 -1
  21. package/dist/components/Header/Header.module.css.esm.js +1 -1
  22. package/dist/components/Link/Link.esm.js +9 -6
  23. package/dist/components/Link/Link.esm.js.map +1 -1
  24. package/dist/components/SearchField/SearchField.esm.js +14 -21
  25. package/dist/components/SearchField/SearchField.esm.js.map +1 -1
  26. package/dist/components/SearchField/SearchField.module.css.esm.js +1 -1
  27. package/dist/components/Table/Table.module.css.esm.js +1 -1
  28. package/dist/components/Table/components/Table.esm.js +154 -15
  29. package/dist/components/Table/components/Table.esm.js.map +1 -1
  30. package/dist/components/Table/components/TableRoot.esm.js +26 -0
  31. package/dist/components/Table/components/TableRoot.esm.js.map +1 -0
  32. package/dist/components/Table/definition.esm.js +3 -0
  33. package/dist/components/Table/definition.esm.js.map +1 -1
  34. package/dist/components/Table/hooks/useCompletePagination.esm.js +106 -0
  35. package/dist/components/Table/hooks/useCompletePagination.esm.js.map +1 -0
  36. package/dist/components/Table/hooks/useCursorPagination.esm.js +58 -0
  37. package/dist/components/Table/hooks/useCursorPagination.esm.js.map +1 -0
  38. package/dist/components/Table/hooks/useDebouncedReload.esm.js +17 -0
  39. package/dist/components/Table/hooks/useDebouncedReload.esm.js.map +1 -0
  40. package/dist/components/Table/hooks/useOffsetPagination.esm.js +64 -0
  41. package/dist/components/Table/hooks/useOffsetPagination.esm.js.map +1 -0
  42. package/dist/components/Table/hooks/usePageCache.esm.js +168 -0
  43. package/dist/components/Table/hooks/usePageCache.esm.js.map +1 -0
  44. package/dist/components/Table/hooks/useQueryState.esm.js +42 -0
  45. package/dist/components/Table/hooks/useQueryState.esm.js.map +1 -0
  46. package/dist/components/Table/hooks/useStableCallback.esm.js +10 -0
  47. package/dist/components/Table/hooks/useStableCallback.esm.js.map +1 -0
  48. package/dist/components/Table/hooks/useTable.esm.js +80 -99
  49. package/dist/components/Table/hooks/useTable.esm.js.map +1 -1
  50. package/dist/components/TablePagination/TablePagination.esm.js +76 -101
  51. package/dist/components/TablePagination/TablePagination.esm.js.map +1 -1
  52. package/dist/components/ToggleButton/ToggleButton.esm.js +51 -0
  53. package/dist/components/ToggleButton/ToggleButton.esm.js.map +1 -0
  54. package/dist/components/ToggleButton/ToggleButton.module.css.esm.js +8 -0
  55. package/dist/components/ToggleButton/ToggleButton.module.css.esm.js.map +1 -0
  56. package/dist/components/ToggleButton/definition.esm.js +12 -0
  57. package/dist/components/ToggleButton/definition.esm.js.map +1 -0
  58. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.esm.js +33 -0
  59. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.esm.js.map +1 -0
  60. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.module.css.esm.js +8 -0
  61. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.module.css.esm.js.map +1 -0
  62. package/dist/components/ToggleButtonGroup/definition.esm.js +11 -0
  63. package/dist/components/ToggleButtonGroup/definition.esm.js.map +1 -0
  64. package/dist/hooks/useSurface.esm.js +74 -0
  65. package/dist/hooks/useSurface.esm.js.map +1 -0
  66. package/dist/index.d.ts +306 -92
  67. package/dist/index.esm.js +5 -0
  68. package/dist/index.esm.js.map +1 -1
  69. package/package.json +5 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleButtonGroup.esm.js","sources":["../../../src/components/ToggleButtonGroup/ToggleButtonGroup.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport clsx from 'clsx';\nimport { forwardRef, Ref } from 'react';\nimport { ToggleButtonGroup as AriaToggleButtonGroup } from 'react-aria-components';\nimport type { ToggleButtonGroupProps } from './types';\nimport { useStyles } from '../../hooks/useStyles';\nimport { ToggleButtonGroupDefinition } from './definition';\nimport styles from './ToggleButtonGroup.module.css';\n\n/** @public */\nexport const ToggleButtonGroup = forwardRef(\n (props: ToggleButtonGroupProps, ref: Ref<HTMLDivElement>) => {\n const { classNames, dataAttributes, cleanedProps } = useStyles(\n ToggleButtonGroupDefinition,\n {\n ...props,\n },\n );\n\n const { className, children, ...rest } = cleanedProps;\n\n return (\n <AriaToggleButtonGroup\n className={clsx(classNames.root, styles[classNames.root], className)}\n ref={ref}\n {...dataAttributes}\n {...rest}\n >\n {children}\n </AriaToggleButtonGroup>\n );\n },\n);\n\nToggleButtonGroup.displayName = 'ToggleButtonGroup';\n"],"names":["AriaToggleButtonGroup"],"mappings":";;;;;;;;AAyBO,MAAM,iBAAA,GAAoB,UAAA;AAAA,EAC/B,CAAC,OAA+B,GAAA,KAA6B;AAC3D,IAAA,MAAM,EAAE,UAAA,EAAY,cAAA,EAAgB,YAAA,EAAa,GAAI,SAAA;AAAA,MACnD,2BAAA;AAAA,MACA;AAAA,QACE,GAAG;AAAA;AACL,KACF;AAEA,IAAA,MAAM,EAAE,SAAA,EAAW,QAAA,EAAU,GAAG,MAAK,GAAI,YAAA;AAEzC,IAAA,uBACE,GAAA;AAAA,MAACA,mBAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,KAAK,UAAA,CAAW,IAAA,EAAM,OAAO,UAAA,CAAW,IAAI,GAAG,SAAS,CAAA;AAAA,QACnE,GAAA;AAAA,QACC,GAAG,cAAA;AAAA,QACH,GAAG,IAAA;AAAA,QAEH;AAAA;AAAA,KACH;AAAA,EAEJ;AACF;AAEA,iBAAA,CAAkB,WAAA,GAAc,mBAAA;;;;"}
@@ -0,0 +1,8 @@
1
+ import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
2
+
3
+ var css_248z = "/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n@layer tokens, base, components, utilities;\n\n@layer components {\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx {\n display: inline-flex;\n align-items: center;\n flex-wrap: nowrap;\n border-radius: var(--bui-radius-2);\n overflow: hidden;\n box-shadow: inset 0 0 0 1px var(--bui-border);\n width: fit-content;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical'] {\n flex-direction: column;\n align-items: stretch;\n width: fit-content;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx > .bui-ToggleButton {\n border-radius: 0;\n margin: 0;\n box-shadow: none;\n border: 0;\n }\n\n /* Horizontal radius rules (default orientation) */\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:not([data-orientation='vertical'])\n > .bui-ToggleButton {\n border-radius: 0;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:not([data-orientation='vertical'])\n > .bui-ToggleButton:first-child {\n border-radius: var(--bui-radius-2) 0 0 var(--bui-radius-2);\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:not([data-orientation='vertical'])\n > .bui-ToggleButton:last-child {\n border-radius: 0 var(--bui-radius-2) var(--bui-radius-2) 0;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:not([data-orientation='vertical'])\n > .bui-ToggleButton:only-child {\n border-radius: var(--bui-radius-2);\n }\n\n /* Horizontal dividers */\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:not([data-orientation='vertical'])\n .bui-ToggleButton\n + .bui-ToggleButton {\n border-left: 1px solid var(--bui-border);\n }\n\n /* Vertical dividers */\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n .bui-ToggleButton {\n width: 100%;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n .bui-ToggleButton\n + .bui-ToggleButton {\n border-top: 1px solid var(--bui-border);\n }\n\n /* Vertical radius rules */\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n > .bui-ToggleButton {\n border-radius: 0;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n > .bui-ToggleButton:first-child {\n border-radius: var(--bui-radius-2) var(--bui-radius-2) 0 0;\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n > .bui-ToggleButton:last-child {\n border-radius: 0 0 var(--bui-radius-2) var(--bui-radius-2);\n }\n\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx[data-orientation='vertical']\n > .bui-ToggleButton:only-child {\n border-radius: var(--bui-radius-2);\n }\n\n /* Focus ring on group surface */\n .ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx:focus-visible {\n outline: 2px solid var(--bui-ring);\n outline-offset: 2px;\n }\n}\n";
4
+ var styles = {"bui-ToggleButtonGroup":"ToggleButtonGroup-module_bui-ToggleButtonGroup__2tWrx"};
5
+ styleInject(css_248z);
6
+
7
+ export { styles as default };
8
+ //# sourceMappingURL=ToggleButtonGroup.module.css.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToggleButtonGroup.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,11 @@
1
+ const ToggleButtonGroupDefinition = {
2
+ classNames: {
3
+ root: "bui-ToggleButtonGroup"
4
+ },
5
+ dataAttributes: {
6
+ orientation: ["horizontal", "vertical"]
7
+ }
8
+ };
9
+
10
+ export { ToggleButtonGroupDefinition };
11
+ //# sourceMappingURL=definition.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.esm.js","sources":["../../../src/components/ToggleButtonGroup/definition.ts"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { ComponentDefinition } from '../../types';\n\n/**\n * Component definition for ToggleButtonGroup\n * @public\n */\nexport const ToggleButtonGroupDefinition = {\n classNames: {\n root: 'bui-ToggleButtonGroup',\n },\n dataAttributes: {\n orientation: ['horizontal', 'vertical'] as const,\n },\n} as const satisfies ComponentDefinition;\n"],"names":[],"mappings":"AAsBO,MAAM,2BAAA,GAA8B;AAAA,EACzC,UAAA,EAAY;AAAA,IACV,IAAA,EAAM;AAAA,GACR;AAAA,EACA,cAAA,EAAgB;AAAA,IACd,WAAA,EAAa,CAAC,YAAA,EAAc,UAAU;AAAA;AAE1C;;;;"}
@@ -0,0 +1,74 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { useContext } from 'react';
3
+ import { createVersionedContext, createVersionedValueMap } from '@backstage/version-bridge';
4
+
5
+ const SurfaceContext = createVersionedContext("surface-context");
6
+ function incrementSurface(surface) {
7
+ if (!surface) return "0";
8
+ if (surface === "0") return "1";
9
+ if (surface === "1") return "2";
10
+ if (surface === "2" || surface === "3") return "3";
11
+ if (surface === "danger") return "danger";
12
+ if (surface === "warning") return "warning";
13
+ if (surface === "success") return "success";
14
+ if (surface === "auto") return "1";
15
+ return surface;
16
+ }
17
+ function resolveSurfaceForProvider(contextSurface, requestedSurface) {
18
+ if (!requestedSurface) {
19
+ return contextSurface;
20
+ }
21
+ if (typeof requestedSurface === "object") {
22
+ return requestedSurface;
23
+ }
24
+ if (typeof contextSurface === "object") {
25
+ if (requestedSurface === "auto") {
26
+ return "0";
27
+ }
28
+ return requestedSurface;
29
+ }
30
+ if (requestedSurface === "auto") {
31
+ return incrementSurface(contextSurface);
32
+ }
33
+ return requestedSurface;
34
+ }
35
+ function resolveSurfaceForConsumer(contextSurface, requestedSurface) {
36
+ if (!requestedSurface) {
37
+ return contextSurface;
38
+ }
39
+ if (typeof requestedSurface === "object") {
40
+ return requestedSurface;
41
+ }
42
+ if (requestedSurface === "auto") {
43
+ if (typeof contextSurface === "object") {
44
+ return "0";
45
+ }
46
+ return contextSurface;
47
+ }
48
+ return requestedSurface;
49
+ }
50
+ const SurfaceProvider = ({
51
+ surface,
52
+ children
53
+ }) => {
54
+ return /* @__PURE__ */ jsx(
55
+ SurfaceContext.Provider,
56
+ {
57
+ value: createVersionedValueMap({ 1: { surface } }),
58
+ children
59
+ }
60
+ );
61
+ };
62
+ const useSurface = (options) => {
63
+ const value = useContext(SurfaceContext)?.atVersion(1);
64
+ const context = value ?? { surface: void 0 };
65
+ const isProvider = options?.surface !== void 0;
66
+ const requestedSurface = options?.surface ?? options?.onSurface;
67
+ const resolvedSurface = isProvider ? resolveSurfaceForProvider(context.surface, requestedSurface) : resolveSurfaceForConsumer(context.surface, requestedSurface);
68
+ return {
69
+ surface: resolvedSurface
70
+ };
71
+ };
72
+
73
+ export { SurfaceProvider, resolveSurfaceForProvider, useSurface };
74
+ //# sourceMappingURL=useSurface.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSurface.esm.js","sources":["../../src/hooks/useSurface.tsx"],"sourcesContent":["/*\n * Copyright 2025 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { useContext, ReactNode } from 'react';\nimport {\n createVersionedContext,\n createVersionedValueMap,\n} from '@backstage/version-bridge';\nimport { Surface, Responsive } from '../types';\n\n/** @public */\nexport interface SurfaceContextValue {\n surface: Responsive<Surface> | undefined;\n}\n\n/** @public */\nexport interface SurfaceProviderProps {\n surface: Responsive<Surface>;\n children: ReactNode;\n}\n\n/** @public */\nexport interface UseSurfaceOptions {\n /**\n * The surface value this component CREATES for its children (container behavior).\n * When 'auto', increments from parent surface.\n *\n * Use this for components like Box, Flex, Grid that establish surface context.\n */\n surface?: Responsive<Surface>;\n /**\n * The surface value this component is ON for styling (leaf behavior).\n * When 'auto', inherits from current surface.\n *\n * Use this for leaf components like Button that consume surface for styling.\n */\n onSurface?: Responsive<Surface>;\n}\n\nconst SurfaceContext = createVersionedContext<{\n 1: SurfaceContextValue;\n}>('surface-context');\n\n/**\n * Increments a surface level by one, capping at '3'.\n * Intent surfaces (danger, warning, success) remain unchanged.\n *\n * @internal\n */\nfunction incrementSurface(surface: Surface | undefined): Surface {\n if (!surface) return '0'; // no context = root level\n if (surface === '0') return '1';\n if (surface === '1') return '2';\n if (surface === '2' || surface === '3') return '3'; // cap at max\n // Intent surfaces remain unchanged\n if (surface === 'danger') return 'danger';\n if (surface === 'warning') return 'warning';\n if (surface === 'success') return 'success';\n // 'auto' should not appear here, but handle it defensively\n if (surface === 'auto') return '1';\n return surface;\n}\n\n/**\n * Resolves a surface value for containers (SurfaceProvider).\n * When 'auto' is used, increments from the parent surface.\n * For responsive surfaces (objects), returns them as-is without resolution.\n *\n * @param contextSurface - The surface from context\n * @param requestedSurface - The requested surface value (may be 'auto')\n * @returns The resolved surface value\n * @internal\n */\nexport function resolveSurfaceForProvider(\n contextSurface: Responsive<Surface> | undefined,\n requestedSurface: Responsive<Surface> | undefined,\n): Responsive<Surface> | undefined {\n if (!requestedSurface) {\n return contextSurface;\n }\n\n // If requestedSurface is a responsive object (breakpoint-based), return as-is\n if (typeof requestedSurface === 'object') {\n return requestedSurface;\n }\n\n // If contextSurface is a responsive object, we can't auto-increment from it\n // Return the requested surface as-is or default to '0' for auto\n if (typeof contextSurface === 'object') {\n if (requestedSurface === 'auto') {\n return '0'; // fallback to root when context is responsive\n }\n return requestedSurface;\n }\n\n // For containers, 'auto' means increment to create a new elevated context\n if (requestedSurface === 'auto') {\n return incrementSurface(contextSurface);\n }\n\n return requestedSurface;\n}\n\n/**\n * Resolves a surface value for leaf components (useSurface hook).\n * When 'auto' is used, inherits the current surface (doesn't increment).\n * For responsive surfaces (objects), returns them as-is without resolution.\n *\n * @param contextSurface - The surface from context\n * @param requestedSurface - The requested surface value (may be 'auto')\n * @returns The resolved surface value\n * @internal\n */\nfunction resolveSurfaceForConsumer(\n contextSurface: Responsive<Surface> | undefined,\n requestedSurface: Responsive<Surface> | undefined,\n): Responsive<Surface> | undefined {\n if (!requestedSurface) {\n return contextSurface;\n }\n\n // If requestedSurface is a responsive object (breakpoint-based), return as-is\n if (typeof requestedSurface === 'object') {\n return requestedSurface;\n }\n\n // For leaf components, 'auto' means inherit the current surface\n if (requestedSurface === 'auto') {\n // If context is responsive, fallback to '0'\n if (typeof contextSurface === 'object') {\n return '0';\n }\n return contextSurface;\n }\n\n return requestedSurface;\n}\n\n/**\n * Provider component that establishes the surface context for child components.\n * This allows components to adapt their styling based on their background surface.\n *\n * Note: The surface value should already be resolved before passing to this provider.\n * Container components should use useSurface with the surface parameter.\n *\n * @internal\n */\nexport const SurfaceProvider = ({\n surface,\n children,\n}: SurfaceProviderProps) => {\n return (\n <SurfaceContext.Provider\n value={createVersionedValueMap({ 1: { surface } })}\n >\n {children}\n </SurfaceContext.Provider>\n );\n};\n\n/**\n * Hook to access the current surface context.\n * Returns the current surface level, or undefined if no provider is present.\n *\n * The parameter name determines the behavior:\n * - `surface`: Container behavior - 'auto' increments from parent\n * - `onSurface`: Leaf behavior - 'auto' inherits from parent\n *\n * @param options - Optional configuration for surface resolution\n * @internal\n */\nexport const useSurface = (\n options?: UseSurfaceOptions,\n): SurfaceContextValue => {\n const value = useContext(SurfaceContext)?.atVersion(1);\n const context = value ?? { surface: undefined };\n\n // Infer behavior from which parameter is provided\n // 'surface' = provider behavior (increment)\n // 'onSurface' = consumer behavior (inherit)\n const isProvider = options?.surface !== undefined;\n const requestedSurface = options?.surface ?? options?.onSurface;\n\n const resolvedSurface = isProvider\n ? resolveSurfaceForProvider(context.surface, requestedSurface)\n : resolveSurfaceForConsumer(context.surface, requestedSurface);\n\n return {\n surface: resolvedSurface,\n };\n};\n"],"names":[],"mappings":";;;;AAoDA,MAAM,cAAA,GAAiB,uBAEpB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