@mittwald/flow-react-components 0.2.0-alpha.592 → 0.2.0-alpha.594

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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [0.2.0-alpha.594](https://github.com/mittwald/flow/compare/0.2.0-alpha.593...0.2.0-alpha.594) (2025-12-10)
7
+
8
+ **Note:** Version bump only for package @mittwald/flow-react-components
9
+
10
+ # [0.2.0-alpha.593](https://github.com/mittwald/flow/compare/0.2.0-alpha.592...0.2.0-alpha.593) (2025-12-10)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **MarkdownEditor:** don't render markdown in editor mode ([#2190](https://github.com/mittwald/flow/issues/2190)) ([465a98e](https://github.com/mittwald/flow/commit/465a98e9b2a4e19d911c74b8f861fcf1ec4c720d))
15
+
6
16
  # [0.2.0-alpha.592](https://github.com/mittwald/flow/compare/0.2.0-alpha.591...0.2.0-alpha.592) (2025-12-09)
7
17
 
8
18
  ### Bug Fixes
@@ -95820,51 +95820,6 @@
95820
95820
  }
95821
95821
  }
95822
95822
  },
95823
- {
95824
- "tags": {
95825
- "flr-generate": "all"
95826
- },
95827
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Legend/Legend.tsx",
95828
- "description": "",
95829
- "displayName": "Legend",
95830
- "methods": [],
95831
- "props": {
95832
- "children": {
95833
- "defaultValue": null,
95834
- "description": "",
95835
- "name": "children",
95836
- "declarations": [
95837
- {
95838
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.6/node_modules/@types/react/index.d.ts",
95839
- "name": "TypeLiteral"
95840
- }
95841
- ],
95842
- "required": false,
95843
- "type": {
95844
- "name": "ReactNode"
95845
- }
95846
- },
95847
- "className": {
95848
- "defaultValue": null,
95849
- "description": "The elements class name.",
95850
- "name": "className",
95851
- "parent": {
95852
- "fileName": "components/src/lib/types/props.ts",
95853
- "name": "PropsWithClassName"
95854
- },
95855
- "declarations": [
95856
- {
95857
- "fileName": "components/src/lib/types/props.ts",
95858
- "name": "PropsWithClassName"
95859
- }
95860
- ],
95861
- "required": false,
95862
- "type": {
95863
- "name": "string"
95864
- }
95865
- }
95866
- }
95867
- },
95868
95823
  {
95869
95824
  "tags": {},
95870
95825
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/LightBox.tsx",
@@ -96024,6 +95979,51 @@
96024
95979
  }
96025
95980
  }
96026
95981
  },
95982
+ {
95983
+ "tags": {
95984
+ "flr-generate": "all"
95985
+ },
95986
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Legend/Legend.tsx",
95987
+ "description": "",
95988
+ "displayName": "Legend",
95989
+ "methods": [],
95990
+ "props": {
95991
+ "children": {
95992
+ "defaultValue": null,
95993
+ "description": "",
95994
+ "name": "children",
95995
+ "declarations": [
95996
+ {
95997
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.6/node_modules/@types/react/index.d.ts",
95998
+ "name": "TypeLiteral"
95999
+ }
96000
+ ],
96001
+ "required": false,
96002
+ "type": {
96003
+ "name": "ReactNode"
96004
+ }
96005
+ },
96006
+ "className": {
96007
+ "defaultValue": null,
96008
+ "description": "The elements class name.",
96009
+ "name": "className",
96010
+ "parent": {
96011
+ "fileName": "components/src/lib/types/props.ts",
96012
+ "name": "PropsWithClassName"
96013
+ },
96014
+ "declarations": [
96015
+ {
96016
+ "fileName": "components/src/lib/types/props.ts",
96017
+ "name": "PropsWithClassName"
96018
+ }
96019
+ ],
96020
+ "required": false,
96021
+ "type": {
96022
+ "name": "string"
96023
+ }
96024
+ }
96025
+ }
96026
+ },
96027
96027
  {
96028
96028
  "tags": {
96029
96029
  "flr-generate": "all"
@@ -219804,6 +219804,22 @@
219804
219804
  }
219805
219805
  }
219806
219806
  },
219807
+ {
219808
+ "tags": {},
219809
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Calendar/RangeCalendar.tsx",
219810
+ "description": "",
219811
+ "displayName": "RangeCalendar",
219812
+ "methods": [],
219813
+ "props": {}
219814
+ },
219815
+ {
219816
+ "tags": {},
219817
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Calendar/Calendar.tsx",
219818
+ "description": "",
219819
+ "displayName": "Calendar",
219820
+ "methods": [],
219821
+ "props": {}
219822
+ },
219807
219823
  {
219808
219824
  "tags": {
219809
219825
  "flr-generate": "all"
@@ -222160,22 +222176,6 @@
222160
222176
  }
222161
222177
  }
222162
222178
  },
222163
- {
222164
- "tags": {},
222165
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Calendar/RangeCalendar.tsx",
222166
- "description": "",
222167
- "displayName": "RangeCalendar",
222168
- "methods": [],
222169
- "props": {}
222170
- },
222171
- {
222172
- "tags": {},
222173
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Calendar/Calendar.tsx",
222174
- "description": "",
222175
- "displayName": "Calendar",
222176
- "methods": [],
222177
- "props": {}
222178
- },
222179
222179
  {
222180
222180
  "tags": {},
222181
222181
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/BrowserOnly/BrowserOnly.tsx",
@@ -306480,49 +306480,6 @@
306480
306480
  }
306481
306481
  }
306482
306482
  },
306483
- {
306484
- "tags": {},
306485
- "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306486
- "description": "",
306487
- "displayName": "LegendItem",
306488
- "methods": [],
306489
- "props": {
306490
- "color": {
306491
- "defaultValue": null,
306492
- "description": "",
306493
- "name": "color",
306494
- "parent": {
306495
- "fileName": "components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306496
- "name": "LegendItemProps"
306497
- },
306498
- "declarations": [
306499
- {
306500
- "fileName": "components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306501
- "name": "LegendItemProps"
306502
- }
306503
- ],
306504
- "required": false,
306505
- "type": {
306506
- "name": "\"sea-green\" | \"palatinate-blue\" | \"tangerine\" | \"magenta\" | \"tropical-indigo\" | \"malachite\" | \"azure\" | \"violet\" | \"yellow\" | \"alloy-orange\" | \"green\" | \"lime\""
306507
- }
306508
- },
306509
- "children": {
306510
- "defaultValue": null,
306511
- "description": "",
306512
- "name": "children",
306513
- "declarations": [
306514
- {
306515
- "fileName": "flow/node_modules/.pnpm/@types+react@19.2.6/node_modules/@types/react/index.d.ts",
306516
- "name": "TypeLiteral"
306517
- }
306518
- ],
306519
- "required": false,
306520
- "type": {
306521
- "name": "ReactNode"
306522
- }
306523
- }
306524
- }
306525
- },
306526
306483
  {
306527
306484
  "tags": {},
306528
306485
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/LightBox/components/LightBoxTrigger/LightBoxTrigger.tsx",
@@ -306661,6 +306618,49 @@
306661
306618
  }
306662
306619
  }
306663
306620
  },
306621
+ {
306622
+ "tags": {},
306623
+ "filePath": "/home/runner/work/flow/flow/packages/components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306624
+ "description": "",
306625
+ "displayName": "LegendItem",
306626
+ "methods": [],
306627
+ "props": {
306628
+ "color": {
306629
+ "defaultValue": null,
306630
+ "description": "",
306631
+ "name": "color",
306632
+ "parent": {
306633
+ "fileName": "components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306634
+ "name": "LegendItemProps"
306635
+ },
306636
+ "declarations": [
306637
+ {
306638
+ "fileName": "components/src/components/Legend/components/LegendItem/LegendItem.tsx",
306639
+ "name": "LegendItemProps"
306640
+ }
306641
+ ],
306642
+ "required": false,
306643
+ "type": {
306644
+ "name": "\"sea-green\" | \"palatinate-blue\" | \"tangerine\" | \"magenta\" | \"tropical-indigo\" | \"malachite\" | \"azure\" | \"violet\" | \"yellow\" | \"alloy-orange\" | \"green\" | \"lime\""
306645
+ }
306646
+ },
306647
+ "children": {
306648
+ "defaultValue": null,
306649
+ "description": "",
306650
+ "name": "children",
306651
+ "declarations": [
306652
+ {
306653
+ "fileName": "flow/node_modules/.pnpm/@types+react@19.2.6/node_modules/@types/react/index.d.ts",
306654
+ "name": "TypeLiteral"
306655
+ }
306656
+ ],
306657
+ "required": false,
306658
+ "type": {
306659
+ "name": "ReactNode"
306660
+ }
306661
+ }
306662
+ }
306663
+ },
306664
306664
  {
306665
306665
  "tags": {},
306666
306666
  "filePath": "/home/runner/work/flow/flow/packages/components/src/components/FileCard/components/FileSizeText/FileSizeText.tsx",
@@ -101,7 +101,7 @@ const MarkdownEditor = flowComponent("MarkdownEditor", (props) => {
101
101
  onChange,
102
102
  onKeyDown: handleKeyDown,
103
103
  children: [
104
- /* @__PURE__ */ jsx(
104
+ mode === "preview" && /* @__PURE__ */ jsx(
105
105
  Markdown,
106
106
  {
107
107
  headingOffset,
@@ -1 +1 @@
1
- {"version":3,"file":"MarkdownEditor.mjs","sources":["../../../../../../src/components/MarkdownEditor/MarkdownEditor.tsx"],"sourcesContent":["import { type KeyboardEventHandler, useState } from \"react\";\nimport styles from \"./MarkdownEditor.module.scss\";\nimport { Markdown, type MarkdownProps } from \"@/components/Markdown\";\nimport { TextArea, type TextAreaProps } from \"@/components/TextArea\";\nimport { Toolbar } from \"@/components/MarkdownEditor/components/Toolbar\";\nimport clsx from \"clsx\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport {\n modifyValueByMarkdownSyntax,\n scrollToCursor,\n} from \"@/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax\";\nimport {\n type InsertType,\n modifyValueByType,\n} from \"@/components/MarkdownEditor/lib/modifyValueByType\";\nimport { useControlledHostValueProps } from \"@/lib/remote/useControlledHostValueProps\";\n\nexport type MarkdownEditorMode = \"editor\" | \"preview\";\n\nexport interface MarkdownEditorProps\n extends TextAreaProps,\n Pick<MarkdownProps, \"headingOffset\"> {}\n\n/** @flr-generate all */\nexport const MarkdownEditor = flowComponent(\"MarkdownEditor\", (props) => {\n const {\n isDisabled,\n isReadOnly,\n children,\n className,\n rows = 5,\n autoResizeMaxRows,\n headingOffset,\n value,\n onChange,\n ref,\n ...rest\n } = useControlledHostValueProps(props);\n\n const inputRef = useObjectRef(ref);\n const [mode, setMode] = useState<MarkdownEditorMode>(\"editor\");\n\n const rootClassName = clsx(\n styles.markdownEditor,\n className,\n styles[`mode-${mode}`],\n );\n\n const handleKeyDown: KeyboardEventHandler = (event) => {\n if (event.key !== \"Enter\") {\n return;\n }\n\n const modifyParams = modifyValueByMarkdownSyntax(value, inputRef);\n if (!modifyParams) {\n return;\n }\n\n const { newValue, newSelectionStart, newSelectionEnd } = modifyParams;\n\n requestAnimationFrame(() => {\n if (inputRef.current) {\n inputRef.current.value = newValue;\n inputRef.current?.setSelectionRange(newSelectionStart, newSelectionEnd);\n scrollToCursor(newValue, inputRef.current);\n }\n });\n\n event.preventDefault();\n onChange(newValue);\n };\n\n const handleToolButtonPressed = (type: InsertType) => {\n const { newValue, newSelectionStart, newSelectionEnd } = modifyValueByType(\n value,\n type,\n inputRef,\n );\n\n requestAnimationFrame(() => {\n if (inputRef.current) {\n inputRef.current.value = newValue;\n inputRef.current.setSelectionRange(newSelectionStart, newSelectionEnd);\n inputRef.current.focus();\n }\n });\n\n onChange(newValue);\n };\n\n const propsContext: PropsContext = {\n Label: {\n tunnelId: \"label\",\n },\n };\n\n return (\n <div className={rootClassName}>\n <TunnelProvider>\n <TunnelExit id=\"label\" />\n <Toolbar\n currentMode={mode}\n isDisabled={isDisabled}\n onModeChange={setMode}\n onToolPressed={handleToolButtonPressed}\n />\n <TextArea\n {...rest}\n aria-hidden={mode === \"preview\"}\n isReadOnly={isReadOnly || mode === \"preview\"}\n isDisabled={isDisabled}\n ref={inputRef}\n value={value}\n rows={rows}\n autoResizeMaxRows={autoResizeMaxRows}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n >\n <Markdown\n headingOffset={headingOffset}\n className={styles.markdown}\n style={{\n height: inputRef.current?.offsetHeight,\n }}\n >\n {value}\n </Markdown>\n <PropsContextProvider props={propsContext}>\n {children}\n </PropsContextProvider>\n </TextArea>\n </TunnelProvider>\n </div>\n );\n});\n\nexport default MarkdownEditor;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2BO,MAAM,cAAA,GAAiB,aAAA,CAAc,gBAAA,EAAkB,CAAC,KAAA,KAAU;AACvE,EAAA,MAAM;AAAA,IACJ,UAAA;AAAA,IACA,UAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,IAAA,GAAO,CAAA;AAAA,IACP,iBAAA;AAAA,IACA,aAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,4BAA4B,KAAK,CAAA;AAErC,EAAA,MAAM,QAAA,GAAW,aAAa,GAAG,CAAA;AACjC,EAAA,MAAM,CAAC,IAAA,EAAM,OAAO,CAAA,GAAI,SAA6B,QAAQ,CAAA;AAE7D,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,cAAA;AAAA,IACP,SAAA;AAAA,IACA,MAAA,CAAO,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAE;AAAA,GACvB;AAEA,EAAA,MAAM,aAAA,GAAsC,CAAC,KAAA,KAAU;AACrD,IAAA,IAAI,KAAA,CAAM,QAAQ,OAAA,EAAS;AACzB,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,2BAAA,CAA4B,KAAA,EAAO,QAAQ,CAAA;AAChE,IAAA,IAAI,CAAC,YAAA,EAAc;AACjB,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,EAAE,QAAA,EAAU,iBAAA,EAAmB,eAAA,EAAgB,GAAI,YAAA;AAEzD,IAAA,qBAAA,CAAsB,MAAM;AAC1B,MAAA,IAAI,SAAS,OAAA,EAAS;AACpB,QAAA,QAAA,CAAS,QAAQ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AA,oBACA,IAAA;AAAA,MAAC,QAAA;AAAA,MAAA;AAAA,QACE,GAAG,IAAA;AAAA,QACJ,eAAa,IAAA,KAAS,SAAA;AAAA,QACtB,UAAA,EAAY,cAAc,IAAA,KAAS,SAAA;AAAA,QACnC,UAAA;AAAA,QACA,GAAA,EAAK,QAAA;AAAA,QACL,KAAA;AAAA,QACA,IAAA;AAAA,QACA,iBAAA;AAAA,QACA,QAAA;AAAA,QACA,SAAA,EAAW,aAAA;AAAA,QAEX,QAAA,EAAA;AAAA,0BAAA,GAAA;AAAA,YAAC,QAAA;AAAA,YAAA;AAAA,cACC,aAAA;AAAA,cACA,WAAW,MAAA,CAAO,QAAA;AAAA,cAClB,KAAA,EAAO;AAAA,gBACL,MAAA,EAAQ,SAAS,OAAA,EAAS;AAAA,eAC5B;AAAA,cAEC,QAAA,EAAA;AAAA;AAAA,WACH;AAAA,0BACA,GAAA,CAAC,oBAAA,EAAA,EAAqB,KAAA,EAAO,YAAA,EAC1B,QAAA,EACH;AAAA;AAAA;AAAA;AACF,GAAA,EACF,CAAA,EACF,CAAA;AAEJ,CAAC;;;;"}
1
+ {"version":3,"file":"MarkdownEditor.mjs","sources":["../../../../../../src/components/MarkdownEditor/MarkdownEditor.tsx"],"sourcesContent":["import { type KeyboardEventHandler, useState } from \"react\";\nimport styles from \"./MarkdownEditor.module.scss\";\nimport { Markdown, type MarkdownProps } from \"@/components/Markdown\";\nimport { TextArea, type TextAreaProps } from \"@/components/TextArea\";\nimport { Toolbar } from \"@/components/MarkdownEditor/components/Toolbar\";\nimport clsx from \"clsx\";\nimport { flowComponent } from \"@/lib/componentFactory/flowComponent\";\nimport { useObjectRef } from \"@react-aria/utils\";\nimport { type PropsContext, PropsContextProvider } from \"@/lib/propsContext\";\nimport { TunnelExit, TunnelProvider } from \"@mittwald/react-tunnel\";\nimport {\n modifyValueByMarkdownSyntax,\n scrollToCursor,\n} from \"@/components/MarkdownEditor/lib/modifyValueByMarkdownSyntax\";\nimport {\n type InsertType,\n modifyValueByType,\n} from \"@/components/MarkdownEditor/lib/modifyValueByType\";\nimport { useControlledHostValueProps } from \"@/lib/remote/useControlledHostValueProps\";\n\nexport type MarkdownEditorMode = \"editor\" | \"preview\";\n\nexport interface MarkdownEditorProps\n extends TextAreaProps,\n Pick<MarkdownProps, \"headingOffset\"> {}\n\n/** @flr-generate all */\nexport const MarkdownEditor = flowComponent(\"MarkdownEditor\", (props) => {\n const {\n isDisabled,\n isReadOnly,\n children,\n className,\n rows = 5,\n autoResizeMaxRows,\n headingOffset,\n value,\n onChange,\n ref,\n ...rest\n } = useControlledHostValueProps(props);\n\n const inputRef = useObjectRef(ref);\n const [mode, setMode] = useState<MarkdownEditorMode>(\"editor\");\n\n const rootClassName = clsx(\n styles.markdownEditor,\n className,\n styles[`mode-${mode}`],\n );\n\n const handleKeyDown: KeyboardEventHandler = (event) => {\n if (event.key !== \"Enter\") {\n return;\n }\n\n const modifyParams = modifyValueByMarkdownSyntax(value, inputRef);\n if (!modifyParams) {\n return;\n }\n\n const { newValue, newSelectionStart, newSelectionEnd } = modifyParams;\n\n requestAnimationFrame(() => {\n if (inputRef.current) {\n inputRef.current.value = newValue;\n inputRef.current?.setSelectionRange(newSelectionStart, newSelectionEnd);\n scrollToCursor(newValue, inputRef.current);\n }\n });\n\n event.preventDefault();\n onChange(newValue);\n };\n\n const handleToolButtonPressed = (type: InsertType) => {\n const { newValue, newSelectionStart, newSelectionEnd } = modifyValueByType(\n value,\n type,\n inputRef,\n );\n\n requestAnimationFrame(() => {\n if (inputRef.current) {\n inputRef.current.value = newValue;\n inputRef.current.setSelectionRange(newSelectionStart, newSelectionEnd);\n inputRef.current.focus();\n }\n });\n\n onChange(newValue);\n };\n\n const propsContext: PropsContext = {\n Label: {\n tunnelId: \"label\",\n },\n };\n\n return (\n <div className={rootClassName}>\n <TunnelProvider>\n <TunnelExit id=\"label\" />\n <Toolbar\n currentMode={mode}\n isDisabled={isDisabled}\n onModeChange={setMode}\n onToolPressed={handleToolButtonPressed}\n />\n <TextArea\n {...rest}\n aria-hidden={mode === \"preview\"}\n isReadOnly={isReadOnly || mode === \"preview\"}\n isDisabled={isDisabled}\n ref={inputRef}\n value={value}\n rows={rows}\n autoResizeMaxRows={autoResizeMaxRows}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n >\n {mode === \"preview\" && (\n <Markdown\n headingOffset={headingOffset}\n className={styles.markdown}\n style={{\n height: inputRef.current?.offsetHeight,\n }}\n >\n {value}\n </Markdown>\n )}\n <PropsContextProvider props={propsContext}>\n {children}\n </PropsContextProvider>\n </TextArea>\n </TunnelProvider>\n </div>\n );\n});\n\nexport default MarkdownEditor;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA2BO,MAAM,cAAA,GAAiB,aAAA,CAAc,gBAAA,EAAkB,CAAC,KAAA,KAAU;AACvE,EAAA,MAAM;AAAA,IACJ,UAAA;AAAA,IACA,UAAA;AAAA,IACA,QAAA;AAAA,IACA,SAAA;AAAA,IACA,IAAA,GAAO,CAAA;AAAA,IACP,iBAAA;AAAA,IACA,aAAA;AAAA,IACA,KAAA;AAAA,IACA,QAAA;AAAA,IACA,GAAA;AAAA,IACA,GAAG;AAAA,GACL,GAAI,4BAA4B,KAAK,CAAA;AAErC,EAAA,MAAM,QAAA,GAAW,aAAa,GAAG,CAAA;AACjC,EAAA,MAAM,CAAC,IAAA,EAAM,OAAO,CAAA,GAAI,SAA6B,QAAQ,CAAA;AAE7D,EAAA,MAAM,aAAA,GAAgB,IAAA;AAAA,IACpB,MAAA,CAAO,cAAA;AAAA,IACP,SAAA;AAAA,IACA,MAAA,CAAO,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAE;AAAA,GACvB;AAEA,EAAA,MAAM,aAAA,GAAsC,CAAC,KAAA,KAAU;AACrD,IAAA,IAAI,KAAA,CAAM,QAAQ,OAAA,EAAS;AACzB,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,2BAAA,CAA4B,KAAA,EAAO,QAA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,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,cAAc,6GA8GzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"MarkdownEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/MarkdownEditor/MarkdownEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAiBrE,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEtD,MAAM,WAAW,mBACf,SAAQ,aAAa,EACnB,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;CAAG;AAE3C,wBAAwB;AACxB,eAAO,MAAM,cAAc,6GAgHzB,CAAC;AAEH,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mittwald/flow-react-components",
3
- "version": "0.2.0-alpha.592",
3
+ "version": "0.2.0-alpha.594",
4
4
  "type": "module",
5
5
  "description": "A React implementation of Flow, mittwald’s design system",
6
6
  "homepage": "https://mittwald.github.io/flow",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@internationalized/string-compiler": "^3.2.6",
62
62
  "@mittwald/password-tools-js": "3.0.0-alpha.18",
63
- "@mittwald/react-tunnel": "0.2.0-alpha.592",
63
+ "@mittwald/react-tunnel": "0.2.0-alpha.594",
64
64
  "@mittwald/react-use-promise": "^4.2.2",
65
65
  "@react-aria/form": "^3.1.2",
66
66
  "@react-aria/live-announcer": "^3.4.4",
@@ -105,7 +105,7 @@
105
105
  "@faker-js/faker": "^10.1.0",
106
106
  "@internationalized/date": "^3.10.0",
107
107
  "@mittwald/flow-core": "",
108
- "@mittwald/flow-design-tokens": "0.2.0-alpha.592",
108
+ "@mittwald/flow-design-tokens": "0.2.0-alpha.594",
109
109
  "@mittwald/react-use-promise": "^4.2.2",
110
110
  "@mittwald/remote-dom-react": "1.2.2-mittwald.10",
111
111
  "@mittwald/typescript-config": "",
@@ -174,5 +174,5 @@
174
174
  "optional": true
175
175
  }
176
176
  },
177
- "gitHead": "2e245449ad4e009d1bd3e60d9e2ec1e5bf237a05"
177
+ "gitHead": "dcea0e30ea3003390830242b01d9c93acb040733"
178
178
  }