contour-ds 1.7.1 → 1.8.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/README.md +80 -11
- package/dist/agent-rules.json +16 -0
- package/dist/build-manifest.json +184 -107
- package/dist/contour-wc-content.esm.js +5125 -0
- package/dist/contour-wc-content.esm.min.js +1 -0
- package/dist/contour-wc-dashboard.esm.js +8654 -0
- package/dist/contour-wc-dashboard.esm.min.js +1 -0
- package/dist/contour-wc-data.esm.js +8260 -0
- package/dist/contour-wc-data.esm.min.js +1 -0
- package/dist/contour-wc-docs.esm.js +4305 -0
- package/dist/contour-wc-docs.esm.min.js +1 -0
- package/dist/contour-wc-feedback.esm.js +4917 -0
- package/dist/contour-wc-feedback.esm.min.js +1 -0
- package/dist/contour-wc-forms.esm.js +5688 -0
- package/dist/contour-wc-forms.esm.min.js +1 -0
- package/dist/contour-wc-interaction.esm.js +4580 -0
- package/dist/contour-wc-interaction.esm.min.js +1 -0
- package/dist/contour-wc-layout.esm.js +4174 -0
- package/dist/contour-wc-layout.esm.min.js +1 -0
- package/dist/contour-wc-map.esm.js +5205 -0
- package/dist/contour-wc-map.esm.min.js +1 -0
- package/dist/contour-wc-misc.esm.js +4264 -0
- package/dist/contour-wc-misc.esm.min.js +1 -0
- package/dist/contour-wc-navigation.esm.js +5844 -0
- package/dist/contour-wc-navigation.esm.min.js +1 -0
- package/dist/contour-wc-ui.esm.js +9009 -0
- package/dist/contour-wc-ui.esm.min.js +1 -0
- package/dist/contour-wc.esm.js +6136 -1634
- package/dist/contour-wc.esm.min.js +1 -1
- package/dist/contour-wc.js +6135 -1634
- package/dist/contour-wc.min.js +1 -1
- package/dist/contour.code-snippets +4512 -0
- package/dist/contour.components.json +3321 -868
- package/dist/contour.css +5863 -3999
- package/dist/contour.d.ts +560 -1085
- package/dist/contour.esm.js +7 -0
- package/dist/contour.esm.min.js +1 -1
- package/dist/contour.html-data.json +10311 -0
- package/dist/contour.js +7 -0
- package/dist/contour.min.css +1 -1
- package/dist/contour.min.js +1 -1
- package/dist/contour.react.d.ts +420 -0
- package/dist/contour.single.html +17 -0
- package/dist/contour.single.min.css +1 -0
- package/dist/contour.tokens.json +940 -902
- package/dist/contour.vue.d.ts +418 -0
- package/dist/contour.web-types.json +10703 -0
- package/dist/custom-elements.json +30708 -0
- package/dist/docs/actions.md +3 -2
- package/dist/docs/affordances.md +25 -9
- package/dist/docs/apireference.md +1 -1
- package/dist/docs/colour.md +1 -1
- package/dist/docs/componentindex.md +6 -2
- package/dist/docs/data.md +7 -2
- package/dist/docs/docs.md +9 -2
- package/dist/docs/feedback.md +1 -1
- package/dist/docs/field.md +1 -1
- package/dist/docs/forms.md +1 -1
- package/dist/docs/index.json +22 -20
- package/dist/docs/install.md +1 -1
- package/dist/docs/landing.md +1 -1
- package/dist/docs/mapengine.md +19 -2
- package/dist/docs/motion.md +1 -1
- package/dist/docs/navigation.md +1 -1
- package/dist/docs/overlays.md +1 -1
- package/dist/docs/overview.md +1 -1
- package/dist/docs/patterns.md +2 -2
- package/dist/docs/playground.md +22 -2
- package/dist/docs/principles.md +1 -1
- package/dist/docs/recipes.md +13 -8
- package/dist/docs/space.md +1 -1
- package/dist/docs/status.md +14 -2
- package/dist/docs/surfaces.md +1 -1
- package/dist/docs/theming.md +1 -1
- package/dist/docs/type.md +1 -1
- package/dist/docs/webcomponents.md +17 -3
- package/dist/registry/items/contour-core.json +2 -2
- package/dist/registry/items/contour-data.json +2 -2
- package/dist/registry/items/contour-docs.json +2 -2
- package/dist/registry/items/contour-landing.json +2 -2
- package/dist/registry/registry.json +8 -8
- package/dist/surfaces/contour-core.min.css +1 -1
- package/dist/surfaces/contour-data.min.css +1 -1
- package/dist/surfaces/contour-docs.min.css +1 -1
- package/dist/surfaces/contour-landing.min.css +1 -1
- package/dist/wc/behaviours.mjs +45 -57
- package/dist/wc/content.mjs +264 -63
- package/dist/wc/core.mjs +390 -71
- package/dist/wc/dashboard.mjs +220 -13
- package/dist/wc/data.mjs +1094 -458
- package/dist/wc/docs.mjs +105 -12
- package/dist/wc/feedback.mjs +63 -14
- package/dist/wc/forms.mjs +739 -106
- package/dist/wc/index.mjs +9 -2
- package/dist/wc/interaction.mjs +184 -28
- package/dist/wc/layout.mjs +97 -27
- package/dist/wc/map.mjs +185 -118
- package/dist/wc/misc.mjs +124 -24
- package/dist/wc/navigation.mjs +384 -114
- package/dist/wc/shadow.mjs +94 -18
- package/dist/wc/states.mjs +21 -3
- package/dist/wc/svg.mjs +104 -0
- package/dist/wc/ui.mjs +1995 -478
- package/integrations/README.md +2 -0
- package/integrations/ai/CLAUDE.md +3 -3
- package/integrations/frameworks/README.md +235 -0
- package/integrations/native/style-dictionary.config.json +1 -1
- package/integrations/tailwind/contour-theme.css +5 -6
- package/package.json +53 -24
package/integrations/README.md
CHANGED
|
@@ -10,5 +10,7 @@ of these are required to use the system; `src/` and `dist/` remain the product.
|
|
|
10
10
|
| `integrations/ai/.cursorrules` | Drop-in rules file for Cursor / Claude Code / similar agents |
|
|
11
11
|
| `integrations/ai/v0-prompt.md` | System prompt for v0 / Bolt / Lovable / similar generators |
|
|
12
12
|
| `integrations/ai/CLAUDE.md` | Snippet to append to a project's `CLAUDE.md` |
|
|
13
|
+
| `integrations/frameworks/README.md` | React, Vue, Svelte and Astro recipes; every import, tag and event is checked by `node tools/check-recipes.mjs` |
|
|
14
|
+
| `LIBRESHIP.md` | Libreship geospatial integration guide: imports, bundles, map chrome, stability matrix |
|
|
13
15
|
|
|
14
16
|
These ship in the npm tarball under `integrations/` (see `package.json` `files`).
|
|
@@ -18,7 +18,7 @@ This project uses Contour (`contour-ds`) for all UI. Rules:
|
|
|
18
18
|
- Depth is lightness, not shadow.
|
|
19
19
|
- Charts carry a dash pattern as well as a hue.
|
|
20
20
|
- Mono type is for data, labels, code — never body copy.
|
|
21
|
-
- Full contract: `
|
|
22
|
-
- Component inventory: `
|
|
23
|
-
- Tokens: `
|
|
21
|
+
- Full contract: `contour-ds/agent-rules.json`.
|
|
22
|
+
- Component inventory: `contour-ds/components.json`.
|
|
23
|
+
- Tokens: `contour-ds/tokens.json`.
|
|
24
24
|
```
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
# Framework recipes
|
|
2
|
+
|
|
3
|
+
Contour is a CSS design system plus a layer of **custom elements**. There is no
|
|
4
|
+
framework wrapper to install and no adapter to keep in step: the components are
|
|
5
|
+
the platform's, so every framework consumes them the same way it consumes any
|
|
6
|
+
other HTML element. This page shows the shortest path in each one, plus the one
|
|
7
|
+
piece of configuration each framework needs so it does not treat
|
|
8
|
+
`<contour-…>` as a typo.
|
|
9
|
+
|
|
10
|
+
Two rules hold everywhere:
|
|
11
|
+
|
|
12
|
+
- **Register once.** Importing a web-component bundle registers its elements as
|
|
13
|
+
a side effect. Import `contour-ds/contour-wc.esm.js` for every element, or a
|
|
14
|
+
single family from `contour-ds/wc/<family>.mjs` to keep the bundle smaller.
|
|
15
|
+
Importing the same bundle twice is safe — `customElements.define` is guarded.
|
|
16
|
+
- **State travels as attributes and events.** Read and write attributes
|
|
17
|
+
(`label`, `open`, `value`, `rows`, …); listen for `contour:*` events. A
|
|
18
|
+
framework may add sugar on top, but the attribute/event contract is the one
|
|
19
|
+
that always works, and it is the one the type declarations describe.
|
|
20
|
+
|
|
21
|
+
The examples below are checked by `node tools/check-recipes.mjs`: every
|
|
22
|
+
`contour-ds/…` specifier must resolve through the package's `exports` map,
|
|
23
|
+
every `<contour-…>` tag must be declared in `dist/custom-elements.json`, and
|
|
24
|
+
every `contour:*` event name must appear in that manifest's event vocabulary.
|
|
25
|
+
|
|
26
|
+
## Install and style
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install contour-ds
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
/* every layer, in cascade order */
|
|
34
|
+
@import "contour-ds/contour.min.css";
|
|
35
|
+
|
|
36
|
+
/* or only the surface this product ships */
|
|
37
|
+
@import "contour-ds/surfaces/contour-core.min.css";
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
// every custom element
|
|
42
|
+
import "contour-ds/contour-wc.esm.js";
|
|
43
|
+
|
|
44
|
+
// or one family; the tag you use must be in the family you import
|
|
45
|
+
import "contour-ds/wc/data.mjs";
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The CSS bundles expect the self-hosted fonts beside them (`dist/fonts/`), which
|
|
49
|
+
the package ships. `hljs.css` and `map-chrome.*.css` are optional companions and
|
|
50
|
+
are not part of the main bundle.
|
|
51
|
+
|
|
52
|
+
## React
|
|
53
|
+
|
|
54
|
+
React renders a hyphenated tag as a custom element without configuration. Keep
|
|
55
|
+
the event listener on the DOM node: `ref` is the contract that does not depend
|
|
56
|
+
on React's custom-element event heuristics.
|
|
57
|
+
|
|
58
|
+
```jsx
|
|
59
|
+
import { useEffect, useRef } from "react";
|
|
60
|
+
import "contour-ds/contour.min.css";
|
|
61
|
+
import "contour-ds/contour-wc.esm.js";
|
|
62
|
+
|
|
63
|
+
export function LayerSearch({ layers, onSelect }) {
|
|
64
|
+
const ref = useRef(null);
|
|
65
|
+
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
const el = ref.current;
|
|
68
|
+
if (!el) return;
|
|
69
|
+
const handle = (e) => onSelect(e.detail);
|
|
70
|
+
el.addEventListener("contour:select", handle);
|
|
71
|
+
return () => el.removeEventListener("contour:select", handle);
|
|
72
|
+
}, [onSelect]);
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<contour-table
|
|
76
|
+
ref={ref}
|
|
77
|
+
label="Layers"
|
|
78
|
+
rows={JSON.stringify(layers)}
|
|
79
|
+
columns={JSON.stringify(["name", "features"])}
|
|
80
|
+
virtual
|
|
81
|
+
/>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
TypeScript: the package ships JSX intrinsics for every tag. Add one reference in
|
|
87
|
+
a `.d.ts` your `tsconfig` already includes:
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
/// <reference types="contour-ds/react" />
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Non-string values are properties, not attributes; React sets them on the element
|
|
94
|
+
when the component declares them. When in doubt, pass the string form
|
|
95
|
+
(`rows={JSON.stringify(rows)}`) — it is what the server sends and what the
|
|
96
|
+
attribute contract describes.
|
|
97
|
+
|
|
98
|
+
## Vue
|
|
99
|
+
|
|
100
|
+
Vue needs to be told that `contour-*` tags are custom elements, or the compiler
|
|
101
|
+
warns and tries to resolve them as components. In Vite:
|
|
102
|
+
|
|
103
|
+
```js
|
|
104
|
+
// vite.config.js
|
|
105
|
+
import { defineConfig } from "vite";
|
|
106
|
+
import vue from "@vitejs/plugin-vue";
|
|
107
|
+
|
|
108
|
+
export default defineConfig({
|
|
109
|
+
plugins: [
|
|
110
|
+
vue({
|
|
111
|
+
template: {
|
|
112
|
+
compilerOptions: { isCustomElement: (tag) => tag.startsWith("contour-") },
|
|
113
|
+
},
|
|
114
|
+
}),
|
|
115
|
+
],
|
|
116
|
+
});
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
```vue
|
|
120
|
+
<script setup>
|
|
121
|
+
import { onMounted, onBeforeUnmount, ref } from "vue";
|
|
122
|
+
import "contour-ds/contour.min.css";
|
|
123
|
+
import "contour-ds/contour-wc.esm.js";
|
|
124
|
+
|
|
125
|
+
const emit = defineEmits(["select"]);
|
|
126
|
+
const table = ref(null);
|
|
127
|
+
|
|
128
|
+
const onSelect = (e) => emit("select", e.detail);
|
|
129
|
+
onMounted(() => table.value?.addEventListener("contour:select", onSelect));
|
|
130
|
+
onBeforeUnmount(() => table.value?.removeEventListener("contour:select", onSelect));
|
|
131
|
+
</script>
|
|
132
|
+
|
|
133
|
+
<template>
|
|
134
|
+
<contour-table
|
|
135
|
+
ref="table"
|
|
136
|
+
label="Layers"
|
|
137
|
+
:rows="JSON.stringify(rows)"
|
|
138
|
+
:columns="JSON.stringify(['name', 'features'])"
|
|
139
|
+
virtual
|
|
140
|
+
/>
|
|
141
|
+
</template>
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
TypeScript: `contour-ds/vue` augments `GlobalComponents` with every tag, so a
|
|
145
|
+
template type-checks once the file is in the program:
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
/// <reference types="contour-ds/vue" />
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Svelte
|
|
152
|
+
|
|
153
|
+
Svelte treats a lowercase tag containing a dash as a custom element; no
|
|
154
|
+
configuration is needed. Use `bind:this` for the node and add the listener
|
|
155
|
+
yourself, exactly as in React and Vue:
|
|
156
|
+
|
|
157
|
+
```svelte
|
|
158
|
+
<script>
|
|
159
|
+
import { onMount } from "svelte";
|
|
160
|
+
import "contour-ds/contour.min.css";
|
|
161
|
+
import "contour-ds/contour-wc.esm.js";
|
|
162
|
+
|
|
163
|
+
export let layers = [];
|
|
164
|
+
let table;
|
|
165
|
+
|
|
166
|
+
onMount(() => {
|
|
167
|
+
const handle = (e) => console.log(e.detail);
|
|
168
|
+
table.addEventListener("contour:select", handle);
|
|
169
|
+
return () => table.removeEventListener("contour:select", handle);
|
|
170
|
+
});
|
|
171
|
+
</script>
|
|
172
|
+
|
|
173
|
+
<contour-table
|
|
174
|
+
bind:this={table}
|
|
175
|
+
label="Layers"
|
|
176
|
+
rows={JSON.stringify(layers)}
|
|
177
|
+
columns={JSON.stringify(["name", "features"])}
|
|
178
|
+
virtual
|
|
179
|
+
/>
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Svelte passes non-string values to custom elements as properties; the string
|
|
183
|
+
form above keeps the markup honest and identical to what the server sends.
|
|
184
|
+
|
|
185
|
+
## Astro
|
|
186
|
+
|
|
187
|
+
Astro renders custom elements as static HTML and hydrates nothing by default —
|
|
188
|
+
which is what the component layer expects, because every component is usable
|
|
189
|
+
without JavaScript. Add a client directive only when the component needs its
|
|
190
|
+
enhancement on the client immediately:
|
|
191
|
+
|
|
192
|
+
```astro
|
|
193
|
+
---
|
|
194
|
+
import "contour-ds/contour.min.css";
|
|
195
|
+
import "contour-ds/contour-wc.esm.js";
|
|
196
|
+
const layers = [{ name: "Roads", features: 1204 }];
|
|
197
|
+
---
|
|
198
|
+
|
|
199
|
+
<contour-table
|
|
200
|
+
label="Layers"
|
|
201
|
+
rows={JSON.stringify(layers)}
|
|
202
|
+
columns={JSON.stringify(["name", "features"])}
|
|
203
|
+
virtual
|
|
204
|
+
/>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
`client:load` is not required for the element to render; it is required for the
|
|
208
|
+
custom-element upgrade to run on the client *before* the reader interacts.
|
|
209
|
+
Astro slots are light-DOM children, which is how Contour composes: a card's
|
|
210
|
+
content is the element's own children.
|
|
211
|
+
|
|
212
|
+
```astro
|
|
213
|
+
<contour-card title="Elevation">
|
|
214
|
+
<p>Body content is slotted by being a child, not by a named slot.</p>
|
|
215
|
+
</contour-card>
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Events and state, without a framework
|
|
219
|
+
|
|
220
|
+
The pattern every recipe above uses is the smallest one that is true
|
|
221
|
+
everywhere:
|
|
222
|
+
|
|
223
|
+
```js
|
|
224
|
+
const el = document.querySelector("contour-table");
|
|
225
|
+
el.addEventListener("contour:select", (e) => {
|
|
226
|
+
// e.detail is the component's intent; the host owns the state.
|
|
227
|
+
render(e.detail);
|
|
228
|
+
});
|
|
229
|
+
el.setAttribute("rows", JSON.stringify(nextRows));
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Contour components emit intent and reflect host-owned state
|
|
233
|
+
(`contour:select`, `contour:input`, `contour:change`, `contour:layer-reorder`,
|
|
234
|
+
…). They do not keep a global store, so the host's framework remains the single
|
|
235
|
+
source of truth.
|
|
@@ -26,18 +26,17 @@
|
|
|
26
26
|
--color-canvas-sunken: var(--color-canvas-sunken);
|
|
27
27
|
--color-border: var(--color-border);
|
|
28
28
|
--color-border-strong: var(--color-border-strong);
|
|
29
|
-
--color-canvas: var(--color-canvas);
|
|
30
29
|
--color-success: var(--color-success);
|
|
31
30
|
--color-warning: var(--color-warning);
|
|
32
31
|
--color-danger: var(--color-danger);
|
|
33
32
|
--color-info: var(--color-info);
|
|
34
33
|
|
|
35
34
|
/* Colour — brand families (for data viz / accents) */
|
|
36
|
-
--color-tidal-500: var(--tidal-500);
|
|
37
|
-
--color-plasma-500: var(--plasma-500);
|
|
38
|
-
--color-lumen-500: var(--lumen-500);
|
|
39
|
-
--color-sol-500: var(--sol-500);
|
|
40
|
-
--color-clay-500: var(--clay-500);
|
|
35
|
+
--color-tidal-500: var(--color-tidal-500);
|
|
36
|
+
--color-plasma-500: var(--color-plasma-500);
|
|
37
|
+
--color-lumen-500: var(--color-lumen-500);
|
|
38
|
+
--color-sol-500: var(--color-sol-500);
|
|
39
|
+
--color-clay-500: var(--color-clay-500);
|
|
41
40
|
|
|
42
41
|
/* Radius */
|
|
43
42
|
--radius-sm: var(--radius-sm);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contour-ds",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "A token-driven design system for spatial interfaces",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"check:chart": "node tools/audit/chart-geometry.mjs",
|
|
29
29
|
"check:chart-names": "node tools/audit/chart-names.mjs",
|
|
30
30
|
"validate": "npx html-validate index.html templates/*.html",
|
|
31
|
-
"prepack": "
|
|
31
|
+
"prepack": "node tools/build.mjs --single",
|
|
32
32
|
"check:docs-exec": "node tools/execute-docs.mjs",
|
|
33
33
|
"check:reflow": "node tools/audit/check-reflow.mjs",
|
|
34
34
|
"check:doctor": "node tools/doctor.mjs",
|
|
@@ -41,10 +41,20 @@
|
|
|
41
41
|
"storybook": "npm run build:core && npm run generate:storybook && storybook dev -p 6006",
|
|
42
42
|
"build:storybook": "npm run build",
|
|
43
43
|
"build-storybook": "npm run build:storybook",
|
|
44
|
-
"test:storybook": "npm run build &&
|
|
44
|
+
"test:storybook": "npm run build && node tools/storybook-tests.mjs",
|
|
45
45
|
"check:storybook-coverage": "node tools/check-storybook-coverage.mjs",
|
|
46
46
|
"screenshot:baseline": "node tools/screenshot-baseline.mjs",
|
|
47
|
-
"check:storybook": "npm run build-storybook &&
|
|
47
|
+
"check:storybook": "npm run build-storybook && node tools/storybook-tests.mjs && npm run check:storybook-coverage",
|
|
48
|
+
"check:diagnostics": "node tools/check-diagnostics.mjs",
|
|
49
|
+
"check:dsd": "node tools/check-dsd.mjs",
|
|
50
|
+
"check:recipes": "node tools/check-recipes.mjs",
|
|
51
|
+
"check:perf": "node tools/audit/perf-budget.mjs",
|
|
52
|
+
"check:docs-behaviours": "node tools/audit/docs-behaviours.mjs",
|
|
53
|
+
"check:workspace-shell": "node tools/audit/workspace-shell.mjs",
|
|
54
|
+
"check:glass": "node tools/audit/glass-budget.mjs",
|
|
55
|
+
"check:visual": "node tools/check-visual.mjs",
|
|
56
|
+
"visual:baseline": "node tools/check-visual.mjs --baseline",
|
|
57
|
+
"visual:check": "node tools/check-visual.mjs --compare"
|
|
48
58
|
},
|
|
49
59
|
"keywords": [
|
|
50
60
|
"design-system",
|
|
@@ -76,7 +86,6 @@
|
|
|
76
86
|
"./svg/*": "./dist/svg/*",
|
|
77
87
|
"./hljs.css": "./dist/hljs.css",
|
|
78
88
|
"./contour.single.min.css": "./dist/contour.single.min.css",
|
|
79
|
-
"./contour.single.min.js": "./dist/contour.single.min.js",
|
|
80
89
|
"./map-chrome/mapbox": "./dist/map-chrome.mapbox.css",
|
|
81
90
|
"./map-chrome/maplibre": "./dist/map-chrome.maplibre.css",
|
|
82
91
|
"./contour-wc.js": "./dist/contour-wc.js",
|
|
@@ -85,10 +94,29 @@
|
|
|
85
94
|
"./contour.esm.min.js": "./dist/contour.esm.min.js",
|
|
86
95
|
"./contour-wc.esm.js": "./dist/contour-wc.esm.js",
|
|
87
96
|
"./contour-wc.esm.min.js": "./dist/contour-wc.esm.min.js",
|
|
88
|
-
"./wc
|
|
97
|
+
"./wc/*.mjs": "./dist/wc/*.mjs",
|
|
98
|
+
"./wc/*.js": "./dist/wc/*.mjs",
|
|
99
|
+
"./wc/*": "./dist/wc/*.mjs",
|
|
89
100
|
"./package.json": "./package.json",
|
|
90
101
|
"./agent-rules": "./dist/agent-rules.json",
|
|
91
|
-
"./agent-rules.json": "./dist/agent-rules.json"
|
|
102
|
+
"./agent-rules.json": "./dist/agent-rules.json",
|
|
103
|
+
"./html-data": "./dist/contour.html-data.json",
|
|
104
|
+
"./html-data.json": "./dist/contour.html-data.json",
|
|
105
|
+
"./web-types": "./dist/contour.web-types.json",
|
|
106
|
+
"./web-types.json": "./dist/contour.web-types.json",
|
|
107
|
+
"./react": {
|
|
108
|
+
"types": "./dist/contour.react.d.ts"
|
|
109
|
+
},
|
|
110
|
+
"./react.d.ts": "./dist/contour.react.d.ts",
|
|
111
|
+
"./vue": {
|
|
112
|
+
"types": "./dist/contour.vue.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"./vue.d.ts": "./dist/contour.vue.d.ts",
|
|
115
|
+
"./custom-elements": "./dist/custom-elements.json",
|
|
116
|
+
"./custom-elements.json": "./dist/custom-elements.json",
|
|
117
|
+
"./custom-elements-manifest": "./dist/custom-elements.json",
|
|
118
|
+
"./snippets": "./dist/contour.code-snippets",
|
|
119
|
+
"./code-snippets": "./dist/contour.code-snippets"
|
|
92
120
|
},
|
|
93
121
|
"sideEffects": [
|
|
94
122
|
"*.css",
|
|
@@ -99,25 +127,25 @@
|
|
|
99
127
|
},
|
|
100
128
|
"devDependencies": {
|
|
101
129
|
"@axe-core/playwright": "^4.14.0",
|
|
102
|
-
"@playwright/test": "^1.
|
|
103
|
-
"@storybook/addon-a11y": "^10.6.
|
|
104
|
-
"@storybook/addon-docs": "^10.6.
|
|
105
|
-
"@storybook/addon-mcp": "^10.6.
|
|
106
|
-
"@storybook/addon-vitest": "^10.6.
|
|
107
|
-
"@storybook/web-components-vite": "^10.6.
|
|
108
|
-
"@vitest/browser-playwright": "^5.1.
|
|
109
|
-
"@vitest/coverage-v8": "^5.1.
|
|
130
|
+
"@playwright/test": "^1.65.1",
|
|
131
|
+
"@storybook/addon-a11y": "^10.6.7",
|
|
132
|
+
"@storybook/addon-docs": "^10.6.7",
|
|
133
|
+
"@storybook/addon-mcp": "^10.6.7",
|
|
134
|
+
"@storybook/addon-vitest": "^10.6.7",
|
|
135
|
+
"@storybook/web-components-vite": "^10.6.7",
|
|
136
|
+
"@vitest/browser-playwright": "^5.1.1",
|
|
137
|
+
"@vitest/coverage-v8": "^5.1.1",
|
|
110
138
|
"ajv": "8.20.0",
|
|
111
|
-
"dembrandt": "0.
|
|
112
|
-
"html-validate": "11.
|
|
113
|
-
"jsdom": "^
|
|
139
|
+
"dembrandt": "0.40.1",
|
|
140
|
+
"html-validate": "11.21.1",
|
|
141
|
+
"jsdom": "^31.0.1",
|
|
114
142
|
"lit": "3.3.3",
|
|
115
|
-
"playwright-core": "1.
|
|
116
|
-
"storybook": "^10.6.
|
|
117
|
-
"vite": "^8.3.
|
|
118
|
-
"vitest": "^5.1.
|
|
143
|
+
"playwright-core": "1.65.1",
|
|
144
|
+
"storybook": "^10.6.7",
|
|
145
|
+
"vite": "^8.3.8",
|
|
146
|
+
"vitest": "^5.1.1"
|
|
119
147
|
},
|
|
120
|
-
"author": "Abel
|
|
148
|
+
"author": "Abel V\u00e1zquez Montoro",
|
|
121
149
|
"repository": {
|
|
122
150
|
"type": "git",
|
|
123
151
|
"url": "https://github.com/AbelVM/contour-ds.git"
|
|
@@ -131,5 +159,6 @@
|
|
|
131
159
|
},
|
|
132
160
|
"allowScripts": {
|
|
133
161
|
"esbuild@0.28.2": true
|
|
134
|
-
}
|
|
162
|
+
},
|
|
163
|
+
"customElements": "dist/custom-elements.json"
|
|
135
164
|
}
|