ember-nativescript 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +353 -2
- package/dist/components/NativeFrame.d.ts +28 -0
- package/dist/components/NativeFrame.d.ts.map +1 -0
- package/dist/components/NativeFrame.js +39 -0
- package/dist/components/NativeFrame.js.map +1 -0
- package/dist/components/NativeList.d.ts +32 -0
- package/dist/components/NativeList.d.ts.map +1 -0
- package/dist/components/NativeList.js +44 -0
- package/dist/components/NativeList.js.map +1 -0
- package/dist/components/Platform.d.ts +21 -0
- package/dist/components/Platform.d.ts.map +1 -0
- package/dist/components/Platform.js +22 -0
- package/dist/components/Platform.js.map +1 -0
- package/dist/src/adapter.d.ts +51 -0
- package/dist/src/adapter.d.ts.map +1 -0
- package/dist/src/bind.d.ts +12 -0
- package/dist/src/bind.d.ts.map +1 -0
- package/dist/src/bind.js +32 -0
- package/dist/src/bind.js.map +1 -0
- package/dist/src/dom.d.ts +104 -0
- package/dist/src/dom.d.ts.map +1 -0
- package/dist/src/dom.js +329 -0
- package/dist/src/dom.js.map +1 -0
- package/dist/src/elements.d.ts +17 -0
- package/dist/src/elements.d.ts.map +1 -0
- package/dist/src/elements.js +52 -0
- package/dist/src/elements.js.map +1 -0
- package/dist/src/fake-adapter.d.ts +113 -0
- package/dist/src/fake-adapter.d.ts.map +1 -0
- package/dist/src/fake-adapter.js +391 -0
- package/dist/src/fake-adapter.js.map +1 -0
- package/dist/src/frame-host.d.ts +12 -0
- package/dist/src/frame-host.d.ts.map +1 -0
- package/dist/src/frame-host.js +34 -0
- package/dist/src/frame-host.js.map +1 -0
- package/dist/src/index.d.ts +18 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +17 -0
- package/dist/src/list.d.ts +21 -0
- package/dist/src/list.d.ts.map +1 -0
- package/dist/src/list.js +96 -0
- package/dist/src/list.js.map +1 -0
- package/dist/src/modifier.d.ts +11 -0
- package/dist/src/modifier.d.ts.map +1 -0
- package/dist/src/modifier.js +27 -0
- package/dist/src/modifier.js.map +1 -0
- package/dist/src/native-view.d.ts +10 -0
- package/dist/src/native-view.d.ts.map +1 -0
- package/dist/src/native-view.js +8 -0
- package/dist/src/native-view.js.map +1 -0
- package/dist/src/nativescript-adapter.d.ts +26 -0
- package/dist/src/nativescript-adapter.d.ts.map +1 -0
- package/dist/src/nativescript-adapter.js +168 -0
- package/dist/src/nativescript-adapter.js.map +1 -0
- package/dist/src/nativescript-app.d.ts +18 -0
- package/dist/src/nativescript-app.d.ts.map +1 -0
- package/dist/src/nativescript-app.js +32 -0
- package/dist/src/nativescript-app.js.map +1 -0
- package/dist/src/navigator.d.ts +65 -0
- package/dist/src/navigator.d.ts.map +1 -0
- package/dist/src/navigator.js +141 -0
- package/dist/src/navigator.js.map +1 -0
- package/dist/src/owner.d.ts +39 -0
- package/dist/src/owner.d.ts.map +1 -0
- package/dist/src/owner.js +185 -0
- package/dist/src/owner.js.map +1 -0
- package/dist/src/platform.d.ts +5 -0
- package/dist/src/platform.d.ts.map +1 -0
- package/dist/src/platform.js +11 -0
- package/dist/src/platform.js.map +1 -0
- package/dist/src/render.d.ts +18 -0
- package/dist/src/render.d.ts.map +1 -0
- package/dist/src/render.js +32 -0
- package/dist/src/render.js.map +1 -0
- package/dist/types/glint.d.ts +164 -0
- package/dist/vendor/runtime--fcdnjmJ.js +43 -0
- package/dist/vendor/runtime--fcdnjmJ.js.map +1 -0
- package/package.json +72 -4
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// Glint types for NativeScript's views in templates: which tags exist, what each accepts, and what its events carry.
|
|
2
|
+
//
|
|
3
|
+
// Attributes are derived from @nativescript/core's own classes, so every settable property of a view is known and
|
|
4
|
+
// typed: `items={{this.colors}}` on a listPicker must be an array, `date={{this.when}}` on a datePicker a Date. Static
|
|
5
|
+
// attributes are strings, as NativeScript's XML gives them, and are accepted where the property converts them:
|
|
6
|
+
// `isEnabled='false'`, `width='100'`, `color='red'`.
|
|
7
|
+
//
|
|
8
|
+
// Load it once, from a .d.ts in your app:
|
|
9
|
+
//
|
|
10
|
+
// import 'ember-nativescript/glint';
|
|
11
|
+
//
|
|
12
|
+
// A plugin's view is added the way a tag is registered at runtime:
|
|
13
|
+
//
|
|
14
|
+
// declare module 'ember-nativescript/glint' {
|
|
15
|
+
// interface NativeElementTagNameMap { pager: Pager }
|
|
16
|
+
// }
|
|
17
|
+
|
|
18
|
+
import type * as NS from '@nativescript/core';
|
|
19
|
+
|
|
20
|
+
export interface NativeElementTagNameMap {
|
|
21
|
+
absoluteLayout: NS.AbsoluteLayout;
|
|
22
|
+
actionBar: NS.ActionBar;
|
|
23
|
+
actionItem: NS.ActionItem;
|
|
24
|
+
activityIndicator: NS.ActivityIndicator;
|
|
25
|
+
button: NS.Button;
|
|
26
|
+
contentView: NS.ContentView;
|
|
27
|
+
datePicker: NS.DatePicker;
|
|
28
|
+
dockLayout: NS.DockLayout;
|
|
29
|
+
flexboxLayout: NS.FlexboxLayout;
|
|
30
|
+
formattedString: NS.FormattedString;
|
|
31
|
+
frame: NS.Frame;
|
|
32
|
+
gridLayout: NS.GridLayout;
|
|
33
|
+
htmlView: NS.HtmlView;
|
|
34
|
+
image: NS.Image;
|
|
35
|
+
label: NS.Label;
|
|
36
|
+
listPicker: NS.ListPicker;
|
|
37
|
+
listView: NS.ListView;
|
|
38
|
+
navigationButton: NS.NavigationButton;
|
|
39
|
+
page: NS.Page;
|
|
40
|
+
placeholder: NS.Placeholder;
|
|
41
|
+
progress: NS.Progress;
|
|
42
|
+
rootLayout: NS.RootLayout;
|
|
43
|
+
scrollView: NS.ScrollView;
|
|
44
|
+
searchBar: NS.SearchBar;
|
|
45
|
+
segmentedBar: NS.SegmentedBar;
|
|
46
|
+
segmentedBarItem: NS.SegmentedBarItem;
|
|
47
|
+
slider: NS.Slider;
|
|
48
|
+
span: NS.Span;
|
|
49
|
+
stackLayout: NS.StackLayout;
|
|
50
|
+
switch: NS.Switch;
|
|
51
|
+
tabView: NS.TabView;
|
|
52
|
+
tabViewItem: NS.TabViewItem;
|
|
53
|
+
textField: NS.TextField;
|
|
54
|
+
textView: NS.TextView;
|
|
55
|
+
timePicker: NS.TimePicker;
|
|
56
|
+
webView: NS.WebView;
|
|
57
|
+
wrapLayout: NS.WrapLayout;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** The element a native tag makes in a template: what modifiers and `...attributes` receive. */
|
|
61
|
+
export type NativeElementFor<Tag extends string, View> = Element & { readonly localName: Tag; readonly view: View };
|
|
62
|
+
|
|
63
|
+
/** What a NativeScript event handler receives, plus the element it was added on. */
|
|
64
|
+
export type NativeEvent<Data = NS.EventData, El = Element> = Data & { currentTarget: El };
|
|
65
|
+
|
|
66
|
+
type IfEquals<X, Y, A, B> = (<T>() => T extends X ? 1 : 2) extends <T>() => T extends Y ? 1 : 2 ? A : B;
|
|
67
|
+
|
|
68
|
+
// Properties that aren't read-only, aren't methods, and aren't internals (`_`-prefixed, the native view handles).
|
|
69
|
+
type SettableKeys<View> = {
|
|
70
|
+
[K in keyof View]-?: K extends
|
|
71
|
+
`_${string}` | 'ios' | 'android' | 'nativeView' | 'nativeViewProtected' | 'parent' | 'style'
|
|
72
|
+
? never
|
|
73
|
+
: View[K] extends (...args: never[]) => unknown
|
|
74
|
+
? never
|
|
75
|
+
: IfEquals<{ [Q in K]: View[K] }, { -readonly [Q in K]: View[K] }, K, never>;
|
|
76
|
+
}[keyof View];
|
|
77
|
+
|
|
78
|
+
// How a value of that type is written as a static attribute.
|
|
79
|
+
type Written<T> = T extends boolean
|
|
80
|
+
? 'true' | 'false'
|
|
81
|
+
: T extends number
|
|
82
|
+
? `${number}` | `${number}px` | `${number}%`
|
|
83
|
+
: T extends NS.Color
|
|
84
|
+
? string
|
|
85
|
+
: never;
|
|
86
|
+
|
|
87
|
+
type Numeric = number | `${number}`;
|
|
88
|
+
|
|
89
|
+
/** What a layout reads from its children, and what every view takes besides its properties. */
|
|
90
|
+
export interface CommonNativeAttributes {
|
|
91
|
+
id?: string;
|
|
92
|
+
class?: string;
|
|
93
|
+
style?: string;
|
|
94
|
+
row?: Numeric;
|
|
95
|
+
col?: Numeric;
|
|
96
|
+
rowSpan?: Numeric;
|
|
97
|
+
colSpan?: Numeric;
|
|
98
|
+
dock?: 'left' | 'top' | 'right' | 'bottom';
|
|
99
|
+
left?: NS.CoreTypes.LengthType | `${number}`;
|
|
100
|
+
top?: NS.CoreTypes.LengthType | `${number}`;
|
|
101
|
+
order?: Numeric;
|
|
102
|
+
flexGrow?: Numeric;
|
|
103
|
+
flexShrink?: Numeric;
|
|
104
|
+
flexWrapBefore?: boolean | 'true' | 'false';
|
|
105
|
+
alignSelf?: NS.AlignSelf;
|
|
106
|
+
/** Set on one platform only: `ios:text='Tap'`. A dotted name sets a nested property: `ios.position='right'`. */
|
|
107
|
+
[platformOnly: `ios:${string}` | `android:${string}` | `ios.${string}` | `android.${string}`]: unknown;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type NativeAttributes<View> = {
|
|
111
|
+
[K in SettableKeys<View>]?: View[K] | Written<View[K]> | null;
|
|
112
|
+
} & CommonNativeAttributes;
|
|
113
|
+
|
|
114
|
+
type NativeTags = {
|
|
115
|
+
[Tag in keyof NativeElementTagNameMap & string]: NativeElementFor<Tag, NativeElementTagNameMap[Tag]>;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
type NativeTagAttributes = {
|
|
119
|
+
[Tag in keyof NativeElementTagNameMap]: NativeAttributes<NativeElementTagNameMap[Tag]>;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare global {
|
|
123
|
+
// `label`, `button`, `span`, `progress` and `frame` are also HTML tags: their element type stays HTML's, but their
|
|
124
|
+
// attributes are looked up by name, here first.
|
|
125
|
+
interface GlintCustomElementTagNameMap extends NativeTags {}
|
|
126
|
+
interface GlintCustomElementAttributesMap extends NativeTagAttributes {}
|
|
127
|
+
|
|
128
|
+
// NativeScript's events, for `{{on}}`. Names HTML already has (`scroll`, `submit`, `focus`, `blur`) keep HTML's
|
|
129
|
+
// types; type the handler's argument yourself for those.
|
|
130
|
+
interface HTMLElementEventMap {
|
|
131
|
+
tap: NativeEvent<NS.TapGestureEventData>;
|
|
132
|
+
doubleTap: NativeEvent<NS.TapGestureEventData>;
|
|
133
|
+
longPress: NativeEvent<NS.GestureEventData>;
|
|
134
|
+
swipe: NativeEvent<NS.SwipeGestureEventData>;
|
|
135
|
+
pan: NativeEvent<NS.PanGestureEventData>;
|
|
136
|
+
pinch: NativeEvent<NS.PinchGestureEventData>;
|
|
137
|
+
rotation: NativeEvent<NS.RotationGestureEventData>;
|
|
138
|
+
touch: NativeEvent<NS.TouchGestureEventData>;
|
|
139
|
+
loaded: NativeEvent;
|
|
140
|
+
unloaded: NativeEvent;
|
|
141
|
+
layoutChanged: NativeEvent;
|
|
142
|
+
propertyChange: NativeEvent<NS.PropertyChangeData>;
|
|
143
|
+
textChange: NativeEvent<NS.PropertyChangeData & { value: string }>;
|
|
144
|
+
checkedChange: NativeEvent<NS.PropertyChangeData & { value: boolean }>;
|
|
145
|
+
valueChange: NativeEvent<NS.PropertyChangeData & { value: number }>;
|
|
146
|
+
dateChange: NativeEvent<NS.PropertyChangeData & { value: Date }>;
|
|
147
|
+
timeChange: NativeEvent<NS.PropertyChangeData & { value: Date }>;
|
|
148
|
+
selectedIndexChange: NativeEvent<NS.PropertyChangeData & { value: number }>;
|
|
149
|
+
selectedIndexChanged: NativeEvent<NS.SelectedIndexChangedEventData>;
|
|
150
|
+
returnPress: NativeEvent;
|
|
151
|
+
clear: NativeEvent;
|
|
152
|
+
itemTap: NativeEvent<NS.ItemEventData>;
|
|
153
|
+
itemLoading: NativeEvent<NS.ItemEventData>;
|
|
154
|
+
loadMoreItems: NativeEvent;
|
|
155
|
+
navigatingTo: NativeEvent<NS.NavigatedData>;
|
|
156
|
+
navigatedTo: NativeEvent<NS.NavigatedData>;
|
|
157
|
+
navigatingFrom: NativeEvent<NS.NavigatedData>;
|
|
158
|
+
navigatedFrom: NativeEvent<NS.NavigatedData>;
|
|
159
|
+
showingModally: NativeEvent<NS.ShownModallyData>;
|
|
160
|
+
shownModally: NativeEvent<NS.ShownModallyData>;
|
|
161
|
+
loadStarted: NativeEvent<NS.LoadEventData>;
|
|
162
|
+
loadFinished: NativeEvent<NS.LoadEventData>;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.17/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js
|
|
2
|
+
var deferred = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function deferDecorator(proto, prop, desc) {
|
|
4
|
+
let map = deferred.get(proto);
|
|
5
|
+
if (!map) {
|
|
6
|
+
map = /* @__PURE__ */ new Map();
|
|
7
|
+
deferred.set(proto, map);
|
|
8
|
+
}
|
|
9
|
+
map.set(prop, desc);
|
|
10
|
+
}
|
|
11
|
+
function findDeferredDecorator(target, prop) {
|
|
12
|
+
var _a;
|
|
13
|
+
let cursor = target.prototype;
|
|
14
|
+
while (cursor) {
|
|
15
|
+
let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);
|
|
16
|
+
if (desc) return desc;
|
|
17
|
+
cursor = Object.getPrototypeOf(cursor);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function decorateFieldV2(prototype, prop, decorators, initializer) {
|
|
21
|
+
let desc = {
|
|
22
|
+
configurable: true,
|
|
23
|
+
enumerable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
initializer: null
|
|
26
|
+
};
|
|
27
|
+
if (initializer) desc.initializer = initializer;
|
|
28
|
+
for (let decorator of decorators) desc = decorator(prototype, prop, desc) || desc;
|
|
29
|
+
if (desc.initializer === void 0) Object.defineProperty(prototype, prop, desc);
|
|
30
|
+
else deferDecorator(prototype, prop, desc);
|
|
31
|
+
}
|
|
32
|
+
function initializeDeferredDecorator(target, prop) {
|
|
33
|
+
let desc = findDeferredDecorator(target.constructor, prop);
|
|
34
|
+
if (desc) Object.defineProperty(target, prop, {
|
|
35
|
+
enumerable: desc.enumerable,
|
|
36
|
+
configurable: desc.configurable,
|
|
37
|
+
writable: desc.writable,
|
|
38
|
+
value: desc.initializer ? desc.initializer.call(target) : void 0
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export { decorateFieldV2 as b, initializeDeferredDecorator as i };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=runtime--fcdnjmJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runtime--fcdnjmJ.js","names":[],"sources":["../../node_modules/.pnpm/decorator-transforms@2.4.0_@babel+core@7.29.17/node_modules/decorator-transforms/dist/runtime--fcdnjmJ.js"],"sourcesContent":["const deferred = /* @__PURE__ */ new WeakMap();\nfunction deferDecorator(proto, prop, desc) {\n let map = deferred.get(proto);\n if (!map) {\n map = /* @__PURE__ */ new Map();\n deferred.set(proto, map);\n }\n map.set(prop, desc);\n}\nfunction findDeferredDecorator(target, prop) {\n var _a;\n let cursor = target.prototype;\n while (cursor) {\n let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);\n if (desc) {\n return desc;\n }\n cursor = Object.getPrototypeOf(cursor);\n }\n}\nfunction decorateFieldV1(target, prop, decorators, initializer) {\n return decorateFieldV2(target.prototype, prop, decorators, initializer);\n}\nfunction decorateFieldV2(prototype, prop, decorators, initializer) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: null\n };\n if (initializer) {\n desc.initializer = initializer;\n }\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer === void 0) {\n Object.defineProperty(prototype, prop, desc);\n } else {\n deferDecorator(prototype, prop, desc);\n }\n}\nfunction decorateMethodV1({ prototype }, prop, decorators) {\n return decorateMethodV2(prototype, prop, decorators);\n}\nfunction decorateMethodV2(prototype, prop, decorators) {\n const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);\n let desc = { ...origDesc };\n for (let decorator of decorators) {\n desc = decorator(prototype, prop, desc) || desc;\n }\n if (desc.initializer !== void 0) {\n desc.value = desc.initializer ? desc.initializer.call(prototype) : void 0;\n desc.initializer = void 0;\n }\n Object.defineProperty(prototype, prop, desc);\n}\nfunction initializeDeferredDecorator(target, prop) {\n let desc = findDeferredDecorator(target.constructor, prop);\n if (desc) {\n Object.defineProperty(target, prop, {\n enumerable: desc.enumerable,\n configurable: desc.configurable,\n writable: desc.writable,\n value: desc.initializer ? desc.initializer.call(target) : void 0\n });\n }\n}\nfunction decorateClass(target, decorators) {\n return decorators.reduce(\n (accum, decorator) => decorator(accum) || accum,\n target\n );\n}\nfunction decoratePOJO(pojo, decorated) {\n for (let [type, prop, decorators] of decorated) {\n if (type === \"field\") {\n decoratePojoField(pojo, prop, decorators);\n } else {\n decorateMethodV2(pojo, prop, decorators);\n }\n }\n return pojo;\n}\nfunction decoratePojoField(pojo, prop, decorators) {\n let desc = {\n configurable: true,\n enumerable: true,\n writable: true,\n initializer: () => {\n var _a;\n return (_a = Object.getOwnPropertyDescriptor(pojo, prop)) == null ? void 0 : _a.value;\n }\n };\n for (let decorator of decorators) {\n desc = decorator(pojo, prop, desc) || desc;\n }\n if (desc.initializer) {\n desc.value = desc.initializer.call(pojo);\n delete desc.initializer;\n }\n Object.defineProperty(pojo, prop, desc);\n}\nconst runtime = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n c: decorateClass,\n f: decorateFieldV1,\n g: decorateFieldV2,\n i: initializeDeferredDecorator,\n m: decorateMethodV1,\n n: decorateMethodV2,\n p: decoratePOJO\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n decorateFieldV1 as a,\n decorateFieldV2 as b,\n decorateMethodV1 as c,\n decorateClass as d,\n decorateMethodV2 as e,\n decoratePOJO as f,\n initializeDeferredDecorator as i,\n runtime as r\n};\n//# sourceMappingURL=runtime--fcdnjmJ.js.map\n"],"ignoreList":[0],"mappings":";AAAA,IAAM,2BAA2B,IAAI,QAAQ;AAC7C,SAAS,eAAe,OAAO,MAAM,MAAM;CACzC,IAAI,MAAM,SAAS,IAAI,KAAK;CAC5B,IAAI,CAAC,KAAK;EACR,sBAAsB,IAAI,IAAI;EAC9B,SAAS,IAAI,OAAO,GAAG;CACzB;CACA,IAAI,IAAI,MAAM,IAAI;AACpB;AACA,SAAS,sBAAsB,QAAQ,MAAM;CAC3C,IAAI;CACJ,IAAI,SAAS,OAAO;CACpB,OAAO,QAAQ;EACb,IAAI,QAAQ,KAAK,SAAS,IAAI,MAAM,MAAM,OAAO,KAAK,IAAI,GAAG,IAAI,IAAI;EACrE,IAAI,MACF,OAAO;EAET,SAAS,OAAO,eAAe,MAAM;CACvC;AACF;AAIA,SAAS,gBAAgB,WAAW,MAAM,YAAY,aAAa;CACjE,IAAI,OAAO;EACT,cAAc;EACd,YAAY;EACZ,UAAU;EACV,aAAa;CACf;CACA,IAAI,aACF,KAAK,cAAc;CAErB,KAAK,IAAI,aAAa,YACpB,OAAO,UAAU,WAAW,MAAM,IAAI,KAAK;CAE7C,IAAI,KAAK,gBAAgB,KAAK,GAC5B,OAAO,eAAe,WAAW,MAAM,IAAI;MAE3C,eAAe,WAAW,MAAM,IAAI;AAExC;AAgBA,SAAS,4BAA4B,QAAQ,MAAM;CACjD,IAAI,OAAO,sBAAsB,OAAO,aAAa,IAAI;CACzD,IAAI,MACF,OAAO,eAAe,QAAQ,MAAM;EAClC,YAAY,KAAK;EACjB,cAAc,KAAK;EACnB,UAAU,KAAK;EACf,OAAO,KAAK,cAAc,KAAK,YAAY,KAAK,MAAM,IAAI,KAAK;CACjE,CAAC;AAEL"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-nativescript",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Ember components rendering real native views on iOS and Android, through NativeScript.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/betocantu93/ember-native.git"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"ember",
|
|
13
|
+
"glimmer",
|
|
14
|
+
"nativescript",
|
|
15
|
+
"ios",
|
|
16
|
+
"android",
|
|
17
|
+
"native"
|
|
18
|
+
],
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md",
|
|
22
|
+
"LICENSE"
|
|
23
|
+
],
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/src/index.d.ts",
|
|
27
|
+
"default": "./dist/src/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./fake": {
|
|
30
|
+
"types": "./dist/src/fake-adapter.d.ts",
|
|
31
|
+
"default": "./dist/src/fake-adapter.js"
|
|
32
|
+
},
|
|
33
|
+
"./glint": {
|
|
34
|
+
"types": "./dist/types/glint.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "node scripts/build.mjs",
|
|
41
|
+
"test": "vitest run",
|
|
42
|
+
"typecheck": "ember-tsc --noEmit -p tsconfig.glint.json",
|
|
43
|
+
"format": "prettier --write .",
|
|
44
|
+
"format:check": "prettier --check .",
|
|
45
|
+
"build:android": "pnpm build && pnpm --filter ember-native-app build:android",
|
|
46
|
+
"build:ios": "pnpm build && pnpm --filter ember-native-app build:ios",
|
|
47
|
+
"prepack": "pnpm build"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@glimmer/component": "^2.0.0",
|
|
51
|
+
"@nativescript/core": "^9.0.0",
|
|
52
|
+
"ember-source": ">=7.4.0",
|
|
53
|
+
"@glint/template": "^1.11.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"@glint/template": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@glimmer/component": "^2.2.1",
|
|
62
|
+
"@glint/ember-tsc": "1.14.4",
|
|
63
|
+
"@glint/template": "1.11.1",
|
|
64
|
+
"@nativescript/core": "9.1.4",
|
|
65
|
+
"ember-source": "~7.4.2",
|
|
66
|
+
"prettier": "^3.6.2",
|
|
67
|
+
"prettier-plugin-ember-template-tag": "^2.1.0",
|
|
68
|
+
"typescript": "5.9.3",
|
|
69
|
+
"vite": "^8.3.0",
|
|
70
|
+
"vite-plugin-ember-gts": "^0.1.0",
|
|
71
|
+
"vitest": "5.1.1"
|
|
72
|
+
},
|
|
73
|
+
"packageManager": "pnpm@10.28.0"
|
|
74
|
+
}
|