@sency/react-native-smkit-ui 2.3.1 → 2.3.2
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 +9 -5
- package/android/build.gradle +38 -3
- package/android/src/main/java/com/smkituilibrary/SmkitUiLibraryModule.kt +16 -12
- package/android/src/main/java/com/smkituilibrary/mapper/SMMapper.kt +4 -2
- package/android/src/main/java/com/smkituilibrary/model/SMKitExercise.kt +1 -0
- package/ios/SMKitUIManager.mm +1 -1
- package/ios/SMKitUIManager.swift +11 -4
- package/lib/commonjs/SMWorkout.js +2 -1
- package/lib/commonjs/SMWorkout.js.map +1 -1
- package/lib/commonjs/index.js +54 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/SMWorkout.js +2 -1
- package/lib/module/SMWorkout.js.map +1 -1
- package/lib/module/index.js +54 -3
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/SMWorkout.d.ts +342 -0
- package/lib/typescript/SMWorkout.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +218 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/package.json +5 -2
- package/react-native-smkit-ui.podspec +4 -2
- package/src/SMWorkout.tsx +2 -0
- package/src/index.tsx +79 -3
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","SMWorkoutLibrary","LINKING_ERROR","select","ios","default","SMKitUIManager","Proxy","get","Error","configure","key","startAssessment","type","showSummary","userData","forceShowUserDataScreen","customAssessmentID","modifications","userDataJson","undefined","toJson","modificationsJson","String","startCustomWorkout","workout","startCustomAssessment","assessment","startWorkoutProgram","workoutConfig","
|
|
1
|
+
{"version":3,"names":["NativeModules","Platform","SMWorkoutLibrary","LINKING_ERROR","select","ios","default","SMKitUIManager","Proxy","get","Error","getErrorMessage","error","message","nativeError","name","code","filter","value","join","isLegacyConfigureBridgeError","toLowerCase","includes","applyLegacyConfigureLanguageFallback","language","Language","English","setSessionLanguage","setPhoneCalibrationLanguage","configure","key","result","startAssessment","type","showSummary","userData","forceShowUserDataScreen","customAssessmentID","modifications","userDataJson","undefined","toJson","modificationsJson","String","startCustomWorkout","workout","startCustomAssessment","assessment","startWorkoutProgram","workoutConfig","setEndExercisePreferences","endExercisePreferences","setCounterPreferences","counterPreferences","setIntelligenceRestEnabled","enabled","setInstructionVideoConfig","config","JSON","stringify","setSkeletonSettings","setPauseTypes","types","setAllowAudioMixing","setShowExternalAudioControl","setAccuratePoseEstimation","setColorTheme","theme","setPlayPhoneCalibrationAudio","setPlayBodyCalibrationAudio","setStartTimerOnFirstActivity","setWorkoutContinuationTimerDuration","seconds","setPhoneMovementCountPreventionEnabled","setVariationMismatchFeedbackEnabled","setUseDefaultGuidanceMode","setGuidanceDebugLogging","setEnableButtonTutorial","setButtonTutorialCompletionAudioUri","uri","setShowRowingPhoneCalibration","setFeedbacksUIToExclude","feedbacksToExclude","setExcludedFeedbacks","excludedFeedbacks","setConfigString","configString","clearAdaptiveRomCache","quitWorkout","pauseSDK","resumeSDK","getSupportedMovements","getExerciseType","detector","setPoseModelChoice","choice"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,SAASA,aAAa,EAAEC,QAAQ,QAAQ,cAAc;AACtD,OAAO,KAAKC,gBAAgB,MAAM,aAAa;AAC/C,SAASA,gBAAgB;AAEzB,MAAMC,aAAa,GACjB,gFAAgF,GAChFF,QAAQ,CAACG,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;;AAEjC;AACA,MAAMC,cAAc,GAAGP,aAAa,CAAC,gBAAgB,CAAC,GAClDA,aAAa,CAAC,gBAAgB,CAAC,GAC/B,IAAIQ,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACP,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AA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,eAAe,CAACC,YAAY,CAAC;AACrD;;AAEA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAAA,EAAkB;EACrD,OAAOhF,cAAc,CAACgF,qBAAqB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA,OAAO,SAASC,WAAWA,CAAA,EAAkB;EAC3C,OAAOjF,cAAc,CAACiF,WAAW,CAAC,CAAC;AACrC;;AAEA;AACA;AACA;AACA,OAAO,SAASC,QAAQA,CAAA,EAAkB;EACxC,OAAOlF,cAAc,CAACkF,QAAQ,CAAC,CAAC;AAClC;;AAEA;AACA;AACA;AACA,OAAO,SAASC,SAASA,CAAA,EAAkB;EACzC,OAAOnF,cAAc,CAACmF,SAAS,CAAC,CAAC;AACnC;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAAA,EAAsB;EACzD,OAAOpF,cAAc,CAACoF,qBAAqB,CAAC,CAAC;AAC/C;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,QAAgB,EAAmB;EACjE,OAAOtF,cAAc,CAACqF,eAAe,CAACC,QAAQ,CAAC;AACjD;;AAEA;AACA;AACA;AACA;AACA,OAAO,SAASC,kBAAkBA,CAACC,MAAwC,EAAiB;EAC1F,OAAOxF,cAAc,CAACuF,kBAAkB,CAACC,MAAM,CAAC;AAClD","ignoreList":[]}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
3
|
+
type JsonObject = {
|
|
4
|
+
[key: string]: JsonValue | undefined;
|
|
5
|
+
};
|
|
6
|
+
export declare enum AssessmentTypes {
|
|
7
|
+
Fitness = "fitness",
|
|
8
|
+
Custom = "custom",
|
|
9
|
+
Body360 = "body360",
|
|
10
|
+
Cardio = "cardio",
|
|
11
|
+
Strength = "strength"
|
|
12
|
+
}
|
|
13
|
+
export declare enum PauseType {
|
|
14
|
+
Resume = "resume",
|
|
15
|
+
Skip = "skip",
|
|
16
|
+
StartOver = "startOver",
|
|
17
|
+
Quit = "quit",
|
|
18
|
+
Rest = "rest",
|
|
19
|
+
Switch = "switchExercise"
|
|
20
|
+
}
|
|
21
|
+
export declare enum UIElement {
|
|
22
|
+
RepsCounter = "repsCounter",
|
|
23
|
+
Timer = "timer",
|
|
24
|
+
GaugeOfMotion = "gaugeOfMotion",
|
|
25
|
+
Skeleton = "skeleton",
|
|
26
|
+
HoldingPosition = "holdingPosition",
|
|
27
|
+
CountdownTimer = "countdownTimer",
|
|
28
|
+
QuickMotion = "quickMotion"
|
|
29
|
+
}
|
|
30
|
+
export declare enum BodyZone {
|
|
31
|
+
UpperBody = "UpperBody",
|
|
32
|
+
LowerBody = "LowerBody",
|
|
33
|
+
FullBody = "FullBody"
|
|
34
|
+
}
|
|
35
|
+
export declare enum WorkoutDifficulty {
|
|
36
|
+
LowDifficulty = "LowDifficulty",
|
|
37
|
+
MidDifficulty = "MidDifficulty",
|
|
38
|
+
HighDifficulty = "HighDifficulty"
|
|
39
|
+
}
|
|
40
|
+
export declare enum WorkoutDuration {
|
|
41
|
+
Short = "Short",
|
|
42
|
+
Long = "Long"
|
|
43
|
+
}
|
|
44
|
+
export declare enum ScoringType {
|
|
45
|
+
Rom = "rom",
|
|
46
|
+
Time = "time",
|
|
47
|
+
Reps = "reps"
|
|
48
|
+
}
|
|
49
|
+
export declare enum Gender {
|
|
50
|
+
Female = "Female",
|
|
51
|
+
Male = "Male",
|
|
52
|
+
Other = "Rather not say"
|
|
53
|
+
}
|
|
54
|
+
export declare enum Language {
|
|
55
|
+
English = "en",
|
|
56
|
+
Hebrew = "he"
|
|
57
|
+
}
|
|
58
|
+
export declare enum CounterPreferences {
|
|
59
|
+
Default = "Default",
|
|
60
|
+
PerfectOnly = "PerfectOnly"
|
|
61
|
+
}
|
|
62
|
+
export declare enum EndExercisePreferences {
|
|
63
|
+
Default = "Default",
|
|
64
|
+
TargetBased = "TargetBased"
|
|
65
|
+
}
|
|
66
|
+
export declare enum ColorTheme {
|
|
67
|
+
Blue = "blue",
|
|
68
|
+
Green = "green",
|
|
69
|
+
Purple = "purple",
|
|
70
|
+
Orange = "orange",
|
|
71
|
+
Silver = "silver",
|
|
72
|
+
Gold = "gold",
|
|
73
|
+
Pink = "pink"
|
|
74
|
+
}
|
|
75
|
+
export declare enum PoseModelChoice {
|
|
76
|
+
AdaptiveChoice = "AdaptiveChoice",
|
|
77
|
+
Prime = "Prime",
|
|
78
|
+
Pro = "Pro",
|
|
79
|
+
Lite = "Lite",
|
|
80
|
+
UltraLite = "UltraLite",
|
|
81
|
+
Basic = "Basic"
|
|
82
|
+
}
|
|
83
|
+
export declare enum PhonePosition {
|
|
84
|
+
Floor = "floor",
|
|
85
|
+
Elevated = "elevated"
|
|
86
|
+
}
|
|
87
|
+
export declare enum RowingFeedbackLevel {
|
|
88
|
+
Expert = "expert",
|
|
89
|
+
Advanced = "advanced",
|
|
90
|
+
Beginner = "beginner"
|
|
91
|
+
}
|
|
92
|
+
export declare enum GuidanceVideoSegmentKind {
|
|
93
|
+
Freeze = "freeze",
|
|
94
|
+
Play = "play"
|
|
95
|
+
}
|
|
96
|
+
export declare enum SkeletonPreset {
|
|
97
|
+
Default = "defaultPreset",
|
|
98
|
+
MinimalDots = "minimalDots",
|
|
99
|
+
ThinOutline = "thinOutline",
|
|
100
|
+
MonochromeClean = "monochromeClean",
|
|
101
|
+
NeonGlow = "neonGlow",
|
|
102
|
+
BoldHighlight = "boldHighlight",
|
|
103
|
+
SoftFill = "softFill",
|
|
104
|
+
Wireframe = "wireframe",
|
|
105
|
+
HighContrast = "highContrast",
|
|
106
|
+
Pastel = "pastel",
|
|
107
|
+
DarkOutline = "darkOutline",
|
|
108
|
+
MinimalLine = "minimalLine",
|
|
109
|
+
DoubleStroke = "doubleStroke",
|
|
110
|
+
GradientReady = "gradientReady",
|
|
111
|
+
SubtleShadow = "subtleShadow",
|
|
112
|
+
Classic = "classic",
|
|
113
|
+
Athletic = "athletic",
|
|
114
|
+
Premium = "premium",
|
|
115
|
+
Hologram = "hologram",
|
|
116
|
+
Matte = "matte",
|
|
117
|
+
NeonPulse = "neonPulse",
|
|
118
|
+
OutlineOnly = "outlineOnly",
|
|
119
|
+
Slim = "slim",
|
|
120
|
+
Thick = "thick",
|
|
121
|
+
Studio = "studio",
|
|
122
|
+
Accessibility = "accessibility"
|
|
123
|
+
}
|
|
124
|
+
export declare enum SkeletonConnectionStyle {
|
|
125
|
+
None = "none",
|
|
126
|
+
Dotted = "dotted",
|
|
127
|
+
Dashed = "dashed",
|
|
128
|
+
Solid = "solid",
|
|
129
|
+
LongDashed = "longDashed",
|
|
130
|
+
ThinDots = "thinDots",
|
|
131
|
+
DotDashed = "dotDashed",
|
|
132
|
+
Rounded = "rounded"
|
|
133
|
+
}
|
|
134
|
+
export declare enum SkeletonJointShape {
|
|
135
|
+
Circle = "circle",
|
|
136
|
+
Square = "square",
|
|
137
|
+
Triangle = "triangle",
|
|
138
|
+
Diamond = "diamond",
|
|
139
|
+
Star = "star",
|
|
140
|
+
Hexagon = "hexagon"
|
|
141
|
+
}
|
|
142
|
+
export declare enum SkeletonColorOption {
|
|
143
|
+
White = "white",
|
|
144
|
+
Black = "black",
|
|
145
|
+
Red = "red",
|
|
146
|
+
Blue = "blue",
|
|
147
|
+
Green = "green",
|
|
148
|
+
Yellow = "yellow",
|
|
149
|
+
Orange = "orange",
|
|
150
|
+
Purple = "purple",
|
|
151
|
+
Gray = "gray",
|
|
152
|
+
Cyan = "cyan",
|
|
153
|
+
LightGray = "lightGray",
|
|
154
|
+
DarkGray = "darkGray",
|
|
155
|
+
OffWhite = "offWhite",
|
|
156
|
+
Charcoal = "charcoal",
|
|
157
|
+
LightBlue = "lightBlue",
|
|
158
|
+
DarkBlue = "darkBlue",
|
|
159
|
+
LightGreen = "lightGreen",
|
|
160
|
+
DarkGreen = "darkGreen",
|
|
161
|
+
LightPurple = "lightPurple",
|
|
162
|
+
DarkPurple = "darkPurple",
|
|
163
|
+
Gold = "gold",
|
|
164
|
+
DarkGold = "darkGold",
|
|
165
|
+
LightPink = "lightPink",
|
|
166
|
+
DarkPink = "darkPink",
|
|
167
|
+
MediumGray = "mediumGray",
|
|
168
|
+
Silver = "silver",
|
|
169
|
+
Navy = "navy",
|
|
170
|
+
ForestGreen = "forestGreen",
|
|
171
|
+
Lavender = "lavender",
|
|
172
|
+
RosePink = "rosePink"
|
|
173
|
+
}
|
|
174
|
+
export declare class SkeletonConfig {
|
|
175
|
+
hidden?: boolean;
|
|
176
|
+
preset?: SkeletonPreset;
|
|
177
|
+
connectionStyle?: SkeletonConnectionStyle;
|
|
178
|
+
jointShape?: SkeletonJointShape;
|
|
179
|
+
dotsOpacity?: number;
|
|
180
|
+
connectionsOpacity?: number;
|
|
181
|
+
dotsInnerColor?: SkeletonColorOption;
|
|
182
|
+
dotsOuterColor?: SkeletonColorOption;
|
|
183
|
+
connectionsInnerColor?: SkeletonColorOption;
|
|
184
|
+
connectionsOuterColor?: SkeletonColorOption;
|
|
185
|
+
dotsGlow?: number;
|
|
186
|
+
connectionsGlow?: number;
|
|
187
|
+
lineWidthScale?: number;
|
|
188
|
+
outlineScale?: number;
|
|
189
|
+
softness?: number;
|
|
190
|
+
animationDuration?: number;
|
|
191
|
+
}
|
|
192
|
+
export type QuickMotionParams = {
|
|
193
|
+
validityWindow?: number;
|
|
194
|
+
checkInterval?: number;
|
|
195
|
+
};
|
|
196
|
+
export type GuidanceVideoSegmentConfig = {
|
|
197
|
+
kind: GuidanceVideoSegmentKind | 'freeze' | 'play';
|
|
198
|
+
startSeconds: number;
|
|
199
|
+
endSeconds?: number | null;
|
|
200
|
+
};
|
|
201
|
+
export declare class GuidanceVideoSegment {
|
|
202
|
+
kind: GuidanceVideoSegmentKind | 'freeze' | 'play';
|
|
203
|
+
startSeconds: number;
|
|
204
|
+
endSeconds: number | null;
|
|
205
|
+
constructor(kind: GuidanceVideoSegmentKind | 'freeze' | 'play', startSeconds: number, endSeconds?: number | null);
|
|
206
|
+
static freeze(at: number): GuidanceVideoSegment;
|
|
207
|
+
static play(from: number, to?: number | null): GuidanceVideoSegment;
|
|
208
|
+
toJSON(): {
|
|
209
|
+
[key: string]: JsonValue;
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
export type StretchSetConfigOptions = {
|
|
213
|
+
enabled?: boolean;
|
|
214
|
+
restSecondsBetweenStretches?: number;
|
|
215
|
+
introSoundKey?: string | null;
|
|
216
|
+
positionDetectors?: string[] | null;
|
|
217
|
+
};
|
|
218
|
+
export declare class StretchSetConfig {
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
repetitions: number;
|
|
221
|
+
secondsPerStretch: number;
|
|
222
|
+
restSecondsBetweenStretches: number;
|
|
223
|
+
introSoundKey: string | null;
|
|
224
|
+
positionDetectors: string[] | null;
|
|
225
|
+
constructor(repetitions: number, secondsPerStretch: number, options?: StretchSetConfigOptions);
|
|
226
|
+
toJSON(): {
|
|
227
|
+
[key: string]: JsonValue;
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
export type ExerciseOptions = {
|
|
231
|
+
shortIntro?: boolean;
|
|
232
|
+
quickMotionParams?: QuickMotionParams | null;
|
|
233
|
+
rowingFeedbackLevel?: RowingFeedbackLevel | number | null;
|
|
234
|
+
phonePosition?: PhonePosition | null;
|
|
235
|
+
guidanceMode?: boolean | null;
|
|
236
|
+
useWideAngleCamera?: boolean | null;
|
|
237
|
+
playPreExerciseCountdown?: boolean;
|
|
238
|
+
playRepMilestoneVoice?: boolean;
|
|
239
|
+
repMilestoneInterval?: number;
|
|
240
|
+
playSoundOnEachRep?: boolean;
|
|
241
|
+
adaptiveRomFeedbackEnabled?: boolean;
|
|
242
|
+
adaptiveRomWarmupReps?: number;
|
|
243
|
+
guidanceVideoSegments?: Record<string, GuidanceVideoSegment | GuidanceVideoSegmentConfig> | null;
|
|
244
|
+
stretchSetConfig?: StretchSetConfig | null;
|
|
245
|
+
side?: string | null;
|
|
246
|
+
showTargetProgress?: boolean;
|
|
247
|
+
};
|
|
248
|
+
export declare class SMExercise {
|
|
249
|
+
detector: string;
|
|
250
|
+
uiElements: UIElement[] | null;
|
|
251
|
+
videoInstruction: string | null;
|
|
252
|
+
totalSeconds: number | null;
|
|
253
|
+
prettyName: string | null;
|
|
254
|
+
exerciseIntro: string | null;
|
|
255
|
+
exerciseClosure: string | null;
|
|
256
|
+
scoringParams: SMScoringParams | null;
|
|
257
|
+
options: ExerciseOptions;
|
|
258
|
+
constructor(prettyName: string | null, totalSeconds: number | null, videoInstruction: string | null, exerciseIntro: string | null, uiElements: UIElement[] | null, detector: string, exerciseClosure: string | null, scoringParams: SMScoringParams | null, options?: ExerciseOptions);
|
|
259
|
+
toJSON(): {
|
|
260
|
+
[key: string]: JsonValue;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
export type AssessmentExerciseOptions = ExerciseOptions;
|
|
264
|
+
export declare class SMAssessmentExercise extends SMExercise {
|
|
265
|
+
closureFailedSound: string | null;
|
|
266
|
+
summaryTitle: string | null;
|
|
267
|
+
summarySubTitle: string | null;
|
|
268
|
+
summaryMainMetricTitle: string | null;
|
|
269
|
+
summaryMainMetricSubTitle: string | null;
|
|
270
|
+
constructor(prettyName: string | null, totalSeconds: number | null, videoInstruction: string | null, exerciseIntro: string | null, uiElements: UIElement[] | null, detector: string, exerciseClosure: string | null, scoringParams: SMScoringParams | null, closureFailedSound: string | null, summaryTitle: string | null, summarySubTitle: string | null, summaryMainMetricTitle: string | null, summaryMainMetricSubTitle: string | null, options?: AssessmentExerciseOptions);
|
|
271
|
+
toJSON(): {
|
|
272
|
+
[key: string]: JsonValue;
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
export declare class WorkoutContinuation {
|
|
276
|
+
introSoundKey: string | null;
|
|
277
|
+
interactionUnlockSoundKey: string;
|
|
278
|
+
exercises: SMExercise[];
|
|
279
|
+
constructor(interactionUnlockSoundKey: string, exercises: SMExercise[], introSoundKey?: string | null);
|
|
280
|
+
toJSON(): {
|
|
281
|
+
[key: string]: JsonValue;
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
export declare class SMWorkout {
|
|
285
|
+
id: string | null;
|
|
286
|
+
name: string | null;
|
|
287
|
+
workoutIntro: string | null;
|
|
288
|
+
soundtrack: string | null;
|
|
289
|
+
exercises: SMExercise[];
|
|
290
|
+
getInFrame: string | null;
|
|
291
|
+
bodycalFinished: string | null;
|
|
292
|
+
workoutClosure: string | null;
|
|
293
|
+
continuation: WorkoutContinuation | null;
|
|
294
|
+
constructor(id: string | null, name: string | null, workoutIntro: string | null, soundtrack: string | null, exercises: SMExercise[], getInFrame: string | null, bodycalFinished: string | null, workoutClosure: string | null, continuation?: WorkoutContinuation | null);
|
|
295
|
+
toJSON(): {
|
|
296
|
+
[key: string]: JsonValue;
|
|
297
|
+
};
|
|
298
|
+
toJson(): string;
|
|
299
|
+
}
|
|
300
|
+
export declare class SMScoringParams {
|
|
301
|
+
type: ScoringType | null;
|
|
302
|
+
scoreFactor: number | null;
|
|
303
|
+
targetTime: number | null;
|
|
304
|
+
targetReps: number | null;
|
|
305
|
+
targetRom: string | null;
|
|
306
|
+
passCriteria: string[] | null;
|
|
307
|
+
constructor(type: ScoringType | null, scoreFactor: number | null, targetTime: number | null, targetReps: number | null, targetRom: string | null, passCriteria: string[] | null);
|
|
308
|
+
toJSON(): {
|
|
309
|
+
[key: string]: JsonValue;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
export type WorkoutConfigOptions = {
|
|
313
|
+
phonePosition?: PhonePosition;
|
|
314
|
+
shortIntro?: boolean;
|
|
315
|
+
};
|
|
316
|
+
export declare class WorkoutConfig {
|
|
317
|
+
week: number;
|
|
318
|
+
bodyZone: BodyZone;
|
|
319
|
+
difficultyLevel: WorkoutDifficulty;
|
|
320
|
+
workoutDuration: WorkoutDuration;
|
|
321
|
+
language: Language;
|
|
322
|
+
programID: string;
|
|
323
|
+
phonePosition: PhonePosition;
|
|
324
|
+
shortIntro: boolean;
|
|
325
|
+
constructor(week: number, bodyZone: BodyZone, difficultyLevel: WorkoutDifficulty, workoutDuration: WorkoutDuration, language: Language, programID: string, options?: WorkoutConfigOptions);
|
|
326
|
+
toJSON(): {
|
|
327
|
+
[key: string]: JsonValue;
|
|
328
|
+
};
|
|
329
|
+
toJson(): string;
|
|
330
|
+
}
|
|
331
|
+
export declare class UserData {
|
|
332
|
+
gender: Gender;
|
|
333
|
+
age: number;
|
|
334
|
+
email: string | null;
|
|
335
|
+
constructor(gender: Gender, age: number, email?: string | null);
|
|
336
|
+
toJSON(): {
|
|
337
|
+
[key: string]: JsonValue;
|
|
338
|
+
};
|
|
339
|
+
toJson(): string;
|
|
340
|
+
}
|
|
341
|
+
export {};
|
|
342
|
+
//# sourceMappingURL=SMWorkout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SMWorkout.d.ts","sourceRoot":"","sources":["../../src/SMWorkout.tsx"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AACtD,KAAK,SAAS,GAAG,aAAa,GAAG,UAAU,GAAG,SAAS,EAAE,CAAC;AAC1D,KAAK,UAAU,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAA;CAAE,CAAC;AA8B3D,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,SAAS;IACnB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,mBAAmB;CAC1B;AAED,oBAAY,SAAS;IACnB,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,aAAa,kBAAkB;IAC/B,QAAQ,aAAa;IACrB,eAAe,o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|
|
|
1
|
+
import * as SMWorkoutLibrary from './SMWorkout';
|
|
2
|
+
export { SMWorkoutLibrary };
|
|
3
|
+
/**
|
|
4
|
+
* This function will configure the sdk
|
|
5
|
+
* @param {string} key - your auth key
|
|
6
|
+
* @param {SMWorkoutLibrary.Language} language - Optional configure language. Defaults to English.
|
|
7
|
+
*/
|
|
8
|
+
export declare function configure(key: string, language?: SMWorkoutLibrary.Language): Promise<string>;
|
|
9
|
+
/**
|
|
10
|
+
* start an assessment session.
|
|
11
|
+
*
|
|
12
|
+
* @param {SMWorkoutLibrary.AssessmentTypes} type - The type of assessment to start.
|
|
13
|
+
* @param {boolean} showSummary - Determines if the summary should be shown after assessment completion.
|
|
14
|
+
* @param {SMWorkoutLibrary.UserData | null} userData - User data for the assessment session, or `null` if no user data is provided.
|
|
15
|
+
* @param {boolean} forceShowUserDataScreen - Forces the display of the user data screen even if user data is provided.
|
|
16
|
+
* @param {string} customAssessmentID - A unique identifier for a custom assessment session.
|
|
17
|
+
* @param {string | null} modifications - Optional JSON string with exercise feedback parameter modifications.
|
|
18
|
+
* @returns {Promise<{ summary: string; didFinish: boolean }>} - A promise that resolves with an object containing the summary and a flag indicating whether the assessment finished.
|
|
19
|
+
*/
|
|
20
|
+
export declare function startAssessment(type: SMWorkoutLibrary.AssessmentTypes, showSummary: boolean, userData: SMWorkoutLibrary.UserData | null, forceShowUserDataScreen: boolean, customAssessmentID: string, modifications: string | null): Promise<{
|
|
21
|
+
summary: string;
|
|
22
|
+
didFinish: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Starts a custom workout session.
|
|
26
|
+
*
|
|
27
|
+
* @param {SMWorkoutLibrary.SMWorkout} workout - The custom workout configuration.
|
|
28
|
+
* @param {string | null} modifications - Optional JSON string with exercise feedback parameter modifications.
|
|
29
|
+
* @returns {Promise<{ summary: string; didFinish: boolean }>} - A promise that resolves with an object containing the summary and a flag indicating if the workout session finished.
|
|
30
|
+
*/
|
|
31
|
+
export declare function startCustomWorkout(workout: SMWorkoutLibrary.SMWorkout, modifications: string | null): Promise<{
|
|
32
|
+
summary: string;
|
|
33
|
+
didFinish: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* Initiates a custom assessment session.
|
|
37
|
+
*
|
|
38
|
+
* @param {SMWorkoutLibrary.SMWorkout} assessment - The assessment configuration for the session.
|
|
39
|
+
* @param {SMWorkoutLibrary.UserData | null} userData - User data for the assessment, or `null` if no user data is provided.
|
|
40
|
+
* @param {boolean} forceShowUserDataScreen - Forces the display of the user data screen even if user data is provided.
|
|
41
|
+
* @param {boolean} showSummary - Determines if the summary should be shown after assessment completion.
|
|
42
|
+
* @param {string | null} modifications - Optional JSON string with exercise feedback parameter modifications.
|
|
43
|
+
* @returns {Promise<{ summary: string; didFinish: boolean }>} - A promise that resolves with an object containing the summary and a flag indicating if the assessment finished.
|
|
44
|
+
*/
|
|
45
|
+
export declare function startCustomAssessment(assessment: SMWorkoutLibrary.SMWorkout, userData: SMWorkoutLibrary.UserData | null, forceShowUserDataScreen: boolean, showSummary: boolean, modifications: string | null): Promise<{
|
|
46
|
+
summary: string;
|
|
47
|
+
didFinish: boolean;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Starts a workout program using the provided workout configuration.
|
|
51
|
+
*
|
|
52
|
+
* @param {SMWorkoutLibrary.WorkoutConfig} workoutConfig - The configuration for the workout program.
|
|
53
|
+
* @param {string | null} modifications - Optional JSON string with exercise feedback parameter modifications.
|
|
54
|
+
* @returns {Promise<{ summary: string; didFinish: boolean }>} - A promise that resolves with an object containing the summary and a flag indicating if the workout program finished.
|
|
55
|
+
*/
|
|
56
|
+
export declare function startWorkoutProgram(workoutConfig: SMWorkoutLibrary.WorkoutConfig, modifications: string | null): Promise<{
|
|
57
|
+
summary: string;
|
|
58
|
+
didFinish: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
/**
|
|
61
|
+
* Sets a text language for the current workout session
|
|
62
|
+
* @param {SMWorkoutLibrary} language - The language that you would like to set.
|
|
63
|
+
*/
|
|
64
|
+
export declare function setSessionLanguage(language: SMWorkoutLibrary.Language): Promise<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Sets the display language of the phone calibration screen.
|
|
67
|
+
* Defaults to English if not called.
|
|
68
|
+
* @param {SMWorkoutLibrary.Language} language - The language to display on the phone calibration screen.
|
|
69
|
+
*/
|
|
70
|
+
export declare function setPhoneCalibrationLanguage(language: SMWorkoutLibrary.Language): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Sets the closure target for the workout session.
|
|
73
|
+
* @param {SMWorkoutLibrary.EndExercisePreferences} endExercisePreferences - The closure target to set.
|
|
74
|
+
*/
|
|
75
|
+
export declare function setEndExercisePreferences(endExercisePreferences: SMWorkoutLibrary.EndExercisePreferences): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Sets the counter preferences for the workout session.
|
|
78
|
+
* @param {SMWorkoutLibrary.CounterPreferences} counterPreferences - The counter preferences to set.
|
|
79
|
+
*/
|
|
80
|
+
export declare function setCounterPreferences(counterPreferences: SMWorkoutLibrary.CounterPreferences): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* Enables or disables intelligence rest (fatigue detection).
|
|
83
|
+
* Default is false (disabled).
|
|
84
|
+
* @param {boolean} enabled - Whether intelligence rest should be active.
|
|
85
|
+
*/
|
|
86
|
+
export declare function setIntelligenceRestEnabled(enabled: boolean): Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Configures instruction video display behavior.
|
|
89
|
+
* @param {object} config - Video instruction configuration.
|
|
90
|
+
* @param {string} config.displayMode - "default" or "mediumCycle".
|
|
91
|
+
* @param {number} config.mediumSizeCycles - Number of medium-size cycles (1-5, default 2).
|
|
92
|
+
*/
|
|
93
|
+
export declare function setInstructionVideoConfig(config: {
|
|
94
|
+
displayMode: string;
|
|
95
|
+
mediumSizeCycles?: number;
|
|
96
|
+
}): Promise<void>;
|
|
97
|
+
/**
|
|
98
|
+
* Configures the skeleton visualization style.
|
|
99
|
+
* @param {SMWorkoutLibrary.SkeletonConfig} config - Skeleton configuration object.
|
|
100
|
+
*/
|
|
101
|
+
export declare function setSkeletonSettings(config: SMWorkoutLibrary.SkeletonConfig): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
* Sets which buttons are shown in the pause overlay.
|
|
104
|
+
* On Android: Resume, Skip, StartOver, Quit, Rest, Switch
|
|
105
|
+
* On iOS: Resume, Skip, StartOver, Quit, Rest, Switch
|
|
106
|
+
* @param {SMWorkoutLibrary.PauseType[]} types - Array of pause dialog button types to show.
|
|
107
|
+
*/
|
|
108
|
+
export declare function setPauseTypes(types: SMWorkoutLibrary.PauseType[]): Promise<void>;
|
|
109
|
+
/**
|
|
110
|
+
* Allows the SDK audio to mix with external app audio.
|
|
111
|
+
* Android support depends on the native SMKit UI version and resolves as a no-op when unavailable.
|
|
112
|
+
* @param {boolean} enabled
|
|
113
|
+
*/
|
|
114
|
+
export declare function setAllowAudioMixing(enabled: boolean): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Shows an in-session button to switch audio source.
|
|
117
|
+
* Android support depends on the native SMKit UI version and resolves as a no-op when unavailable.
|
|
118
|
+
* @param {boolean} enabled
|
|
119
|
+
*/
|
|
120
|
+
export declare function setShowExternalAudioControl(enabled: boolean): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Enables higher-accuracy pose estimation at the cost of performance (iOS only).
|
|
123
|
+
* @param {boolean} enabled
|
|
124
|
+
*/
|
|
125
|
+
export declare function setAccuratePoseEstimation(enabled: boolean): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Sets the SDK color theme for gauge, counters, skeleton accents, and related UI.
|
|
128
|
+
*/
|
|
129
|
+
export declare function setColorTheme(theme: SMWorkoutLibrary.ColorTheme | string): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Plays phone calibration instructions when phone calibration is shown.
|
|
132
|
+
*/
|
|
133
|
+
export declare function setPlayPhoneCalibrationAudio(enabled: boolean): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Plays body calibration local assets during body calibration.
|
|
136
|
+
*/
|
|
137
|
+
export declare function setPlayBodyCalibrationAudio(enabled: boolean): Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Controls whether exercise timers wait for first activity before starting.
|
|
140
|
+
*/
|
|
141
|
+
export declare function setStartTimerOnFirstActivity(enabled: boolean): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* Sets the continuation prompt countdown duration in seconds.
|
|
144
|
+
*/
|
|
145
|
+
export declare function setWorkoutContinuationTimerDuration(seconds: number): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Blocks rep counting and in-position updates while phone movement is detected.
|
|
148
|
+
*/
|
|
149
|
+
export declare function setPhoneMovementCountPreventionEnabled(enabled: boolean): Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Plays variation mismatch feedback for supported hold/dynamic exercise mismatches.
|
|
152
|
+
*/
|
|
153
|
+
export declare function setVariationMismatchFeedbackEnabled(enabled: boolean): Promise<void>;
|
|
154
|
+
/**
|
|
155
|
+
* Uses the native SDK's default guidance mode for supported exercises when per-exercise guidanceMode is not set.
|
|
156
|
+
*/
|
|
157
|
+
export declare function setUseDefaultGuidanceMode(enabled: boolean): Promise<void>;
|
|
158
|
+
/**
|
|
159
|
+
* Enables native guidance debug logging where supported.
|
|
160
|
+
*/
|
|
161
|
+
export declare function setGuidanceDebugLogging(enabled: boolean): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Shows a one-time hover/button tutorial overlay after calibration.
|
|
164
|
+
*/
|
|
165
|
+
export declare function setEnableButtonTutorial(enabled: boolean): Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* Sets an optional local/remote audio URI for button tutorial completion.
|
|
168
|
+
*/
|
|
169
|
+
export declare function setButtonTutorialCompletionAudioUri(uri: string | null): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* iOS-only: controls whether rowing workouts show phone calibration.
|
|
172
|
+
* Android resolves as a no-op for API parity.
|
|
173
|
+
*/
|
|
174
|
+
export declare function setShowRowingPhoneCalibration(enabled: boolean): Promise<void>;
|
|
175
|
+
/**
|
|
176
|
+
* Excludes feedback types from UI display only. Values must be native feedback enum raw names.
|
|
177
|
+
*/
|
|
178
|
+
export declare function setFeedbacksUIToExclude(feedbacksToExclude: string[]): Promise<void>;
|
|
179
|
+
/**
|
|
180
|
+
* Excludes feedback types from data and UI when supported. Unsupported platforms resolve as a no-op.
|
|
181
|
+
*/
|
|
182
|
+
export declare function setExcludedFeedbacks(excludedFeedbacks: string[]): Promise<void>;
|
|
183
|
+
/**
|
|
184
|
+
* Android-only: sets the flat native config string. iOS resolves as a no-op for API parity.
|
|
185
|
+
*/
|
|
186
|
+
export declare function setConfigString(configString: string | null): Promise<void>;
|
|
187
|
+
/**
|
|
188
|
+
* Clears the SDK adaptive ROM cache where supported.
|
|
189
|
+
*/
|
|
190
|
+
export declare function clearAdaptiveRomCache(): Promise<void>;
|
|
191
|
+
/**
|
|
192
|
+
* Quits the active workout where supported.
|
|
193
|
+
*/
|
|
194
|
+
export declare function quitWorkout(): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* iOS-only: pauses the active SDK workout. Android resolves as a no-op for API parity.
|
|
197
|
+
*/
|
|
198
|
+
export declare function pauseSDK(): Promise<void>;
|
|
199
|
+
/**
|
|
200
|
+
* iOS-only: resumes a paused SDK workout. Android resolves as a no-op for API parity.
|
|
201
|
+
*/
|
|
202
|
+
export declare function resumeSDK(): Promise<void>;
|
|
203
|
+
/**
|
|
204
|
+
* iOS-only in current native SDKs: returns supported movement detector names.
|
|
205
|
+
* Android resolves with an empty array for API parity.
|
|
206
|
+
*/
|
|
207
|
+
export declare function getSupportedMovements(): Promise<string[]>;
|
|
208
|
+
/**
|
|
209
|
+
* iOS-only in current native SDKs: returns the native exercise type name for a detector.
|
|
210
|
+
* Android resolves with an empty string for API parity.
|
|
211
|
+
*/
|
|
212
|
+
export declare function getExerciseType(detector: string): Promise<string>;
|
|
213
|
+
/**
|
|
214
|
+
* Android-only: chooses the pose model used during configure.
|
|
215
|
+
* Call before configure for it to affect the current native SDK instance.
|
|
216
|
+
*/
|
|
217
|
+
export declare function setPoseModelChoice(choice: SMWorkoutLibrary.PoseModelChoice): Promise<void>;
|
|
218
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,gBAAgB,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAkF5B;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,gBAAgB,CAAC,QAA4C,GACtE,OAAO,CAAC,MAAM,CAAC,CAYjB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,gBAAgB,CAAC,eAAe,EACtC,WAAW,EAAE,OAAO,EACpB,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,GAAG,IAAI,EAC1C,uBAAuB,EAAE,OAAO,EAChC,kBAAkB,EAAE,MAAM,EAC1B,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAkBlD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,gBAAgB,CAAC,SAAS,EACnC,aAAa,EAAE,MAAM,GAAG,IAAI,GAC3B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,CAAC,CAMlD;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,gBAAgB,CAAC,SAAS,EACtC,QAAQ,EAAE,gBAAgB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,CAAC,CAE1F"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sency/react-native-smkit-ui",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "React Native library for SMKit UI - Advanced fitness assessments and workout programs with AI-powered motion detection and real-time performance tracking",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
7
|
-
"types": "lib/typescript/
|
|
7
|
+
"types": "lib/typescript/index.d.ts",
|
|
8
8
|
"react-native": "src/index",
|
|
9
9
|
"source": "src/index",
|
|
10
10
|
"files": [
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"android",
|
|
14
14
|
"ios",
|
|
15
15
|
"react-native-smkit-ui.podspec",
|
|
16
|
+
"!android/.gradle",
|
|
17
|
+
"!android/build",
|
|
18
|
+
"!android/build/**",
|
|
16
19
|
"!**/__tests__",
|
|
17
20
|
"!**/__fixtures__",
|
|
18
21
|
"!**/__mocks__",
|