Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
FLOW-821 Markdown content editor and viewer (#90)
Browse files Browse the repository at this point in the history
* FLOW-821 md editor package added

* FLOW-821 WIP : md editor updated

* FLOW-821 WIP: md editor css changes

* FLOW-821 input event added + css updated

* FLOW-821 tests added

* FLOW-821 hooks updated
  • Loading branch information
vikas-cldcvr authored Jul 17, 2023
1 parent 4f79eac commit 865a9dc
Show file tree
Hide file tree
Showing 31 changed files with 2,378 additions and 1,215 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
{
"@cldcvr/flow-log":"packages/flow-log/CHANGELOG.md",
"@cldcvr/flow-code-editor":"packages/flow-code-editor/CHANGELOG.md",
"@cldcvr/flow-md-editor":"packages/flow-md-editor/CHANGELOG.md",
"@cldcvr/flow-core":"packages/flow-core/CHANGELOG.md",
"@cldcvr/flow-table":"packages/flow-table/CHANGELOG.md",
"@cldcvr/flow-core-config":"packages/flow-core-config/CHANGELOG.md"
Expand Down
7 changes: 6 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn workspace @cldcvr/flow-core compile && yarn workspace @cldcvr/flow-core test-build && yarn workspace @cldcvr/flow-log compile && yarn workspace @cldcvr/flow-log test-build && yarn workspace @cldcvr/flow-code-editor compile && yarn workspace @cldcvr/flow-table compile && yarn workspace @cldcvr/flow-table test-build && git add -A
yarn workspace @cldcvr/flow-core compile && yarn workspace @cldcvr/flow-core test-build \
&& yarn workspace @cldcvr/flow-log compile && yarn workspace @cldcvr/flow-log test-build \
&& yarn workspace @cldcvr/flow-code-editor compile \
&& yarn workspace @cldcvr/flow-table compile && yarn workspace @cldcvr/flow-table test-build \
&& yarn workspace @cldcvr/flow-md-editor compile && yarn workspace @cldcvr/flow-md-editor test-build \
&& git add -A
4 changes: 4 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ module.exports = {
find: "@cldcvr/flow-code-editor/src",
replacement: path.resolve(__dirname, "../packages/flow-code-editor/src")
},
{
find: "@cldcvr/flow-md-editor/src",
replacement: path.resolve(__dirname, "../packages/flow-md-editor/src")
},
{
find: "@cldcvr/flow-table/src",
replacement: path.resolve(__dirname, "../packages/flow-table/src")
Expand Down
8 changes: 8 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import "@cldcvr/flow-core/src";
import "@cldcvr/flow-log/src";
import "@cldcvr/flow-code-editor/src";
import "@cldcvr/flow-table/src";
import "@cldcvr/flow-md-editor/src";
import { setCustomElementsManifest, setCustomElements } from "@storybook/web-components";
import "./storybook.css";

Expand Down Expand Up @@ -92,6 +93,10 @@ async function run() {
await fetch(new URL("../packages/flow-table/custom-elements.json", import.meta.url))
).json();

const mdEditorCustomElements = await (
await fetch(new URL("../packages/flow-md-editor/custom-elements.json", import.meta.url))
).json();

setCustomElementsManifest(customElements);
setCustomElements(customElements);
setCustomElementsManifest(loggerCustomElements);
Expand All @@ -101,6 +106,9 @@ async function run() {

setCustomElementsManifest(tableCustomElements);
setCustomElements(tableCustomElements);

setCustomElementsManifest(mdEditorCustomElements);
setCustomElements(mdEditorCustomElements);
}

run();
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
"build-flow-core-config": "cd packages/flow-core-config && yarn build",
"build-flow-log": "cd packages/flow-log && yarn compile",
"build-flow-code-editor": "cd packages/flow-code-editor && yarn compile",
"build-flow-md-editor": "cd packages/flow-md-editor && yarn compile",
"build-flow-table": "cd packages/flow-table && yarn compile",
"build-types-generator": "cd packages/custom-elements-manifest-to-types && yarn build",
"build-packages": "yarn build-types-generator && yarn build-flow-core-config && yarn build-flow-core && yarn build-flow-code-editor && yarn build-flow-log && yarn build-flow-table",
"build-packages": "yarn build-types-generator && yarn build-flow-core-config && yarn build-flow-core && yarn build-flow-code-editor && yarn build-flow-log && yarn build-flow-table && yarn build-flow-md-editor",
"release": "cp README.md packages/flow-core && yarn build-packages && yarn changeset publish",
"prepare": "husky install",
"test": "yarn loki test"
Expand Down
Loading

0 comments on commit 865a9dc

Please sign in to comment.