bleam 0.0.11 → 0.0.13
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/dist/ai.cjs +2315 -2173
- package/dist/ai.d.cts +227 -322
- package/dist/ai.d.ts +227 -322
- package/dist/ai.js +2310 -2159
- package/dist/app-storage-D8W4n8ey.cjs +39 -0
- package/dist/app-storage-Isi5Bo0R.js +34 -0
- package/dist/cli.cjs +148 -22
- package/dist/cli.d.cts +14 -1
- package/dist/cli.d.ts +13 -0
- package/dist/cli.js +148 -22
- package/dist/config.d.cts +1 -1
- package/dist/elements-CFk0QHw0.d.cts +127 -0
- package/dist/{ui-CHc4xEs_.d.ts → elements-ClGQ41Sc.d.ts} +84 -49
- package/dist/{ui.cjs → elements.cjs} +307 -168
- package/dist/elements.d.cts +2 -0
- package/dist/elements.d.ts +2 -0
- package/dist/{ui.js → elements.js} +306 -169
- package/dist/{files-Ds1wT8C2.js → files-DErLhzCB.js} +11 -12
- package/dist/{files-Bo7h9fik.cjs → files-lMk-CpL_.cjs} +16 -11
- package/dist/files.cjs +1 -1
- package/dist/files.d.cts +1 -1
- package/dist/files.js +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/schema-B7ELMpuI.js +226 -0
- package/dist/schema-B7SLUBLN.cjs +286 -0
- package/dist/schema-BWsDPc6c.d.cts +125 -0
- package/dist/schema-LxnzAfgw.d.ts +125 -0
- package/dist/schema.cjs +10 -2
- package/dist/schema.d.cts +2 -2
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -2
- package/dist/secrets.cjs +146 -0
- package/dist/secrets.d.cts +14 -0
- package/dist/secrets.d.ts +14 -0
- package/dist/secrets.js +142 -0
- package/dist/state-BZYyrE2-.cjs +936 -0
- package/dist/state-DkaRFkZJ.js +843 -0
- package/dist/state.cjs +17 -12
- package/dist/state.d.cts +144 -140
- package/dist/state.d.ts +145 -140
- package/dist/state.js +4 -3
- package/dist/window.d.cts +1 -1
- package/dist/window.d.ts +3 -3
- package/package.json +13 -6
- package/templates/basic/app/index.tsx +2 -2
- package/templates/foundation-models/app/index.tsx +78 -16
- package/templates/image-generation/app/index.tsx +4 -4
- package/templates/native/ios/Bleam.xcodeproj/project.pbxproj +46 -46
- package/templates/native/ios/Podfile.lock +173 -173
- package/templates/native/modules/bleam-runtime/ios/AIModule.swift +42 -365
- package/templates/state/app/index.tsx +2 -2
- package/templates/text-generation/app/index.tsx +83 -52
- package/templates/updates/README.md +1 -1
- package/dist/schema-Bo5Jvqus.js +0 -90
- package/dist/schema-CYh6n8GS.d.ts +0 -58
- package/dist/schema-oeOrd3i1.d.cts +0 -58
- package/dist/schema-rQ13mrpD.cjs +0 -102
- package/dist/state-Bx0VlTlO.cjs +0 -852
- package/dist/state-CAwe-Vw1.js +0 -767
- package/dist/ui-1WepaMS4.d.cts +0 -92
- package/dist/ui.d.cts +0 -2
- package/dist/ui.d.ts +0 -2
- /package/dist/{config-CufOVJV3.d.cts → config-COcRnn5a.d.cts} +0 -0
- /package/dist/{files-Dt5mbzLq.d.cts → files-DwA7pzr3.d.cts} +0 -0
- /package/dist/{native-sqlite-yQLD5s9i.cjs → native-sqlite-Dw--FI9a.cjs} +0 -0
- /package/dist/{native-sqlite-xcGdamRD.js → native-sqlite-WzRNzCSh.js} +0 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import * as react4 from "react";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
import { ColorValue, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
4
|
+
import * as _nativescript_react_native26 from "@nativescript/react-native";
|
|
5
|
+
|
|
6
|
+
//#region src/elements/shared.d.ts
|
|
7
|
+
type NativeStyle = ViewStyle & TextStyle;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/elements/blur-view.d.ts
|
|
10
|
+
type BlurIntensity = 'ultraThin' | 'thin' | 'regular' | 'thick' | 'chrome';
|
|
11
|
+
type BlurColorScheme = 'auto' | 'light' | 'dark';
|
|
12
|
+
type BlurViewProps = {
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
style?: StyleProp<NativeStyle>;
|
|
15
|
+
intensity?: BlurIntensity;
|
|
16
|
+
colorScheme?: BlurColorScheme;
|
|
17
|
+
};
|
|
18
|
+
declare const BlurView: _nativescript_react_native26.UIKitViewComponent<BlurViewProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/elements/glass-shared.d.ts
|
|
21
|
+
type GlassStyle = 'regular' | 'clear' | 'none';
|
|
22
|
+
type GlassEffectStyleConfig = {
|
|
23
|
+
style: GlassStyle;
|
|
24
|
+
animate?: boolean;
|
|
25
|
+
animationDuration?: number;
|
|
26
|
+
};
|
|
27
|
+
type GlassVisualStyle = {
|
|
28
|
+
cornerRadius?: number;
|
|
29
|
+
borderWidth?: number;
|
|
30
|
+
borderColor?: ColorValue;
|
|
31
|
+
};
|
|
32
|
+
type GlassViewProps = {
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
style?: StyleProp<NativeStyle>;
|
|
35
|
+
glassStyle?: GlassVisualStyle;
|
|
36
|
+
glassEffectStyle?: GlassStyle | GlassEffectStyleConfig;
|
|
37
|
+
tintColor?: string;
|
|
38
|
+
isInteractive?: boolean;
|
|
39
|
+
};
|
|
40
|
+
type GlassContainerProps = {
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
style?: StyleProp<NativeStyle>;
|
|
43
|
+
glassStyle?: GlassVisualStyle;
|
|
44
|
+
spacing?: number;
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/elements/glass-view.d.ts
|
|
48
|
+
declare const GlassView: _nativescript_react_native26.UIKitViewComponent<GlassViewProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region src/elements/button.d.ts
|
|
51
|
+
type ButtonVariant = 'primary' | 'secondary' | 'plain';
|
|
52
|
+
type ButtonSize = 'small' | 'regular' | 'large';
|
|
53
|
+
type ButtonBaseProps = Omit<PressableProps, 'children' | 'disabled'> & {
|
|
54
|
+
label?: string;
|
|
55
|
+
icon?: ReactNode;
|
|
56
|
+
loading?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
size?: ButtonSize;
|
|
59
|
+
activeOpacity?: number;
|
|
60
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
61
|
+
};
|
|
62
|
+
type ButtonProps = ButtonBaseProps & {
|
|
63
|
+
variant?: ButtonVariant;
|
|
64
|
+
};
|
|
65
|
+
type GlassButtonProps = ButtonBaseProps & Pick<GlassViewProps, 'glassEffectStyle' | 'tintColor'> & {
|
|
66
|
+
glassStyle?: GlassVisualStyle;
|
|
67
|
+
};
|
|
68
|
+
declare function Button({
|
|
69
|
+
accessibilityRole,
|
|
70
|
+
accessibilityState,
|
|
71
|
+
activeOpacity,
|
|
72
|
+
disabled,
|
|
73
|
+
icon,
|
|
74
|
+
label,
|
|
75
|
+
labelStyle,
|
|
76
|
+
loading,
|
|
77
|
+
size,
|
|
78
|
+
style,
|
|
79
|
+
variant,
|
|
80
|
+
...props
|
|
81
|
+
}: ButtonProps): react4.JSX.Element;
|
|
82
|
+
declare function GlassButton({
|
|
83
|
+
accessibilityRole,
|
|
84
|
+
accessibilityState,
|
|
85
|
+
activeOpacity,
|
|
86
|
+
disabled,
|
|
87
|
+
glassEffectStyle,
|
|
88
|
+
glassStyle,
|
|
89
|
+
icon,
|
|
90
|
+
label,
|
|
91
|
+
labelStyle,
|
|
92
|
+
loading,
|
|
93
|
+
size,
|
|
94
|
+
style,
|
|
95
|
+
tintColor,
|
|
96
|
+
...props
|
|
97
|
+
}: GlassButtonProps): react4.JSX.Element;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/elements/glass-container.d.ts
|
|
100
|
+
declare const GlassContainer: _nativescript_react_native26.UIKitViewComponent<GlassContainerProps, _nativescript_react_native26.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
101
|
+
//#endregion
|
|
102
|
+
//#region src/elements/label.d.ts
|
|
103
|
+
type LabelTone = 'primary' | 'secondary' | 'tertiary';
|
|
104
|
+
type LabelProps = {
|
|
105
|
+
children?: ReactNode;
|
|
106
|
+
text?: string;
|
|
107
|
+
tone?: LabelTone;
|
|
108
|
+
numberOfLines?: number;
|
|
109
|
+
style?: StyleProp<NativeStyle>;
|
|
110
|
+
};
|
|
111
|
+
declare const Label: _nativescript_react_native26.UIKitViewComponent<LabelProps, UILabel>;
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/elements/symbol.d.ts
|
|
114
|
+
type SymbolName = string;
|
|
115
|
+
type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
|
|
116
|
+
type SymbolScale = 'small' | 'medium' | 'large';
|
|
117
|
+
type SymbolProps = {
|
|
118
|
+
symbol: SymbolName;
|
|
119
|
+
size?: number;
|
|
120
|
+
weight?: SymbolWeight;
|
|
121
|
+
scale?: SymbolScale;
|
|
122
|
+
color?: ColorValue;
|
|
123
|
+
style?: StyleProp<NativeStyle>;
|
|
124
|
+
};
|
|
125
|
+
declare const SFSymbol: _nativescript_react_native26.UIKitViewComponent<SymbolProps, UIImageView>;
|
|
126
|
+
//#endregion
|
|
127
|
+
export { BlurIntensity as C, BlurColorScheme as S, BlurViewProps as T, GlassContainerProps as _, SymbolWeight as a, GlassViewProps as b, LabelTone as c, ButtonProps as d, ButtonSize as f, GlassView as g, GlassButtonProps as h, SymbolScale as i, GlassContainer as l, GlassButton as m, SymbolName as n, Label as o, ButtonVariant as p, SymbolProps as r, LabelProps as s, SFSymbol as t, Button as u, GlassEffectStyleConfig as v, BlurView as w, GlassVisualStyle as x, GlassStyle as y };
|
|
@@ -1,51 +1,23 @@
|
|
|
1
1
|
import * as _nativescript_react_native25 from "@nativescript/react-native";
|
|
2
|
+
import * as react3 from "react";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
|
-
import { ColorValue, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
4
|
+
import { ColorValue, PressableProps, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
4
5
|
|
|
5
|
-
//#region src/
|
|
6
|
+
//#region src/elements/shared.d.ts
|
|
6
7
|
type NativeStyle = ViewStyle & TextStyle;
|
|
7
8
|
//#endregion
|
|
8
|
-
//#region src/
|
|
9
|
-
type
|
|
10
|
-
type
|
|
11
|
-
type
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
title?: string;
|
|
14
|
-
variant?: ButtonVariant;
|
|
15
|
-
size?: ButtonSize;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
onPress?: () => void;
|
|
19
|
-
style?: StyleProp<NativeStyle>;
|
|
20
|
-
};
|
|
21
|
-
declare const Button: _nativescript_react_native25.UIKitViewComponent<ButtonProps, UIButton>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region src/ui/label.d.ts
|
|
24
|
-
type LabelTone = 'primary' | 'secondary' | 'tertiary';
|
|
25
|
-
type LabelProps = {
|
|
9
|
+
//#region src/elements/blur-view.d.ts
|
|
10
|
+
type BlurIntensity = 'ultraThin' | 'thin' | 'regular' | 'thick' | 'chrome';
|
|
11
|
+
type BlurColorScheme = 'auto' | 'light' | 'dark';
|
|
12
|
+
type BlurViewProps = {
|
|
26
13
|
children?: ReactNode;
|
|
27
|
-
text?: string;
|
|
28
|
-
tone?: LabelTone;
|
|
29
|
-
numberOfLines?: number;
|
|
30
|
-
style?: StyleProp<NativeStyle>;
|
|
31
|
-
};
|
|
32
|
-
declare const Label: _nativescript_react_native25.UIKitViewComponent<LabelProps, UILabel>;
|
|
33
|
-
//#endregion
|
|
34
|
-
//#region src/ui/symbol.d.ts
|
|
35
|
-
type SymbolName = string;
|
|
36
|
-
type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
|
|
37
|
-
type SymbolScale = 'small' | 'medium' | 'large';
|
|
38
|
-
type SymbolProps = {
|
|
39
|
-
symbol: SymbolName;
|
|
40
|
-
size?: number;
|
|
41
|
-
weight?: SymbolWeight;
|
|
42
|
-
scale?: SymbolScale;
|
|
43
|
-
color?: ColorValue;
|
|
44
14
|
style?: StyleProp<NativeStyle>;
|
|
15
|
+
intensity?: BlurIntensity;
|
|
16
|
+
colorScheme?: BlurColorScheme;
|
|
45
17
|
};
|
|
46
|
-
declare const
|
|
18
|
+
declare const BlurView: _nativescript_react_native25.UIKitViewComponent<BlurViewProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
47
19
|
//#endregion
|
|
48
|
-
//#region src/
|
|
20
|
+
//#region src/elements/glass-shared.d.ts
|
|
49
21
|
type GlassStyle = 'regular' | 'clear' | 'none';
|
|
50
22
|
type GlassEffectStyleConfig = {
|
|
51
23
|
style: GlassStyle;
|
|
@@ -72,21 +44,84 @@ type GlassContainerProps = {
|
|
|
72
44
|
spacing?: number;
|
|
73
45
|
};
|
|
74
46
|
//#endregion
|
|
75
|
-
//#region src/
|
|
47
|
+
//#region src/elements/glass-view.d.ts
|
|
76
48
|
declare const GlassView: _nativescript_react_native25.UIKitViewComponent<GlassViewProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
77
49
|
//#endregion
|
|
78
|
-
//#region src/
|
|
50
|
+
//#region src/elements/button.d.ts
|
|
51
|
+
type ButtonVariant = 'primary' | 'secondary' | 'plain';
|
|
52
|
+
type ButtonSize = 'small' | 'regular' | 'large';
|
|
53
|
+
type ButtonBaseProps = Omit<PressableProps, 'children' | 'disabled'> & {
|
|
54
|
+
label?: string;
|
|
55
|
+
icon?: ReactNode;
|
|
56
|
+
loading?: boolean;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
size?: ButtonSize;
|
|
59
|
+
activeOpacity?: number;
|
|
60
|
+
labelStyle?: StyleProp<TextStyle>;
|
|
61
|
+
};
|
|
62
|
+
type ButtonProps = ButtonBaseProps & {
|
|
63
|
+
variant?: ButtonVariant;
|
|
64
|
+
};
|
|
65
|
+
type GlassButtonProps = ButtonBaseProps & Pick<GlassViewProps, 'glassEffectStyle' | 'tintColor'> & {
|
|
66
|
+
glassStyle?: GlassVisualStyle;
|
|
67
|
+
};
|
|
68
|
+
declare function Button({
|
|
69
|
+
accessibilityRole,
|
|
70
|
+
accessibilityState,
|
|
71
|
+
activeOpacity,
|
|
72
|
+
disabled,
|
|
73
|
+
icon,
|
|
74
|
+
label,
|
|
75
|
+
labelStyle,
|
|
76
|
+
loading,
|
|
77
|
+
size,
|
|
78
|
+
style,
|
|
79
|
+
variant,
|
|
80
|
+
...props
|
|
81
|
+
}: ButtonProps): react3.JSX.Element;
|
|
82
|
+
declare function GlassButton({
|
|
83
|
+
accessibilityRole,
|
|
84
|
+
accessibilityState,
|
|
85
|
+
activeOpacity,
|
|
86
|
+
disabled,
|
|
87
|
+
glassEffectStyle,
|
|
88
|
+
glassStyle,
|
|
89
|
+
icon,
|
|
90
|
+
label,
|
|
91
|
+
labelStyle,
|
|
92
|
+
loading,
|
|
93
|
+
size,
|
|
94
|
+
style,
|
|
95
|
+
tintColor,
|
|
96
|
+
...props
|
|
97
|
+
}: GlassButtonProps): react3.JSX.Element;
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/elements/glass-container.d.ts
|
|
79
100
|
declare const GlassContainer: _nativescript_react_native25.UIKitViewComponent<GlassContainerProps, _nativescript_react_native25.UIKitContainerResult<UIVisualEffectView, UIView>>;
|
|
80
101
|
//#endregion
|
|
81
|
-
//#region src/
|
|
82
|
-
type
|
|
83
|
-
type
|
|
84
|
-
type BlurViewProps = {
|
|
102
|
+
//#region src/elements/label.d.ts
|
|
103
|
+
type LabelTone = 'primary' | 'secondary' | 'tertiary';
|
|
104
|
+
type LabelProps = {
|
|
85
105
|
children?: ReactNode;
|
|
106
|
+
text?: string;
|
|
107
|
+
tone?: LabelTone;
|
|
108
|
+
numberOfLines?: number;
|
|
86
109
|
style?: StyleProp<NativeStyle>;
|
|
87
|
-
intensity?: BlurIntensity;
|
|
88
|
-
colorScheme?: BlurColorScheme;
|
|
89
110
|
};
|
|
90
|
-
declare const
|
|
111
|
+
declare const Label: _nativescript_react_native25.UIKitViewComponent<LabelProps, UILabel>;
|
|
112
|
+
//#endregion
|
|
113
|
+
//#region src/elements/symbol.d.ts
|
|
114
|
+
type SymbolName = string;
|
|
115
|
+
type SymbolWeight = 'ultraLight' | 'thin' | 'light' | 'regular' | 'medium' | 'semibold' | 'bold' | 'heavy' | 'black';
|
|
116
|
+
type SymbolScale = 'small' | 'medium' | 'large';
|
|
117
|
+
type SymbolProps = {
|
|
118
|
+
symbol: SymbolName;
|
|
119
|
+
size?: number;
|
|
120
|
+
weight?: SymbolWeight;
|
|
121
|
+
scale?: SymbolScale;
|
|
122
|
+
color?: ColorValue;
|
|
123
|
+
style?: StyleProp<NativeStyle>;
|
|
124
|
+
};
|
|
125
|
+
declare const SFSymbol: _nativescript_react_native25.UIKitViewComponent<SymbolProps, UIImageView>;
|
|
91
126
|
//#endregion
|
|
92
|
-
export {
|
|
127
|
+
export { BlurIntensity as C, BlurColorScheme as S, BlurViewProps as T, GlassContainerProps as _, SymbolWeight as a, GlassViewProps as b, LabelTone as c, ButtonProps as d, ButtonSize as f, GlassView as g, GlassButtonProps as h, SymbolScale as i, GlassContainer as l, GlassButton as m, SymbolName as n, Label as o, ButtonVariant as p, SymbolProps as r, LabelProps as s, SFSymbol as t, Button as u, GlassEffectStyleConfig as v, BlurView as w, GlassVisualStyle as x, GlassStyle as y };
|