@astryxdesign/cli 0.7.9-canary.2ea8f68 → 0.7.9-canary.45f77d0

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.
@@ -8,7 +8,7 @@
8
8
  * domain the query wants. Its weights are static numbers in
9
9
  * _main-searcher.weights.json.
10
10
  * @input {query, options} and the gathered catalog with its static data
11
- * @output the search response, the lexical response's shape and size
11
+ * @output the search response, the lexical response's shape and count
12
12
  * @position api/search; a child of the root dispatcher in tree.mjs
13
13
  */
14
14
 
@@ -6,7 +6,8 @@ export const doc = {
6
6
  exampleFor: 'Tokenizer',
7
7
  name: 'Tokenizer \u2014 Clear',
8
8
  displayName: 'Tokenizer \u2014 Clear',
9
- description: 'Tokenizer with a built-in clear-all button for bulk removal of all selected tokens.',
9
+ description:
10
+ "Tokenizer with a built-in clear-all button for bulk removal of all selected tokens. On touch screens, clear through the sheet's Clear all.",
10
11
  isReady: true,
11
12
  aspectRatio: 16 / 9,
12
13
  componentsUsed: ['Tokenizer', 'Layout', 'Text'],
@@ -29,7 +29,8 @@ export default function TokenizerClear() {
29
29
  <div style={{display: 'grid', gridTemplateColumns: 'minmax(0, 400px)'}}>
30
30
  <Stack direction="vertical" gap={2}>
31
31
  <Text type="supporting" color="secondary">
32
- Clear-all button appears when tokens are selected
32
+ Clear-all button appears when tokens are selected; on touch screens,
33
+ clear through the sheet's Clear all
33
34
  </Text>
34
35
  <Tokenizer
35
36
  label="Team Members"
@@ -38,7 +39,6 @@ export default function TokenizerClear() {
38
39
  value={value}
39
40
  onChange={items => setValue(items)}
40
41
  hasClear
41
- presentation="popover"
42
42
  />
43
43
  </Stack>
44
44
  </div>
@@ -59,7 +59,6 @@ export default function TokenizerCreatable() {
59
59
  hasCreate
60
60
  hasEntriesOnFocus
61
61
  placeholder="Search or type a new name..."
62
- presentation="popover"
63
62
  />
64
63
  </Stack>
65
64
  </Stack>
@@ -40,7 +40,6 @@ export default function TokenizerEndContent() {
40
40
  value={value}
41
41
  onChange={items => setValue(items)}
42
42
  endContent={<Button label="Apply" variant="primary" size="sm" />}
43
- presentation="popover"
44
43
  />
45
44
  </Stack>
46
45
  </div>
@@ -6,7 +6,8 @@ export const doc = {
6
6
  exampleFor: 'Tokenizer',
7
7
  name: 'Tokenizer \u2014 Overflow',
8
8
  displayName: 'Tokenizer \u2014 Overflow',
9
- description: 'Tokenizer with overflow truncation when unfocused. Inline mode pushes content down on expand; layer mode overlays without shifting layout.',
9
+ description:
10
+ 'Tokenizer with overflow truncation when unfocused. Inline mode pushes content down on expand; layer mode overlays without shifting layout. Overflow modes apply to the inline field.',
10
11
  isReady: true,
11
12
  aspectRatio: 16 / 9,
12
13
  componentsUsed: ['Tokenizer', 'Layout', 'Text'],
@@ -41,7 +41,6 @@ export default function TokenizerOverflow() {
41
41
  value={inlineValue}
42
42
  onChange={items => setInlineValue(items)}
43
43
  tokenOverflowBehavior="unfocusedInline"
44
- presentation="popover"
45
44
  />
46
45
  </Stack>
47
46
  <Stack direction="vertical" gap={1}>
@@ -55,7 +54,6 @@ export default function TokenizerOverflow() {
55
54
  value={layerValue}
56
55
  onChange={items => setLayerValue(items)}
57
56
  tokenOverflowBehavior="unfocusedLayer"
58
- presentation="popover"
59
57
  />
60
58
  </Stack>
61
59
  </Stack>
@@ -82,6 +82,7 @@ import {
82
82
  StackItem,
83
83
  VStack,
84
84
  } from '@astryxdesign/core/Layout';
85
+ import {rtlStyles} from '@astryxdesign/core/utils';
85
86
  import {
86
87
  durationVars,
87
88
  easeVars,
@@ -1391,7 +1392,13 @@ function ConversationPane({
1391
1392
  <Button
1392
1393
  label="Inbox"
1393
1394
  variant="ghost"
1394
- icon={<Icon icon={ArrowLeftIcon} size="sm" />}
1395
+ icon={
1396
+ <Icon
1397
+ icon={ArrowLeftIcon}
1398
+ size="sm"
1399
+ xstyle={rtlStyles.mirror}
1400
+ />
1401
+ }
1395
1402
  onClick={onClose}
1396
1403
  />
1397
1404
  }
@@ -1840,7 +1847,9 @@ function ComposeWindow({
1840
1847
  // than being rejected for not matching anything.
1841
1848
  hasCreate
1842
1849
  // Stamps data-autofocus, which is what the sheet looks for
1843
- // once the window is actually visible.
1850
+ // once the window is actually visible. It applies to the
1851
+ // inline field: on a compact touch screen the field opens
1852
+ // its own sheet and ignores it.
1844
1853
  //
1845
1854
  // Deliberately without `hasEntriesOnFocus`: the two together
1846
1855
  // mean the window can never open without the full directory
@@ -1874,10 +1883,6 @@ function ComposeWindow({
1874
1883
  )}
1875
1884
  </>
1876
1885
  }
1877
- // The recipient rows read as one header, so all three stay
1878
- // inline fields on every device; the sheet has no end lane
1879
- // for the Cc and Bcc buttons.
1880
- presentation="popover"
1881
1886
  />
1882
1887
  {hasCc ? (
1883
1888
  <Tokenizer
@@ -1888,7 +1893,6 @@ function ComposeWindow({
1888
1893
  value={cc}
1889
1894
  onChange={items => setCc(items)}
1890
1895
  hasCreate
1891
- presentation="popover"
1892
1896
  />
1893
1897
  ) : null}
1894
1898
  {hasBcc ? (
@@ -1900,7 +1904,6 @@ function ComposeWindow({
1900
1904
  value={bcc}
1901
1905
  onChange={items => setBcc(items)}
1902
1906
  hasCreate
1903
- presentation="popover"
1904
1907
  />
1905
1908
  ) : null}
1906
1909
  <TextInput
@@ -29,6 +29,7 @@ import {MoreMenu} from '@astryxdesign/core/MoreMenu';
29
29
  import type {DropdownMenuOption} from '@astryxdesign/core/DropdownMenu';
30
30
  import {Link} from '@astryxdesign/core/Link';
31
31
  import {Icon} from '@astryxdesign/core/Icon';
32
+ import {rtlStyles} from '@astryxdesign/core/utils';
32
33
  import {AspectRatio} from '@astryxdesign/core/AspectRatio';
33
34
  import {Divider} from '@astryxdesign/core/Divider';
34
35
  import {StatusDot} from '@astryxdesign/core/StatusDot';
@@ -381,7 +382,11 @@ function PageHeader({
381
382
  <HStack gap={4} vAlign="center" wrap="wrap">
382
383
  <Link href="#" type="supporting" color="secondary">
383
384
  <HStack as="span" gap={1} vAlign="center">
384
- <Icon icon={ArrowLeftIcon} size="sm" />
385
+ <Icon
386
+ icon={ArrowLeftIcon}
387
+ size="sm"
388
+ xstyle={rtlStyles.mirror}
389
+ />
385
390
  All Tasks
386
391
  </HStack>
387
392
  </Link>
@@ -463,7 +468,6 @@ function PageHeader({
463
468
  onRemove={onRemove}
464
469
  />
465
470
  )}
466
- presentation="popover"
467
471
  />
468
472
  </HStack>
469
473
  </VStack>
@@ -199,15 +199,22 @@ export function tryLock(lockDir: string, { now }?: {
199
199
  }): boolean;
200
200
  /**
201
201
  * Whether a process's arguments are this CLI's install of `version`, as
202
- * runNpm starts it: the program (`argv[0]`) is npm, or node running npm's
202
+ * runNpm starts it: the program (`argv[0]`) is npm, or a Node running npm's
203
203
  * entry file `npm-cli.js` (`argv[1]`), each exactly by name, and the arguments
204
- * include `install` and `@astryxdesign/cli@<version>`. A program that only has
205
- * `npm` somewhere in its name or arguments is not.
204
+ * include `install` and `@astryxdesign/cli@<version>`. A Node is one named
205
+ * `node` (with a version, such as `node22`), or one with the same file name
206
+ * as the Node runNpm starts npm with (`node`, by default this one), however
207
+ * it is named, such as `nodejs` or `node-linux-x64`. A program that only
208
+ * has `npm` somewhere in its name or arguments is not.
206
209
  * @param {string[]} argv
207
210
  * @param {string} version
211
+ * @param {{node?: string}} [options] `node`: the Node runNpm starts npm with
212
+ * (npmCommand's `execPath`; default: this one)
208
213
  * @returns {boolean}
209
214
  */
210
- export function isReleaseInstall(argv: string[], version: string): boolean;
215
+ export function isReleaseInstall(argv: string[], version: string, { node }?: {
216
+ node?: string;
217
+ }): boolean;
211
218
  /**
212
219
  * End the npm process group a stale lock records, only when that process is
213
220
  * surely the install the lock was taken for: its command line is this CLI's
@@ -823,15 +823,24 @@ function processFactsOf(pid, procRoot) {
823
823
 
824
824
  /**
825
825
  * Whether a process's arguments are this CLI's install of `version`, as
826
- * runNpm starts it: the program (`argv[0]`) is npm, or node running npm's
826
+ * runNpm starts it: the program (`argv[0]`) is npm, or a Node running npm's
827
827
  * entry file `npm-cli.js` (`argv[1]`), each exactly by name, and the arguments
828
- * include `install` and `@astryxdesign/cli@<version>`. A program that only has
829
- * `npm` somewhere in its name or arguments is not.
828
+ * include `install` and `@astryxdesign/cli@<version>`. A Node is one named
829
+ * `node` (with a version, such as `node22`), or one with the same file name
830
+ * as the Node runNpm starts npm with (`node`, by default this one), however
831
+ * it is named, such as `nodejs` or `node-linux-x64`. A program that only
832
+ * has `npm` somewhere in its name or arguments is not.
830
833
  * @param {string[]} argv
831
834
  * @param {string} version
835
+ * @param {{node?: string}} [options] `node`: the Node runNpm starts npm with
836
+ * (npmCommand's `execPath`; default: this one)
832
837
  * @returns {boolean}
833
838
  */
834
- export function isReleaseInstall(argv, version) {
839
+ export function isReleaseInstall(
840
+ argv,
841
+ version,
842
+ {node = process.execPath} = {},
843
+ ) {
835
844
  const name = (/** @type {string | undefined} */ arg) =>
836
845
  (arg ?? '')
837
846
  .split(/[\\/]/u)
@@ -839,9 +848,8 @@ export function isReleaseInstall(argv, version) {
839
848
  ?.replace(/\.(?:exe|cmd)$/iu, '')
840
849
  .toLowerCase() ?? '';
841
850
  const program = name(argv[0]);
842
- const npm =
843
- program === 'npm' ||
844
- (/^node(?:[-.\d]*)$/u.test(program) && name(argv[1]) === 'npm-cli.js');
851
+ const isNode = /^node(?:[-.\d]*)$/u.test(program) || program === name(node);
852
+ const npm = program === 'npm' || (isNode && name(argv[1]) === 'npm-cli.js');
845
853
  return (
846
854
  npm &&
847
855
  argv.includes('install') &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/cli",
3
- "version": "0.7.9-canary.2ea8f68",
3
+ "version": "0.7.9-canary.45f77d0",
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.2ea8f68",
128
- "@astryxdesign/core": "0.7.9-canary.2ea8f68",
129
- "@astryxdesign/lab": "0.7.9-canary.2ea8f68",
130
- "@astryxdesign/theme-neutral": "0.7.9-canary.2ea8f68"
127
+ "@astryxdesign/charts": "0.7.9-canary.45f77d0",
128
+ "@astryxdesign/core": "0.7.9-canary.45f77d0",
129
+ "@astryxdesign/lab": "0.7.9-canary.45f77d0",
130
+ "@astryxdesign/theme-neutral": "0.7.9-canary.45f77d0"
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.2ea8f68",
148
- "@astryxdesign/core": "0.7.9-canary.2ea8f68",
149
- "@astryxdesign/lab": "0.7.9-canary.2ea8f68",
150
- "@astryxdesign/theme-neutral": "0.7.9-canary.2ea8f68",
147
+ "@astryxdesign/charts": "0.7.9-canary.45f77d0",
148
+ "@astryxdesign/core": "0.7.9-canary.45f77d0",
149
+ "@astryxdesign/lab": "0.7.9-canary.45f77d0",
150
+ "@astryxdesign/theme-neutral": "0.7.9-canary.45f77d0",
151
151
  "@heroicons/react": "^2.2.0",
152
152
  "@stylexjs/stylex": "^0.19.0",
153
153
  "@types/babel__core": "^7.20.5",