@freelensapp/animate 1.6.2 → 1.8.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/dist/index.js +94 -210
- package/dist/src/register-injectables.d.ts +9 -0
- package/package.json +9 -10
package/dist/index.js
CHANGED
|
@@ -1,179 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
|
-
/******/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
|
-
|
|
7
|
-
"use strict";
|
|
8
|
-
__webpack_require__.r(__webpack_exports__);
|
|
9
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10
|
-
/* harmony export */ defaultLeaveDurationForAnimatedInjectable: () => (/* binding */ defaultLeaveDurationForAnimatedInjectable)
|
|
11
|
-
/* harmony export */ });
|
|
12
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(207);
|
|
13
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__);
|
|
14
|
-
/**
|
|
15
|
-
* Copyright (c) Freelens Authors. All rights reserved.
|
|
16
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
17
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
const defaultLeaveDurationForAnimatedInjectable = (0,_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__.getInjectable)({
|
|
21
|
-
id: "default-leave-duration-for-animated",
|
|
22
|
-
instantiate: () => 100,
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/***/ }),
|
|
27
|
-
|
|
28
|
-
/***/ 207:
|
|
29
|
-
/***/ ((module) => {
|
|
30
|
-
|
|
31
|
-
"use strict";
|
|
32
|
-
module.exports = require("@ogre-tools/injectable");
|
|
33
|
-
|
|
34
|
-
/***/ }),
|
|
35
|
-
|
|
36
|
-
/***/ 446:
|
|
37
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
38
|
-
|
|
39
|
-
var map = {
|
|
40
|
-
"./default-enter-duration.injectable.ts": 953,
|
|
41
|
-
"./default-leave-duration.injectable.ts": 192,
|
|
42
|
-
"./request-animation-frame.injectable.ts": 604
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function webpackContext(req) {
|
|
47
|
-
var id = webpackContextResolve(req);
|
|
48
|
-
return __webpack_require__(id);
|
|
49
|
-
}
|
|
50
|
-
function webpackContextResolve(req) {
|
|
51
|
-
if(!__webpack_require__.o(map, req)) {
|
|
52
|
-
var e = new Error("Cannot find module '" + req + "'");
|
|
53
|
-
e.code = 'MODULE_NOT_FOUND';
|
|
54
|
-
throw e;
|
|
55
|
-
}
|
|
56
|
-
return map[req];
|
|
57
|
-
}
|
|
58
|
-
webpackContext.keys = function webpackContextKeys() {
|
|
59
|
-
return Object.keys(map);
|
|
60
|
-
};
|
|
61
|
-
webpackContext.resolve = webpackContextResolve;
|
|
62
|
-
module.exports = webpackContext;
|
|
63
|
-
webpackContext.id = 446;
|
|
64
|
-
|
|
65
|
-
/***/ }),
|
|
66
|
-
|
|
67
|
-
/***/ 604:
|
|
68
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
69
|
-
|
|
70
|
-
"use strict";
|
|
71
|
-
__webpack_require__.r(__webpack_exports__);
|
|
72
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
73
|
-
/* harmony export */ requestAnimationFrameInjectable: () => (/* binding */ requestAnimationFrameInjectable)
|
|
74
|
-
/* harmony export */ });
|
|
75
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(207);
|
|
76
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__);
|
|
77
|
-
/**
|
|
78
|
-
* Copyright (c) Freelens Authors. All rights reserved.
|
|
79
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
80
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
const requestAnimationFrameInjectable = (0,_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__.getInjectable)({
|
|
84
|
-
id: "request-animation-frame",
|
|
85
|
-
// NOTE: this cannot be simplified to just `=> requestAnimationFrame` else an Illegal Invocation error will be thrown
|
|
86
|
-
instantiate: () => (callback) => requestAnimationFrame(callback),
|
|
87
|
-
causesSideEffects: true,
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/***/ }),
|
|
92
|
-
|
|
93
|
-
/***/ 661:
|
|
94
|
-
/***/ ((module, __webpack_exports__, __webpack_require__) => {
|
|
95
|
-
|
|
96
|
-
"use strict";
|
|
97
|
-
|
|
98
|
-
// EXPORTS
|
|
99
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
100
|
-
C: () => (/* binding */ animateFeature)
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
;// external "@freelensapp/feature-core"
|
|
104
|
-
const feature_core_namespaceObject = require("@freelensapp/feature-core");
|
|
105
|
-
;// external "@ogre-tools/injectable-extension-for-auto-registration"
|
|
106
|
-
const injectable_extension_for_auto_registration_namespaceObject = require("@ogre-tools/injectable-extension-for-auto-registration");
|
|
107
|
-
;// ./src/feature.ts
|
|
108
|
-
/* module decorator */ module = __webpack_require__.hmd(module);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
const animateFeature = (0,feature_core_namespaceObject.getFeature)({
|
|
112
|
-
id: "animate-feature",
|
|
113
|
-
register: (di) => {
|
|
114
|
-
(0,injectable_extension_for_auto_registration_namespaceObject.autoRegister)({
|
|
115
|
-
di,
|
|
116
|
-
targetModule: module,
|
|
117
|
-
getRequireContexts: () => [__webpack_require__(446)],
|
|
118
|
-
});
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/***/ }),
|
|
124
|
-
|
|
125
|
-
/***/ 953:
|
|
126
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
127
|
-
|
|
128
|
-
"use strict";
|
|
129
|
-
__webpack_require__.r(__webpack_exports__);
|
|
130
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131
|
-
/* harmony export */ defaultEnterDurationForAnimatedInjectable: () => (/* binding */ defaultEnterDurationForAnimatedInjectable)
|
|
132
|
-
/* harmony export */ });
|
|
133
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(207);
|
|
134
|
-
/* harmony import */ var _ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__);
|
|
135
|
-
/**
|
|
136
|
-
* Copyright (c) Freelens Authors. All rights reserved.
|
|
137
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
138
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
const defaultEnterDurationForAnimatedInjectable = (0,_ogre_tools_injectable__WEBPACK_IMPORTED_MODULE_0__.getInjectable)({
|
|
142
|
-
id: "default-enter-duration-for-animated",
|
|
143
|
-
instantiate: () => 100,
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
/***/ })
|
|
148
|
-
|
|
149
|
-
/******/ });
|
|
150
|
-
/************************************************************************/
|
|
151
|
-
/******/ // The module cache
|
|
152
|
-
/******/ var __webpack_module_cache__ = {};
|
|
153
|
-
/******/
|
|
154
|
-
/******/ // The require function
|
|
155
|
-
/******/ function __webpack_require__(moduleId) {
|
|
156
|
-
/******/ // Check if module is in cache
|
|
157
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
158
|
-
/******/ if (cachedModule !== undefined) {
|
|
159
|
-
/******/ return cachedModule.exports;
|
|
160
|
-
/******/ }
|
|
161
|
-
/******/ // Create a new module (and put it into the cache)
|
|
162
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
163
|
-
/******/ id: moduleId,
|
|
164
|
-
/******/ loaded: false,
|
|
165
|
-
/******/ exports: {}
|
|
166
|
-
/******/ };
|
|
167
|
-
/******/
|
|
168
|
-
/******/ // Execute the module function
|
|
169
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
170
|
-
/******/
|
|
171
|
-
/******/ // Flag the module as loaded
|
|
172
|
-
/******/ module.loaded = true;
|
|
173
|
-
/******/
|
|
174
|
-
/******/ // Return the exports of the module
|
|
175
|
-
/******/ return module.exports;
|
|
176
|
-
/******/ }
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
177
5
|
/******/
|
|
178
6
|
/************************************************************************/
|
|
179
7
|
/******/ /* webpack/runtime/compat get default export */
|
|
@@ -200,21 +28,6 @@ const defaultEnterDurationForAnimatedInjectable = (0,_ogre_tools_injectable__WEB
|
|
|
200
28
|
/******/ };
|
|
201
29
|
/******/ })();
|
|
202
30
|
/******/
|
|
203
|
-
/******/ /* webpack/runtime/harmony module decorator */
|
|
204
|
-
/******/ (() => {
|
|
205
|
-
/******/ __webpack_require__.hmd = (module) => {
|
|
206
|
-
/******/ module = Object.create(module);
|
|
207
|
-
/******/ if (!module.children) module.children = [];
|
|
208
|
-
/******/ Object.defineProperty(module, 'exports', {
|
|
209
|
-
/******/ enumerable: true,
|
|
210
|
-
/******/ set: () => {
|
|
211
|
-
/******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
|
|
212
|
-
/******/ }
|
|
213
|
-
/******/ });
|
|
214
|
-
/******/ return module;
|
|
215
|
-
/******/ };
|
|
216
|
-
/******/ })();
|
|
217
|
-
/******/
|
|
218
31
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
219
32
|
/******/ (() => {
|
|
220
33
|
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
@@ -233,19 +46,16 @@ const defaultEnterDurationForAnimatedInjectable = (0,_ogre_tools_injectable__WEB
|
|
|
233
46
|
/******/
|
|
234
47
|
/************************************************************************/
|
|
235
48
|
var __webpack_exports__ = {};
|
|
236
|
-
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
237
|
-
(() => {
|
|
238
|
-
"use strict";
|
|
239
49
|
// ESM COMPAT FLAG
|
|
240
50
|
__webpack_require__.r(__webpack_exports__);
|
|
241
51
|
|
|
242
52
|
// EXPORTS
|
|
243
53
|
__webpack_require__.d(__webpack_exports__, {
|
|
244
54
|
Animate: () => (/* reexport */ Animate),
|
|
245
|
-
animateFeature: () => (/* reexport */
|
|
246
|
-
defaultEnterDurationForAnimatedInjectable: () => (/* reexport */
|
|
247
|
-
defaultLeaveDurationForAnimatedInjectable: () => (/* reexport */
|
|
248
|
-
requestAnimationFrameInjectable: () => (/* reexport */
|
|
55
|
+
animateFeature: () => (/* reexport */ animateFeature),
|
|
56
|
+
defaultEnterDurationForAnimatedInjectable: () => (/* reexport */ defaultEnterDurationForAnimatedInjectable),
|
|
57
|
+
defaultLeaveDurationForAnimatedInjectable: () => (/* reexport */ defaultLeaveDurationForAnimatedInjectable),
|
|
58
|
+
requestAnimationFrameInjectable: () => (/* reexport */ requestAnimationFrameInjectable)
|
|
249
59
|
});
|
|
250
60
|
|
|
251
61
|
;// external "@freelensapp/utilities"
|
|
@@ -255,12 +65,46 @@ const injectable_react_namespaceObject = require("@ogre-tools/injectable-react")
|
|
|
255
65
|
;// external "react"
|
|
256
66
|
const external_react_namespaceObject = require("react");
|
|
257
67
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_namespaceObject);
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
68
|
+
;// external "@ogre-tools/injectable"
|
|
69
|
+
const injectable_namespaceObject = require("@ogre-tools/injectable");
|
|
70
|
+
;// ./src/default-enter-duration.injectable.ts
|
|
71
|
+
/**
|
|
72
|
+
* Copyright (c) Freelens Authors. All rights reserved.
|
|
73
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
74
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
75
|
+
*/
|
|
76
|
+
|
|
77
|
+
const defaultEnterDurationForAnimatedInjectable = (0,injectable_namespaceObject.getInjectable)({
|
|
78
|
+
id: "default-enter-duration-for-animated",
|
|
79
|
+
instantiate: () => 100,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
;// ./src/default-leave-duration.injectable.ts
|
|
83
|
+
/**
|
|
84
|
+
* Copyright (c) Freelens Authors. All rights reserved.
|
|
85
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
86
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
const defaultLeaveDurationForAnimatedInjectable = (0,injectable_namespaceObject.getInjectable)({
|
|
90
|
+
id: "default-leave-duration-for-animated",
|
|
91
|
+
instantiate: () => 100,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
;// ./src/request-animation-frame.injectable.ts
|
|
95
|
+
/**
|
|
96
|
+
* Copyright (c) Freelens Authors. All rights reserved.
|
|
97
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
98
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
const requestAnimationFrameInjectable = (0,injectable_namespaceObject.getInjectable)({
|
|
102
|
+
id: "request-animation-frame",
|
|
103
|
+
// NOTE: this cannot be simplified to just `=> requestAnimationFrame` else an Illegal Invocation error will be thrown
|
|
104
|
+
instantiate: () => (callback) => requestAnimationFrame(callback),
|
|
105
|
+
causesSideEffects: true,
|
|
106
|
+
});
|
|
107
|
+
|
|
264
108
|
;// ./src/animate.tsx
|
|
265
109
|
/**
|
|
266
110
|
* Copyright (c) Freelens Authors. All rights reserved.
|
|
@@ -326,14 +170,56 @@ const NonInjectedAnimate = (propsAndDeps) => {
|
|
|
326
170
|
const Animate = (0,injectable_react_namespaceObject.withInjectables)(NonInjectedAnimate, {
|
|
327
171
|
getProps: (di, props) => ({
|
|
328
172
|
...props,
|
|
329
|
-
requestAnimationFrame: di.inject(
|
|
330
|
-
defaultEnterDuration: di.inject(
|
|
331
|
-
defaultLeaveDuration: di.inject(
|
|
173
|
+
requestAnimationFrame: di.inject(requestAnimationFrameInjectable),
|
|
174
|
+
defaultEnterDuration: di.inject(defaultEnterDurationForAnimatedInjectable),
|
|
175
|
+
defaultLeaveDuration: di.inject(defaultLeaveDurationForAnimatedInjectable),
|
|
332
176
|
}),
|
|
333
177
|
});
|
|
334
178
|
|
|
335
|
-
|
|
336
|
-
|
|
179
|
+
;// external "@freelensapp/feature-core"
|
|
180
|
+
const feature_core_namespaceObject = require("@freelensapp/feature-core");
|
|
181
|
+
;// ./src/register-injectables.ts
|
|
182
|
+
/**
|
|
183
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
184
|
+
* Generated by scripts/generate-explicit-di-registration.mjs
|
|
185
|
+
*
|
|
186
|
+
* This file explicitly registers all injectables for this package.
|
|
187
|
+
* This replaces the webpack-based auto-registration system.
|
|
188
|
+
*/
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
function registerInjectables(di) {
|
|
193
|
+
try {
|
|
194
|
+
di.register(defaultEnterDurationForAnimatedInjectable);
|
|
195
|
+
}
|
|
196
|
+
catch (e) {
|
|
197
|
+
/* Ignore duplicate registration */
|
|
198
|
+
}
|
|
199
|
+
try {
|
|
200
|
+
di.register(defaultLeaveDurationForAnimatedInjectable);
|
|
201
|
+
}
|
|
202
|
+
catch (e) {
|
|
203
|
+
/* Ignore duplicate registration */
|
|
204
|
+
}
|
|
205
|
+
try {
|
|
206
|
+
di.register(requestAnimationFrameInjectable);
|
|
207
|
+
}
|
|
208
|
+
catch (e) {
|
|
209
|
+
/* Ignore duplicate registration */
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
;// ./src/feature.ts
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
const animateFeature = (0,feature_core_namespaceObject.getFeature)({
|
|
217
|
+
id: "animate-feature",
|
|
218
|
+
register: (di) => {
|
|
219
|
+
registerInjectables(di);
|
|
220
|
+
},
|
|
221
|
+
});
|
|
222
|
+
|
|
337
223
|
;// ./index.ts
|
|
338
224
|
/**
|
|
339
225
|
* Copyright (c) Freelens Authors. All rights reserved.
|
|
@@ -346,8 +232,6 @@ var feature = __webpack_require__(661);
|
|
|
346
232
|
|
|
347
233
|
|
|
348
234
|
|
|
349
|
-
})();
|
|
350
|
-
|
|
351
235
|
module.exports = __webpack_exports__;
|
|
352
236
|
/******/ })()
|
|
353
237
|
;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT
|
|
3
|
+
* Generated by scripts/generate-explicit-di-registration.mjs
|
|
4
|
+
*
|
|
5
|
+
* This file explicitly registers all injectables for this package.
|
|
6
|
+
* This replaces the webpack-based auto-registration system.
|
|
7
|
+
*/
|
|
8
|
+
import type { DiContainerForInjection } from "@ogre-tools/injectable";
|
|
9
|
+
export declare function registerInjectables(di: DiContainerForInjection): void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@freelensapp/animate",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"description": "Highly extendable animate in the Freelens.",
|
|
6
6
|
"type": "commonjs",
|
|
7
7
|
"files": [
|
|
@@ -29,28 +29,27 @@
|
|
|
29
29
|
"homepage": "https://freelens.app",
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@ogre-tools/injectable": "^17.11.1",
|
|
32
|
-
"@ogre-tools/injectable-extension-for-auto-registration": "^17.11.1",
|
|
33
32
|
"@ogre-tools/injectable-react": "^17.11.1",
|
|
34
33
|
"react": "^17.0.2",
|
|
35
|
-
"@freelensapp/feature-core": "^1.
|
|
36
|
-
"@freelensapp/utilities": "^1.
|
|
34
|
+
"@freelensapp/feature-core": "^1.8.0",
|
|
35
|
+
"@freelensapp/utilities": "^1.8.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
|
-
"@types/react": "^17.0.
|
|
38
|
+
"@types/react": "^17.0.90",
|
|
40
39
|
"@types/webpack-env": "^1.18.8",
|
|
41
40
|
"css-loader": "^6.11.0",
|
|
42
41
|
"postcss-loader": "^8.2.0",
|
|
43
42
|
"sass-loader": "^16.0.6",
|
|
44
43
|
"ts-loader": "^9.5.4",
|
|
45
44
|
"typescript": "^5.9.3",
|
|
46
|
-
"webpack": "^5.
|
|
47
|
-
"@freelensapp/
|
|
48
|
-
"@freelensapp/
|
|
49
|
-
"@freelensapp/webpack": "^1.
|
|
45
|
+
"webpack": "^5.104.1",
|
|
46
|
+
"@freelensapp/jest": "^1.8.0",
|
|
47
|
+
"@freelensapp/typescript": "^1.8.0",
|
|
48
|
+
"@freelensapp/webpack": "^1.8.0"
|
|
50
49
|
},
|
|
51
50
|
"scripts": {
|
|
52
51
|
"build": "lens-webpack-build",
|
|
53
52
|
"build:dev": "lens-webpack-build",
|
|
54
|
-
"clean:node_modules": "pnpm dlx rimraf@6.1.
|
|
53
|
+
"clean:node_modules": "pnpm dlx rimraf@6.1.2 node_modules"
|
|
55
54
|
}
|
|
56
55
|
}
|