@webex/cc-ai-assistant 0.0.0-next.12 → 0.0.0-next.14
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/assets/wellness/WellnessBreakAnimationDark.mjs +1 -0
- package/dist/assets/wellness/WellnessBreakAnimationLight.mjs +1 -0
- package/dist/assets/wellness/WellnessBreakSound.mjs +1 -0
- package/dist/assets/wellness/media.cjs +7 -24
- package/dist/index.js +125 -125
- package/dist/types/ai-assistant.types.d.ts +1 -1
- package/package.json +4 -4
- package/dist/assets/wellness/emit-wellness-asset.cjs +0 -9
- package/dist/types/wellness/assets/emit-wellness-asset.d.cts +0 -5
|
@@ -1,27 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
exports.loadWellnessSoundUrl = () =>
|
|
1
|
+
// The package build generates JavaScript modules for the checked-in media.
|
|
2
|
+
// Consumers can load them without an MP3 or JSON loader.
|
|
3
|
+
exports.loadWellnessSoundUrl = () => import('./WellnessBreakSound.mjs').then((module) => module.default);
|
|
4
4
|
|
|
5
5
|
exports.loadWellnessAnimationData = (theme) =>
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
[],
|
|
10
|
-
(require) => resolve(require('./WellnessBreakAnimationDark.json')),
|
|
11
|
-
reject,
|
|
12
|
-
'wellness-animation-dark'
|
|
13
|
-
);
|
|
14
|
-
} else {
|
|
15
|
-
require.ensure(
|
|
16
|
-
[],
|
|
17
|
-
(require) => resolve(require('./WellnessBreakAnimationLight.json')),
|
|
18
|
-
reject,
|
|
19
|
-
'wellness-animation-light'
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
});
|
|
6
|
+
(theme === 'dark' ? import('./WellnessBreakAnimationDark.mjs') : import('./WellnessBreakAnimationLight.mjs')).then(
|
|
7
|
+
(module) => module.default
|
|
8
|
+
);
|
|
23
9
|
|
|
24
|
-
exports.loadLottie = () =>
|
|
25
|
-
new Promise((resolve, reject) => {
|
|
26
|
-
require.ensure([], (require) => resolve(require('lottie-web')), reject, 'lottie-web');
|
|
27
|
-
});
|
|
10
|
+
exports.loadLottie = () => import('lottie-web').then((module) => module.default ?? module);
|