@alleninstitute/cortex-ui 0.1.0
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/README.md +390 -0
- package/dist/cjs/cortex-ui.cjs.js +24 -0
- package/dist/cjs/cui-tag.cjs.entry.js +24 -0
- package/dist/cjs/index-Rxdz0vyq.js +1337 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +12 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/cui-tag/cui-tag.css +49 -0
- package/dist/collection/components/cui-tag/cui-tag.js +97 -0
- package/dist/collection/index.js +8 -0
- package/dist/collection/stories/assets/accessibility.svg +1 -0
- package/dist/collection/stories/assets/discord.svg +1 -0
- package/dist/collection/stories/assets/github.svg +1 -0
- package/dist/collection/stories/assets/tutorials.svg +1 -0
- package/dist/collection/stories/assets/youtube.svg +1 -0
- package/dist/components/cui-tag.d.ts +11 -0
- package/dist/components/cui-tag.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/cortex-ui/cortex-ui.css +1 -0
- package/dist/cortex-ui/cortex-ui.esm.js +1 -0
- package/dist/cortex-ui/index.esm.js +0 -0
- package/dist/cortex-ui/p-054ebfa8.entry.js +1 -0
- package/dist/cortex-ui/p-C70YK15K.js +2 -0
- package/dist/esm/cortex-ui.js +20 -0
- package/dist/esm/cui-tag.entry.js +22 -0
- package/dist/esm/index-C70YK15K.js +1330 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +10 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/cui-tag/cui-tag.d.ts +12 -0
- package/dist/types/components.d.ts +84 -0
- package/dist/types/global.d.ts +2 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +128 -0
package/loader/cdn.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/cjs/loader.cjs.js');
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
19
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
20
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
21
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
22
|
+
* will result in the same behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/esm/loader.js';
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
2
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@alleninstitute/cortex-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A web components UI library for Allen Institute projects, built with Stencil.js.",
|
|
5
|
+
"contributors": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Lane Sawyer",
|
|
8
|
+
"email": "lane.sawyer@alleninstitute.org"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Su Li",
|
|
12
|
+
"email": "su.li@alleninstitute.org"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"es2017": "dist/esm/index.js",
|
|
16
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
17
|
+
"collection:main": "dist/collection/index.js",
|
|
18
|
+
"unpkg": "dist/cortex-ui/cortex-ui.esm.js",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/",
|
|
21
|
+
"loader/"
|
|
22
|
+
],
|
|
23
|
+
"devEngines": {
|
|
24
|
+
"runtime": {
|
|
25
|
+
"name": "node",
|
|
26
|
+
"version": "24.15.0",
|
|
27
|
+
"onFail": "download"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"volta": {
|
|
31
|
+
"node": "24.15.0",
|
|
32
|
+
"pnpm": "11.9.0"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/AllenInstitute/cortex-ui.git"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/AllenInstitute/cortex-ui#readme",
|
|
39
|
+
"main": "dist/index.cjs.js",
|
|
40
|
+
"module": "dist/index.js",
|
|
41
|
+
"types": "dist/types/index.d.ts",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"types": "./dist/types/index.d.ts",
|
|
45
|
+
"import": "./dist/index.js",
|
|
46
|
+
"require": "./dist/index.cjs.js"
|
|
47
|
+
},
|
|
48
|
+
"./dist/components": {
|
|
49
|
+
"types": "./dist/components/index.d.ts",
|
|
50
|
+
"import": "./dist/components/index.js"
|
|
51
|
+
},
|
|
52
|
+
"./dist/components/*.js": {
|
|
53
|
+
"types": "./dist/components/*.d.ts",
|
|
54
|
+
"import": "./dist/components/*.js"
|
|
55
|
+
},
|
|
56
|
+
"./dist/*": {
|
|
57
|
+
"types": "./dist/*",
|
|
58
|
+
"import": "./dist/*"
|
|
59
|
+
},
|
|
60
|
+
"./components/*": {
|
|
61
|
+
"types": "./dist/components/*.d.ts",
|
|
62
|
+
"import": "./dist/components/*.js"
|
|
63
|
+
},
|
|
64
|
+
"./loader": {
|
|
65
|
+
"types": "./loader/index.d.ts",
|
|
66
|
+
"import": "./loader/index.js",
|
|
67
|
+
"require": "./loader/index.cjs.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@stencil/core": "4.43.5",
|
|
75
|
+
"@stencil/react-output-target": "1.5.3",
|
|
76
|
+
"@stencil/sass": "3.3.2",
|
|
77
|
+
"@storybook/addon-a11y": "10.4.2",
|
|
78
|
+
"@storybook/addon-docs": "10.4.2",
|
|
79
|
+
"@storybook/addon-links": "10.4.2",
|
|
80
|
+
"@storybook/addon-mcp": "^0.6.0",
|
|
81
|
+
"@storybook/addon-vitest": "10.4.2",
|
|
82
|
+
"@storybook/web-components-vite": "10.4.2",
|
|
83
|
+
"@types/react": "19.2.17",
|
|
84
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
85
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
86
|
+
"concurrently": "10.0.3",
|
|
87
|
+
"git-cliff": "2.13.1",
|
|
88
|
+
"happy-dom": "20.10.6",
|
|
89
|
+
"lefthook": "2.1.9",
|
|
90
|
+
"oxfmt": "0.53.0",
|
|
91
|
+
"oxlint": "1.68.0",
|
|
92
|
+
"playwright": "^1.61.1",
|
|
93
|
+
"react": "19.2.8",
|
|
94
|
+
"react-dom": "19.2.8",
|
|
95
|
+
"sass-embedded": "1.100.0",
|
|
96
|
+
"storybook": "10.4.6",
|
|
97
|
+
"typescript": "6.0.3",
|
|
98
|
+
"unplugin-stencil": "0.4.1",
|
|
99
|
+
"vite": "8.1.5",
|
|
100
|
+
"vitest": "4.1.9",
|
|
101
|
+
"node": "runtime:24.15.0"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"build": "stencil build && node scripts/generate-ai-docs.mjs",
|
|
105
|
+
"build:react": "pnpm --filter @alleninstitute/cortex-ui-react run build",
|
|
106
|
+
"build:mcp": "pnpm --filter @alleninstitute/cortex-ui-mcp run build",
|
|
107
|
+
"build:all": "pnpm run build && pnpm run build:react && pnpm run build:mcp",
|
|
108
|
+
"docs:ai": "node scripts/generate-ai-docs.mjs",
|
|
109
|
+
"changelog": "git-cliff --output CHANGELOG.md",
|
|
110
|
+
"changelog:unreleased": "git-cliff --unreleased",
|
|
111
|
+
"release:version": "git-cliff --bumped-version",
|
|
112
|
+
"dev:stencil": "stencil build --watch",
|
|
113
|
+
"dev:react": "pnpm --filter @alleninstitute/cortex-ui-react run dev",
|
|
114
|
+
"dev:storybook": "stencil build && storybook dev -p 6001",
|
|
115
|
+
"dev": "stencil build && concurrently -c blue,magenta \"npm run dev:stencil\" \"storybook dev -p 6001\"",
|
|
116
|
+
"lint": "oxlint",
|
|
117
|
+
"lint:fix": "oxlint --fix",
|
|
118
|
+
"fmt": "oxfmt .",
|
|
119
|
+
"fmt:check": "oxfmt --check .",
|
|
120
|
+
"test": "stencil build && vitest run",
|
|
121
|
+
"test:docs": "node --test \"scripts/**/*.test.mjs\"",
|
|
122
|
+
"test:mcp": "pnpm run build:mcp && pnpm --filter @alleninstitute/cortex-ui-mcp run test",
|
|
123
|
+
"test:watch": "stencil build && concurrently -c blue,magenta \"stencil build --watch\" \"vitest\"",
|
|
124
|
+
"generate": "stencil generate",
|
|
125
|
+
"storybook": "storybook dev -p 6006",
|
|
126
|
+
"build-storybook": "pnpm run build && storybook build"
|
|
127
|
+
}
|
|
128
|
+
}
|