Skip to content

Commit 9c22258

Browse files
committed
removed demo code
1 parent cab2a9a commit 9c22258

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+333
-590
lines changed

chartlets.js/index.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

chartlets.js/package-lock.json

Lines changed: 164 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chartlets.js/package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,15 @@
5151
"preview": "vite preview"
5252
},
5353
"dependencies": {
54-
"@emotion/react": "^11.13.3",
55-
"@emotion/styled": "^11.13.0",
56-
"@fontsource/roboto": "^5.1.0",
57-
"@mui/material": "^6.1.5",
58-
"microdiff": "^1.4.0",
59-
"react": ">=18",
60-
"react-dom": ">=18",
61-
"react-vega": "^7.6.0",
62-
"vega-themes": "^2.15.0",
63-
"zustand": "^5.0.0"
54+
"microdiff": "^1.4",
55+
"zustand": "^5.0"
6456
},
6557
"peerDependencies": {
6658
"react": ">=18",
67-
"react-dom": ">=18"
59+
"react-dom": ">=18",
60+
"@mui/material": ">=6",
61+
"react-vega": ">=7",
62+
"vega-themes": ">=2"
6863
},
6964
"peerDependenciesMeta": {
7065
"react": {

chartlets.js/src/lib/actions/configureFramework.ts renamed to chartlets.js/src/actions/configureFramework.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { store } from "@/lib/store";
1+
import { store } from "@/store";
22
import type {
33
ComponentRegistration,
44
FrameworkOptions,
55
PluginLike,
6-
} from "@/lib/types/state/options";
7-
import { registry } from "@/lib/component/Registry";
8-
import { isPromise } from "@/lib/utils/isPromise";
9-
import { isFunction } from "@/lib/utils/isFunction";
10-
import { isObject } from "@/lib/utils/isObject";
6+
} from "@/types/state/options";
7+
import { registry } from "@/component/Registry";
8+
import { isPromise } from "@/utils/isPromise";
9+
import { isFunction } from "@/utils/isFunction";
10+
import { isObject } from "@/utils/isObject";
1111
import { handleHostStoreChange } from "./handleHostStoreChange";
1212
import { configureLogging } from "./helpers/configureLogging";
1313

chartlets.js/src/lib/actions/handleComponentChange.ts renamed to chartlets.js/src/actions/handleComponentChange.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { store } from "@/lib/store";
2-
import { type ContribPoint } from "@/lib/types/model/extension";
3-
import { type CallbackRequest } from "@/lib/types/model/callback";
4-
import { type ComponentChangeEvent } from "@/lib/types/state/event";
5-
import { getInputValues } from "@/lib/actions/helpers/getInputValues";
6-
import { applyStateChangeRequests } from "@/lib/actions/helpers/applyStateChangeRequests";
7-
import { invokeCallbacks } from "@/lib/actions/helpers/invokeCallbacks";
8-
import { equalObjPaths } from "@/lib/utils/objPath";
1+
import { store } from "@/store";
2+
import { type ContribPoint } from "@/types/model/extension";
3+
import { type CallbackRequest } from "@/types/model/callback";
4+
import { type ComponentChangeEvent } from "@/types/state/event";
5+
import { getInputValues } from "@/actions/helpers/getInputValues";
6+
import { applyStateChangeRequests } from "@/actions/helpers/applyStateChangeRequests";
7+
import { invokeCallbacks } from "@/actions/helpers/invokeCallbacks";
8+
import { equalObjPaths } from "@/utils/objPath";
99

1010
export function handleComponentChange(
1111
contribPoint: ContribPoint,

chartlets.js/src/lib/actions/handleHostStoreChange.ts renamed to chartlets.js/src/actions/handleHostStoreChange.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { store } from "@/lib/store";
1+
import { store } from "@/store";
22
import type {
33
CallbackRef,
44
CallbackRequest,
55
ContribRef,
66
InputRef,
7-
} from "@/lib/types/model/callback";
8-
import type { Input } from "@/lib/types/model/channel";
9-
import { getInputValues } from "@/lib/actions/helpers/getInputValues";
10-
import { formatObjPath } from "@/lib/utils/objPath";
11-
import { invokeCallbacks } from "@/lib/actions/helpers/invokeCallbacks";
12-
import type { ContributionState } from "@/lib/types/state/contribution";
13-
import type { HostStore } from "@/lib/types/state/options";
7+
} from "@/types/model/callback";
8+
import type { Input } from "@/types/model/channel";
9+
import { getInputValues } from "@/actions/helpers/getInputValues";
10+
import { formatObjPath } from "@/utils/objPath";
11+
import { invokeCallbacks } from "@/actions/helpers/invokeCallbacks";
12+
import type { ContributionState } from "@/types/state/contribution";
13+
import type { HostStore } from "@/types/state/options";
1414

1515
/**
1616
* A reference to a property of an input of a callback of a contribution.

chartlets.js/src/lib/actions/helpers/applyStateChangeRequests.test.ts renamed to chartlets.js/src/actions/helpers/applyStateChangeRequests.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { describe, it, expect } from "vitest";
22

3-
import { type ComponentState } from "@/lib";
4-
import { type ContribPoint } from "@/lib/types/model/extension";
5-
import { type StateChangeRequest } from "@/lib/types/model/callback";
6-
import { type ContributionState } from "@/lib/types/state/contribution";
3+
import { type ComponentState } from "@/types/state/component";
4+
import { type ContribPoint } from "@/types/model/extension";
5+
import { type StateChangeRequest } from "@/types/model/callback";
6+
import { type ContributionState } from "@/types/state/contribution";
77
import {
88
applyComponentStateChange,
99
applyContributionChangeRequests,

chartlets.js/src/lib/actions/helpers/applyStateChangeRequests.ts renamed to chartlets.js/src/actions/helpers/applyStateChangeRequests.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
1-
import type {
2-
StateChange,
3-
StateChangeRequest,
4-
} from "@/lib/types/model/callback";
5-
import { store } from "@/lib/store";
1+
import type { StateChange, StateChangeRequest } from "@/types/model/callback";
2+
import { store } from "@/store";
63
import {
74
type ComponentState,
85
type ContainerState,
96
isComponentState,
107
isContainerState,
11-
} from "@/lib/types/state/component";
12-
import type { ContribPoint } from "@/lib/types/model/extension";
13-
import type { ContributionState } from "@/lib";
14-
import { updateArray } from "@/lib/utils/updateArray";
8+
} from "@/types/state/component";
9+
import type { ContribPoint } from "@/types/model/extension";
10+
import type { ContributionState } from "@/types/state/contribution";
11+
import { updateArray } from "@/utils/updateArray";
1512
import {
1613
formatObjPath,
1714
getValue,
1815
normalizeObjPath,
1916
setValue,
20-
} from "@/lib/utils/objPath";
17+
} from "@/utils/objPath";
2118
import {
2219
isMutableHostStore,
2320
type MutableHostStore,
24-
} from "@/lib/types/state/options";
21+
} from "@/types/state/options";
2522
import {
2623
isHostChannel,
2724
isComponentChannel,
2825
isContainerChannel,
29-
} from "@/lib/types/model/channel";
26+
} from "@/types/model/channel";
3027

3128
export function applyStateChangeRequests(
3229
stateChangeRequests: StateChangeRequest[],

chartlets.js/src/lib/actions/helpers/configureLogging.ts renamed to chartlets.js/src/actions/helpers/configureLogging.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import diff, { type Difference } from "microdiff";
22

3-
import { store } from "@/lib/store";
4-
import { type StoreState } from "@/lib/types/state/store";
3+
import { store } from "@/store";
4+
import { type StoreState } from "@/types/state/store";
55

66
const indexStyle = "color:light-dark(lightblue, lightblue)";
77
const typeStyle = "font-weight:bold";

chartlets.js/src/lib/actions/helpers/getInputValues.test.ts renamed to chartlets.js/src/actions/helpers/getInputValues.test.ts

File renamed without changes.

0 commit comments

Comments
 (0)