create-octane-xplat 0.10.0 → 0.11.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/package.json
CHANGED
package/scaffold.mjs
CHANGED
|
@@ -25,12 +25,35 @@ export function Welcome() {
|
|
|
25
25
|
| Tap | `Pressable`, `Button`, `Link`, `NavLink` |
|
|
26
26
|
| Input | `TextInput`, `TextArea`, `Switch`, `Slider` |
|
|
27
27
|
| Scrolling | `ScrollableArea`, `VirtualList` |
|
|
28
|
-
| Media | `Image
|
|
28
|
+
| Media | `Image` (see note), `Icon` |
|
|
29
29
|
| Feedback | `Spinner`, `Meter`, `showToast` |
|
|
30
30
|
| Overlays | `BottomSheet`, `Overlay`, `Popover`, `Drawer`, `HoverCard`, `Tooltip` |
|
|
31
31
|
| Shells | `Screen`, `Tabs` |
|
|
32
32
|
| Theme and measurement | `useColorScheme`, `useSafeAreaInsets`, `useMeasure` |
|
|
33
33
|
|
|
34
|
+
For images, prefer the `Image` from `@octane-xplat/image` — it has the exact
|
|
35
|
+
same props as `@octane-xplat/ui`'s `Image` but loads through a real image
|
|
36
|
+
engine on native (Glide on Android, SDWebImage on iOS) with a sized memory +
|
|
37
|
+
disk cache and decode-to-view-size, instead of the 5 MB cache in the core
|
|
38
|
+
component that evicts visible images mid-scroll. Apps scaffolded with iOS or
|
|
39
|
+
Android targets already have the package; a web-only app renders a plain
|
|
40
|
+
`<img>` either way, so `pnpm add @octane-xplat/image` is optional there. Core
|
|
41
|
+
`Image` remains the baseline for SVG sources, which the engine cannot decode.
|
|
42
|
+
|
|
43
|
+
```tsrx
|
|
44
|
+
import { Image } from '@octane-xplat/image'
|
|
45
|
+
|
|
46
|
+
export function TripPhoto() {
|
|
47
|
+
return <Image
|
|
48
|
+
src="https://picsum.photos/seed/trail/800/450"
|
|
49
|
+
alt="Trailhead"
|
|
50
|
+
contentFit="cover"
|
|
51
|
+
placeholder="blurhash:LEHV6nWB2yk8pyo0adR*.7kCMdnj"
|
|
52
|
+
style={{ width: '100%', height: 180 }}
|
|
53
|
+
/>
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
34
57
|
`ScrollableArea` scrolls a bounded set of children. For a long list, use
|
|
35
58
|
`VirtualList` so the app does not mount every row at once.
|
|
36
59
|
|
package/template/package.json
CHANGED
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
"@nativescript-community/octane": "0.2.4",
|
|
21
21
|
"@nativescript-community/ui-drawer": "0.1.32",
|
|
22
22
|
"@nativescript/core": "9.1.2",
|
|
23
|
-
"@octane-xplat/effects": "^0.
|
|
24
|
-
"@octane-xplat/
|
|
25
|
-
"@octane-xplat/
|
|
23
|
+
"@octane-xplat/effects": "^0.11.1",
|
|
24
|
+
"@octane-xplat/image": "^0.11.1",
|
|
25
|
+
"@octane-xplat/platform": "^0.11.1",
|
|
26
|
+
"@octane-xplat/ui": "^0.11.1",
|
|
26
27
|
"@valor/nativescript-websockets": "2.0.3",
|
|
27
28
|
"octane": "0.6.3"
|
|
28
29
|
},
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
"@nativescript-community/vite-octane": "0.2.1",
|
|
31
32
|
"@nativescript/android": "9.1.1",
|
|
32
33
|
"@nativescript/ios": "9.1.0",
|
|
33
|
-
"@nativescript/types": "9.
|
|
34
|
+
"@nativescript/types": "9.1.4",
|
|
34
35
|
"@nativescript/vite": "8.0.17",
|
|
35
|
-
"@octane-xplat/cli": "^0.
|
|
36
|
-
"@octane-xplat/lint": "^0.
|
|
36
|
+
"@octane-xplat/cli": "^0.11.1",
|
|
37
|
+
"@octane-xplat/lint": "^0.11.1",
|
|
37
38
|
"@octanejs/vite-plugin": "0.1.61",
|
|
38
39
|
"@tsrx/typescript-plugin": "0.4.11",
|
|
39
40
|
"nativescript": "9.1.1",
|
|
@@ -50,11 +50,6 @@ patchedDependencies:
|
|
|
50
50
|
# translate values through parsing and resolves each axis against the view's own
|
|
51
51
|
# dimensions, including native views and animations.
|
|
52
52
|
"@nativescript/core@9.1.2": node_modules/.pnpm-config/@octane-xplat/patches/patches/@nativescript__core@9.1.2.patch
|
|
53
|
-
# @nativescript/types@9.0.0 omits ambient declarations for the native URL and
|
|
54
|
-
# URLSearchParams globals, so projects without DOM libraries cannot typecheck valid native
|
|
55
|
-
# URL code. Adds runtime-aligned declarations that merge with DOM declarations when both
|
|
56
|
-
# libraries are present.
|
|
57
|
-
"@nativescript/types@9.0.0": node_modules/.pnpm-config/@octane-xplat/patches/patches/@nativescript__types@9.0.0.patch
|
|
58
53
|
# @nativescript/vite serializes bundled CSS and dev app.css through reworkcss `css`@3.0.0,
|
|
59
54
|
# which mis-parses @layer into garbage selectors — rules die before reaching
|
|
60
55
|
# _populateRules. Adds atlayer() covering block and statement forms. Applies to a
|
|
@@ -72,7 +67,10 @@ patchedDependencies:
|
|
|
72
67
|
# so `.mobile` leaves resolve under mapped imports and `ns build`. Served `/node_modules/`
|
|
73
68
|
# tails now also scan pnpm's `.pnpm` store and `link:`/`file:`/`portal:` dep roots — a
|
|
74
69
|
# linked package's transitive deps (e.g. @iconify/utils under @octane-xplat/icons) resolve
|
|
75
|
-
# nowhere else and 404 the dev session.
|
|
70
|
+
# nowhere else and 404 the dev session. findMonorepoWorkspaceRoot no longer treats a lone
|
|
71
|
+
# turbo.json as a workspace root — Turborepo's per-package task configs marked apps/* as
|
|
72
|
+
# roots, masking the real pnpm root so served `/node_modules/` tails never reached the
|
|
73
|
+
# `.pnpm` store scan and non-hoisted transitive deps like source-map-js 404'd dev boot.
|
|
76
74
|
"@nativescript/vite@8.0.17": node_modules/.pnpm-config/@octane-xplat/patches/patches/@nativescript__vite@8.0.17.patch
|
|
77
75
|
# Driver setProp skips `undefined` writes — NativeScript native setters coerce it (e.g.
|
|
78
76
|
# editable → ios.userInteractionEnabled = NO), leaving dead UI that still has its JS
|
|
@@ -96,17 +94,28 @@ patchedDependencies:
|
|
|
96
94
|
# dies on boot). Rewrites them as try/catch new RegExp builds with ASCII-range fallbacks —
|
|
97
95
|
# same behavior where ICU exists, graceful degradation where it doesn't.
|
|
98
96
|
linkifyjs@4.3.3: node_modules/.pnpm-config/@octane-xplat/patches/patches/linkifyjs@4.3.3.patch
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
# self-import
|
|
102
|
-
#
|
|
103
|
-
|
|
104
|
-
"@octanejs/tiptap@0.0.51": node_modules/.pnpm-config/@octane-xplat/patches/patches/@octanejs__tiptap@0.0.51.patch
|
|
97
|
+
# useEditor.ts reads bare process.env.NODE_ENV — no node global exists in the harness
|
|
98
|
+
# typecheck program. Adds a module-local process declaration for typecheck. (The
|
|
99
|
+
# './Context' self-import half of the 0.0.51 patch shipped upstream in 0.0.52 via
|
|
100
|
+
# octanejs/octane#1502.)
|
|
101
|
+
"@octanejs/tiptap@0.0.52": node_modules/.pnpm-config/@octane-xplat/patches/patches/@octanejs__tiptap@0.0.52.patch
|
|
105
102
|
# @lexical/link declares a /\p{L}\p{N}/u URL matcher as a regex literal at module scope;
|
|
106
103
|
# NativeScript's embedded V8 builds without ICU, so the literal throws SyntaxError at
|
|
107
104
|
# parse time and poisons the whole bundle (any bundled app importing @lexical/link dies on
|
|
108
105
|
# boot). Same fix as linkifyjs: try/catch new RegExp with an ASCII-range fallback — the
|
|
109
106
|
# matcher only feeds autolink, which native doesn't use.
|
|
110
107
|
"@lexical/link@0.51.0": node_modules/.pnpm-config/@octane-xplat/patches/patches/@lexical__link@0.51.0.patch
|
|
108
|
+
# ui-image 5.x regressed two iOS prefetch behaviors the 4.x line shipped (still present in
|
|
109
|
+
# 4.6.20): prefetchToCacheType ignores its cacheType argument — SDWebImagePrefetcher's
|
|
110
|
+
# default context stores to disk+memory either way, so a 'disk' prefetch also decodes and
|
|
111
|
+
# warms memory, diverging from Android's bytes-only Glide downloadOnly — and
|
|
112
|
+
# getContextFromOptions drops PrefetchOptions.headers because it never sets
|
|
113
|
+
# SDWebImageContextDownloadRequestModifier, so prefetch({headers}) silently sends no
|
|
114
|
+
# headers on iOS while Android's CustomGlideUrl forwards them. Ports upstream's own 4.x
|
|
115
|
+
# implementation — SDWebImageContextStoreCacheType on the prefetch context plus the
|
|
116
|
+
# request-modifier branch in getContextFromOptions — and additionally sets
|
|
117
|
+
# SDWebImageContextOriginalStoreCacheType so a memory prefetch does not spill original
|
|
118
|
+
# bytes to disk.
|
|
119
|
+
"@nativescript-community/ui-image@5.0.17": node_modules/.pnpm-config/@octane-xplat/patches/patches/@nativescript-community__ui-image@5.0.17.patch
|
|
111
120
|
configDependencies:
|
|
112
|
-
"@octane-xplat/patches": 0.
|
|
121
|
+
"@octane-xplat/patches": 0.11.1
|