@neo4j-ndl/react 4.2.0 → 4.2.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.
@@ -51,6 +51,7 @@ exports.Default = {
51
51
  exports.Streaming = {
52
52
  args: {},
53
53
  parameters: {
54
+ chromatic: { disableSnapshot: true },
54
55
  docs: {
55
56
  source: {
56
57
  code: index_1.ResponseStreamingSource,
@@ -1 +1 @@
1
- {"version":3,"file":"response.stories.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":";;;;AAuBA,0CAAuC;AACvC,mCAeiB;AAEjB,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,mBAAQ;IACnB,EAAE,EAAE,wBAAwB;IAC5B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC;AAEF,kBAAe,IAAI,CAAC;AAGP,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAAuB;gBAC7B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,yBAAiB;CAC1B,CAAC;AAEW,QAAA,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mCAA2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of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Response } from '../Response';\nimport {\n ResponseAllComponents,\n ResponseAllComponentsSource,\n ResponseCodeExamples,\n ResponseCodeExamplesSource,\n ResponseDefault,\n ResponseDefaultSource,\n ResponseFullExample,\n ResponseFullExampleSource,\n ResponseHeadings,\n ResponseHeadingsSource,\n ResponseLists,\n ResponseListsSource,\n ResponseStreaming,\n ResponseStreamingSource,\n} from './index';\n\nconst meta: Meta<typeof Response> = {\n component: Response,\n id: 'components-ai-response',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/AI/Response',\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Response>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseDefault,\n};\n\nexport const Streaming: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseStreamingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseStreaming,\n};\n\nexport const AllComponents: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseAllComponentsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseAllComponents,\n};\n\nexport const CodeExamples: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseCodeExamplesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseCodeExamples,\n};\n\nexport const Headings: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseHeadingsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseHeadings,\n};\n\nexport const Lists: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseListsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseLists,\n};\n\nexport const FullExample: Story = {\n args: {},\n decorators: [\n (Story) => (\n <div className=\"n-bg-neutral-bg-default n-p-4\">\n <Story />\n </div>\n ),\n ],\n parameters: {\n docs: {\n source: {\n code: ResponseFullExampleSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseFullExample,\n};\n"]}
1
+ {"version":3,"file":"response.stories.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":";;;;AAuBA,0CAAuC;AACvC,mCAeiB;AAEjB,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,mBAAQ;IACnB,EAAE,EAAE,wBAAwB;IAC5B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC;AAEF,kBAAe,IAAI,CAAC;AAGP,QAAA,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,6BAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;QACpC,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,+BAAuB;gBAC7B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;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,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,2BAAmB;CAC5B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Response } from '../Response';\nimport {\n ResponseAllComponents,\n ResponseAllComponentsSource,\n ResponseCodeExamples,\n ResponseCodeExamplesSource,\n ResponseDefault,\n ResponseDefaultSource,\n ResponseFullExample,\n ResponseFullExampleSource,\n ResponseHeadings,\n ResponseHeadingsSource,\n ResponseLists,\n ResponseListsSource,\n ResponseStreaming,\n ResponseStreamingSource,\n} from './index';\n\nconst meta: Meta<typeof Response> = {\n component: Response,\n id: 'components-ai-response',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/AI/Response',\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Response>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseDefault,\n};\n\nexport const Streaming: Story = {\n args: {},\n parameters: {\n chromatic: { disableSnapshot: true },\n docs: {\n source: {\n code: ResponseStreamingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseStreaming,\n};\n\nexport const AllComponents: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseAllComponentsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseAllComponents,\n};\n\nexport const CodeExamples: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseCodeExamplesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseCodeExamples,\n};\n\nexport const Headings: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseHeadingsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseHeadings,\n};\n\nexport const Lists: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseListsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseLists,\n};\n\nexport const FullExample: Story = {\n args: {},\n decorators: [\n (Story) => (\n <div className=\"n-bg-neutral-bg-default n-p-4\">\n <Story />\n </div>\n ),\n ],\n parameters: {\n docs: {\n source: {\n code: ResponseFullExampleSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseFullExample,\n};\n"]}
@@ -48,6 +48,7 @@ export const Default = {
48
48
  export const Streaming = {
49
49
  args: {},
50
50
  parameters: {
51
+ chromatic: { disableSnapshot: true },
51
52
  docs: {
52
53
  source: {
53
54
  code: ResponseStreamingSource,
@@ -1 +1 @@
1
- {"version":3,"file":"response.stories.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,QAAQ;IACnB,EAAE,EAAE,wBAAwB;IAC5B,UAAU,EAAE;QACV,QAAQ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IAAI,EAAE,sBAAsB;gBAC5B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,gBAAgB;CACzB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAU;IAC1B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,mBAAmB;gBACzB,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,aAAa;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,KAAK,KAAG,GACL,CACP;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,yBAAyB;gBAC/B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,mBAAmB;CAC5B,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Response } from '../Response';\nimport {\n ResponseAllComponents,\n ResponseAllComponentsSource,\n ResponseCodeExamples,\n ResponseCodeExamplesSource,\n ResponseDefault,\n ResponseDefaultSource,\n ResponseFullExample,\n ResponseFullExampleSource,\n ResponseHeadings,\n ResponseHeadingsSource,\n ResponseLists,\n ResponseListsSource,\n ResponseStreaming,\n ResponseStreamingSource,\n} from './index';\n\nconst meta: Meta<typeof Response> = {\n component: Response,\n id: 'components-ai-response',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/AI/Response',\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Response>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseDefault,\n};\n\nexport const Streaming: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseStreamingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseStreaming,\n};\n\nexport const AllComponents: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseAllComponentsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseAllComponents,\n};\n\nexport const CodeExamples: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseCodeExamplesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseCodeExamples,\n};\n\nexport const Headings: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseHeadingsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseHeadings,\n};\n\nexport const Lists: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseListsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseLists,\n};\n\nexport const FullExample: Story = {\n args: {},\n decorators: [\n (Story) => (\n <div className=\"n-bg-neutral-bg-default n-p-4\">\n <Story />\n </div>\n ),\n ],\n parameters: {\n docs: {\n source: {\n code: ResponseFullExampleSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseFullExample,\n};\n"]}
1
+ {"version":3,"file":"response.stories.js","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,oBAAoB,EACpB,0BAA0B,EAC1B,eAAe,EACf,qBAAqB,EACrB,mBAAmB,EACnB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AAEjB,MAAM,IAAI,GAA0B;IAClC,SAAS,EAAE,QAAQ;IACnB,EAAE,EAAE,wBAAwB;IAC5B,UAAU,EAAE;QACV,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KAC5B;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,KAAK,EAAE,wBAAwB;CAChC,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB;gBAC3B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,eAAe;CACxB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,SAAS,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;QACpC,IAAI,EAAE;YACJ,MAAM,EAAE;gBACN,IAAI,EAAE,uBAAuB;gBAC7B,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,MAAM;aACb;SACF;KACF;IACD,MAAM,EAAE,iBAAiB;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,IAAI,EAAE,EAAE;IACR,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,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","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/react-vite';\n\nimport { Response } from '../Response';\nimport {\n ResponseAllComponents,\n ResponseAllComponentsSource,\n ResponseCodeExamples,\n ResponseCodeExamplesSource,\n ResponseDefault,\n ResponseDefaultSource,\n ResponseFullExample,\n ResponseFullExampleSource,\n ResponseHeadings,\n ResponseHeadingsSource,\n ResponseLists,\n ResponseListsSource,\n ResponseStreaming,\n ResponseStreamingSource,\n} from './index';\n\nconst meta: Meta<typeof Response> = {\n component: Response,\n id: 'components-ai-response',\n parameters: {\n controls: { disable: true },\n },\n tags: ['docsPage'],\n title: 'Components/AI/Response',\n};\n\nexport default meta;\ntype Story = StoryObj<typeof Response>;\n\nexport const Default: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseDefaultSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseDefault,\n};\n\nexport const Streaming: Story = {\n args: {},\n parameters: {\n chromatic: { disableSnapshot: true },\n docs: {\n source: {\n code: ResponseStreamingSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseStreaming,\n};\n\nexport const AllComponents: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseAllComponentsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseAllComponents,\n};\n\nexport const CodeExamples: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseCodeExamplesSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseCodeExamples,\n};\n\nexport const Headings: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseHeadingsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseHeadings,\n};\n\nexport const Lists: Story = {\n args: {},\n parameters: {\n docs: {\n source: {\n code: ResponseListsSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseLists,\n};\n\nexport const FullExample: Story = {\n args: {},\n decorators: [\n (Story) => (\n <div className=\"n-bg-neutral-bg-default n-p-4\">\n <Story />\n </div>\n ),\n ],\n parameters: {\n docs: {\n source: {\n code: ResponseFullExampleSource,\n language: 'tsx',\n type: 'code',\n },\n },\n },\n render: ResponseFullExample,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"response.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkBvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAQ/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAmBzB,CAAC"}
1
+ {"version":3,"file":"response.stories.d.ts","sourceRoot":"","sources":["../../../../../src/ai/response/stories/response.stories.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkBvC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAQ/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO,EAAE,KAYrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAYnB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAmBzB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -107,7 +107,7 @@
107
107
  "react-focus-lock": "2.13.6",
108
108
  "react-select": "5.10.2",
109
109
  "react-stately": "3.41.0",
110
- "react-syntax-highlighter": "15.6.6",
110
+ "react-syntax-highlighter": "16.1.0",
111
111
  "sonner": "2.0.7",
112
112
  "streamdown": "1.5.1",
113
113
  "tinycolor2": "1.6.0",