@amazon-devices/lottie-react-native 3.0.9000000000 → 3.0.9000000001
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/SystemBundles/{735b44a50dba3b902c82350fcec8a8bf35be02aae8115d61ab1fcdfaad4482e5.bundle → 1a0d6ee56ffffc3bf93a1d6da0f7e08a56ae99ed4a5e87a751b20fc27158e5ee.bundle} +3390 -3459
- package/SystemBundles/1a0d6ee56ffffc3bf93a1d6da0f7e08a56ae99ed4a5e87a751b20fc27158e5ee.map +2955 -0
- package/SystemModules/amzn__lottie-react-native-3.private.modules.txt +55 -54
- package/kepler-compatibility.json +3 -2
- package/lib/commonjs/specs/LottieAnimationViewNativeComponent.js +3 -5
- package/lib/commonjs/specs/LottieAnimationViewNativeComponent.js.map +1 -1
- package/lib/module/specs/LottieAnimationViewNativeComponent.js +1 -2
- package/lib/module/specs/LottieAnimationViewNativeComponent.js.map +1 -1
- package/package.json +1 -1
- package/src/specs/LottieAnimationViewNativeComponent.ts +1 -2
- package/SystemBundles/735b44a50dba3b902c82350fcec8a8bf35be02aae8115d61ab1fcdfaad4482e5.map +0 -2950
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
node_modules/@babel/runtime_7.
|
|
2
|
-
node_modules/@babel/runtime_7.
|
|
3
|
-
node_modules/@babel/runtime_7.
|
|
4
|
-
node_modules/@babel/runtime_7.
|
|
5
|
-
node_modules/@babel/runtime_7.
|
|
6
|
-
node_modules/@babel/runtime_7.
|
|
7
|
-
node_modules/@babel/runtime_7.
|
|
8
|
-
node_modules/@babel/runtime_7.
|
|
9
|
-
node_modules/@babel/runtime_7.
|
|
10
|
-
node_modules/@babel/runtime_7.
|
|
11
|
-
node_modules/@babel/runtime_7.
|
|
12
|
-
node_modules/@babel/runtime_7.
|
|
13
|
-
node_modules/@babel/runtime_7.
|
|
14
|
-
node_modules/@babel/runtime_7.28.6/helpers/get.js:d8dcd13dae0a344bbc4a
|
|
15
|
-
node_modules/@babel/runtime_7.28.6/helpers/superPropBase.js:1f15365ae02704dfefe4
|
|
16
|
-
node_modules/@babel/runtime_7.28.6/helpers/classPrivateFieldLooseBase.js:84b970236b4776e847c4
|
|
17
|
-
node_modules/@babel/runtime_7.28.6/helpers/classPrivateFieldLooseKey.js:c408e8c609dabd10913e
|
|
1
|
+
node_modules/@babel/runtime_7.29.2/helpers/objectWithoutProperties.js:54be67f13f7547a51521
|
|
2
|
+
node_modules/@babel/runtime_7.29.2/helpers/objectWithoutPropertiesLoose.js:ae112a2672a8a53f82e5
|
|
3
|
+
node_modules/@babel/runtime_7.29.2/helpers/classCallCheck.js:2bfb5e99807ec81b822f
|
|
4
|
+
node_modules/@babel/runtime_7.29.2/helpers/createClass.js:cc42269051bc9ff17a63
|
|
5
|
+
node_modules/@babel/runtime_7.29.2/helpers/toPropertyKey.js:7519d1b9ea0de500d604
|
|
6
|
+
node_modules/@babel/runtime_7.29.2/helpers/toPrimitive.js:6c47e04d255cdfb1533c
|
|
7
|
+
node_modules/@babel/runtime_7.29.2/helpers/typeof.js:7b6247ce00695d888c36
|
|
8
|
+
node_modules/@babel/runtime_7.29.2/helpers/possibleConstructorReturn.js:80a4a0ee188e065108c9
|
|
9
|
+
node_modules/@babel/runtime_7.29.2/helpers/assertThisInitialized.js:7a9699b26019ae7270f5
|
|
10
|
+
node_modules/@babel/runtime_7.29.2/helpers/getPrototypeOf.js:9c829ff5032996ffdc8e
|
|
11
|
+
node_modules/@babel/runtime_7.29.2/helpers/inherits.js:3ebfecb28bc5857801a2
|
|
12
|
+
node_modules/@babel/runtime_7.29.2/helpers/setPrototypeOf.js:ea37d1dec222e5845b2b
|
|
13
|
+
node_modules/@babel/runtime_7.29.2/helpers/interopRequireDefault.js:d3b57c8ff490ba8c7c47
|
|
18
14
|
node_modules/invariant_2.2.4/browser.js:fd099686726b2dfb6f66
|
|
19
|
-
node_modules/@babel/runtime_7.
|
|
20
|
-
node_modules/@babel/runtime_7.
|
|
21
|
-
node_modules/@babel/runtime_7.
|
|
22
|
-
node_modules/@babel/runtime_7.
|
|
23
|
-
node_modules/@babel/runtime_7.
|
|
24
|
-
node_modules/@babel/runtime_7.
|
|
25
|
-
node_modules/@
|
|
15
|
+
node_modules/@babel/runtime_7.29.2/helpers/get.js:659b028086c2c6f074a3
|
|
16
|
+
node_modules/@babel/runtime_7.29.2/helpers/superPropBase.js:263943b885b53437e9e0
|
|
17
|
+
node_modules/@babel/runtime_7.29.2/helpers/classPrivateFieldLooseBase.js:8e4a72d63eec1bceb909
|
|
18
|
+
node_modules/@babel/runtime_7.29.2/helpers/classPrivateFieldLooseKey.js:3998b40f87a7681fa397
|
|
19
|
+
node_modules/@babel/runtime_7.29.2/helpers/slicedToArray.js:8972a767e9133b0e3a28
|
|
20
|
+
node_modules/@babel/runtime_7.29.2/helpers/arrayWithHoles.js:ee99881fa9643e7bd96f
|
|
21
|
+
node_modules/@babel/runtime_7.29.2/helpers/iterableToArrayLimit.js:1847ec9d510321afd855
|
|
22
|
+
node_modules/@babel/runtime_7.29.2/helpers/unsupportedIterableToArray.js:0c30490eff100ca51d7c
|
|
23
|
+
node_modules/@babel/runtime_7.29.2/helpers/arrayLikeToArray.js:93f664c5afc3b3c0ffb9
|
|
24
|
+
node_modules/@babel/runtime_7.29.2/helpers/nonIterableRest.js:9ef80b625777ecb8d705
|
|
26
25
|
node_modules/nullthrows_1.1.1/nullthrows.js:afd4874b36ccd4e13961
|
|
27
|
-
node_modules/@
|
|
28
|
-
node_modules/@
|
|
29
|
-
node_modules/@babel/runtime_7.
|
|
30
|
-
node_modules/@babel/runtime_7.
|
|
31
|
-
node_modules/@babel/runtime_7.
|
|
32
|
-
node_modules/@babel/runtime_7.28.6/helpers/isNativeReflectConstruct.js:f3459bbdfb4afe15ce21
|
|
33
|
-
node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
|
|
34
|
-
node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
|
|
35
|
-
node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
|
|
26
|
+
node_modules/@babel/runtime_7.29.2/helpers/readOnlyError.js:b769be1a7481ccdab905
|
|
27
|
+
node_modules/@babel/runtime_7.29.2/helpers/wrapNativeSuper.js:b510ad86a9e18c7a79b6
|
|
28
|
+
node_modules/@babel/runtime_7.29.2/helpers/isNativeFunction.js:74c2adc9de6e582a35f1
|
|
29
|
+
node_modules/@babel/runtime_7.29.2/helpers/construct.js:d66ad0c399283f558869
|
|
30
|
+
node_modules/@babel/runtime_7.29.2/helpers/isNativeReflectConstruct.js:22840e4117f5dbcb3b06
|
|
36
31
|
node_modules/stacktrace-parser_0.1.11/dist/stack-trace-parser.cjs.js:aa725aa4c0b37e1add33
|
|
32
|
+
node_modules/promise_8.3.0/setimmediate/finally.js:15bc4ccb25fc2d0c4428
|
|
33
|
+
node_modules/promise_8.3.0/setimmediate/core.js:890f60fa94d3f6854a19
|
|
34
|
+
node_modules/promise_8.3.0/setimmediate/es6-extensions.js:a7846fdeffeb1ebf6241
|
|
37
35
|
node_modules/regenerator-runtime_0.13.11/runtime.js:af823d9710c534173a4d
|
|
36
|
+
node_modules/event-target-shim_5.0.1/dist/event-target-shim.js:2bd3f165b1ed6b916de7
|
|
38
37
|
node_modules/base64-js_1.5.1/index.js:71af70f51435e3e1b37b
|
|
39
38
|
node_modules/whatwg-fetch_3.6.20/dist/fetch.umd.js:ca4b0363146267ef3e77
|
|
40
39
|
node_modules/abort-controller_3.0.0/dist/abort-controller.js:ea8fcbd647aab1cfcdaa
|
|
41
|
-
node_modules/
|
|
42
|
-
node_modules/
|
|
43
|
-
node_modules/
|
|
44
|
-
node_modules
|
|
45
|
-
node_modules
|
|
46
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizeUtils.js:d0ff6d3d1f2c9580ab13
|
|
47
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedList.js:8d139349672eea405ffb
|
|
48
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Utilities/clamp.js:a78a6606e498a2fdbf2d
|
|
49
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Utilities/infoLog.js:017b2813127d2e7f4d70
|
|
50
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/ChildListCollection.js:9c3630060e6e634bfb8b
|
|
51
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/FillRateHelper.js:c1e83141f045b25e26fc
|
|
52
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/ListMetricsAggregator.js:480fcd792bed2eb457f3
|
|
53
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/StateSafePureComponent.js:fd4823cbe6aa108a7d62
|
|
54
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/ViewabilityHelper.js:a44a41089be71f9f7b1e
|
|
55
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListCellRenderer.js:8aa7cf31c704a4a85db2
|
|
56
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListContext.js:4b89f56515b0628d3446
|
|
57
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedListProps.js:516cf3cf4ecb4e256407
|
|
58
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/CellRenderMask.js:95aa36c0870d6d5cfdb1
|
|
59
|
-
node_modules/@react-native/virtualized-lists_0.83.0/Lists/VirtualizedSectionList.js:cb8631f113fda0d4a92c
|
|
40
|
+
node_modules/@react-native/normalize-colors_0.76.2/index.js:0f4f673c966987ba2ec7
|
|
41
|
+
node_modules/@react-native/assets-registry_0.76.2/registry.js:b0ee887d57467fda5032
|
|
42
|
+
node_modules/@react-native/assets-registry_0.76.2/path-support.js:b662bc05df10ceab524d
|
|
43
|
+
node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/index.native.js:d57407eff7026d491c8a
|
|
44
|
+
node_modules/scheduler_0.24.0-canary-efb381bbf-20230505/cjs/scheduler.native.production.min.js:9daefd1335ff675770cb
|
|
60
45
|
node_modules/memoize-one_5.2.1/dist/memoize-one.cjs.js:d381691ed29bec5a2050
|
|
61
|
-
node_modules/@
|
|
62
|
-
node_modules/@react-native
|
|
46
|
+
node_modules/@react-native/virtualized-lists_0.76.2/index.js:ce34dce1b8c31937d5cb
|
|
47
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizeUtils.js:1531d5d02e176dfa5e25
|
|
48
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizedList.js:4cbcfb148dda87ceb8a3
|
|
49
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Interaction/Batchinator.js:0976061b079054f2ae40
|
|
50
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Utilities/clamp.js:b58d15705054b984ff6d
|
|
51
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Utilities/infoLog.js:b4c3f431549ca8c479ef
|
|
52
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/ChildListCollection.js:735006848aac56ccedce
|
|
53
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/FillRateHelper.js:075fff8396d7d1fc272d
|
|
54
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/ListMetricsAggregator.js:8a67333189d65c5109dc
|
|
55
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/StateSafePureComponent.js:e169adb755c7eecf69c8
|
|
56
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/ViewabilityHelper.js:01e196a8a0374fda269b
|
|
57
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizedListCellRenderer.js:9c2e4558b184fc3bb603
|
|
58
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizedListContext.js:8642fcf2d9cf84a5e7b0
|
|
59
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizedListProps.js:860b2961ecf1152722bf
|
|
60
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/CellRenderMask.js:8cc17519e4328c10f517
|
|
61
|
+
node_modules/@react-native/virtualized-lists_0.76.2/Lists/VirtualizedSectionList.js:d6a2055e1e7c78190ef7
|
|
62
|
+
node_modules/@babel/runtime_7.29.2/helpers/asyncToGenerator.js:37d2d0df8e62891cc30d
|
|
63
|
+
node_modules/@react-native-community/cli-platform-android_15.0.1/package.json:0c309b935ae1e8810629
|
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Commands = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _registerGeneratedViewConfig = _interopRequireDefault(require("@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
var _reactNativeKepler = require("@amazon-devices/react-native-kepler");
|
|
10
8
|
/*
|
|
11
9
|
* Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
12
10
|
*
|
|
@@ -24,7 +22,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
|
|
|
24
22
|
|
|
25
23
|
// amznmod_react - change NativeComponentType to HostComponent
|
|
26
24
|
|
|
27
|
-
const Commands = exports.Commands = (0,
|
|
25
|
+
const Commands = exports.Commands = (0, _reactNativeKepler.codegenNativeCommands)({
|
|
28
26
|
supportedCommands: ['play', 'reset', 'pause', 'resume']
|
|
29
27
|
});
|
|
30
28
|
|
|
@@ -88,7 +86,7 @@ const bubblingEventTypes = {
|
|
|
88
86
|
}
|
|
89
87
|
}
|
|
90
88
|
};
|
|
91
|
-
(0,
|
|
89
|
+
(0, _reactNativeKepler.registerGeneratedViewConfig)(LottieNativeComponent, {
|
|
92
90
|
uiViewClassName: LottieNativeComponent,
|
|
93
91
|
validAttributes: viewConfig,
|
|
94
92
|
bubblingEventTypes: bubblingEventTypes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNativeKepler","require","Commands","exports","codegenNativeCommands","supportedCommands","LottieNativeComponent","viewConfig","autoPlay","sourceName","resizeMode","renderMode","sourceJson","sourceURL","imageAssetsFolder","progress","speed","loop","enableMergePathsAndroidForKitKatAndAbove","hardwareAccelerationAndroid","cacheComposition","colorFilters","textFiltersAndroid","textFiltersIOS","textFiltersKepler","bubblingEventTypes","topAnimationFinish","phasedRegistrationNames","bubbled","captured","topAnimationLoad","topAnimationJsonLoad","topAnimationPlay","topAnimationPause","topAnimationResume","register","uiViewClassName","validAttributes","_default","default"],"sources":["LottieAnimationViewNativeComponent.ts"],"sourcesContent":["/*\n * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.\n *\n * Amazon modifications are indicated by [amznmod_* comments].\n */\n\n/*\n * Changelog:\n * Set up lottie-react-native package to build for Kepler\n */\n\nimport type {\n BubblingEventHandler,\n Int32,\n Double,\n Float,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport type { HostComponent, ProcessedColorValue, ViewProps } from 'react-native';\nimport { codegenNativeCommands, registerGeneratedViewConfig as register } from '@amazon-devices/react-native-kepler';\n\nexport type OnAnimationFinishEvent = Readonly<{\n isCancelled: boolean;\n}>;\n\n// amznmod_react - add EmptyEvent type\nexport type EmptyEvent = {\n // Nothing to return in this event\n};\n\ntype ColorFilterStruct = Readonly<{\n keypath: string;\n color: ProcessedColorValue;\n}>;\n\ntype TextFilterIOSStruct = Readonly<{\n keypath: string;\n text: string;\n}>;\n\ntype TextFilterAndroidStruct = Readonly<{\n find: string;\n replace: string;\n}>;\n\ntype TextFilterKeplerStruct = Readonly<{\n keypath: string;\n text: string;\n}>;\n\nexport interface NativeProps extends ViewProps {\n // amznmod_react - add autoPlay as native prop to avoid component mount race condition\n autoPlay?: boolean;\n resizeMode?: string;\n renderMode?: string;\n sourceName?: string;\n sourceJson?: string;\n sourceURL?: string;\n imageAssetsFolder?: string;\n progress?: Float;\n speed?: Double;\n loop?: boolean;\n enableMergePathsAndroidForKitKatAndAbove?: boolean;\n hardwareAccelerationAndroid?: boolean;\n cacheComposition?: boolean;\n colorFilters?: ReadonlyArray<ColorFilterStruct>;\n // dummy that solves codegen issue when there's a ReadonlyArray<Object> without another Object prop\n // https://github.com/reactwg/react-native-new-architecture/discussions/104\n dummy?: Readonly<{ dummy: boolean }>;\n textFiltersAndroid?: ReadonlyArray<TextFilterAndroidStruct>;\n textFiltersIOS?: ReadonlyArray<TextFilterIOSStruct>;\n // amznmod_react - add textFiltersKepler prop\n textFiltersKepler?: ReadonlyArray<TextFilterKeplerStruct>;\n onAnimationFinish?: BubblingEventHandler<\n OnAnimationFinishEvent,\n 'onAnimationFinish'\n >;\n // amznmod_react - add onAnimation... callbacks\n onAnimationLoad?: BubblingEventHandler<EmptyEvent>;\n onAnimationPlay?: BubblingEventHandler<EmptyEvent>;\n onAnimationPause?: BubblingEventHandler<EmptyEvent>;\n onAnimationResume?: BubblingEventHandler<EmptyEvent>;\n // PROJ*-136246 - deprecate onAnimationJsonLoad\n onAnimationJsonLoad?: BubblingEventHandler<EmptyEvent>;\n}\n\n// amznmod_react - change NativeComponentType to HostComponent\ntype LottieViewNativeComponentType = HostComponent<NativeProps>;\n\ninterface NativeCommands {\n play: (\n viewRef: React.ElementRef<LottieViewNativeComponentType>,\n startFrame: Int32,\n endFrame: Int32,\n ) => void;\n reset: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n pause: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n resume: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({\n supportedCommands: ['play', 'reset', 'pause', 'resume'],\n});\n\n// amznmod_react - native component registration to build for Kepler\nconst LottieNativeComponent = 'LottieAnimationView'\nconst viewConfig = {\n autoPlay: true,\n sourceName: true,\n resizeMode: true,\n renderMode: true,\n sourceJson: true,\n sourceURL: true,\n imageAssetsFolder: true,\n progress: true,\n speed: true,\n loop: true,\n enableMergePathsAndroidForKitKatAndAbove: true,\n hardwareAccelerationAndroid: true,\n cacheComposition: true,\n colorFilters: true,\n textFiltersAndroid: true,\n textFiltersIOS: true,\n textFiltersKepler: true,\n};\n\nconst bubblingEventTypes = {\n topAnimationFinish: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationFinish',\n captured: 'onAnimationFinishCapture'\n }\n },\n topAnimationLoad: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationLoad',\n captured: 'onAnimationLoadCapture'\n }\n },\n // PROJ*-136246 - deprecate onAnimationJsonLoad\n topAnimationJsonLoad: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationJsonLoad',\n captured: 'onAnimationJsonLoadCapture'\n }\n },\n topAnimationPlay: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationPlay',\n captured: 'onAnimationPlayCapture'\n }\n },\n topAnimationPause: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationPause',\n captured: 'onAnimationPauseCapture'\n }\n },\n topAnimationResume: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationResume',\n captured: 'onAnimationResumeCapture'\n }\n }\n};\n\nregister(LottieNativeComponent, {uiViewClassName: LottieNativeComponent, validAttributes: viewConfig, bubblingEventTypes: bubblingEventTypes});\nexport default (LottieNativeComponent as unknown) as HostComponent<NativeProps>;"],"mappings":";;;;;;AAoBA,IAAAA,kBAAA,GAAAC,OAAA;AApBA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAeA;;AA6DA;;AAcO,MAAMC,QAAwB,GAAAC,OAAA,CAAAD,QAAA,GAAG,IAAAE,wCAAqB,EAAiB;EAC5EC,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;AACxD,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Q,EAAC7B,qBAAqB,EAAE;EAAC8B,eAAe,EAAE9B,qBAAqB;EAAE+B,eAAe,EAAE9B,UAAU;EAAEkB,kBAAkB,EAAEA;AAAkB,CAAC,CAAC;AAAC,IAAAa,QAAA,GAAAnC,OAAA,CAAAoC,OAAA,GAC/HjC,qBAAqB","ignoreList":[]}
|
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
* Set up lottie-react-native package to build for Kepler
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import codegenNativeCommands from 'react-native
|
|
15
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
14
|
+
import { codegenNativeCommands, registerGeneratedViewConfig as register } from '@amazon-devices/react-native-kepler';
|
|
16
15
|
|
|
17
16
|
// amznmod_react - add EmptyEvent type
|
|
18
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["codegenNativeCommands","register","Commands","supportedCommands","LottieNativeComponent","viewConfig","autoPlay","sourceName","resizeMode","renderMode","sourceJson","sourceURL","imageAssetsFolder","progress","speed","loop","enableMergePathsAndroidForKitKatAndAbove","hardwareAccelerationAndroid","cacheComposition","colorFilters","textFiltersAndroid","textFiltersIOS","textFiltersKepler","bubblingEventTypes","topAnimationFinish","phasedRegistrationNames","bubbled","captured","topAnimationLoad","topAnimationJsonLoad","topAnimationPlay","topAnimationPause","topAnimationResume","uiViewClassName","validAttributes"],"sources":["LottieAnimationViewNativeComponent.ts"],"sourcesContent":["/*\n * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.\n *\n * Amazon modifications are indicated by [amznmod_* comments].\n */\n\n/*\n * Changelog:\n * Set up lottie-react-native package to build for Kepler\n */\n\nimport type {\n BubblingEventHandler,\n Int32,\n Double,\n Float,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport
|
|
1
|
+
{"version":3,"names":["codegenNativeCommands","registerGeneratedViewConfig","register","Commands","supportedCommands","LottieNativeComponent","viewConfig","autoPlay","sourceName","resizeMode","renderMode","sourceJson","sourceURL","imageAssetsFolder","progress","speed","loop","enableMergePathsAndroidForKitKatAndAbove","hardwareAccelerationAndroid","cacheComposition","colorFilters","textFiltersAndroid","textFiltersIOS","textFiltersKepler","bubblingEventTypes","topAnimationFinish","phasedRegistrationNames","bubbled","captured","topAnimationLoad","topAnimationJsonLoad","topAnimationPlay","topAnimationPause","topAnimationResume","uiViewClassName","validAttributes"],"sources":["LottieAnimationViewNativeComponent.ts"],"sourcesContent":["/*\n * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.\n *\n * Amazon modifications are indicated by [amznmod_* comments].\n */\n\n/*\n * Changelog:\n * Set up lottie-react-native package to build for Kepler\n */\n\nimport type {\n BubblingEventHandler,\n Int32,\n Double,\n Float,\n} from 'react-native/Libraries/Types/CodegenTypes';\nimport type { HostComponent, ProcessedColorValue, ViewProps } from 'react-native';\nimport { codegenNativeCommands, registerGeneratedViewConfig as register } from '@amazon-devices/react-native-kepler';\n\nexport type OnAnimationFinishEvent = Readonly<{\n isCancelled: boolean;\n}>;\n\n// amznmod_react - add EmptyEvent type\nexport type EmptyEvent = {\n // Nothing to return in this event\n};\n\ntype ColorFilterStruct = Readonly<{\n keypath: string;\n color: ProcessedColorValue;\n}>;\n\ntype TextFilterIOSStruct = Readonly<{\n keypath: string;\n text: string;\n}>;\n\ntype TextFilterAndroidStruct = Readonly<{\n find: string;\n replace: string;\n}>;\n\ntype TextFilterKeplerStruct = Readonly<{\n keypath: string;\n text: string;\n}>;\n\nexport interface NativeProps extends ViewProps {\n // amznmod_react - add autoPlay as native prop to avoid component mount race condition\n autoPlay?: boolean;\n resizeMode?: string;\n renderMode?: string;\n sourceName?: string;\n sourceJson?: string;\n sourceURL?: string;\n imageAssetsFolder?: string;\n progress?: Float;\n speed?: Double;\n loop?: boolean;\n enableMergePathsAndroidForKitKatAndAbove?: boolean;\n hardwareAccelerationAndroid?: boolean;\n cacheComposition?: boolean;\n colorFilters?: ReadonlyArray<ColorFilterStruct>;\n // dummy that solves codegen issue when there's a ReadonlyArray<Object> without another Object prop\n // https://github.com/reactwg/react-native-new-architecture/discussions/104\n dummy?: Readonly<{ dummy: boolean }>;\n textFiltersAndroid?: ReadonlyArray<TextFilterAndroidStruct>;\n textFiltersIOS?: ReadonlyArray<TextFilterIOSStruct>;\n // amznmod_react - add textFiltersKepler prop\n textFiltersKepler?: ReadonlyArray<TextFilterKeplerStruct>;\n onAnimationFinish?: BubblingEventHandler<\n OnAnimationFinishEvent,\n 'onAnimationFinish'\n >;\n // amznmod_react - add onAnimation... callbacks\n onAnimationLoad?: BubblingEventHandler<EmptyEvent>;\n onAnimationPlay?: BubblingEventHandler<EmptyEvent>;\n onAnimationPause?: BubblingEventHandler<EmptyEvent>;\n onAnimationResume?: BubblingEventHandler<EmptyEvent>;\n // PROJ*-136246 - deprecate onAnimationJsonLoad\n onAnimationJsonLoad?: BubblingEventHandler<EmptyEvent>;\n}\n\n// amznmod_react - change NativeComponentType to HostComponent\ntype LottieViewNativeComponentType = HostComponent<NativeProps>;\n\ninterface NativeCommands {\n play: (\n viewRef: React.ElementRef<LottieViewNativeComponentType>,\n startFrame: Int32,\n endFrame: Int32,\n ) => void;\n reset: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n pause: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n resume: (viewRef: React.ElementRef<LottieViewNativeComponentType>) => void;\n}\n\nexport const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({\n supportedCommands: ['play', 'reset', 'pause', 'resume'],\n});\n\n// amznmod_react - native component registration to build for Kepler\nconst LottieNativeComponent = 'LottieAnimationView'\nconst viewConfig = {\n autoPlay: true,\n sourceName: true,\n resizeMode: true,\n renderMode: true,\n sourceJson: true,\n sourceURL: true,\n imageAssetsFolder: true,\n progress: true,\n speed: true,\n loop: true,\n enableMergePathsAndroidForKitKatAndAbove: true,\n hardwareAccelerationAndroid: true,\n cacheComposition: true,\n colorFilters: true,\n textFiltersAndroid: true,\n textFiltersIOS: true,\n textFiltersKepler: true,\n};\n\nconst bubblingEventTypes = {\n topAnimationFinish: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationFinish',\n captured: 'onAnimationFinishCapture'\n }\n },\n topAnimationLoad: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationLoad',\n captured: 'onAnimationLoadCapture'\n }\n },\n // PROJ*-136246 - deprecate onAnimationJsonLoad\n topAnimationJsonLoad: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationJsonLoad',\n captured: 'onAnimationJsonLoadCapture'\n }\n },\n topAnimationPlay: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationPlay',\n captured: 'onAnimationPlayCapture'\n }\n },\n topAnimationPause: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationPause',\n captured: 'onAnimationPauseCapture'\n }\n },\n topAnimationResume: {\n phasedRegistrationNames: {\n bubbled: 'onAnimationResume',\n captured: 'onAnimationResumeCapture'\n }\n }\n};\n\nregister(LottieNativeComponent, {uiViewClassName: LottieNativeComponent, validAttributes: viewConfig, bubblingEventTypes: bubblingEventTypes});\nexport default (LottieNativeComponent as unknown) as HostComponent<NativeProps>;"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AASA,SAASA,qBAAqB,EAAEC,2BAA2B,IAAIC,QAAQ,QAAQ,2BAA2B;;AAM1G;;AA6DA;;AAcA,OAAO,MAAMC,QAAwB,GAAGH,qBAAqB,CAAiB;EAC5EI,iBAAiB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;AACxD,CAAC,CAAC;;AAEF;AACA,MAAMC,qBAA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E7B,qBAAqB;EAAE8B,eAAe,EAAE7B,UAAU;EAAEkB,kBAAkB,EAAEA;AAAkB,CAAC,CAAC;AAC9I,eAAgBnB,qBAAqB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name": "@amazon-devices/lottie-react-native", "version": "3.0.
|
|
1
|
+
{"name": "@amazon-devices/lottie-react-native", "version": "3.0.9000000001+6.0.0-rc.1", "description": "React Native bindings for Lottie", "main": "lib/commonjs/index.js", "module": "lib/module/index.js", "react-native": "src/index.tsx", "types": "lib/typescript/index.d.ts", "source": "src/index.tsx", "sideEffects": false, "files": ["SystemBundles", "SystemModules", "src", "lib", "android", "ios", "*.podspec", "kepler-compatibility.json", "react-native.config.js", "THIRD_PARTY_NOTICES.txt", "kepler-transformed-package-info.json"], "author": "Emilio Rodriguez <emiliorodriguez@gmail.com>", "homepage": "https://github.com/airbnb/lottie-react-native#readme", "license": "See license in LICENSE", "keywords": ["lottie", "animation", "react", "react-native", "keyframe"], "repository": "https://github.com/react-native-community/lottie-react-native", "bugs": {"url": "https://github.com/react-native-community/lottie-react-native/issues"}, "scripts": {"build": "bob build", "build:release": "npm-run-all build", "test": "jest", "update-api-snapshot": "jest src/__tests__/validate-public-api.test.js -u"}, "//-0": "amznmod_react - Add keplerImport and kepler 3p module aliasing", "keplerImport": true, "kepler": {"temporary-alias-for-package": {"name": "lottie-react-native", "version": "6.0.0-rc.1"}}, "//-1": "amznmod_react - change peerDependencies to make it compatible with multiple RNK versions", "peerDependencies": {"react": "*", "react-native": "*", "@amazon-devices/react-native-kepler": "*"}, "//-2": "amznmod_react - change devDependencies to make it compatible with multiple RNK versions", "devDependencies": {"@amazon-devices/react-native-kepler": "^3.0.0+rn0.76.2", "@react-native-community/eslint-config": "^2.0.0", "@types/jest": "29.5.12", "@types/react": "^18.0.18", "@typescript-eslint/eslint-plugin": "^4.33.0", "@typescript-eslint/parser": "^4.33.0", "eslint": "^7.14.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "3.1.2", "flow-api-translator": "^0.20.1", "jest": "^29.2.1", "metro-react-native-babel-preset": "^0.64.0", "npm-run-all": "^4.1.5", "prettier": "^2.2.1", "react": "^18.2.0", "react-native": "^0.76.2", "react-native-builder-bob": "^0.17.1", "react-native-windows": "0.76.2", "ts-jest": "29.1.2", "typescript": "^4.4.4"}, "react-native-builder-bob": {"source": "src", "output": "lib", "targets": ["commonjs", "module", "typescript"]}, "codegenConfig": {"android": {"javaPackageName": "com.airbnb.android.react.lottie"}, "name": "lottiereactnative", "type": "components", "jsSrcsDir": "./src/specs"}}
|
|
@@ -17,9 +17,8 @@ import type {
|
|
|
17
17
|
Double,
|
|
18
18
|
Float,
|
|
19
19
|
} from 'react-native/Libraries/Types/CodegenTypes';
|
|
20
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
21
20
|
import type { HostComponent, ProcessedColorValue, ViewProps } from 'react-native';
|
|
22
|
-
import register from '@amazon-devices/react-native-kepler
|
|
21
|
+
import { codegenNativeCommands, registerGeneratedViewConfig as register } from '@amazon-devices/react-native-kepler';
|
|
23
22
|
|
|
24
23
|
export type OnAnimationFinishEvent = Readonly<{
|
|
25
24
|
isCancelled: boolean;
|