{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
diff --git a/packages/sound-persea/src/controllers/sound/component.jsx b/packages/sound-persea/src/controllers/sound/component.jsx
index f4bf846..b91dbb9 100644
--- a/packages/sound-persea/src/controllers/sound/component.jsx
+++ b/packages/sound-persea/src/controllers/sound/component.jsx
@@ -9,7 +9,7 @@ import {useJsonPatcher} from '@avocado/resource-persea';
import {
PropTypes,
React,
-} from '@latus/react';
+} from '@flecks/react';
import SoundSource from './src';
diff --git a/packages/sound-persea/src/controllers/sound/src.jsx b/packages/sound-persea/src/controllers/sound/src.jsx
index 07e178f..ec73642 100644
--- a/packages/sound-persea/src/controllers/sound/src.jsx
+++ b/packages/sound-persea/src/controllers/sound/src.jsx
@@ -5,7 +5,7 @@ import {
useEffect,
useRef,
useState,
-} from '@latus/react';
+} from '@flecks/react';
const SoundSource = ({
src,
@@ -15,7 +15,7 @@ const SoundSource = ({
const [url, setUrl] = useState();
useEffect(() => {
const loadAudio = async () => {
- setUrl(URL.createObjectURL(new Blob([await Resource.read(src)])));
+ setUrl(URL.createObjectURL(new window.Blob([await Resource.read(src)])));
};
loadAudio();
return () => {
diff --git a/packages/sound-persea/src/index.js b/packages/sound-persea/src/index.js
index c3efd15..b9d024e 100644
--- a/packages/sound-persea/src/index.js
+++ b/packages/sound-persea/src/index.js
@@ -1,4 +1,4 @@
-import {gatherComponents} from '@latus/react';
+import {Flecks, Hooks} from '@flecks/core';
import AudioController from './controllers/audio';
import SoundController from './controllers/sound';
@@ -9,13 +9,14 @@ export {
};
export default {
- hooks: {
- '@avocado/resource-persea/controllers': () => [
+ [Hooks]: {
+ '@avocado/resource-persea.controllers': () => [
AudioController,
SoundController,
],
- '@avocado/traits-persea/components': gatherComponents(
+ '@avocado/traits-persea.components': Flecks.provide(
require.context('./traits', false, /\.jsx$/),
+ {invoke: false},
),
},
};
diff --git a/packages/sound-persea/src/traits/audible.jsx b/packages/sound-persea/src/traits/audible.jsx
index 8d64c4a..886c1c2 100644
--- a/packages/sound-persea/src/traits/audible.jsx
+++ b/packages/sound-persea/src/traits/audible.jsx
@@ -7,7 +7,7 @@ import {
hot,
PropTypes,
React,
-} from '@latus/react';
+} from '@flecks/react';
const Audible = ({json, path}) => {
const patch = useJsonPatcher();
@@ -15,6 +15,7 @@ const Audible = ({json, path}) => {
const sounds = Object.entries(json.params.sounds).map(([key, sound]) => (
+ {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}
+ {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */}