@multiplatform.one/cli 7.90.5 → 8.0.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 +1 -1
- package/lib/commands/init.mjs +0 -2
- package/lib/source.json +2 -2
- package/package.json +2 -2
- package/scripts/scaffold.sh +1 -1
- package/src/commands/init.ts +0 -2
- package/templates/AGENTS.md +8 -1
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/components.ts +72 -11
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/forms.ts +16 -24
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/frappe-ui.ts +4 -3
- package/templates/pieces/gnome/universal/apps/__NAME__/gnome/shims/theme.ts +244 -20
- package/templates/pieces/gnome/universal/apps/__NAME__/vite.config.gnome.ts +16 -31
- package/types/commands/init.d.ts +1 -1
- package/types/commands/init.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ A project is the multiplatform.one monorepo at one commit, pruned:
|
|
|
30
30
|
- `public/` is gone; `@multiplatform.one/*` come from npmjs, the default
|
|
31
31
|
registry, at `^<cli version>` (`--mpo-version` overrides the range).
|
|
32
32
|
- The singleton apps are ethereum, frappe, keycloak, solana, storybook,
|
|
33
|
-
storybook-expo, sui
|
|
33
|
+
storybook-expo, sui and vocs; only the ones asked for stay.
|
|
34
34
|
`--frappe` and `--keycloak` are shorthands for `--service`.
|
|
35
35
|
- Without `--service frappe` the project keeps the Frappe client
|
|
36
36
|
(`createApp`'s wiring, the `# frappe client` keys in `.env.example`) and
|
package/lib/commands/init.mjs
CHANGED
|
@@ -23,7 +23,6 @@ const SINGLETON_APPS = [
|
|
|
23
23
|
"storybook",
|
|
24
24
|
"storybook-expo",
|
|
25
25
|
"sui",
|
|
26
|
-
"uxpin",
|
|
27
26
|
"vocs"
|
|
28
27
|
];
|
|
29
28
|
const SINGLETON_DESCRIPTIONS = {
|
|
@@ -34,7 +33,6 @@ const SINGLETON_DESCRIPTIONS = {
|
|
|
34
33
|
storybook: "Storybook (web)",
|
|
35
34
|
"storybook-expo": "Storybook (native)",
|
|
36
35
|
sui: "Move packages + localnet",
|
|
37
|
-
uxpin: "UXPin Merge library",
|
|
38
36
|
vocs: "Docs site"
|
|
39
37
|
};
|
|
40
38
|
function unique(values) {
|
package/lib/source.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "multiplatform.one cli — mpo init clones and prunes the monorepo, mpo update merges it back",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"create-multiplatform-app",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@multiplatform.one/utils": "^
|
|
60
|
+
"@multiplatform.one/utils": "^8.0.0",
|
|
61
61
|
"commander": "^15.0.0",
|
|
62
62
|
"dotenv": "^17.4.2",
|
|
63
63
|
"inquirer": "^14.2.3",
|
package/scripts/scaffold.sh
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
# --app <name> product app derived from apps/one (repeatable)
|
|
18
18
|
# --service <name> singleton app under apps/ to keep (repeatable):
|
|
19
19
|
# ethereum frappe keycloak solana storybook
|
|
20
|
-
# storybook-expo sui
|
|
20
|
+
# storybook-expo sui vocs
|
|
21
21
|
# --mpo-version <range> range written for @multiplatform.one/* deps
|
|
22
22
|
# (default: ^<version of public/cli in the source tree>)
|
|
23
23
|
# --keep <dir> keep a pruned top-level path (repeatable):
|
package/src/commands/init.ts
CHANGED
|
@@ -23,7 +23,6 @@ export const SINGLETON_APPS = [
|
|
|
23
23
|
"storybook",
|
|
24
24
|
"storybook-expo",
|
|
25
25
|
"sui",
|
|
26
|
-
"uxpin",
|
|
27
26
|
"vocs",
|
|
28
27
|
] as const;
|
|
29
28
|
export type SingletonApp = (typeof SINGLETON_APPS)[number];
|
|
@@ -36,7 +35,6 @@ const SINGLETON_DESCRIPTIONS: Record<SingletonApp, string> = {
|
|
|
36
35
|
storybook: "Storybook (web)",
|
|
37
36
|
"storybook-expo": "Storybook (native)",
|
|
38
37
|
sui: "Move packages + localnet",
|
|
39
|
-
uxpin: "UXPin Merge library",
|
|
40
38
|
vocs: "Docs site",
|
|
41
39
|
};
|
|
42
40
|
|
package/templates/AGENTS.md
CHANGED
|
@@ -19,7 +19,7 @@ one of them is made upstream, in the monorepo, and arrives with the next
|
|
|
19
19
|
|
|
20
20
|
MPO improves through shared rules, never app-specific patches.
|
|
21
21
|
|
|
22
|
-
- App lanes only consume MPO. Never vendor or patch MPO internals or style MPO components locally. Published `@multiplatform.one/*` packages change upstream. MPO findings belong in a separate platform lane (LC-107).
|
|
22
|
+
- App lanes only consume MPO. Never vendor or patch MPO internals or style MPO components locally. Published `@multiplatform.one/*` packages change upstream. MPO findings belong in a separate platform lane ([LC-107](https://git.corp.bitspur.com/multiplatform.one/mpo/-/blob/main/docs/theme-propagation-spec.md)).
|
|
23
23
|
- Triage each design gap: wrong scale → change the global token/preset; missing primitive → add a general component/variant; merely different design → snap to the nearest MPO token, leaving MPO unchanged (LC-108).
|
|
24
24
|
- An MPO change needs at least two consumers or a stock Tamagui, iOS or macOS precedent. It must work under every preset, state a numbered LC rule, and receive a cross-app before/after review card (LC-109).
|
|
25
25
|
- Every style Clay approves applies to every MPO app (LC-110).
|
|
@@ -78,6 +78,13 @@ frappe config, scheme adapter).
|
|
|
78
78
|
theme tokens (`$color10`, semantic ramps, knob recipes). A file no token
|
|
79
79
|
reaches (GTK widget CSS, a content script, Expo build config) opts out with
|
|
80
80
|
a `// hex-escape: <reason>` comment that says why.
|
|
81
|
+
4. **Nothing under `packages/` reaches `features/`**: no `@package/features`
|
|
82
|
+
import or dependency and no relative path into `features/`. Move the code
|
|
83
|
+
into a package and import it from features
|
|
84
|
+
(`scripts/verify-packages-direction.mjs`).
|
|
85
|
+
5. **No `@multiplatform.one/<pkg>/src/…` imports**: a package's src/ is not
|
|
86
|
+
its API and its exports map does not resolve one. Import the package or one
|
|
87
|
+
of its named subpaths.
|
|
81
88
|
|
|
82
89
|
Run: `pnpm lint` (oxlint + `scripts/lint-conventions.mjs`).
|
|
83
90
|
|
|
@@ -11,29 +11,75 @@
|
|
|
11
11
|
// exactly that. Add modules as your screens grow; a missing export is a
|
|
12
12
|
// build error naming the symbol, which is the cheapest possible signal.
|
|
13
13
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
14
|
+
// The bare package name: from THIS file it reaches the package's gnome
|
|
15
|
+
// entry, not this shim, so importing it here cannot loop.
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
|
|
17
|
+
export {
|
|
18
|
+
CONTENT_MAX_WIDTH,
|
|
19
|
+
EmptyState,
|
|
20
|
+
GutterFrame,
|
|
21
|
+
PageActionButton,
|
|
22
|
+
PageBackButton,
|
|
23
|
+
PageBarButton,
|
|
24
|
+
PageHeader,
|
|
25
|
+
PageMenuButton,
|
|
26
|
+
PageSection,
|
|
27
|
+
PushedPage,
|
|
28
|
+
READABLE_MAX_WIDTH,
|
|
29
|
+
Screen,
|
|
30
|
+
ScreenToolbar,
|
|
31
|
+
useInlinePageTitle,
|
|
32
|
+
} from "@multiplatform.one/components";
|
|
33
|
+
export type {
|
|
34
|
+
EmptyStateProps,
|
|
35
|
+
PageActionButtonProps,
|
|
36
|
+
PageBackButtonProps,
|
|
37
|
+
PageBarButtonProps,
|
|
38
|
+
PageHeaderProps,
|
|
39
|
+
PageSectionProps,
|
|
40
|
+
ScreenProps,
|
|
41
|
+
ScreenToolbarProps,
|
|
42
|
+
} from "@multiplatform.one/components";
|
|
43
|
+
export {
|
|
44
|
+
ShellSidebarSlotProvider,
|
|
45
|
+
useHasShellSidebarSlot,
|
|
46
|
+
useShellSidebarPanel,
|
|
47
|
+
useShellSidebarSlotState,
|
|
48
|
+
} from "@multiplatform.one/components";
|
|
49
|
+
export type { ShellSidebarPanel } from "@multiplatform.one/components";
|
|
19
50
|
|
|
20
51
|
// Async list/table chrome — the wrapper real screens put around their
|
|
21
52
|
// fetches. Its skeleton + error icons stay unrendered until used; the
|
|
22
53
|
// module graph (forms Button/Skeleton via the shims, three tree-shaken
|
|
23
54
|
// phosphor icons) is GJS-inert at init.
|
|
24
|
-
export
|
|
55
|
+
export {
|
|
56
|
+
AsyncBoundary,
|
|
57
|
+
AsyncSkeleton,
|
|
58
|
+
__resetAsyncDevWarnSeen,
|
|
59
|
+
asyncLoadDelayMs,
|
|
60
|
+
resolveAsyncStatus,
|
|
61
|
+
useAsyncBoundary,
|
|
62
|
+
useAsyncCount,
|
|
63
|
+
} from "@multiplatform.one/components";
|
|
64
|
+
export type {
|
|
65
|
+
AsyncBoundaryContextValue,
|
|
66
|
+
AsyncBoundaryLayout,
|
|
67
|
+
AsyncBoundaryProps,
|
|
68
|
+
AsyncSkeletonHero,
|
|
69
|
+
AsyncStatus,
|
|
70
|
+
} from "@multiplatform.one/components";
|
|
25
71
|
|
|
26
72
|
// Chip lives in the FORMS package — the real components barrel re-exports
|
|
27
|
-
// it.
|
|
28
|
-
//
|
|
29
|
-
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms
|
|
73
|
+
// it. The bare forms name reaches the forms shim, which exports the same
|
|
74
|
+
// module instance.
|
|
75
|
+
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms";
|
|
30
76
|
export type {
|
|
31
77
|
ChipColor,
|
|
32
78
|
ChipFrameProps,
|
|
33
79
|
ChipProps,
|
|
34
80
|
ChipSize,
|
|
35
81
|
ChipVariant,
|
|
36
|
-
} from "@multiplatform.one/forms
|
|
82
|
+
} from "@multiplatform.one/forms";
|
|
37
83
|
|
|
38
84
|
export {
|
|
39
85
|
Button,
|
|
@@ -59,5 +105,20 @@ export {
|
|
|
59
105
|
// CheckIcon — Popover/Dialog resolve through the gnome tamagui-barrel
|
|
60
106
|
// with vite-plugin-gnome's portal/sheet patches, and phosphor resolves to
|
|
61
107
|
// the SvgXml glyph shim.
|
|
62
|
-
export
|
|
63
|
-
export
|
|
108
|
+
export { ConfirmDialog, confirmDialogPresentation } from "@multiplatform.one/components";
|
|
109
|
+
export type { ConfirmDialogProps } from "@multiplatform.one/components";
|
|
110
|
+
export { DropdownMenu, isIconTrigger } from "@multiplatform.one/components";
|
|
111
|
+
export type {
|
|
112
|
+
DropdownMenuCheckboxItemProps,
|
|
113
|
+
DropdownMenuCloseAutoFocusEvent,
|
|
114
|
+
DropdownMenuContentProps,
|
|
115
|
+
DropdownMenuEntry,
|
|
116
|
+
DropdownMenuItemProps,
|
|
117
|
+
DropdownMenuItemSpec,
|
|
118
|
+
DropdownMenuLabelProps,
|
|
119
|
+
DropdownMenuPlacement,
|
|
120
|
+
DropdownMenuProps,
|
|
121
|
+
DropdownMenuRowProps,
|
|
122
|
+
DropdownMenuSeparatorProps,
|
|
123
|
+
DropdownMenuTriggerProps,
|
|
124
|
+
} from "@multiplatform.one/components";
|
|
@@ -5,22 +5,18 @@
|
|
|
5
5
|
// linear-gradient for the colour picker). None of those resolve under
|
|
6
6
|
// GJS.
|
|
7
7
|
//
|
|
8
|
-
// Re-export the fields the starter ContactForm uses
|
|
9
|
-
//
|
|
8
|
+
// Re-export the fields the starter ContactForm uses. From this file the
|
|
9
|
+
// bare package name reaches the package's gnome entry, not this shim.
|
|
10
10
|
// Adding a field is one line here plus, usually, one granular @tamagui/*
|
|
11
11
|
// export in ../tamagui-barrel.ts.
|
|
12
12
|
|
|
13
|
-
export { Button } from "@multiplatform.one/forms
|
|
14
|
-
export type { ButtonProps } from "@multiplatform.one/forms
|
|
15
|
-
export { Input } from "@multiplatform.one/forms
|
|
16
|
-
export { TextArea } from "@multiplatform.one/forms
|
|
17
|
-
export { Spinner } from "@multiplatform.one/forms
|
|
18
|
-
export { zIndex } from "@multiplatform.one/forms
|
|
19
|
-
export {
|
|
20
|
-
OverlayStackProvider,
|
|
21
|
-
useOverlayZIndex,
|
|
22
|
-
withOverlayStack,
|
|
23
|
-
} from "@multiplatform.one/forms/src/shared/overlayStack";
|
|
13
|
+
export { Button } from "@multiplatform.one/forms";
|
|
14
|
+
export type { ButtonProps } from "@multiplatform.one/forms";
|
|
15
|
+
export { Input } from "@multiplatform.one/forms";
|
|
16
|
+
export { TextArea } from "@multiplatform.one/forms";
|
|
17
|
+
export { Spinner } from "@multiplatform.one/forms";
|
|
18
|
+
export { zIndex } from "@multiplatform.one/forms";
|
|
19
|
+
export { OverlayStackProvider, useOverlayZIndex, withOverlayStack } from "@multiplatform.one/forms";
|
|
24
20
|
|
|
25
21
|
// The first components real screens reach for — status chips, loading
|
|
26
22
|
// skeletons, a search field. Chip and Skeleton LIVE here in forms
|
|
@@ -28,22 +24,18 @@ export {
|
|
|
28
24
|
// Chip/Skeleton modules import the bare package name — which is aliased
|
|
29
25
|
// to this file — so these exports serve both the screens' direct imports
|
|
30
26
|
// and those internal re-export hops.
|
|
31
|
-
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms
|
|
27
|
+
export { Chip, ChipFrame, ChipText, chipIconSize } from "@multiplatform.one/forms";
|
|
32
28
|
export type {
|
|
33
29
|
ChipColor,
|
|
34
30
|
ChipFrameProps,
|
|
35
31
|
ChipProps,
|
|
36
32
|
ChipSize,
|
|
37
33
|
ChipVariant,
|
|
38
|
-
} from "@multiplatform.one/forms
|
|
39
|
-
export { SearchInput } from "@multiplatform.one/forms
|
|
40
|
-
export { Skeleton, SkeletonCircle, SkeletonText } from "@multiplatform.one/forms
|
|
41
|
-
export type {
|
|
42
|
-
SkeletonFrameProps,
|
|
43
|
-
SkeletonProps,
|
|
44
|
-
SkeletonVariant,
|
|
45
|
-
} from "@multiplatform.one/forms/src/Skeleton";
|
|
34
|
+
} from "@multiplatform.one/forms";
|
|
35
|
+
export { SearchInput } from "@multiplatform.one/forms";
|
|
36
|
+
export { Skeleton, SkeletonCircle, SkeletonText } from "@multiplatform.one/forms";
|
|
37
|
+
export type { SkeletonFrameProps, SkeletonProps, SkeletonVariant } from "@multiplatform.one/forms";
|
|
46
38
|
|
|
47
39
|
// Select stays inside the core + stacks subgraph on the native path.
|
|
48
|
-
export { Select } from "@multiplatform.one/forms
|
|
49
|
-
export type { SelectOption, SelectProps } from "@multiplatform.one/forms
|
|
40
|
+
export { Select } from "@multiplatform.one/forms";
|
|
41
|
+
export type { SelectOption, SelectProps } from "@multiplatform.one/forms";
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
// alone. It is GJS-inert — React context plus a type-only import of
|
|
12
12
|
// @multiplatform.one/frappe.
|
|
13
13
|
//
|
|
14
|
-
//
|
|
15
|
-
//
|
|
14
|
+
// The bare package name reaches the package's gnome entry from this file,
|
|
15
|
+
// not this shim, so it cannot loop.
|
|
16
16
|
|
|
17
|
-
export
|
|
17
|
+
export { FrappeProvider, useFrappeConfig, useFrappeContext } from "@multiplatform.one/frappe-ui";
|
|
18
|
+
export type { FrappeConfig, FrappeProviderProps } from "@multiplatform.one/frappe-ui";
|
|
@@ -9,38 +9,262 @@
|
|
|
9
9
|
// @package/themes needs the theme builders and fonts, and the page-shell
|
|
10
10
|
// components need the knob resolver.
|
|
11
11
|
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
12
|
+
// The bare package name reaches the package's gnome entry from this file,
|
|
13
|
+
// not this shim, so it cannot loop.
|
|
14
14
|
|
|
15
15
|
// DEV guardrails (devWarn + warn* helpers). The forms package's shared/
|
|
16
16
|
// devWarn re-exports these from THIS barrel, and its Button/Input/Chip
|
|
17
17
|
// import them at module scope. Pure console plumbing, no platform deps.
|
|
18
|
-
export
|
|
19
|
-
|
|
18
|
+
export {
|
|
19
|
+
DIALOG_MAX_ACTIONS,
|
|
20
|
+
__resetDevWarnSeen,
|
|
21
|
+
__resetThemeDevWarnSeen,
|
|
22
|
+
devWarn,
|
|
23
|
+
themeDevWarn,
|
|
24
|
+
warnBannedErrorWords,
|
|
25
|
+
warnBareDisabled,
|
|
26
|
+
warnCancelDisabled,
|
|
27
|
+
warnDialogTooManyActions,
|
|
28
|
+
warnOutlineNone,
|
|
29
|
+
warnOutlinedIgnored,
|
|
30
|
+
warnPlaceholderAsLabel,
|
|
31
|
+
warnPositiveTabIndex,
|
|
32
|
+
warnSelectTooFewOptions,
|
|
33
|
+
warnSizeRecipeEscape,
|
|
34
|
+
warnTooltipOnDisabled,
|
|
35
|
+
} from "@multiplatform.one/theme";
|
|
36
|
+
export type {
|
|
37
|
+
DevWarnCode,
|
|
38
|
+
DevWarnDetail,
|
|
39
|
+
GuardrailSpecimenParameter,
|
|
40
|
+
} from "@multiplatform.one/theme";
|
|
41
|
+
export { createDefaultFont } from "@multiplatform.one/theme";
|
|
20
42
|
// Shared menu-row geometry — DropdownMenu (components shim) reads it at
|
|
21
43
|
// module scope. Pure.
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
export {
|
|
45
|
+
menuRowCheckGlyph,
|
|
46
|
+
menuRowCheckInk,
|
|
47
|
+
menuRowChecked,
|
|
48
|
+
menuRowFrame,
|
|
49
|
+
menuRowIconGlyph,
|
|
50
|
+
resolveMenuRowCheckInk,
|
|
51
|
+
useMenuRowCheckInk,
|
|
52
|
+
} from "@multiplatform.one/theme";
|
|
53
|
+
export type { MenuRowGlyph } from "@multiplatform.one/theme";
|
|
54
|
+
export {
|
|
55
|
+
TAMAGUI_ERA,
|
|
56
|
+
assertNoPrebuiltThemes,
|
|
57
|
+
createDefaultThemeConfig,
|
|
58
|
+
tamaguiEra,
|
|
59
|
+
} from "@multiplatform.one/theme";
|
|
60
|
+
export type { CreateDefaultThemeConfigOptions } from "@multiplatform.one/theme";
|
|
61
|
+
export {
|
|
62
|
+
createThemesBuilder,
|
|
63
|
+
houseComponentThemes,
|
|
64
|
+
houseGrandChildrenThemes,
|
|
65
|
+
houseTemplates,
|
|
66
|
+
tintHueNames,
|
|
67
|
+
} from "@multiplatform.one/theme";
|
|
68
|
+
export type {
|
|
69
|
+
BaseThemeBuilderDefinition,
|
|
70
|
+
CreateThemesBuilderOptions,
|
|
71
|
+
GetThemeProps,
|
|
72
|
+
Shadows,
|
|
73
|
+
ThemeBuilderDefinition,
|
|
74
|
+
} from "@multiplatform.one/theme";
|
|
25
75
|
// Focus-visible ring guarantee (pure color math over ./colorRules).
|
|
26
|
-
export
|
|
76
|
+
export {
|
|
77
|
+
FOCUS_RING_CLIPPED_OFFSET,
|
|
78
|
+
FOCUS_RING_FLUSH_OFFSET,
|
|
79
|
+
FOCUS_RING_HALO_OFFSET,
|
|
80
|
+
FOCUS_RING_MIN_CONTRAST,
|
|
81
|
+
FOCUS_RING_MIN_WIDTH,
|
|
82
|
+
FOCUS_VISIBLE_RING,
|
|
83
|
+
FOCUS_VISIBLE_RING_HALO,
|
|
84
|
+
FOCUS_VISIBLE_RING_INSET,
|
|
85
|
+
SANCTIONED_FOCUS_RING_OFFSETS,
|
|
86
|
+
STATE_LAYER_HOVER,
|
|
87
|
+
STATE_LAYER_PRESS,
|
|
88
|
+
ensureFocusVisibleRing,
|
|
89
|
+
focusRingColorMeetsContrast,
|
|
90
|
+
isSanctionedFocusRingOffset,
|
|
91
|
+
withDefaultStateLayer,
|
|
92
|
+
} from "@multiplatform.one/theme";
|
|
27
93
|
// Hairline width — resolves to hairline.native.ts (RN StyleSheet, which
|
|
28
94
|
// the react-native alias backs with the GTK compat package).
|
|
29
|
-
export
|
|
95
|
+
export {
|
|
96
|
+
ensureHairlineFallback,
|
|
97
|
+
hairline,
|
|
98
|
+
hairlineBorderWidth,
|
|
99
|
+
hairlineFallbackCss,
|
|
100
|
+
hairlineWidth,
|
|
101
|
+
} from "@multiplatform.one/theme";
|
|
30
102
|
// Intent wrapper — DropdownMenu and ConfirmDialog color their rows and
|
|
31
103
|
// actions through it. Pure.
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
104
|
+
export { Intent } from "@multiplatform.one/theme";
|
|
105
|
+
export type { IntentProps } from "@multiplatform.one/theme";
|
|
106
|
+
export { defaultIntents } from "@multiplatform.one/theme";
|
|
107
|
+
export {
|
|
108
|
+
BodyFont,
|
|
109
|
+
BorderRadius,
|
|
110
|
+
BorderWidth,
|
|
111
|
+
BulkBarPlacement,
|
|
112
|
+
CornerSmoothing,
|
|
113
|
+
DisabledStyle,
|
|
114
|
+
Elevation,
|
|
115
|
+
FieldLabelPlacement,
|
|
116
|
+
FillStyle,
|
|
117
|
+
FontCategory,
|
|
118
|
+
FontWeight,
|
|
119
|
+
FormAutofocus,
|
|
120
|
+
HeadingFont,
|
|
121
|
+
PageTitleScale,
|
|
122
|
+
RequiredMarking,
|
|
123
|
+
SelectAllScope,
|
|
124
|
+
TableZebra,
|
|
125
|
+
TextAccent,
|
|
126
|
+
TimestampStyle,
|
|
127
|
+
defaultKnobs,
|
|
128
|
+
emptyStateKnobs,
|
|
129
|
+
interactionStates,
|
|
130
|
+
normalizeAnimationKnob,
|
|
131
|
+
} from "@multiplatform.one/theme";
|
|
132
|
+
export type { Animation, InteractionState, Knobs, StateKnobs } from "@multiplatform.one/theme";
|
|
35
133
|
// Press-target and hairline constants (MIN_PRESS_TARGET, hairline, …) the
|
|
36
134
|
// forms Chip and SearchInput read at module scope. Pure numbers/objects.
|
|
37
|
-
export
|
|
38
|
-
|
|
39
|
-
|
|
135
|
+
export {
|
|
136
|
+
DETAIL_READABLE_WIDTH,
|
|
137
|
+
FORM_READABLE_WIDTH,
|
|
138
|
+
FORM_READABLE_WIDTH_MAX,
|
|
139
|
+
FORM_READABLE_WIDTH_MIN,
|
|
140
|
+
LAYOUT_SIZE_CLASS_ORDER,
|
|
141
|
+
MIN_PRESS_TARGET,
|
|
142
|
+
NARROW_BREAKPOINT,
|
|
143
|
+
OVERLAY_ANCHOR_GAP,
|
|
144
|
+
OVERLAY_ATTACH_GAP,
|
|
145
|
+
OVERLAY_BREAKPOINT,
|
|
146
|
+
READING_WIDTH_BODY_FALLBACK,
|
|
147
|
+
READING_WIDTH_CH,
|
|
148
|
+
READING_WIDTH_CH_EM,
|
|
149
|
+
READING_WIDTH_MAX_CH,
|
|
150
|
+
READING_WIDTH_MIN_CH,
|
|
151
|
+
defaultMaxPanes,
|
|
152
|
+
getLayoutSizeClass,
|
|
153
|
+
isTouchSurface,
|
|
154
|
+
layoutBreakpoints,
|
|
155
|
+
layoutSizeClassAtLeast,
|
|
156
|
+
pressTargetHitSlop,
|
|
157
|
+
pressTargetStyle,
|
|
158
|
+
readingWidthStyle,
|
|
159
|
+
useLayoutSizeClass,
|
|
160
|
+
useMultiPane,
|
|
161
|
+
useReadingWidthStyle,
|
|
162
|
+
useSemanticGaps,
|
|
163
|
+
} from "@multiplatform.one/theme";
|
|
164
|
+
export type {
|
|
165
|
+
HitSlopInsets,
|
|
166
|
+
LayoutBreakpointName,
|
|
167
|
+
LayoutSizeClass,
|
|
168
|
+
PressTargetStyle,
|
|
169
|
+
ReadingWidthStyle,
|
|
170
|
+
} from "@multiplatform.one/theme";
|
|
171
|
+
export { PresetContext, usePresetContext, usePresetTints } from "@multiplatform.one/theme";
|
|
172
|
+
export type { PresetContextValue } from "@multiplatform.one/theme";
|
|
173
|
+
export {
|
|
174
|
+
boldPreset,
|
|
175
|
+
consolePreset,
|
|
176
|
+
defaultPreset,
|
|
177
|
+
densePreset,
|
|
178
|
+
heroPreset,
|
|
179
|
+
roomyPreset,
|
|
180
|
+
storefrontPreset,
|
|
181
|
+
} from "@multiplatform.one/theme";
|
|
40
182
|
// radiusClassProps — imported by layouts/page and the forms Skeleton at
|
|
41
183
|
// module scope since the 6.5/6.6 radius-identity wave. Pure.
|
|
42
|
-
export
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
184
|
+
export {
|
|
185
|
+
radiusClassProps,
|
|
186
|
+
radiusOverrideFor,
|
|
187
|
+
radiusResolutionProps,
|
|
188
|
+
resolveRadiusClass,
|
|
189
|
+
resolveRadiusForPart,
|
|
190
|
+
} from "@multiplatform.one/theme";
|
|
191
|
+
export type {
|
|
192
|
+
KnobImmuneRadiusClass,
|
|
193
|
+
RadiusClassDeclaration,
|
|
194
|
+
RadiusClassGeometry,
|
|
195
|
+
RadiusResolutionDeclaration,
|
|
196
|
+
ResolveRadiusForPartOptions,
|
|
197
|
+
ResolvedPartRadius,
|
|
198
|
+
ResolvedRadiusSource,
|
|
199
|
+
} from "@multiplatform.one/theme";
|
|
200
|
+
export type {
|
|
201
|
+
CardLiftProps,
|
|
202
|
+
ControlStateProps,
|
|
203
|
+
CornerSmoothingCarrier,
|
|
204
|
+
DisabledAssemblyProps,
|
|
205
|
+
DisabledChromeProps,
|
|
206
|
+
DisabledRecipe,
|
|
207
|
+
DisabledSurfaceProps,
|
|
208
|
+
DisabledTextProps,
|
|
209
|
+
ElevationChromeProps,
|
|
210
|
+
ElevationPaintProps,
|
|
211
|
+
ElevationStateProps,
|
|
212
|
+
KnobProps,
|
|
213
|
+
KnobPropsOverride,
|
|
214
|
+
KnobRecipe,
|
|
215
|
+
PageTitleFragment,
|
|
216
|
+
ResolvedKnobs,
|
|
217
|
+
SelectedRecipe,
|
|
218
|
+
StateRecipes,
|
|
219
|
+
TextRoleFragment,
|
|
220
|
+
TextStateProps,
|
|
221
|
+
} from "@multiplatform.one/theme";
|
|
222
|
+
export {
|
|
223
|
+
borderRadiusMap,
|
|
224
|
+
capContainerRadius,
|
|
225
|
+
capFieldRadius,
|
|
226
|
+
cardElevationMap,
|
|
227
|
+
cardLift,
|
|
228
|
+
containerCapProps,
|
|
229
|
+
containerRadiusMap,
|
|
230
|
+
edgeColorAt,
|
|
231
|
+
elevationMap,
|
|
232
|
+
getHeadingFontFamily,
|
|
233
|
+
labelFontSizeFor,
|
|
234
|
+
nestedControlPx,
|
|
235
|
+
normalizeSizeToken,
|
|
236
|
+
overlayElevationMap,
|
|
237
|
+
paintedCardFill,
|
|
238
|
+
panelPaddingPx,
|
|
239
|
+
radiusStopFromToken,
|
|
240
|
+
railFillRadius,
|
|
241
|
+
resolveKnobs,
|
|
242
|
+
resolvePageTitleScale,
|
|
243
|
+
resolveTextRoles,
|
|
244
|
+
sizeKeyBelow,
|
|
245
|
+
sizedElevation,
|
|
246
|
+
spacingRoles,
|
|
247
|
+
} from "@multiplatform.one/theme";
|
|
248
|
+
export type {
|
|
249
|
+
CappedContainer,
|
|
250
|
+
ColorScheme,
|
|
251
|
+
ContainerCapDeclaration,
|
|
252
|
+
ResolveKnobsEnvironment,
|
|
253
|
+
} from "@multiplatform.one/theme";
|
|
254
|
+
export {
|
|
255
|
+
clearPresets,
|
|
256
|
+
createThemeConfig,
|
|
257
|
+
getPreset,
|
|
258
|
+
getPresetNames,
|
|
259
|
+
registerPreset,
|
|
260
|
+
resolveThemeFromPreset,
|
|
261
|
+
} from "@multiplatform.one/theme";
|
|
262
|
+
export type { ThemeConfig, ThemeConfigScaleOptions } from "@multiplatform.one/theme";
|
|
263
|
+
export {
|
|
264
|
+
IntentContext,
|
|
265
|
+
solidButtonIntents,
|
|
266
|
+
solidPaletteThemes,
|
|
267
|
+
useIntentContext,
|
|
268
|
+
useResolvedKnobs,
|
|
269
|
+
} from "@multiplatform.one/theme";
|
|
270
|
+
export type { UseResolvedKnobsOptions } from "@multiplatform.one/theme";
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
gnomePlatformExtensions,
|
|
20
|
+
gnomeResolve,
|
|
20
21
|
tamaguiLinkedAliases,
|
|
21
22
|
tamaguiPlugin,
|
|
22
23
|
} from "@multiplatform.one/vite-plugin-gnome";
|
|
@@ -29,23 +30,13 @@ import {
|
|
|
29
30
|
} from "@react-gnome/vite-plugin";
|
|
30
31
|
import react from "@vitejs/plugin-react";
|
|
31
32
|
import { existsSync } from "node:fs";
|
|
32
|
-
import { createRequire } from "node:module";
|
|
33
33
|
import { dirname, resolve } from "node:path";
|
|
34
34
|
import type { Plugin } from "vite";
|
|
35
35
|
import { defineConfig } from "vite";
|
|
36
36
|
|
|
37
|
-
const require = createRequire(import.meta.url);
|
|
38
37
|
const nodeEnv = process.env.RGN_PROD === "1" ? "production" : "development";
|
|
39
38
|
const gnomeDir = resolve(import.meta.dirname, "gnome");
|
|
40
39
|
|
|
41
|
-
/** Directory a package resolves to, so aliases point at THIS app's
|
|
42
|
-
* installed copy. pnpm's store layout means a bare package name resolved
|
|
43
|
-
* from a file outside this app (a linked workspace source, a hoisted
|
|
44
|
-
* @tamagui/*) can miss these — absolute paths cannot. */
|
|
45
|
-
function pkgDir(id: string): string {
|
|
46
|
-
return dirname(require.resolve(`${id}/package.json`));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
40
|
/** The installed @react-gnome scope directory. Under pnpm's default
|
|
50
41
|
* isolated linker it sits in THIS app's node_modules; under
|
|
51
42
|
* `node-linker=hoisted` (this scaffold's .npmrc) everything hoists to
|
|
@@ -85,7 +76,7 @@ export default defineConfig({
|
|
|
85
76
|
// Don't copy public/ (web favicons) or the generated tamagui.css into
|
|
86
77
|
// the GJS bundle directory.
|
|
87
78
|
publicDir: false,
|
|
88
|
-
plugins: [stubRnLibraries, react(), tamaguiPlugin],
|
|
79
|
+
plugins: [stubRnLibraries, gnomeResolve(), react(), tamaguiPlugin],
|
|
89
80
|
resolve: {
|
|
90
81
|
conditions: [...gnomeConditions],
|
|
91
82
|
alias: [
|
|
@@ -107,30 +98,10 @@ export default defineConfig({
|
|
|
107
98
|
// granular @tamagui/* packages this app's graph reaches. The full
|
|
108
99
|
// meta-barrel drags web-only components into the GJS bundle.
|
|
109
100
|
...tamaguiLinkedAliases({ tamaguiBarrel: resolve(gnomeDir, "tamagui-barrel.ts") }),
|
|
110
|
-
// Barrels narrowed for GJS — see gnome/shims/*.ts for what each
|
|
111
|
-
// one drops and why. Exact-name regexes so the shims' own deep
|
|
112
|
-
// `…/src/*` imports don't loop back through the alias.
|
|
113
|
-
{
|
|
114
|
-
find: /^@multiplatform\.one\/components$/,
|
|
115
|
-
replacement: resolve(gnomeDir, "shims/components.ts"),
|
|
116
|
-
},
|
|
117
|
-
{ find: /^@multiplatform\.one\/theme$/, replacement: resolve(gnomeDir, "shims/theme.ts") },
|
|
118
|
-
{ find: /^@multiplatform\.one\/forms$/, replacement: resolve(gnomeDir, "shims/forms.ts") },
|
|
119
|
-
{
|
|
120
|
-
find: /^@multiplatform\.one\/frappe-ui$/,
|
|
121
|
-
replacement: resolve(gnomeDir, "shims/frappe-ui.ts"),
|
|
122
|
-
},
|
|
123
101
|
// One's file router never mounts on GJS (react-native-screens is a
|
|
124
102
|
// native-fabric dead end). The shim backs the router API the
|
|
125
103
|
// screens consume with the framework's navigator seam.
|
|
126
104
|
{ find: /^one$/, replacement: resolve(gnomeDir, "shims/one.ts") },
|
|
127
|
-
// The seam BARREL also exports the DOM host and the One adapter,
|
|
128
|
-
// whose @vxrn/color-scheme import has no GJS story. Resolve the
|
|
129
|
-
// navigator source alone.
|
|
130
|
-
{
|
|
131
|
-
find: /^@multiplatform\.one\/router\/seam$/,
|
|
132
|
-
replacement: resolve(pkgDir("@multiplatform.one/router"), "src/seam/navigator.ts"),
|
|
133
|
-
},
|
|
134
105
|
],
|
|
135
106
|
// One React instance. The @react-gnome packages carry their own react
|
|
136
107
|
// and react-reconciler copies; dedupe forces every import (including
|
|
@@ -144,6 +115,20 @@ export default defineConfig({
|
|
|
144
115
|
// isNative).
|
|
145
116
|
extensions: [...gnomePlatformExtensions, ...gnomeExtensions],
|
|
146
117
|
},
|
|
118
|
+
// Barrels narrowed for GJS, by gnomeResolve(): see gnome/shims/*.ts for
|
|
119
|
+
// what each one drops and why. Everything else resolves the package's
|
|
120
|
+
// gnome export condition.
|
|
121
|
+
gnome: {
|
|
122
|
+
shims: {
|
|
123
|
+
dir: resolve(gnomeDir, "shims"),
|
|
124
|
+
packages: {
|
|
125
|
+
"@multiplatform.one/components": "components.ts",
|
|
126
|
+
"@multiplatform.one/forms": "forms.ts",
|
|
127
|
+
"@multiplatform.one/frappe-ui": "frappe-ui.ts",
|
|
128
|
+
"@multiplatform.one/theme": "theme.ts",
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
},
|
|
147
132
|
define: gnomeDefine(nodeEnv),
|
|
148
133
|
build: {
|
|
149
134
|
target: "esnext",
|
package/types/commands/init.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* command picks the commit, asks what to keep, and finishes the repo.
|
|
7
7
|
*/
|
|
8
8
|
/** The apps that exist once per project; everything else under apps/ is a product app. */
|
|
9
|
-
export declare const SINGLETON_APPS: readonly ["ethereum", "frappe", "keycloak", "solana", "storybook", "storybook-expo", "sui", "
|
|
9
|
+
export declare const SINGLETON_APPS: readonly ["ethereum", "frappe", "keycloak", "solana", "storybook", "storybook-expo", "sui", "vocs"];
|
|
10
10
|
export type SingletonApp = (typeof SINGLETON_APPS)[number];
|
|
11
11
|
export interface InitOptions {
|
|
12
12
|
/** Product apps besides the project name (each is a renamed apps/one). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,0FAA0F;AAC1F,eAAO,MAAM,cAAc,qGASjB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAa3D,MAAM,WAAW,WAAW;IAC1B,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,yEAAyE;IACzE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,uDAAuD;IACvD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAMD,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,YAAY,EAAE,CAUnE;AAsCD,wBAAsB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,GAAE,WAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAiHhG"}
|