@astryxdesign/cli 0.7.9-canary.6fc2bff → 0.7.9-canary.73a105d
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/api/component/__fixtures__/resolutions/modules.txt +1 -1
- package/api/search/_candidate-score.mjs +20 -17
- package/api/search/_words.d.mts +34 -3
- package/api/search/_words.mjs +87 -21
- package/assets/templates/blocks/components/Icon/useIconHookUsage.doc.mjs +19 -0
- package/assets/templates/blocks/components/Icon/useIconHookUsage.tsx +68 -0
- package/assets/templates/blocks/components/createPanGesture/PanPlayingCardVanilla.doc.mjs +14 -0
- package/assets/templates/blocks/components/createPanGesture/PanPlayingCardVanilla.tsx +156 -0
- package/assets/templates/blocks/components/usePanGesture/PanPlayingCard.doc.mjs +14 -0
- package/assets/templates/blocks/components/usePanGesture/PanPlayingCard.tsx +143 -0
- package/foundation/discovery/component-discovery.mjs +17 -6
- package/foundation/integrations/manifest-writer.d.mts +3 -4
- package/foundation/integrations/manifest-writer.mjs +5 -3
- package/package.json +9 -9
|
@@ -264,7 +264,7 @@ useEndLaneReserve useEndLaneReserve Tokenizer/Tokenizer.doc.mjs Tokenizer/useEnd
|
|
|
264
264
|
useFieldStatusAnnouncement useFieldStatusAnnouncement FieldStatus/FieldStatus.doc.mjs FieldStatus/useFieldStatusAnnouncement.ts
|
|
265
265
|
useFocusReturnVisibility useFocusReturnVisibility hooks/useAnimatedLayout.doc.mjs hooks/useFocusReturnVisibility.ts
|
|
266
266
|
useHighlightedOptionScroll useHighlightedOptionScroll hooks/useAnimatedLayout.doc.mjs hooks/useHighlightedOptionScroll.ts
|
|
267
|
-
useIcon useIcon Icon/
|
|
267
|
+
useIcon useIcon Icon/useIcon.doc.mjs Icon/useIcon.ts
|
|
268
268
|
useIndicator useIndicator Indicator/Indicator.doc.mjs Indicator/useIndicator.ts
|
|
269
269
|
useInternalConfig useInternalConfig PowerSearch/PowerSearch.doc.mjs PowerSearch/useInternalConfig.ts
|
|
270
270
|
useIsHydrating useIsHydrating hooks/useAnimatedLayout.doc.mjs hooks/useIsHydrating.ts
|
|
@@ -37,9 +37,10 @@
|
|
|
37
37
|
|
|
38
38
|
import {
|
|
39
39
|
stem,
|
|
40
|
-
wordForms,
|
|
41
40
|
sameWord,
|
|
42
|
-
|
|
41
|
+
sameTermWord,
|
|
42
|
+
startsATermWordOf,
|
|
43
|
+
termWords,
|
|
43
44
|
wordsOf,
|
|
44
45
|
joined,
|
|
45
46
|
typoDistance,
|
|
@@ -78,14 +79,14 @@ function spellsOut(term, name, description) {
|
|
|
78
79
|
/**
|
|
79
80
|
* Whether a one-word term is a name's last word and every word before it is a
|
|
80
81
|
* single letter: Stack in VStack and HStack.
|
|
81
|
-
* @param {
|
|
82
|
+
* @param {import('./_words.mjs').TermWords} t
|
|
82
83
|
* @param {string} name
|
|
83
84
|
*/
|
|
84
|
-
function headOfLetters(
|
|
85
|
+
function headOfLetters(t, name) {
|
|
85
86
|
const parts = wordsOf(name);
|
|
86
87
|
return (
|
|
87
88
|
parts.length >= 2 &&
|
|
88
|
-
|
|
89
|
+
sameTermWord(t, parts[parts.length - 1]) &&
|
|
89
90
|
parts.slice(0, -1).every(p => p.length === 1)
|
|
90
91
|
);
|
|
91
92
|
}
|
|
@@ -96,14 +97,14 @@ const FAMILY_MEMBERS = 3;
|
|
|
96
97
|
/**
|
|
97
98
|
* A derived name's score for a term: 60 for the same word, 40 for a word the
|
|
98
99
|
* term starts, else 0.
|
|
99
|
-
* @param {
|
|
100
|
+
* @param {import('./_words.mjs').TermWords} t - The lowercased search term.
|
|
100
101
|
* @param {string} kw - The derived name as authored.
|
|
101
102
|
* @returns {number}
|
|
102
103
|
*/
|
|
103
|
-
function weakKeywordScore(
|
|
104
|
+
function weakKeywordScore(t, kw) {
|
|
104
105
|
const kwLower = String(kw).toLowerCase();
|
|
105
|
-
if (kwLower === term ||
|
|
106
|
-
return
|
|
106
|
+
if (kwLower === t.term || sameTermWord(t, kwLower)) return 60;
|
|
107
|
+
return startsATermWordOf(t, kw) ? 40 : 0;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
/**
|
|
@@ -146,6 +147,8 @@ export function scoreCandidate(
|
|
|
146
147
|
_family,
|
|
147
148
|
_familyIndex,
|
|
148
149
|
} = candidate;
|
|
150
|
+
// The term's forms, worked out once for every word below.
|
|
151
|
+
const t = termWords(term);
|
|
149
152
|
let best = 0;
|
|
150
153
|
let reason = '';
|
|
151
154
|
/** @type {'partial' | 'keyword' | false} */
|
|
@@ -208,18 +211,18 @@ export function scoreCandidate(
|
|
|
208
211
|
// outranks the Token component for `tokens`.
|
|
209
212
|
consider(99, 'plural of the name');
|
|
210
213
|
} else {
|
|
211
|
-
if (
|
|
214
|
+
if (sameTermWord(t, nameLower)) consider(95, `name "${candidateName}"`);
|
|
212
215
|
// The term is a word of the name, or starts one: "input" in TextInput.
|
|
213
216
|
else if (
|
|
214
217
|
!part &&
|
|
215
218
|
domain !== 'doc' &&
|
|
216
219
|
domain !== 'theme' &&
|
|
217
|
-
headOfLetters(
|
|
220
|
+
headOfLetters(t, candidateName)
|
|
218
221
|
) {
|
|
219
222
|
// The whole query is the name's head word after single letters (Stack
|
|
220
223
|
// in VStack, HStack): a variant named by its head, as a keyword is.
|
|
221
224
|
consider(90, `name "${candidateName}" ends in "${term}"`);
|
|
222
|
-
} else if (
|
|
225
|
+
} else if (startsATermWordOf(t, candidateName)) {
|
|
223
226
|
consider(60, `name contains "${term}"`);
|
|
224
227
|
}
|
|
225
228
|
if (fuzzy) {
|
|
@@ -273,11 +276,11 @@ export function scoreCandidate(
|
|
|
273
276
|
consider(90, `keyword "${kw}"`, 'keyword');
|
|
274
277
|
continue;
|
|
275
278
|
}
|
|
276
|
-
if (
|
|
279
|
+
if (sameTermWord(t, kwLower)) {
|
|
277
280
|
consider(88, `keyword "${kw}"`);
|
|
278
281
|
continue;
|
|
279
282
|
}
|
|
280
|
-
if (
|
|
283
|
+
if (startsATermWordOf(t, kw)) consider(70, `keyword "${kw}"`);
|
|
281
284
|
if (fuzzy) {
|
|
282
285
|
const dist = typoDistance(term, kwLower);
|
|
283
286
|
if (dist != null && dist <= 2) {
|
|
@@ -294,9 +297,9 @@ export function scoreCandidate(
|
|
|
294
297
|
// A bound skips the read when no name the page can yield matches the term,
|
|
295
298
|
// and then no weak keyword can match it either.
|
|
296
299
|
const bound = candidate.weakKeywordBound;
|
|
297
|
-
if (!bound || bound.some(kw => weakKeywordScore(
|
|
300
|
+
if (!bound || bound.some(kw => weakKeywordScore(t, kw) > 0)) {
|
|
298
301
|
for (const kw of candidate.weakKeywords ?? []) {
|
|
299
|
-
const score = weakKeywordScore(
|
|
302
|
+
const score = weakKeywordScore(t, kw);
|
|
300
303
|
if (score > 0) consider(score, `renders ${kw}`);
|
|
301
304
|
}
|
|
302
305
|
}
|
|
@@ -307,7 +310,7 @@ export function scoreCandidate(
|
|
|
307
310
|
if (term.length >= 3) {
|
|
308
311
|
// Any form of the term, with any common suffix: `spacing` finds
|
|
309
312
|
// "space" and "spaces", `tables` finds "table".
|
|
310
|
-
const roots = [...new Set([stem(term), ...
|
|
313
|
+
const roots = [...new Set([stem(term), ...t.forms])]
|
|
311
314
|
.filter(f => f.length >= 3)
|
|
312
315
|
.map(f => f.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'));
|
|
313
316
|
const re = new RegExp(`\\b(?:${roots.join('|')})(s|es|ing|ed|ies)?\\b`);
|
package/api/search/_words.d.mts
CHANGED
|
@@ -10,9 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export function stem(w: string): string;
|
|
12
12
|
/**
|
|
13
|
-
* The forms of a word that count as the same word
|
|
14
|
-
* singular when it ends in a plural suffix — so "tables" is "table",
|
|
15
|
-
* "statuses" is "status", and "filtering" is "filter".
|
|
13
|
+
* The forms of a word that count as the same word (see someForm).
|
|
16
14
|
* @param {string} w - Lowercase word.
|
|
17
15
|
* @returns {Set<string>}
|
|
18
16
|
*/
|
|
@@ -24,6 +22,23 @@ export function wordForms(w: string): Set<string>;
|
|
|
24
22
|
* @returns {boolean}
|
|
25
23
|
*/
|
|
26
24
|
export function sameWord(a: string, b: string): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A search term's forms and the word starts it matches, worked out once for
|
|
27
|
+
* every word the term is compared with.
|
|
28
|
+
* @typedef {{term: string, forms: Set<string>, starts: string[]}} TermWords
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* @param {string} term - Lowercase term.
|
|
32
|
+
* @returns {TermWords}
|
|
33
|
+
*/
|
|
34
|
+
export function termWords(term: string): TermWords;
|
|
35
|
+
/**
|
|
36
|
+
* Whether a lowercase word is the term's word, as sameWord answers.
|
|
37
|
+
* @param {TermWords} t
|
|
38
|
+
* @param {string} w
|
|
39
|
+
* @returns {boolean}
|
|
40
|
+
*/
|
|
41
|
+
export function sameTermWord(t: TermWords, w: string): boolean;
|
|
27
42
|
/**
|
|
28
43
|
* The lowercase words of a name or keyword: split at non-alphanumerics and at
|
|
29
44
|
* camelCase boundaries, so "TextInput" is ["text", "input"] and
|
|
@@ -41,6 +56,13 @@ export function wordsOf(text: string): string[];
|
|
|
41
56
|
* @returns {boolean}
|
|
42
57
|
*/
|
|
43
58
|
export function startsAWordOf(term: string, text: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* startsAWordOf for a term whose words are already worked out.
|
|
61
|
+
* @param {TermWords} t
|
|
62
|
+
* @param {string} text - The name or keyword as authored.
|
|
63
|
+
* @returns {boolean}
|
|
64
|
+
*/
|
|
65
|
+
export function startsATermWordOf(t: TermWords, text: string): boolean;
|
|
44
66
|
/**
|
|
45
67
|
* A query with its camelCase and PascalCase identifiers spelled as words, so
|
|
46
68
|
* `SidebarToggle` reads "sidebar toggle" and `useTablePaginationState` "use
|
|
@@ -68,3 +90,12 @@ export function joined(text: string): string;
|
|
|
68
90
|
*/
|
|
69
91
|
export function typoDistance(a: string, b: string): 1 | 2 | 3 | null;
|
|
70
92
|
export function isTypo(a: string, b: string, dist: number): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* A search term's forms and the word starts it matches, worked out once for
|
|
95
|
+
* every word the term is compared with.
|
|
96
|
+
*/
|
|
97
|
+
export type TermWords = {
|
|
98
|
+
term: string;
|
|
99
|
+
forms: Set<string>;
|
|
100
|
+
starts: string[];
|
|
101
|
+
};
|
package/api/search/_words.mjs
CHANGED
|
@@ -26,27 +26,47 @@ export function stem(w) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* "
|
|
29
|
+
* Visits the forms of a word that count as the same word, in order, until a
|
|
30
|
+
* visit returns true. The forms are the word, its stem, and its singular when
|
|
31
|
+
* it ends in a plural suffix. So "tables" is "table", "statuses" is "status",
|
|
32
|
+
* and "filtering" is "filter".
|
|
32
33
|
* @param {string} w - Lowercase word.
|
|
33
|
-
* @
|
|
34
|
+
* @param {(form: string) => boolean} visit
|
|
35
|
+
* @returns {boolean} whether a visit returned true
|
|
34
36
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (w.length > 3 && w.endsWith('s')
|
|
38
|
-
if (w.length > 4 && w.endsWith('es')
|
|
39
|
-
if (w.length > 4 && w.endsWith('ies')
|
|
37
|
+
function someForm(w, visit) {
|
|
38
|
+
if (visit(w) || visit(stem(w))) return true;
|
|
39
|
+
if (w.length > 3 && w.endsWith('s') && visit(w.slice(0, -1))) return true;
|
|
40
|
+
if (w.length > 4 && w.endsWith('es') && visit(w.slice(0, -2))) return true;
|
|
41
|
+
if (w.length > 4 && w.endsWith('ies') && visit(w.slice(0, -3) + 'y')) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
40
44
|
// A gerund keeps its verb: "spacing" lost a final e ("space"), and
|
|
41
45
|
// "dragging" doubled a consonant ("drag"). A past participle does not: it
|
|
42
46
|
// usually describes a state ("archived notes"), not the action a catalog
|
|
43
47
|
// word names.
|
|
44
48
|
if (w.length >= 6 && w.endsWith('ing')) {
|
|
45
49
|
const base = w.slice(0, -3);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
if (visit(base) || visit(`${base}e`)) return true;
|
|
51
|
+
if (/([b-df-hj-np-tv-z])\1$/.test(base) && visit(base.slice(0, -1))) {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
49
54
|
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The forms of a word that count as the same word (see someForm).
|
|
60
|
+
* @param {string} w - Lowercase word.
|
|
61
|
+
* @returns {Set<string>}
|
|
62
|
+
*/
|
|
63
|
+
export function wordForms(w) {
|
|
64
|
+
/** @type {Set<string>} */
|
|
65
|
+
const forms = new Set();
|
|
66
|
+
someForm(w, form => {
|
|
67
|
+
forms.add(form);
|
|
68
|
+
return false;
|
|
69
|
+
});
|
|
50
70
|
return forms;
|
|
51
71
|
}
|
|
52
72
|
|
|
@@ -74,8 +94,38 @@ function singulars(w) {
|
|
|
74
94
|
export function sameWord(a, b) {
|
|
75
95
|
if (a === b) return true;
|
|
76
96
|
const forms = wordForms(a);
|
|
77
|
-
|
|
78
|
-
|
|
97
|
+
return someForm(b, form => forms.has(form));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* A search term's forms and the word starts it matches, worked out once for
|
|
102
|
+
* every word the term is compared with.
|
|
103
|
+
* @typedef {{term: string, forms: Set<string>, starts: string[]}} TermWords
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @param {string} term - Lowercase term.
|
|
108
|
+
* @returns {TermWords}
|
|
109
|
+
*/
|
|
110
|
+
export function termWords(term) {
|
|
111
|
+
return {
|
|
112
|
+
term,
|
|
113
|
+
forms: wordForms(term),
|
|
114
|
+
// The term or its singular may start the word: "tokens" starts
|
|
115
|
+
// "tokenizer" through "token". A singular needs five letters, so "stats"
|
|
116
|
+
// does not start "status".
|
|
117
|
+
starts: [term, ...singulars(term).filter(f => f.length >= 5)],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Whether a lowercase word is the term's word, as sameWord answers.
|
|
123
|
+
* @param {TermWords} t
|
|
124
|
+
* @param {string} w
|
|
125
|
+
* @returns {boolean}
|
|
126
|
+
*/
|
|
127
|
+
export function sameTermWord(t, w) {
|
|
128
|
+
return w === t.term || someForm(w, form => t.forms.has(form));
|
|
79
129
|
}
|
|
80
130
|
|
|
81
131
|
/**
|
|
@@ -103,17 +153,33 @@ export function wordsOf(text) {
|
|
|
103
153
|
* @returns {boolean}
|
|
104
154
|
*/
|
|
105
155
|
export function startsAWordOf(term, text) {
|
|
106
|
-
if (term
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
156
|
+
if (!coversHalf(term, text)) return false;
|
|
157
|
+
return startsATermWordOf(termWords(term), text);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* startsAWordOf for a term whose words are already worked out.
|
|
162
|
+
* @param {TermWords} t
|
|
163
|
+
* @param {string} text - The name or keyword as authored.
|
|
164
|
+
* @returns {boolean}
|
|
165
|
+
*/
|
|
166
|
+
export function startsATermWordOf(t, text) {
|
|
167
|
+
if (!coversHalf(t.term, text)) return false;
|
|
112
168
|
return wordsOf(text).some(
|
|
113
|
-
w => starts.some(f => w.startsWith(f)) ||
|
|
169
|
+
w => t.starts.some(f => w.startsWith(f)) || sameTermWord(t, w),
|
|
114
170
|
);
|
|
115
171
|
}
|
|
116
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Whether a term is long enough to match inside `text`: four letters, and at
|
|
175
|
+
* least half of the text.
|
|
176
|
+
* @param {string} term
|
|
177
|
+
* @param {string} text
|
|
178
|
+
*/
|
|
179
|
+
function coversHalf(term, text) {
|
|
180
|
+
return term.length >= 4 && term.length / String(text).length >= 0.5;
|
|
181
|
+
}
|
|
182
|
+
|
|
117
183
|
/**
|
|
118
184
|
* A query with its camelCase and PascalCase identifiers spelled as words, so
|
|
119
185
|
* `SidebarToggle` reads "sidebar toggle" and `useTablePaginationState` "use
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
+
export const doc = {
|
|
5
|
+
type: 'block',
|
|
6
|
+
exampleFor: 'useIcon',
|
|
7
|
+
name: 'useIcon — Status Row',
|
|
8
|
+
displayName: 'useIcon — Status Row',
|
|
9
|
+
description:
|
|
10
|
+
'A custom status row that draws the semantic success, warning and error icons with useIcon. The same row renders under the current theme and under a Theme whose icons override those three, and its icons change with no change to the component.',
|
|
11
|
+
isReady: true,
|
|
12
|
+
aspectRatio: 4 / 3,
|
|
13
|
+
componentsUsed: ['Theme', 'Layout', 'Text'],
|
|
14
|
+
icons: {
|
|
15
|
+
CheckBadgeIcon: 'success',
|
|
16
|
+
ExclamationCircleIcon: 'warning',
|
|
17
|
+
NoSymbolIcon: 'error',
|
|
18
|
+
},
|
|
19
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
CheckBadgeIcon,
|
|
7
|
+
ExclamationCircleIcon,
|
|
8
|
+
NoSymbolIcon,
|
|
9
|
+
} from '@heroicons/react/24/solid';
|
|
10
|
+
import {useIcon} from '@astryxdesign/core/Icon';
|
|
11
|
+
import {HStack, VStack} from '@astryxdesign/core/Layout';
|
|
12
|
+
import {Text} from '@astryxdesign/core/Text';
|
|
13
|
+
import {Theme, defineTheme, useTheme} from '@astryxdesign/core/theme';
|
|
14
|
+
|
|
15
|
+
const statusIconTheme = defineTheme({
|
|
16
|
+
name: 'status-icons-docs',
|
|
17
|
+
icons: {
|
|
18
|
+
success: <CheckBadgeIcon width="1em" height="1em" />,
|
|
19
|
+
warning: <ExclamationCircleIcon width="1em" height="1em" />,
|
|
20
|
+
error: <NoSymbolIcon width="1em" height="1em" />,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
function StatusRow() {
|
|
25
|
+
const success = useIcon('success');
|
|
26
|
+
const warning = useIcon('warning');
|
|
27
|
+
const error = useIcon('error');
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<HStack gap={4}>
|
|
31
|
+
<HStack gap={1} vAlign="center">
|
|
32
|
+
{success}
|
|
33
|
+
<Text type="body">Passed</Text>
|
|
34
|
+
</HStack>
|
|
35
|
+
<HStack gap={1} vAlign="center">
|
|
36
|
+
{warning}
|
|
37
|
+
<Text type="body">Flaky</Text>
|
|
38
|
+
</HStack>
|
|
39
|
+
<HStack gap={1} vAlign="center">
|
|
40
|
+
{error}
|
|
41
|
+
<Text type="body">Failed</Text>
|
|
42
|
+
</HStack>
|
|
43
|
+
</HStack>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export default function UseIconHookUsage() {
|
|
48
|
+
const {mode} = useTheme();
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<VStack gap={4}>
|
|
52
|
+
<VStack gap={2}>
|
|
53
|
+
<Text type="supporting" color="secondary">
|
|
54
|
+
Current theme
|
|
55
|
+
</Text>
|
|
56
|
+
<StatusRow />
|
|
57
|
+
</VStack>
|
|
58
|
+
<Theme theme={statusIconTheme} mode={mode}>
|
|
59
|
+
<VStack gap={2}>
|
|
60
|
+
<Text type="supporting" color="secondary">
|
|
61
|
+
Theme with its own status icons
|
|
62
|
+
</Text>
|
|
63
|
+
<StatusRow />
|
|
64
|
+
</VStack>
|
|
65
|
+
</Theme>
|
|
66
|
+
</VStack>
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
+
export const doc = {
|
|
5
|
+
type: 'block',
|
|
6
|
+
exampleFor: 'createPanGesture',
|
|
7
|
+
name: 'createPanGesture — A playing card without React',
|
|
8
|
+
displayName: 'createPanGesture — A playing card without React',
|
|
9
|
+
description:
|
|
10
|
+
'A playing card built in plain JavaScript with createPanGesture: it follows a drag from a finger, a mouse or a pen, snaps back on a gentle release, flies off on a quick flick, and a button discards it from the keyboard. React only mounts it.',
|
|
11
|
+
isReady: true,
|
|
12
|
+
aspectRatio: 4 / 3,
|
|
13
|
+
componentsUsed: [],
|
|
14
|
+
};
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import {createPanGesture} from '@astryxdesign/core';
|
|
6
|
+
|
|
7
|
+
const DECK = [
|
|
8
|
+
{face: 'A\u2660', name: 'Ace of spades'},
|
|
9
|
+
{face: 'K\u2665', name: 'King of hearts'},
|
|
10
|
+
{face: 'Q\u2663', name: 'Queen of clubs'},
|
|
11
|
+
{face: 'J\u2666', name: 'Jack of diamonds'},
|
|
12
|
+
];
|
|
13
|
+
/** A release faster than this (px/s) throws the card away. */
|
|
14
|
+
const THROW_SPEED = 1000;
|
|
15
|
+
/** How far a thrown card travels before the next one is dealt, px. */
|
|
16
|
+
const THROW_DISTANCE = 480;
|
|
17
|
+
const SETTLE = 'translate 300ms cubic-bezier(0.2, 0.9, 0.3, 1.2)';
|
|
18
|
+
const THROW = 'translate 250ms ease-in, opacity 250ms ease-in';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A deck on a table, in plain JavaScript: no React below this line. The pan
|
|
22
|
+
* reports the drag; the card's own style moves it. Returns a function that
|
|
23
|
+
* takes it down again.
|
|
24
|
+
*/
|
|
25
|
+
function mountDeck(table: HTMLElement, discardButton: HTMLButtonElement) {
|
|
26
|
+
let top = 0;
|
|
27
|
+
/** A throw is in flight: the next card is dealt when it ends. */
|
|
28
|
+
let isThrowing = false;
|
|
29
|
+
/** The drag in progress met a throw: the rest of it moves nothing. */
|
|
30
|
+
let isIgnoringDrag = false;
|
|
31
|
+
const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
|
|
32
|
+
const card = document.createElement('div');
|
|
33
|
+
card.textContent = DECK[0].face;
|
|
34
|
+
// An image's name is all a screen reader announces, so it names the card.
|
|
35
|
+
card.setAttribute('role', 'img');
|
|
36
|
+
card.setAttribute('aria-label', DECK[0].name);
|
|
37
|
+
Object.assign(card.style, {
|
|
38
|
+
width: '120px',
|
|
39
|
+
height: '170px',
|
|
40
|
+
display: 'grid',
|
|
41
|
+
placeItems: 'center',
|
|
42
|
+
font: 'bold 40px system-ui, sans-serif',
|
|
43
|
+
borderRadius: '12px',
|
|
44
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
45
|
+
color: 'var(--color-text-primary)',
|
|
46
|
+
boxShadow: '0 2px 8px rgb(0 0 0 / 0.2)',
|
|
47
|
+
cursor: 'grab',
|
|
48
|
+
userSelect: 'none',
|
|
49
|
+
});
|
|
50
|
+
// Announces each discard to screen readers.
|
|
51
|
+
const status = document.createElement('div');
|
|
52
|
+
status.setAttribute('aria-live', 'polite');
|
|
53
|
+
Object.assign(status.style, {
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
width: '1px',
|
|
56
|
+
height: '1px',
|
|
57
|
+
overflow: 'hidden',
|
|
58
|
+
clipPath: 'inset(50%)',
|
|
59
|
+
whiteSpace: 'nowrap',
|
|
60
|
+
});
|
|
61
|
+
table.append(card, status);
|
|
62
|
+
|
|
63
|
+
/** Move the card, with a transition unless the person reduces motion. */
|
|
64
|
+
function moveTo(x: number, y: number, transition: string) {
|
|
65
|
+
card.style.transition = reduceMotion.matches ? 'none' : transition;
|
|
66
|
+
card.style.translate = `${x}px ${y}px`;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function discard(direction: number) {
|
|
70
|
+
// One throw at a time: a second Discard during it would deal twice.
|
|
71
|
+
if (isThrowing) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
isThrowing = true;
|
|
75
|
+
// The drag in progress, if any, moves nothing more.
|
|
76
|
+
isIgnoringDrag = true;
|
|
77
|
+
moveTo(direction * THROW_DISTANCE, 0, THROW);
|
|
78
|
+
card.style.opacity = '0';
|
|
79
|
+
const deal = () => {
|
|
80
|
+
isThrowing = false;
|
|
81
|
+
status.textContent = `${DECK[top % DECK.length].name} discarded`;
|
|
82
|
+
top += 1;
|
|
83
|
+
card.textContent = DECK[top % DECK.length].face;
|
|
84
|
+
card.setAttribute('aria-label', DECK[top % DECK.length].name);
|
|
85
|
+
moveTo(0, 0, 'none');
|
|
86
|
+
card.style.opacity = '1';
|
|
87
|
+
};
|
|
88
|
+
if (reduceMotion.matches) {
|
|
89
|
+
deal();
|
|
90
|
+
} else {
|
|
91
|
+
card.addEventListener('transitionend', deal, {once: true});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
const pan = createPanGesture(card, {
|
|
96
|
+
onPan: ({state, translation, velocity}) => {
|
|
97
|
+
// A drag that meets a throw is ignored to its end. Its moves would
|
|
98
|
+
// cancel the throw's transitions, and the next card would jump to it.
|
|
99
|
+
if (state === 'began') {
|
|
100
|
+
isIgnoringDrag = isThrowing;
|
|
101
|
+
}
|
|
102
|
+
if (isIgnoringDrag) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (state === 'began' || state === 'changed') {
|
|
106
|
+
// Follows the finger: translation leaves out the travel the drag
|
|
107
|
+
// needed to begin, so the card does not jump.
|
|
108
|
+
moveTo(translation.x, translation.y, 'none');
|
|
109
|
+
} else if (state === 'ended' && Math.abs(velocity.x) > THROW_SPEED) {
|
|
110
|
+
discard(Math.sign(velocity.x));
|
|
111
|
+
} else {
|
|
112
|
+
moveTo(0, 0, SETTLE);
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
// The drag's keyboard and assistive-technology path (WCAG 2.5.7).
|
|
117
|
+
const onDiscard = () => discard(1);
|
|
118
|
+
discardButton.addEventListener('click', onDiscard);
|
|
119
|
+
return () => {
|
|
120
|
+
discardButton.removeEventListener('click', onDiscard);
|
|
121
|
+
pan.destroy();
|
|
122
|
+
card.remove();
|
|
123
|
+
status.remove();
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Mounts the deck when the wrapper attaches, and takes it down when it
|
|
129
|
+
* detaches: its cleanup is the callback ref's.
|
|
130
|
+
*/
|
|
131
|
+
function mountTable(wrapper: HTMLDivElement | null) {
|
|
132
|
+
if (wrapper == null) {
|
|
133
|
+
return undefined;
|
|
134
|
+
}
|
|
135
|
+
const table = wrapper.firstElementChild as HTMLElement;
|
|
136
|
+
const button = wrapper.querySelector('button') as HTMLButtonElement;
|
|
137
|
+
return mountDeck(table, button);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export default function PanPlayingCardVanilla() {
|
|
141
|
+
return (
|
|
142
|
+
<div
|
|
143
|
+
ref={mountTable}
|
|
144
|
+
style={{display: 'grid', gap: 16, padding: 16, maxWidth: 360}}>
|
|
145
|
+
<div
|
|
146
|
+
style={{
|
|
147
|
+
height: 200,
|
|
148
|
+
display: 'grid',
|
|
149
|
+
placeItems: 'center',
|
|
150
|
+
overflow: 'hidden',
|
|
151
|
+
}}
|
|
152
|
+
/>
|
|
153
|
+
<button type="button">Discard the top card</button>
|
|
154
|
+
</div>
|
|
155
|
+
);
|
|
156
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/** @type {import('@astryxdesign/cli/authoring').TemplateDoc} */
|
|
4
|
+
export const doc = {
|
|
5
|
+
type: 'block',
|
|
6
|
+
exampleFor: 'usePanGesture',
|
|
7
|
+
name: 'usePanGesture — A playing card',
|
|
8
|
+
displayName: 'usePanGesture — A playing card',
|
|
9
|
+
description:
|
|
10
|
+
'A playing card built with usePanGesture: it follows a drag from a finger, a mouse or a pen with no render per move, snaps back on a gentle release, flies off on a quick flick, and a button discards it from the keyboard.',
|
|
11
|
+
isReady: true,
|
|
12
|
+
aspectRatio: 4 / 3,
|
|
13
|
+
componentsUsed: [],
|
|
14
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
'use client';
|
|
4
|
+
|
|
5
|
+
import {useRef, useState} from 'react';
|
|
6
|
+
import {flushSync} from 'react-dom';
|
|
7
|
+
import {usePanGesture} from '@astryxdesign/core/hooks';
|
|
8
|
+
|
|
9
|
+
const DECK = [
|
|
10
|
+
{face: 'A\u2660', name: 'Ace of spades'},
|
|
11
|
+
{face: 'K\u2665', name: 'King of hearts'},
|
|
12
|
+
{face: 'Q\u2663', name: 'Queen of clubs'},
|
|
13
|
+
{face: 'J\u2666', name: 'Jack of diamonds'},
|
|
14
|
+
];
|
|
15
|
+
/** A release faster than this (px/s) throws the card away. */
|
|
16
|
+
const THROW_SPEED = 1000;
|
|
17
|
+
/** How far a thrown card travels before the next one is dealt, px. */
|
|
18
|
+
const THROW_DISTANCE = 480;
|
|
19
|
+
const SETTLE = 'translate 300ms cubic-bezier(0.2, 0.9, 0.3, 1.2)';
|
|
20
|
+
const THROW = 'translate 250ms ease-in, opacity 250ms ease-in';
|
|
21
|
+
|
|
22
|
+
export default function PanPlayingCard() {
|
|
23
|
+
const card = useRef<HTMLDivElement>(null);
|
|
24
|
+
const [top, setTop] = useState(0);
|
|
25
|
+
const [announcement, setAnnouncement] = useState('');
|
|
26
|
+
/** A throw is in flight: the next card is dealt when it ends. */
|
|
27
|
+
const throwing = useRef(false);
|
|
28
|
+
/** The drag in progress met a throw: the rest of it moves nothing. */
|
|
29
|
+
const ignoringDrag = useRef(false);
|
|
30
|
+
|
|
31
|
+
/** Move the card, with a transition unless the person reduces motion. */
|
|
32
|
+
function moveTo(x: number, y: number, transition: string) {
|
|
33
|
+
const element = card.current;
|
|
34
|
+
if (element == null) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const reduced = window.matchMedia(
|
|
38
|
+
'(prefers-reduced-motion: reduce)',
|
|
39
|
+
).matches;
|
|
40
|
+
element.style.transition = reduced ? 'none' : transition;
|
|
41
|
+
element.style.translate = `${x}px ${y}px`;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function discard(direction: number) {
|
|
45
|
+
const element = card.current;
|
|
46
|
+
// One throw at a time: a second Discard during it would deal twice.
|
|
47
|
+
if (element == null || throwing.current) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
throwing.current = true;
|
|
51
|
+
// The drag in progress, if any, moves nothing more.
|
|
52
|
+
ignoringDrag.current = true;
|
|
53
|
+
moveTo(direction * THROW_DISTANCE, 0, THROW);
|
|
54
|
+
element.style.opacity = '0';
|
|
55
|
+
const deal = () => {
|
|
56
|
+
throwing.current = false;
|
|
57
|
+
// Commit the next card's face first. A reset before that paints the
|
|
58
|
+
// discarded card back at the centre for one frame.
|
|
59
|
+
flushSync(() => {
|
|
60
|
+
setAnnouncement(`${DECK[top % DECK.length].name} discarded`);
|
|
61
|
+
setTop(value => value + 1);
|
|
62
|
+
});
|
|
63
|
+
moveTo(0, 0, 'none');
|
|
64
|
+
element.style.opacity = '1';
|
|
65
|
+
};
|
|
66
|
+
if (element.style.transition === 'none') {
|
|
67
|
+
deal();
|
|
68
|
+
} else {
|
|
69
|
+
element.addEventListener('transitionend', deal, {once: true});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// The drag writes the card's style in onPan: no render per move.
|
|
74
|
+
usePanGesture(card, {
|
|
75
|
+
onPan: ({state, translation, velocity}) => {
|
|
76
|
+
// A drag that meets a throw is ignored to its end. Its moves would
|
|
77
|
+
// cancel the throw's transitions, and the next card would jump to it.
|
|
78
|
+
if (state === 'began') {
|
|
79
|
+
ignoringDrag.current = throwing.current;
|
|
80
|
+
}
|
|
81
|
+
if (ignoringDrag.current) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (state === 'began' || state === 'changed') {
|
|
85
|
+
moveTo(translation.x, translation.y, 'none');
|
|
86
|
+
} else if (state === 'ended' && Math.abs(velocity.x) > THROW_SPEED) {
|
|
87
|
+
discard(Math.sign(velocity.x));
|
|
88
|
+
} else {
|
|
89
|
+
moveTo(0, 0, SETTLE);
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<div style={{display: 'grid', gap: 16, padding: 16, maxWidth: 360}}>
|
|
96
|
+
<div
|
|
97
|
+
style={{
|
|
98
|
+
height: 200,
|
|
99
|
+
display: 'grid',
|
|
100
|
+
placeItems: 'center',
|
|
101
|
+
overflow: 'hidden',
|
|
102
|
+
}}>
|
|
103
|
+
<div
|
|
104
|
+
ref={card}
|
|
105
|
+
// An image's name is all a screen reader announces, so it names the
|
|
106
|
+
// card.
|
|
107
|
+
role="img"
|
|
108
|
+
aria-label={DECK[top % DECK.length].name}
|
|
109
|
+
style={{
|
|
110
|
+
width: 120,
|
|
111
|
+
height: 170,
|
|
112
|
+
display: 'grid',
|
|
113
|
+
placeItems: 'center',
|
|
114
|
+
font: 'bold 40px system-ui, sans-serif',
|
|
115
|
+
borderRadius: 12,
|
|
116
|
+
backgroundColor: 'var(--color-background-surface)',
|
|
117
|
+
color: 'var(--color-text-primary)',
|
|
118
|
+
boxShadow: '0 2px 8px rgb(0 0 0 / 0.2)',
|
|
119
|
+
cursor: 'grab',
|
|
120
|
+
userSelect: 'none',
|
|
121
|
+
}}>
|
|
122
|
+
{DECK[top % DECK.length].face}
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
{/* The drag's keyboard and assistive-technology path (WCAG 2.5.7). */}
|
|
126
|
+
<button type="button" onClick={() => discard(1)}>
|
|
127
|
+
Discard the top card
|
|
128
|
+
</button>
|
|
129
|
+
<div
|
|
130
|
+
aria-live="polite"
|
|
131
|
+
style={{
|
|
132
|
+
position: 'absolute',
|
|
133
|
+
width: 1,
|
|
134
|
+
height: 1,
|
|
135
|
+
overflow: 'hidden',
|
|
136
|
+
clipPath: 'inset(50%)',
|
|
137
|
+
whiteSpace: 'nowrap',
|
|
138
|
+
}}>
|
|
139
|
+
{announcement}
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
@@ -766,12 +766,7 @@ function caseSpelledComponentSource(srcDir, name) {
|
|
|
766
766
|
*/
|
|
767
767
|
export function resolveImportPath(coreDir, componentName) {
|
|
768
768
|
const srcDir = path.join(coreDir, 'src');
|
|
769
|
-
const
|
|
770
|
-
const pkg = pathExists(pkgPath)
|
|
771
|
-
? JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
|
|
772
|
-
: null;
|
|
773
|
-
|
|
774
|
-
const exportKeys = Object.keys(pkg?.exports || {});
|
|
769
|
+
const exportKeys = exportKeysOf(coreDir);
|
|
775
770
|
|
|
776
771
|
// Priority 1: exact subpath export matching the component name (e.g. ./Heading)
|
|
777
772
|
// This allows convenience re-export directories to win over the source directory.
|
|
@@ -799,6 +794,22 @@ export function resolveImportPath(coreDir, componentName) {
|
|
|
799
794
|
return '@astryxdesign/core';
|
|
800
795
|
}
|
|
801
796
|
|
|
797
|
+
/**
|
|
798
|
+
* The subpaths the package's `exports` map names, read once per operation:
|
|
799
|
+
* a search resolves the import of every component.
|
|
800
|
+
* @param {string} coreDir
|
|
801
|
+
* @returns {string[]}
|
|
802
|
+
*/
|
|
803
|
+
function exportKeysOf(coreDir) {
|
|
804
|
+
const pkgPath = path.join(coreDir, 'package.json');
|
|
805
|
+
return oncePerListing(`export-keys\0${pkgPath}`, () => {
|
|
806
|
+
const pkg = pathExists(pkgPath)
|
|
807
|
+
? JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
|
|
808
|
+
: null;
|
|
809
|
+
return Object.keys(pkg?.exports || {});
|
|
810
|
+
});
|
|
811
|
+
}
|
|
812
|
+
|
|
802
813
|
/**
|
|
803
814
|
* Does a package's `exports` map publish this subpath?
|
|
804
815
|
*
|
|
@@ -17,11 +17,11 @@ export function findLocalIntegrationManifest(packageDir: string): string;
|
|
|
17
17
|
export function unwrapManifestExpression(node: any): any;
|
|
18
18
|
/**
|
|
19
19
|
* Find the object literal an integration manifest exports.
|
|
20
|
-
* @param {ReturnType<typeof jscodeshift.withParser>} j
|
|
21
|
-
* @param {ReturnType<ReturnType<typeof jscodeshift.withParser>>} ast
|
|
20
|
+
* @param {ReturnType<typeof import('jscodeshift').default.withParser>} j
|
|
21
|
+
* @param {ReturnType<ReturnType<typeof import('jscodeshift').default.withParser>>} ast
|
|
22
22
|
* @returns {any|null}
|
|
23
23
|
*/
|
|
24
|
-
export function findManifestObject(j: ReturnType<typeof jscodeshift.withParser>, ast: ReturnType<ReturnType<typeof jscodeshift.withParser>>): any | null;
|
|
24
|
+
export function findManifestObject(j: ReturnType<typeof import("jscodeshift").default.withParser>, ast: ReturnType<ReturnType<typeof import("jscodeshift").default.withParser>>): any | null;
|
|
25
25
|
/**
|
|
26
26
|
* Add a contribution root to an integration manifest, creating the manifest
|
|
27
27
|
* when requested and none exists.
|
|
@@ -56,4 +56,3 @@ export class IntegrationRootConflictError extends Error {
|
|
|
56
56
|
current: string;
|
|
57
57
|
requested: string;
|
|
58
58
|
}
|
|
59
|
-
import jscodeshift from 'jscodeshift';
|
|
@@ -13,7 +13,6 @@ import * as fs from 'node:fs';
|
|
|
13
13
|
import * as path from 'node:path';
|
|
14
14
|
import {randomUUID} from 'node:crypto';
|
|
15
15
|
import {publishNewFile} from '../fs/publish-file.mjs';
|
|
16
|
-
import jscodeshift from 'jscodeshift';
|
|
17
16
|
import {assertWithin} from '../fs/path-safety.mjs';
|
|
18
17
|
import {findManifestPaths, loadManifestObject} from './integrations.mjs';
|
|
19
18
|
|
|
@@ -97,8 +96,8 @@ function propertyNamed(property, name) {
|
|
|
97
96
|
|
|
98
97
|
/**
|
|
99
98
|
* Find the object literal an integration manifest exports.
|
|
100
|
-
* @param {ReturnType<typeof jscodeshift.withParser>} j
|
|
101
|
-
* @param {ReturnType<ReturnType<typeof jscodeshift.withParser>>} ast
|
|
99
|
+
* @param {ReturnType<typeof import('jscodeshift').default.withParser>} j
|
|
100
|
+
* @param {ReturnType<ReturnType<typeof import('jscodeshift').default.withParser>>} ast
|
|
102
101
|
* @returns {any|null}
|
|
103
102
|
*/
|
|
104
103
|
export function findManifestObject(j, ast) {
|
|
@@ -290,6 +289,9 @@ export async function patchIntegrationRoot(
|
|
|
290
289
|
const source = manifestExists
|
|
291
290
|
? fs.readFileSync(manifestFile, 'utf-8')
|
|
292
291
|
: 'export default {};\n';
|
|
292
|
+
// The code-rewrite toolkit loads only to patch a manifest. Finding one,
|
|
293
|
+
// which many commands do through this module, never needs it.
|
|
294
|
+
const {default: jscodeshift} = await import('jscodeshift');
|
|
293
295
|
const j = jscodeshift.withParser('tsx');
|
|
294
296
|
let ast;
|
|
295
297
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/cli",
|
|
3
|
-
"version": "0.7.9-canary.
|
|
3
|
+
"version": "0.7.9-canary.73a105d",
|
|
4
4
|
"displayName": "CLI",
|
|
5
5
|
"description": "Scaffold projects, browse templates, generate themes, and get agent-ready docs from the command line.",
|
|
6
6
|
"author": "Meta Open Source",
|
|
@@ -124,10 +124,10 @@
|
|
|
124
124
|
"zod": "^4.4.3"
|
|
125
125
|
},
|
|
126
126
|
"peerDependencies": {
|
|
127
|
-
"@astryxdesign/charts": "0.7.9-canary.
|
|
128
|
-
"@astryxdesign/core": "0.7.9-canary.
|
|
129
|
-
"@astryxdesign/lab": "0.7.9-canary.
|
|
130
|
-
"@astryxdesign/theme-neutral": "0.7.9-canary.
|
|
127
|
+
"@astryxdesign/charts": "0.7.9-canary.73a105d",
|
|
128
|
+
"@astryxdesign/core": "0.7.9-canary.73a105d",
|
|
129
|
+
"@astryxdesign/lab": "0.7.9-canary.73a105d",
|
|
130
|
+
"@astryxdesign/theme-neutral": "0.7.9-canary.73a105d"
|
|
131
131
|
},
|
|
132
132
|
"peerDependenciesMeta": {
|
|
133
133
|
"@astryxdesign/charts": {
|
|
@@ -144,10 +144,10 @@
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
"devDependencies": {
|
|
147
|
-
"@astryxdesign/charts": "0.7.9-canary.
|
|
148
|
-
"@astryxdesign/core": "0.7.9-canary.
|
|
149
|
-
"@astryxdesign/lab": "0.7.9-canary.
|
|
150
|
-
"@astryxdesign/theme-neutral": "0.7.9-canary.
|
|
147
|
+
"@astryxdesign/charts": "0.7.9-canary.73a105d",
|
|
148
|
+
"@astryxdesign/core": "0.7.9-canary.73a105d",
|
|
149
|
+
"@astryxdesign/lab": "0.7.9-canary.73a105d",
|
|
150
|
+
"@astryxdesign/theme-neutral": "0.7.9-canary.73a105d",
|
|
151
151
|
"@heroicons/react": "^2.2.0",
|
|
152
152
|
"@stylexjs/stylex": "^0.19.0",
|
|
153
153
|
"@types/babel__core": "^7.20.5",
|