@backstage/plugin-api-docs 0.9.1-next.2 → 0.9.2-next.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @backstage/plugin-api-docs
2
2
 
3
+ ## 0.9.2-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - ca50c3bbea1: Corrected styling of nested objects in AsyncAPI to avoid inappropriate uppercase text transformation of nested objects.
8
+ - 8e00acb28db: Small tweaks to remove warnings in the console during development (mainly focusing on techdocs)
9
+ - Updated dependencies
10
+ - @backstage/plugin-catalog@1.10.0-next.0
11
+ - @backstage/core-components@0.12.6-next.0
12
+ - @backstage/plugin-catalog-react@1.4.1-next.0
13
+ - @backstage/core-plugin-api@1.5.0
14
+ - @backstage/catalog-model@1.2.1
15
+ - @backstage/theme@0.2.18
16
+
17
+ ## 0.9.1
18
+
19
+ ### Patch Changes
20
+
21
+ - 095e755d9b5: Add ApiDefinitionDialog component for fast access to the API definition in ProvidedApiCards and ConsumedApiCards.
22
+ - 8bc7dcec820: Fix dark theme Swagger's clear button font color.
23
+ - 52b0022dab7: Updated dependency `msw` to `^1.0.0`.
24
+ - 9820eb5d24f: Add a `columns` prop to certain components that use the `EntityTable` for easier extensibility.
25
+ - Updated dependencies
26
+ - @backstage/plugin-catalog@1.9.0
27
+ - @backstage/core-components@0.12.5
28
+ - @backstage/plugin-catalog-react@1.4.0
29
+ - @backstage/core-plugin-api@1.5.0
30
+ - @backstage/catalog-model@1.2.1
31
+ - @backstage/theme@0.2.18
32
+
3
33
  ## 0.9.1-next.2
4
34
 
5
35
  ### Patch Changes
@@ -58,7 +58,9 @@ const useStyles = makeStyles((theme) => ({
58
58
  "& button": {
59
59
  ...theme.typography.button,
60
60
  borderRadius: theme.shape.borderRadius,
61
- color: theme.palette.primary.main
61
+ color: theme.palette.primary.main,
62
+ // override whatever may be in the theme's typography to ensure consistency with asyncapi
63
+ textTransform: "inherit"
62
64
  },
63
65
  "& a": {
64
66
  color: theme.palette.link
@@ -146,4 +148,4 @@ const AsyncApiDefinition = ({ definition }) => {
146
148
  };
147
149
 
148
150
  export { AsyncApiDefinition };
149
- //# sourceMappingURL=AsyncApiDefinition-cc50bace.esm.js.map
151
+ //# sourceMappingURL=AsyncApiDefinition-64604cbd.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncApiDefinition-64604cbd.esm.js","sources":["../../../src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 AsyncApi from '@asyncapi/react-component';\nimport '@asyncapi/react-component/styles/default.css';\nimport { makeStyles, alpha, darken } from '@material-ui/core/styles';\nimport { BackstageTheme } from '@backstage/theme';\nimport React from 'react';\nimport { useTheme } from '@material-ui/core';\n\nconst useStyles = makeStyles((theme: BackstageTheme) => ({\n root: {\n fontFamily: 'inherit',\n '& .bg-white': {\n background: 'none',\n },\n '& .text-4xl': {\n ...theme.typography.h3,\n },\n ' & h2': {\n ...theme.typography.h4,\n },\n '& .border': {\n borderColor: alpha(theme.palette.border, 0.1),\n },\n '& .min-w-min': {\n minWidth: 'fit-content',\n },\n '& .examples': {\n padding: '1rem',\n },\n '& .bg-teal-500': {\n backgroundColor: theme.palette.status.ok,\n },\n '& .bg-blue-500': {\n backgroundColor: theme.palette.info.main,\n },\n '& .bg-blue-400': {\n backgroundColor: theme.palette.info.light,\n },\n '& .bg-indigo-400': {\n backgroundColor: theme.palette.warning.main,\n },\n '& .text-teal-50': {\n color: theme.palette.status.ok,\n },\n '& .text-red-600': {\n color: theme.palette.error.main,\n },\n '& .text-orange-600': {\n color: theme.palette.warning.main,\n },\n '& .text-teal-500': {\n color: theme.palette.status.ok,\n },\n '& .text-blue-500': {\n color: theme.palette.info.main,\n },\n '& .-rotate-90': {\n '--tw-rotate': '0deg',\n },\n '& button': {\n ...theme.typography.button,\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.primary.main,\n // override whatever may be in the theme's typography to ensure consistency with asyncapi\n textTransform: 'inherit',\n },\n '& a': {\n color: theme.palette.link,\n },\n '& a.no-underline': {\n ...theme.typography.button,\n background: 'none',\n boxSizing: 'border-box',\n minWidth: 64,\n borderRadius: theme.shape.borderRadius,\n transition: theme.transitions.create(\n ['background-color', 'box-shadow', 'border'],\n {\n duration: theme.transitions.duration.short,\n },\n ),\n padding: '5px 15px',\n color: theme.palette.primary.main,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.5)}`,\n '&:hover': {\n textDecoration: 'none',\n border: `1px solid ${theme.palette.primary.main}`,\n backgroundColor: alpha(\n theme.palette.primary.main,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n '& li.no-underline': {\n '& a': {\n textDecoration: 'none',\n color: theme.palette.getContrastText(theme.palette.primary.main),\n },\n },\n },\n dark: {\n '& svg': {\n fill: theme.palette.text.primary,\n },\n '& .prose': {\n color: theme.palette.text.secondary,\n '& h3': {\n color: theme.palette.text.primary,\n },\n },\n '& .bg-gray-100, .bg-gray-200': {\n backgroundColor: theme.palette.background.default,\n },\n '& .text-gray-600': {\n color: theme.palette.grey['50'],\n },\n '& .text-gray-700': {\n color: theme.palette.grey['100'],\n },\n '& .panel--right': {\n background: darken(theme.palette.navigation.background, 0.1),\n },\n '& .examples': {\n backgroundColor: darken(theme.palette.navigation.background, 0.1),\n '& pre': {\n backgroundColor: darken(theme.palette.background.default, 0.2),\n },\n },\n },\n}));\n\nconst fetchResolver = {\n order: 199, // Use 199 as the built-in http resolver is 200\n canRead: /^https?:\\/\\//,\n async read(file: any) {\n const response = await fetch(file.url);\n return response.text();\n },\n};\n\nconst config = {\n parserOptions: {\n resolve: { fetch: fetchResolver },\n },\n};\n\ntype Props = {\n definition: string;\n};\n\nexport const AsyncApiDefinition = ({ definition }: Props): JSX.Element => {\n const classes = useStyles();\n const theme = useTheme();\n const classNames = `${classes.root} ${\n theme.palette.type === 'dark' ? classes.dark : ''\n }`;\n\n return (\n <div className={classNames}>\n <AsyncApi schema={definition} config={config} />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBA,MAAM,SAAA,GAAY,UAAW,CAAA,CAAC,KAA2B,MAAA;AAAA,EACvD,IAAM,EAAA;AAAA,IACJ,UAAY,EAAA,SAAA;AAAA,IACZ,aAAe,EAAA;AAAA,MACb,UAAY,EAAA,MAAA;AAAA,KACd;AAAA,IACA,aAAe,EAAA;AAAA,MACb,GAAG,MAAM,UAAW,CAAA,EAAA;AAAA,KACtB;AAAA,IACA,OAAS,EAAA;AAAA,MACP,GAAG,MAAM,UAAW,CAAA,EAAA;AAAA,KACtB;AAAA,IACA,WAAa,EAAA;AAAA,MACX,WAAa,EAAA,KAAA,CAAM,KAAM,CAAA,OAAA,CAAQ,QAAQ,GAAG,CAAA;AAAA,KAC9C;AAAA,IACA,cAAgB,EAAA;AAAA,MACd,QAAU,EAAA,aAAA;AAAA,KACZ;AAAA,IACA,aAAe,EAAA;AAAA,MACb,OAAS,EAAA,MAAA;AAAA,KACX;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,MAAO,CAAA,EAAA;AAAA,KACxC;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA,IAAA;AAAA,KACtC;AAAA,IACA,gBAAkB,EAAA;AAAA,MAChB,eAAA,EAAiB,KAAM,CAAA,OAAA,CAAQ,IAAK,CAAA,KAAA;AAAA,KACtC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AA;AACxE,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAC1B,EAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AACvB,EAAM,MAAA,UAAA,GAAa,GAAG,OAAQ,CAAA,IAAA,CAAA,CAAA,EAC5B,MAAM,OAAQ,CAAA,IAAA,KAAS,MAAS,GAAA,OAAA,CAAQ,IAAO,GAAA,EAAA,CAAA,CAAA,CAAA;AAGjD,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,SAAI,SAAW,EAAA,UAAA,EAAA,sCACb,QAAS,EAAA,EAAA,MAAA,EAAQ,UAAY,EAAA,MAAA,EAAgB,CAChD,CAAA,CAAA;AAEJ;;;;"}
@@ -11,4 +11,4 @@ import '@material-ui/core/Typography';
11
11
  import '@material-ui/core';
12
12
  import '@backstage/catalog-model';
13
13
  import '@material-ui/icons/Extension';
14
- //# sourceMappingURL=index-3ee49c99.esm.js.map
14
+ //# sourceMappingURL=index-698b26f2.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-698b26f2.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -11,4 +11,4 @@ import '@material-ui/core/Typography';
11
11
  import '@material-ui/core';
12
12
  import '@backstage/catalog-model';
13
13
  import '@material-ui/icons/Extension';
14
- //# sourceMappingURL=index-810371c6.esm.js.map
14
+ //# sourceMappingURL=index-79cdccac.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-79cdccac.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -11,4 +11,4 @@ import '@material-ui/core/Typography';
11
11
  import '@material-ui/core';
12
12
  import '@backstage/catalog-model';
13
13
  import '@material-ui/icons/Extension';
14
- //# sourceMappingURL=index-264f4920.esm.js.map
14
+ //# sourceMappingURL=index-926f0046.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-926f0046.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -11,4 +11,4 @@ import '@material-ui/core/Typography';
11
11
  import '@material-ui/core';
12
12
  import '@backstage/catalog-model';
13
13
  import '@material-ui/icons/Extension';
14
- //# sourceMappingURL=index-f4134bcd.esm.js.map
14
+ //# sourceMappingURL=index-ba7aa4a3.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-ba7aa4a3.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
package/dist/index.esm.js CHANGED
@@ -117,7 +117,7 @@ const ApiDefinitionCard = () => {
117
117
  };
118
118
 
119
119
  const LazyAsyncApiDefinition = React.lazy(
120
- () => import('./esm/index/AsyncApiDefinition-cc50bace.esm.js').then((m) => ({
120
+ () => import('./esm/index/AsyncApiDefinition-64604cbd.esm.js').then((m) => ({
121
121
  default: m.AsyncApiDefinition
122
122
  }))
123
123
  );
@@ -534,7 +534,7 @@ const apiDocsPlugin = createPlugin({
534
534
  const ApiExplorerPage = apiDocsPlugin.provide(
535
535
  createRoutableExtension({
536
536
  name: "ApiExplorerPage",
537
- component: () => import('./esm/index/index-3ee49c99.esm.js').then((m) => m.ApiExplorerIndexPage),
537
+ component: () => import('./esm/index/index-698b26f2.esm.js').then((m) => m.ApiExplorerIndexPage),
538
538
  mountPoint: rootRoute
539
539
  })
540
540
  );
@@ -542,7 +542,7 @@ const EntityApiDefinitionCard = apiDocsPlugin.provide(
542
542
  createComponentExtension({
543
543
  name: "EntityApiDefinitionCard",
544
544
  component: {
545
- lazy: () => import('./esm/index/index-810371c6.esm.js').then((m) => m.ApiDefinitionCard)
545
+ lazy: () => import('./esm/index/index-79cdccac.esm.js').then((m) => m.ApiDefinitionCard)
546
546
  }
547
547
  })
548
548
  );
@@ -550,7 +550,7 @@ const EntityConsumedApisCard = apiDocsPlugin.provide(
550
550
  createComponentExtension({
551
551
  name: "EntityConsumedApisCard",
552
552
  component: {
553
- lazy: () => import('./esm/index/index-f4134bcd.esm.js').then((m) => m.ConsumedApisCard)
553
+ lazy: () => import('./esm/index/index-ba7aa4a3.esm.js').then((m) => m.ConsumedApisCard)
554
554
  }
555
555
  })
556
556
  );
@@ -558,7 +558,7 @@ const EntityConsumingComponentsCard = apiDocsPlugin.provide(
558
558
  createComponentExtension({
559
559
  name: "EntityConsumingComponentsCard",
560
560
  component: {
561
- lazy: () => import('./esm/index/index-264f4920.esm.js').then(
561
+ lazy: () => import('./esm/index/index-926f0046.esm.js').then(
562
562
  (m) => m.ConsumingComponentsCard
563
563
  )
564
564
  }
@@ -568,7 +568,7 @@ const EntityProvidedApisCard = apiDocsPlugin.provide(
568
568
  createComponentExtension({
569
569
  name: "EntityProvidedApisCard",
570
570
  component: {
571
- lazy: () => import('./esm/index/index-f4134bcd.esm.js').then((m) => m.ProvidedApisCard)
571
+ lazy: () => import('./esm/index/index-ba7aa4a3.esm.js').then((m) => m.ProvidedApisCard)
572
572
  }
573
573
  })
574
574
  );
@@ -576,7 +576,7 @@ const EntityProvidingComponentsCard = apiDocsPlugin.provide(
576
576
  createComponentExtension({
577
577
  name: "EntityProvidingComponentsCard",
578
578
  component: {
579
- lazy: () => import('./esm/index/index-264f4920.esm.js').then(
579
+ lazy: () => import('./esm/index/index-926f0046.esm.js').then(
580
580
  (m) => m.ProvidingComponentsCard
581
581
  )
582
582
  }
@@ -586,7 +586,7 @@ const EntityHasApisCard = apiDocsPlugin.provide(
586
586
  createComponentExtension({
587
587
  name: "EntityHasApisCard",
588
588
  component: {
589
- lazy: () => import('./esm/index/index-f4134bcd.esm.js').then((m) => m.HasApisCard)
589
+ lazy: () => import('./esm/index/index-ba7aa4a3.esm.js').then((m) => m.HasApisCard)
590
590
  }
591
591
  })
592
592
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-api-docs",
3
3
  "description": "A Backstage plugin that helps represent API entities in the frontend",
4
- "version": "0.9.1-next.2",
4
+ "version": "0.9.2-next.0",
5
5
  "main": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -33,15 +33,15 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@asyncapi/react-component": "1.0.0-next.47",
36
- "@backstage/catalog-model": "^1.2.1-next.1",
37
- "@backstage/core-components": "^0.12.5-next.2",
38
- "@backstage/core-plugin-api": "^1.5.0-next.2",
39
- "@backstage/plugin-catalog": "^1.9.0-next.2",
40
- "@backstage/plugin-catalog-react": "^1.4.0-next.2",
41
- "@backstage/theme": "^0.2.18-next.0",
36
+ "@backstage/catalog-model": "^1.2.1",
37
+ "@backstage/core-components": "^0.12.6-next.0",
38
+ "@backstage/core-plugin-api": "^1.5.0",
39
+ "@backstage/plugin-catalog": "^1.10.0-next.0",
40
+ "@backstage/plugin-catalog-react": "^1.4.1-next.0",
41
+ "@backstage/theme": "^0.2.18",
42
42
  "@material-ui/core": "^4.12.2",
43
43
  "@material-ui/icons": "^4.9.1",
44
- "@material-ui/lab": "4.0.0-alpha.57",
44
+ "@material-ui/lab": "4.0.0-alpha.61",
45
45
  "graphiql": "^1.8.8",
46
46
  "graphql": "^16.0.0",
47
47
  "graphql-ws": "^5.4.1",
@@ -55,10 +55,10 @@
55
55
  "react-router-dom": "6.0.0-beta.0 || ^6.3.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@backstage/cli": "^0.22.4-next.1",
59
- "@backstage/core-app-api": "^1.6.0-next.2",
60
- "@backstage/dev-utils": "^1.0.13-next.2",
61
- "@backstage/test-utils": "^1.2.6-next.2",
58
+ "@backstage/cli": "^0.22.6-next.0",
59
+ "@backstage/core-app-api": "^1.7.0-next.0",
60
+ "@backstage/dev-utils": "^1.0.14-next.0",
61
+ "@backstage/test-utils": "^1.3.0-next.0",
62
62
  "@testing-library/jest-dom": "^5.10.1",
63
63
  "@testing-library/react": "^12.1.3",
64
64
  "@testing-library/user-event": "^14.0.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"AsyncApiDefinition-cc50bace.esm.js","sources":["../../../src/components/AsyncApiDefinitionWidget/AsyncApiDefinition.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 AsyncApi from '@asyncapi/react-component';\nimport '@asyncapi/react-component/styles/default.css';\nimport { makeStyles, alpha, darken } from '@material-ui/core/styles';\nimport { BackstageTheme } from '@backstage/theme';\nimport React from 'react';\nimport { useTheme } from '@material-ui/core';\n\nconst useStyles = makeStyles((theme: BackstageTheme) => ({\n root: {\n fontFamily: 'inherit',\n '& .bg-white': {\n background: 'none',\n },\n '& .text-4xl': {\n ...theme.typography.h3,\n },\n ' & h2': {\n ...theme.typography.h4,\n },\n '& .border': {\n borderColor: alpha(theme.palette.border, 0.1),\n },\n '& .min-w-min': {\n minWidth: 'fit-content',\n },\n '& .examples': {\n padding: '1rem',\n },\n '& .bg-teal-500': {\n backgroundColor: theme.palette.status.ok,\n },\n '& .bg-blue-500': {\n backgroundColor: theme.palette.info.main,\n },\n '& .bg-blue-400': {\n backgroundColor: theme.palette.info.light,\n },\n '& .bg-indigo-400': {\n backgroundColor: theme.palette.warning.main,\n },\n '& .text-teal-50': {\n color: theme.palette.status.ok,\n },\n '& .text-red-600': {\n color: theme.palette.error.main,\n },\n '& .text-orange-600': {\n color: theme.palette.warning.main,\n },\n '& .text-teal-500': {\n color: theme.palette.status.ok,\n },\n '& .text-blue-500': {\n color: theme.palette.info.main,\n },\n '& .-rotate-90': {\n '--tw-rotate': '0deg',\n },\n '& button': {\n ...theme.typography.button,\n borderRadius: theme.shape.borderRadius,\n color: theme.palette.primary.main,\n },\n '& a': {\n color: theme.palette.link,\n },\n '& a.no-underline': {\n ...theme.typography.button,\n background: 'none',\n boxSizing: 'border-box',\n minWidth: 64,\n borderRadius: theme.shape.borderRadius,\n transition: theme.transitions.create(\n ['background-color', 'box-shadow', 'border'],\n {\n duration: theme.transitions.duration.short,\n },\n ),\n padding: '5px 15px',\n color: theme.palette.primary.main,\n border: `1px solid ${alpha(theme.palette.primary.main, 0.5)}`,\n '&:hover': {\n textDecoration: 'none',\n border: `1px solid ${theme.palette.primary.main}`,\n backgroundColor: alpha(\n theme.palette.primary.main,\n theme.palette.action.hoverOpacity,\n ),\n },\n },\n '& li.no-underline': {\n '& a': {\n textDecoration: 'none',\n color: theme.palette.getContrastText(theme.palette.primary.main),\n },\n },\n },\n dark: {\n '& svg': {\n fill: theme.palette.text.primary,\n },\n '& .prose': {\n color: theme.palette.text.secondary,\n '& h3': {\n color: theme.palette.text.primary,\n },\n },\n '& .bg-gray-100, .bg-gray-200': {\n backgroundColor: theme.palette.background.default,\n },\n '& .text-gray-600': {\n color: theme.palette.grey['50'],\n },\n '& .text-gray-700': {\n color: theme.palette.grey['100'],\n },\n '& .panel--right': {\n background: darken(theme.palette.navigation.background, 0.1),\n },\n '& .examples': {\n backgroundColor: darken(theme.palette.navigation.background, 0.1),\n '& pre': {\n backgroundColor: darken(theme.palette.background.default, 0.2),\n },\n },\n },\n}));\n\nconst fetchResolver = {\n order: 199, // Use 199 as the built-in http resolver is 200\n canRead: /^https?:\\/\\//,\n async read(file: any) {\n const response = await fetch(file.url);\n return response.text();\n },\n};\n\nconst config = {\n parserOptions: {\n resolve: { fetch: fetchResolver },\n },\n};\n\ntype Props = {\n definition: string;\n};\n\nexport const AsyncApiDefinition = ({ definition }: Props): JSX.Element => {\n const classes = useStyles();\n const theme = useTheme();\n const classNames = `${classes.root} ${\n theme.palette.type === 'dark' ? classes.dark : ''\n }`;\n\n return (\n <div className={classNames}>\n <AsyncApi schema={definition} config={config} />\n </div>\n );\n};\n"],"names":[],"mappings":";;;;;;AAuBA,MAA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CAChD,CAAA,CAAA;AAEJ;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-264f4920.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-3ee49c99.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-810371c6.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-f4134bcd.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}