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

Commit

Permalink
monorepo lineage package types fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vikas-cldcvr committed Oct 11, 2023
1 parent 82bec9d commit e4831e0
Show file tree
Hide file tree
Showing 21 changed files with 36 additions and 33 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"@cldcvr/flow-system-icon": "1.13.1",
"@cldcvr/flow-table": "workspace:*",
"@cldcvr/flow-form-builder": "workspace:*",
"@cldcvr/flow-lineage": "workspace:*",
"jspdf": "^2.5.1",
"lit": "^2.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/flow-lineage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:watch": "concurrently --kill-others \"vite build --emptyOutDir --watch\" \"tsc --watch\"",
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\" && wca analyze src --format vscode --outFile html.html-data.json",
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
"test": "web-test-runner ./src/**/*.test.ts --node-resolve --port 8092 --concurrency 1",
"test": "pnpm run build && web-test-runner ./src/**/*.test.ts --node-resolve --port 8092 --concurrency 1",
"test:watch": "pnpm run build && web-test-runner ./src/**/*.test.ts --node-resolve --watch --port 8092 --concurrency 1"
},
"keywords": [
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stories/flow-form-builder/array-field.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
2 changes: 1 addition & 1 deletion stories/flow-form-builder/autofill.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
4 changes: 2 additions & 2 deletions stories/flow-form-builder/deep-reactivity.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { FormBuilderField } from "@cldcvr/flow-form-builder";
import { createRef, Ref, ref } from "lit/directives/ref.js";
import { useArgs } from "@storybook/client-api";
import { useArgs } from "@storybook/manager-api";
import { FFormBuilder } from "@cldcvr/flow-form-builder/src";

export default {
Expand All @@ -12,7 +12,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
1 change: 0 additions & 1 deletion stories/flow-form-builder/f-form-builder.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { html } from "lit-html";
import field from "./f-formbuilder-field";
import { useArgs, useState } from "@storybook/client-api";
import { createRef, ref } from "lit/directives/ref.js";
import Properties from "./properties.mdx";

export default {
title: "@cldcvr/flow-form-builder/f-form-builder",
Expand Down
2 changes: 1 addition & 1 deletion stories/flow-form-builder/horizontal-fields.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
2 changes: 1 addition & 1 deletion stories/flow-form-builder/inner-buttons.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
2 changes: 1 addition & 1 deletion stories/flow-form-builder/inside-popover.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
2 changes: 1 addition & 1 deletion stories/flow-form-builder/object-field.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<SampleFormBuilder>;

type SampleFormBuilder = {
field: FormBuilderField;
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/dashed-hidden-children-link.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks } from "@cldcvr/flow-lineage/src";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { LineageNodeLinks } from "@cldcvr/flow-lineage";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";
import nodes from "./nodes";

export default {
Expand All @@ -14,7 +14,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const links: LineageNodeLinks = [
{
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/glitch.stories.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks } from "@cldcvr/flow-lineage/src";
import { LineageNodeLinks } from "@cldcvr/flow-lineage";
import nodes from "./nodes";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";

export default {
title: "@cldcvr/flow-lineage/Debug/Glitch",
Expand All @@ -14,7 +14,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const links: LineageNodeLinks = [
{
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/hidden-child.stories.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks } from "@cldcvr/flow-lineage/src";
import { LineageNodeLinks } from "@cldcvr/flow-lineage";
import nodes from "./nodes";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";

export default {
title: "@cldcvr/flow-lineage/Debug/hidden-child",
Expand All @@ -14,7 +14,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const links: LineageNodeLinks = [
{
Expand Down
4 changes: 2 additions & 2 deletions stories/flow-lineage/large-data.stories.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeElement, LineageNodeLinks, LineageNodes } from "@cldcvr/flow-lineage/src";
import { LineageNodeElement, LineageNodeLinks, LineageNodes } from "@cldcvr/flow-lineage";

export default {
title: "@cldcvr/flow-lineage/Examples/Large Data",
Expand All @@ -9,7 +9,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const makeid = () => {
const crypto = window.crypto;
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/link-test.stories.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks, LineageNodes } from "@cldcvr/flow-lineage/src";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { LineageNodeLinks, LineageNodes } from "@cldcvr/flow-lineage";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";

export default {
title: "@cldcvr/flow-lineage/Debug/Links",
Expand All @@ -13,7 +13,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const nodes: LineageNodes = {
rdj: {
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/node-overlap.stories.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks } from "@cldcvr/flow-lineage/src";
import { LineageNodeLinks } from "@cldcvr/flow-lineage";

import nodes from "./nodes";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";
export default {
title: "@cldcvr/flow-lineage/Debug/node-overlap",
argTypes: {
Expand All @@ -14,7 +14,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const links: LineageNodeLinks = [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { html } from "lit-html";
import { LineageNodeElement } from "@cldcvr/flow-lineage/src";
import { LineageNodeElement } from "@cldcvr/flow-lineage";

export function nodeTemplate(node: LineageNodeElement) {
return html`<f-div
Expand Down
6 changes: 3 additions & 3 deletions stories/flow-lineage/reverse-bend.stories.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Story, Meta } from "@storybook/web-components";
import { html } from "lit-html";
import { LineageNodeLinks } from "@cldcvr/flow-lineage/src";
import { LineageNodeLinks } from "@cldcvr/flow-lineage";
import nodes from "./nodes";
import { nodeTemplate, childrenNodeTemplate } from "./nodeTemplates";
import { nodeTemplate, childrenNodeTemplate } from "./node-templates";

export default {
title: "@cldcvr/flow-lineage/Debug/Reverse-bend",
Expand All @@ -14,7 +14,7 @@ export default {
control: false
}
}
} as Meta;
} as Meta<Record<string, any>>;

const links: LineageNodeLinks = [
{
Expand Down

0 comments on commit e4831e0

Please sign in to comment.