@datalayer/core 0.0.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.
package/LICENSE ADDED
@@ -0,0 +1,32 @@
1
+
2
+ BSD 3-Clause License
3
+
4
+ Copyright (c) 2022, Datalayer
5
+ All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions are met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright notice, this
11
+ list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ 3. Neither the name of the copyright holder nor the names of its
18
+ contributors may be used to endorse or promote products derived from
19
+ this software without specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
25
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
27
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
+
32
+ This contains code taken from https://github.com/jupyter/jupyter_core
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ [![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)
2
+
3
+ [![Become a Sponsor](https://img.shields.io/static/v1?label=Become%20a%20Sponsor&message=%E2%9D%A4&logo=GitHub&style=flat&color=1ABC9C)](https://github.com/sponsors/datalayer)
4
+
5
+ # Ξ Datalayer Core
6
+
7
+ Datalayer Core is the base foundation package used by many other Datalayer packages.
8
+
9
+ It contains base application classes and configuration inherited by other projects.
10
+
11
+ ## Develop
12
+
13
+ ```bash
14
+ pip install -e .[test]
15
+ # jupyter server extension enable datalayer
16
+ jupyter server extension list
17
+ # open http://localhost:8888/api/jupyter?token=60c1661cc408f978c309d04157af55c9588ff9557c9380e4fb50785750703da6
18
+ make start
19
+ ```
package/lib/App.js ADDED
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import reactLogo from './assets/react.svg';
4
+ import viteLogo from '/vite.svg';
5
+ import './App.css';
6
+ export function App() {
7
+ const [count, setCount] = useState(0);
8
+ return (_jsxs(_Fragment, { children: [_jsxs("div", { children: [_jsx("a", { href: "https://vite.dev", target: "_blank", children: _jsx("img", { src: viteLogo, className: "logo", alt: "Vite logo" }) }), _jsx("a", { href: "https://react.dev", target: "_blank", children: _jsx("img", { src: reactLogo, className: "logo react", alt: "React logo" }) })] }), _jsx("h1", { children: "Vite + React" }), _jsxs("div", { className: "card", children: [_jsxs("button", { onClick: () => setCount((count) => count + 1), children: ["count is ", count] }), _jsxs("p", { children: ["Edit ", _jsx("code", { children: "src/App.tsx" }), " and save to test HMR"] })] }), _jsx("p", { className: "read-the-docs", children: "Click on the Vite and React logos to learn more" })] }));
9
+ }
10
+ export default App;
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./App";
package/lib/main.js ADDED
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { StrictMode } from 'react';
3
+ import { createRoot } from 'react-dom/client';
4
+ import App from './App';
5
+ import './index.css';
6
+ createRoot(document.getElementById('root')).render(_jsx(StrictMode, { children: _jsx(App, {}) }));
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@datalayer/core",
3
+ "private": false,
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "author": {
7
+ "name": "Datalayer",
8
+ "email": "info@datalayer.io"
9
+ },
10
+ "keywords": [
11
+ "datalayer",
12
+ "ai",
13
+ "data",
14
+ "jupyter",
15
+ "react",
16
+ "run",
17
+ "storybook"
18
+ ],
19
+ "files": [
20
+ "lib/**/*.{css,d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21
+ "style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
22
+ "schema/*.json"
23
+ ],
24
+ "main": "lib/index.js",
25
+ "types": "lib/index.d.ts",
26
+ "style": "style/index.css",
27
+ "homepage": "https://github.com/datalayer/core",
28
+ "bugs": {
29
+ "url": "https://github.com/datalayer/core/issues"
30
+ },
31
+ "sideEffects": [
32
+ "style/*.css",
33
+ "style/index.js"
34
+ ],
35
+ "styleModule": "style/index.js",
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "scripts": {
40
+ "dev": "vite",
41
+ "build": "tsc -b && vite build",
42
+ "lint": "eslint .",
43
+ "preview": "vite preview",
44
+ "start": "vite",
45
+ "clean": "rimraf lib tsconfig.tsbuildinfo",
46
+ "storybook": "storybook dev -p 6006",
47
+ "build-storybook": "storybook build",
48
+ "typedoc": "typedoc --options typedoc.json --out docs/docs/typescript_api"
49
+ },
50
+ "dependencies": {
51
+ "react": "^19.1.0",
52
+ "react-dom": "^19.1.0"
53
+ },
54
+ "devDependencies": {
55
+ "@chromatic-com/storybook": "^4.0.1",
56
+ "@eslint/js": "^9.29.0",
57
+ "@storybook/addon-a11y": "^9.0.15",
58
+ "@storybook/addon-docs": "^9.0.15",
59
+ "@storybook/addon-onboarding": "^9.0.15",
60
+ "@storybook/addon-vitest": "^9.0.15",
61
+ "@storybook/builder-vite": "^9.0.15",
62
+ "@storybook/react-vite": "^9.0.15",
63
+ "@types/node": "^20.11.0",
64
+ "@types/react": "^19.1.8",
65
+ "@types/react-dom": "^19.1.6",
66
+ "@vitejs/plugin-react": "^4.5.2",
67
+ "@vitest/browser": "^3.2.4",
68
+ "@vitest/coverage-v8": "^3.2.4",
69
+ "eslint": "^9.29.0",
70
+ "eslint-plugin-react-hooks": "^5.2.0",
71
+ "eslint-plugin-react-refresh": "^0.4.20",
72
+ "eslint-plugin-storybook": "^9.0.15",
73
+ "globals": "^16.2.0",
74
+ "playwright": "^1.53.2",
75
+ "rimraf": "^6.0.1",
76
+ "storybook": "^9.0.15",
77
+ "typedoc-plugin-markdown": "^4.0.0",
78
+ "typescript": "^5.8.3",
79
+ "typescript-eslint": "^8.34.1",
80
+ "vite": "^7.0.0",
81
+ "vitest": "^3.2.4"
82
+ }
83
+ }
package/style/base.css ADDED
@@ -0,0 +1,5 @@
1
+ /*
2
+ * Copyright (c) 2021-2024 Datalayer, Inc.
3
+ *
4
+ * Datalayer License
5
+ */
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2021-2024 Datalayer, Inc.
3
+ *
4
+ * Datalayer License
5
+ */
6
+
7
+ @import url('base.css');
package/style/index.js ADDED
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2021-2024 Datalayer, Inc.
3
+ *
4
+ * Datalayer License
5
+ */
6
+
7
+ import './base.css';