File Not Found on macOS

I downloaded the code_runner_docker.py example and ran it as is.
python 3.11
macOS 15.1
→ python code_runner_docker.py
Using local Docker context since client is not provided..
Traceback (most recent call last):
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 495, in _make_request
    conn.request(
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connection.py", line 441, in request
    self.endheaders()
  File<EMAIL_ADDRESS>line 1298, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File<EMAIL_ADDRESS>line 1058, in _send_output
    self.send(msg)
  File<EMAIL_ADDRESS>line 996, in send
    self.connect()
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/transport/unixconn.py", line 26, in connect
    sock.connect(self.unix_socket)
FileNotFoundError: [Errno 2] No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/requests/adapters.py", line 667, in send
    resp = conn.urlopen(
           ^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 843, in urlopen
    retries = retries.increment(
              ^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/util/retry.py", line 474, in increment
    raise reraise(type(error), error, _stacktrace)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/util/util.py", line 38, in reraise
    raise value.with_traceback(tb)
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 789, in urlopen
    response = self._make_request(
               ^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connectionpool.py", line 495, in _make_request
    conn.request(
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/urllib3/connection.py", line 441, in request
    self.endheaders()
  File<EMAIL_ADDRESS>line 1298, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File<EMAIL_ADDRESS>line 1058, in _send_output
    self.send(msg)
  File<EMAIL_ADDRESS>line 996, in send
    self.connect()
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/transport/unixconn.py", line 26, in connect
    sock.connect(self.unix_socket)
urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/api/client.py", line 223, in _retrieve_server_version
    return self.version(api_version=False)["ApiVersion"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/api/daemon.py", line 181, in version
    return self._result(self._get(url), json=True)
                        ^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/utils/decorators.py", line 44, in inner
    return f(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/api/client.py", line 246, in _get
    return self.get(url, **self._set_request_timeout(kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
    r = adapter.send(request, **kwargs)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/requests/adapters.py", line 682, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/jonathanaddington/Downloads/sandbox/code_runner_docker.py", line 143, in <module>
    run_python_code()
  File "/Users/jonathanaddington/Downloads/sandbox/code_runner_docker.py", line 5, in run_python_code
    with SandboxSession(lang="python", keep_template=True, verbose=True) as session:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/llm_sandbox/session.py", line 43, in __new__
    return SandboxDockerSession(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/llm_sandbox/docker.py", line 65, in __init__
    self.client = docker.from_env()
                  ^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/client.py", line 94, in from_env
    return cls(
           ^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/client.py", line 45, in __init__
    self.api = APIClient(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/api/client.py", line 207, in __init__
    self._version = self._retrieve_server_version()
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jonathanaddington/Downloads/sandbox/venv/lib/python3.11/site-packages/docker/api/client.py", line 230, in _retrieve_server_version
    raise DockerException(
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
(venv)

to replicate:
python3.11 -m venv ./venv
source ./venv/bin/activate
pip install llm-sandbox
wget https://raw.githubusercontent.com/vndee/llm-sandbox/refs/heads/main/examples/code_runner_docker.py
python code_runner_docker.py

Hey @jmaddington, the error suggests that Docker daemon is not running or accessible on your system.
Before running the example, please ensure that:

Docker Desktop is installed and running on your macOS
Docker daemon is properly started

You can verify this by running docker ps in terminal
If you see a similar connection error, try starting Docker Desktop application

If you've confirmed Docker is running and still encounter issues, please check if your user has the necessary permissions to access the Docker socket.


Is there any way to record a audio that corresponds to a canvas animation?

I'm struggling with putting audio into webM file with Ccapture.js.
I can capture a canvas animation with no problem but the webM file doesn't have audio at all.
I saw a link on Whammy.js and it says like this at Todo section.
Does that mean Ccapture.js doesn't support audio recording either?
...
Also, if someone ever makes a Javascript Vorbis encoder, it would be nice to integrate that in,
since this currently only does the video part, but audio’s also a pretty big part.

sample
I just forked a three.js sample from its repo and added Ccapture.js setup within the file as below.
https://github.com/mrdoob/three.js/blob/master/examples/webaudio_visualizer.html
Here is a music that I use in this file.
https://www.bensound.com/royalty-free-music/track/going-higher
<!DOCTYPE html>

    <title>three.js webaudio - visualizer</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">

    three.js webaudio - visualizer

    music by larrylarrybb

No support for audio, unfortunately. Web Audio API is not easy -or possible at all- to throttle like ccapture does. In the future there might be a nicer Audio/Video muxing API, but for now, the best solution is to capture the video, and the ffmpeg it together with the audio file.

@spite Thanks for the reply. alright, got it. I will work around with what you advised for now.

In a tool I am building I am actually recording video and audio together in realtime with discreet results.

Not really, no. All the work i've done with MediaRecorder yields solid results, both on macos and Linux. Not so sure about windows, but i'd say i've never had problems on at least w8 and w10.

@FumiyaShibusawa Did you find a solution?

Hi guys, any solution on this? I'm capturing the canvas with CCcapture but of course when I start recording the video slows down to capture the frames but the audio won't, so this will result in a desynced animation. The only workaround is to record directly the screen, but of course this is not ideal for the output quality.


Receive stream start message from giganto

receive stream start messase from giganto when strema channle opend.

Codecov Report
Base: 8.91% // Head: 8.75% // Decreases project coverage by -0.15% :warning:

Coverage data is based on head (0c6e870) compared to base (ed6b36f).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff            @@
##            main     #26      +/-   ##
========================================
- Coverage   8.91%   8.75%   -0.16%
========================================
  Files          7       7
  Lines        606     617      +11
========================================
  Hits          54      54
- Misses       552     563      +11

Impacted Files
Coverage Δ

src/request.rs
0.00% <0.00%> (ø)

src/subscribe.rs
0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

0.6.0 릴리스 후의 변경 사항을 필요로 하므로 aicers/giganto#215 이후에 PUBLISH_PROTOCOL_VERSION을 0.7.0-alpha.1로 바꿔주세요.

@msk
버전 수정 완료했습니다.


npm install fails for non-localhost docker

If you don't have docker running directly on localhost (eg if you're communicating with a virtual machine, using docker-machine, etc) then the npm install step will just wait infinitely at the while ! nc localhost 7051 </dev/null; do sleep 1; done step.
If those references are changed, the following error will occur later in the install process:
...
Written Business Network Definition Archive file to digitalPropertyNetwork.zip
Command completed successfully.
Deploying business network from archive digitalPropertyNetwork.zip
Business network definition:
	Identifier<EMAIL_ADDRESS>	Description: Digital Property Network
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error
    at ClientDuplexStream._emitStatusIfDone (/home/fabric-sample-applications/packages/getting-started/node_modules/grpc/src/node/src/client.js:189:19)
    at ClientDuplexStream._readsDone (/home/github/fabric-sample-applications/packages/getting-started/node_modules/grpc/src/node/src/client.js:158:8)
    at readCallback (/home/github/fabric-sample-applications/packages/getting-started/node_modules/grpc/src/node/src/client.js:217:12)

There doesn't appear to be any way around this via configuration as it's hardcoded in a number of places, but here's how to get it to work:

replace the three instances of localhost with your docker host IP (eg, <IP_ADDRESS>) in scripts/start-hyperledger.sh
remove/comment out the rm -rf ~/.composer-connection-profiles/defaultProfile/* line in scripts/download-hyperledger.sh
create a ~/.composer-connection-profiles/defaultProfile/connection.json file with the following content, replacing <DOCKER_IP> with your docker host IP (eg, <IP_ADDRESS>) and <HOME_DIR> with the absolute path to your home directory (eg, /Users/michael):

{
  "type": "hlf",
  "membershipServicesURL": "grpc://<DOCKER_IP>:7054",
  "peerURL": "grpc://<DOCKER_IP>:7051",
  "eventHubURL": "grpc://<DOCKER_IP>:7053",
  "keyValStore": "<HOME_DIR>/.composer-credentials",
  "deployWaitTime": "300",
  "invokeWaitTime": "100"
}

Now npm install (and a subsequent npm test) should succeed.
Not sure whether this should be documented, or the startup scripts modified to accept an env variable of some sort – but if anyone else runs into it, hopefully they'll see this issue.

Hi, I am using aws ubuntu 16.04 instance for installing hyperledger ccomposer. I tried to make changes as your suggestion. But I am unable to run npm install command successfully.
Please find attached files for the changes I've made.

Compser_files.zip

The nc check was removed as part of dropping support for HLF 0.6.


Fixed Typo for Understanding

Q
A

content fix?
yes

New article?
no

Related issues?
NONE

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

thx Dilli, typically we do ONLY get contributions towards staging branch, but due to the current situation on the branches, I can actually get this merged as an exception. Thx for the small, but absolutely valid contribution to get the typo fixed. Appreciated.


Create Links “tiktok-31”

Automatically generated by Netlify CMS

👷 Deploy Preview for distracted-hoover-7b89cc processing.
🔨 Explore the source changes: ec885a63495c81cdf5d22aab2542281fe34d3a8d
🔍 Inspect the deploy log: https://app.netlify.com/sites/distracted-hoover-7b89cc/deploys/610dd62b1786b80007babe82


Feature/login update

mirgate to new login/logout API
add support for sso login
Ensure user on mount User/AppContainer component

Still relevant PR?


Add benchmark to papers with code

@kathrinblagec We also want to put our own OpenBioLink benchmark on PWC. Since you have already looked into it, it would be great if we could assist. :)

@matthias-samwald  I added the result stated in the paper ("7.5% hits@k, TransE model") to PWC: https://paperswithcode.com/paper/openbiolink-a-resource-and-benchmarking
I didn't yet add any other hits@X results because I was not sure if I am looking at the right table (S4?) in the supplementary material since I couldn't find the value for hits@10. Should any other result from those tables be added?

@kathrinblagec  -- did you get the necessary input?

@matthias-samwald I checked with Simon and it seems the result stated in the paper does not match the results in the tables. The best result in the supplementary table is higher than the one stated in the paper (13.5% vs 7.5%). I could add the highest results for TransE and TransR for all hits@k metrics but then it will not match the result stated in the main paper, is this still okay for you or should I handle this differently?


The 'Catppuccin for VSCode' extension is not available in Visual Studio Code for the web.

When I try to install the Catppuccin theme extension for VS Code I come across this message and I can't install it

The 'Catppuccin for VSCode' extension is not available in Visual Studio Code for the web. know why

Link to test: https://github.dev/catppuccin/catppuccin
Preview error:

Hi there!
This is a duplicate of #74, I'd have to pre-compile the theme with default options, and disable all preferences since VSCode web doesn't support re-compiling themes AFAIK (at least the last time I checked).


Review: Workbench contribution for a LifecyclePhase

Refs: https://github.com/Microsoft/vscode/issues/38080
You are contributing a workbench contribution which so far was instantiated right on startup, even before any UI was rendered (during service creation). We added a new parameter to allow to specify when a workbench contribution should get instantiated:

LifecyclePhase.Starting: right on startup (earliest, this was the default before)
LifecyclePhase.Restoring: right before we start to restore views and editors
LifecyclePhase.Running: after we have restored views and editors
LifecyclePhase.RunningForABit: 3 seconds after we have restored views and editors

Please check your contribution and decide which phase it should be instantiated earliest. Generally we discourage any phase before LifecyclePhase.Running if your contribution is doing something heavy.

I feel you'd be better suited to do this for me @bpasero...

@joaomoreno well, when is the event fired that SCM repositories are added? Does it need the extension host to be ready?

SCM provider additions only come from extensions, so they strictly happen after extensions are up and running.

@joaomoreno in theory the extension host could win over the workbench, though that is rather unlikely. Are these events buffered, e.g. would they emit even if you register only after the extension host is already running?

I guess not, since they are not events.
But the extension calls registerSCMProvider, which goes through ExtHostSCM, through MainThreadSCM which can't be instantiated without the ISCMService. That scenario is only possible if ExtHostSCM exists without MainThreadSCM... and in that case, the buffering should happen at the ThreadService messaging layer, not at every consumer of the process.


Move to using custom driver API to implement our default drivers

It seems there is no reason we shouldn't be using defineDriver() ourselves to implement the default localForage drivers. When we check to make sure a user isn't overwriting a driver, we can just check against drivers defined by localForage on start and the user.
I figure this might clean up the code a bit?

That would be nice for extension developers to look at "how it works" and to prove "that it works". :smile:

"how it works" and to prove "that it works"

Custom driver examples can be found at:

test/dummyStorageDriver.js
localForage wiki

will doing this simplify the code enough to justify the work?

The only difference with custom drivers is in the way we require the driver:
In case we are trying to setup one of the included drivers,
then localforage knows how to require the driver object by itself,
otherwise we expect that the driver object is already defined earlier.

The Custom Driver architecture currently does not mess with including/requiring the driver itself. Drivers should be defined before trying to use them (even if at end the browser does not support them). The blame is to the user if an unsupported driver is (down)loaded even if it can't be used.
Built-in drivers are only required/downloaded only if they can actually be used (benefit for requirejs users). This is achieved by including some small driver support detection tests inside locaforage.src.

A possible refactor could be:
var driverPromise = isLibraryDriver(driverName) ?
    new Promise(function(resolve/*, reject*/) {
        // require native driver here... the known way...
    }).then(function(driver) {
        return self.defineDriver(driver);
    }) :
    Promise.resolve();

driverPromise.then(function() {
    if (CustomDrivers[driverName]) { // rename this to DefinedDrivers
        self._extend(CustomDrivers[driverName]);
        resolve();
    } else {
        self._driverSet = Promise.reject(error);
        reject(error);
    }
});

Removed:

an else if() statement
an self._extend() call
a resolve() call

Added:

a ternary operator
we now use the driver holder object for all cases.

I think that we might have to start working on this. This would also allow us to override the support check for the internal drivers, eg letting our user (and namely the Ionic guys) to upgrade to v1.5 and avoid the breaking safari indexeddb change by assigning the v1.4 indexeddb detection code in the support property.
@tofumatt @jesusbotella @danielsogl @jgw96
See: https://github.com/ionic-team/ionic-storage/pull/101


AspNetDocs repo: Review PR's for Q&M - Fix broken links.

Review (& co-author if needed) the broken link fixes on the AspNetDocs repo for the following PR's per manager's request for November:

https://github.com/dotnet/AspNetDocs/pull/916
https://github.com/dotnet/AspNetDocs/pull/917
https://github.com/dotnet/AspNetDocs/pull/918
https://github.com/dotnet/AspNetDocs/pull/921

Associated WorkItem - 340831

Fixed with the review, co-author changes and merge of the following PR's:
Fixed with https://github.com/dotnet/AspNetDocs/pull/916
Fixed with https://github.com/dotnet/AspNetDocs/pull/917
Fixed with https://github.com/dotnet/AspNetDocs/pull/918
Fixed with https://github.com/dotnet/AspNetDocs/pull/921

Closing as fixed.


fix: Improve the disposable components cleaning

What?
Improve the disposable components cleaning:

Clean disposable components when a parcel scene is destroyed.
Call Resources.UnloadUnusedAssets() only when the RendererState changes to ON.

Noticing a slight worsening of hiccups comparing with master:
Made 2 runs in each branch, with the following steps:

spawn in 0,0 org
/showfps
walk straight as possible to 30,1

on this PR:
Run 1 - Max hiccup count p/m: 232
Run 2 - Max hiccup count p/m: 241
on master:
Run 1 - Max hiccup count p/m: 215
Run 2 - Max hiccup count p/m: 215

The ParcelScenesCleaner change got the hiccup rate to 100-150 hpm from the previous benchmark. (in zone is still measuring about 200 hpm). So, congratz!. Merging it.


fix: Fix transaction::to_array tests on ESP8266

Summary
Broke up the transaction::to_array tests to reduce stack usage and
allow for support on esp8266.

Checklist

[ ] Documentation (if necessary)
[x] Tests (if necessary)
[x] Ready to be merged

Thanks for submitting this pull request! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.
If no reviewer appears after a week, a reminder will be sent out.

A member has approved this PR. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait.
Thank you for your contribution!

Your pull request has been merged but was not assigned a bounty tier. A maintainer will assign a bounty tier to this pull request in the next few days.

Your pull request has been merged and marked as tier 4. It will earn you $20 USD.


No labels on edges after loading from json

I try to load this json:
{
  "edges": [
    {
      "source": "1",
      "target": "2",
      "id": "5",
      "label": "Hey",
      "color": "red"
    },
    {
      "source": "2",
      "target": "3",
      "id": "6",
      "label": "There"
    }
  ],
  "nodes": [
    {
      "label": "Sciences De La Terre",
      "x": 1412.2230224609375,
      "y": -2.055976390838623,
      "id": "1",
      "color": "#ccc",
      "size": 8.540210723876953
    },
    {
      "label": "Champ",
      "x": -933.5524291992188,
      "y":<PHONE_NUMBER>1191406,
      "id": "2",
      "color": "#ccc",
      "size": 4.0
    },
    {
      "label": "Cap Nord",
      "x": -693.8167724609375,
      "y": -305.88018798828125,
      "id": "3",
      "color": "rgb(0,204,204)",
      "size": 6.837328910827637
    }
  ]
}

with...
sigma.parsers.json('data/arctic.json', {
  container: 'graph-container'
});

The nodes render correctly, but the edge labels do not. I know that you can add edges like this:
for (i = 0; i < E; i++)
  g.edges.push({
    id: 'e' + i,
    label: 'Edge ' + i,
    source: 'n' + (Math.random() * N | 0),
    target: 'n' + (Math.random() * N | 0),
    size: Math.random(),
    color: '#ccc',
    type: ['line', 'curve', 'arrow', 'curvedArrow'][Math.random() * 4 | 0]
  });

But is it possible to load the edge labels from JSON?

Running into this same issue - the type seems to be ignored when loading from json.  Did you ind a workaround?

Are you using the edgeLabel plugin? Normally, nothing should differ between loading a json and loading the graph manually in the code.

I am. It appears there's a difference in the behavior when the second parameter is not a sigma object, but a map.  For instance, the homepage example of passing as second parameter "sig" the map:
{
    container: 'graph-container',
    type: 'canvas',
    settings: {
      defaultNodeColor: '#ec5148'
    }

Running some very much quick and dirty tests, if I replace this segment with an initialization from the same parameters, say...
          sig = new sigma({
            graph: graph, // the graph we just parsed
            renderer: {
              container: document.getElementById(sig.container),
              type: sig.type
            },
            settings: sig.settings});

then the edges are applied as expected. I haven't yet looked into the sigma constructor to see why it's behaving different in both cases.

Testing further, the difference happens on the sigma constructor. If the map parameter is sent as on the main site's example:
{
    container: 'graph-container',
    type: 'canvas',
    settings: {
      defaultNodeColor: '#ec5148'
    }
}
```

the graph is rendered but the edge settings are not applied. If instead we send a renderer parameter:

```
{
    renderer: {
        container: document.getElementById("graph-container"),
        type: 'canvas'
    },
    settings: {
      defaultNodeColor: '#ec5148'
    }
}
```

then the edge settings are indeed respected. It appears to be the missing {renderer: { type: 'canvas'} } that does it.

@ricardojmendez, if I record correctly, the edge labels do not work with webgl currently and only with canvas. So yes, it seems that your first example does not register the renderer correctly as a canvas renderer. I do not remember the polymorphism you show in your first example but I guess it should be correct since shown on the documentation. There is something fishy here with the constructor indeed.
As a dirty workaround you can force sigma to use the canvas renderer by default by doing this:
sigma.renderers.def = sigma.renderers.canvas;

Hi @Yomguithereal,
Thanks. I worked around it changing the parameter for the parser to include the renderer map.
To clarify, I'm not 100% the constructor does support passing type as a outside of the renderer. It does support passing container as a name.
Where things might get confusing for new users is that the default example is passing:
{
    container: 'graph-container',
    settings: {
      defaultNodeColor: '#ec5148'
    }
}

Where the confusion might come for new users is that one can't just pass a renderer map with the type - this is an invalid combination:
{
    container: 'graph-container',
    renderer: {
        type: 'canvas'
    },
    settings: {
      defaultNodeColor: '#ec5148'
    }
}

Perhaps a note stating on the README.md for edgeLabels stating that webgl is not supported, and that it must be explicitly set to canvas, would help newcomers.
Seems like this issue can be closed, since it's down to a capability misunderstanding (@AbeHandler's original example also did not explicitly state that canvas should be used).

doc.txt

how to add the tooltips in the below files with the data that is already present in neo4j
doc1.txt

how to add tooltips to this
doc1.txt

can I please know how to add tooltips to the above .txt file......I've been trying but still not able to....could anyone help me with this
Thankyou


form elements inherit line height from ancestor

I think it is more practical if the form elements inherit the line height instead of set it fix to 1.15. So if you change the line height of your root or any ancestor element, it will apply to your form elements.

Maybe we can do the same with font-size ?

big 👍  for inheriting font-size and line-height

inheriting the value might end up using a different computed value if the parent is using a em or percentage for the font-size, as the inherited value is not the computed one, but the percentage itself

I just tested this and found it to be incorrect. There is no difference between inherit, 100%, and 1em even if the parent has a font-size in em or %.

Is this still open? I do not know what this is calling for as a fix, but it does read like a possible solution. https://runkit.com/j-vin/5f3a19941c8c0a0019d43469


Checkbox Implementation

Hello,
I have tried everything in documentation but the checkbox didn't displayed on this table.
Is it not possible to use them in this table, If NOT can anyone help me out with this??

settings = {
    selectMode: 'multi',
    actions: {
      delete: false,
      add: false,
      edit: false,
      select: true,
    },
....
}

thanks it worked, but it's not giving any  for select button, it's directly giving a checkbox for selecting all on the top, i want a heading over their, IS IT POSSIBLE???

Sorry I don't understand what are you saying.
The component is not working perfectly with multiselect, for example, you can not set selected rows by default, or you will lose selection after clicking on the next page...

no it's workin fine... but as you can see, i want something written at the select all checkbox on top such as "select All".

Ok, but I don't think it's possible.

how to get selected fileds

@FARHANE /*Sorry I don't understand what are you saying.
The component is not working perfectly with multiselect, for example, you can not set selected rows by default, or you will lose selection after clicking on the next page... */
For this problem have you an issue??

@MADJIYoucef
I developped my own solution based on Angular Material

@FARHANE
Share us the solution for it, I have same problem

@FARHANE
Share us the solution for it, I have same problem

https://stackoverflow.com/a/53418561 this might help you!

After adding checkbox for multi selection, when i do Add new then column get distorted, any help would be helpful.
Select box not showing selectText as i have already defined

namrata7618 let me know if you find solution . .am trying to fix this one

@KanagarajUI
No i did not get any solution for above two mentioned points,  please update me once it gets fix.

Hi, nedd some help,In my case I want the select mode is need to get at right side like as shown in attached image can you  please suggest me thanks in advance


Prunable contracts

What
I added 2 contracts to improve the typehinting and static analysis experience for prunable model.
In my previous  PR regarding pruning, I did an update to the PruneCommand to make it better extendible. Now, I'm getting phpstan errors when trying to call pruneAll() manually. Since traits are not type-hintable, I've decided to add 2 interfaces for this.
Why
I figured this change is welcome because we also use it on the Authenticatable trait. Type hinting is used more frequently on that interface ofcourse, but I figured we should give the developer the choice here. If this is not the way to go I could always just suppress the code style warning.
No breaking changes
I purposefully kept the support for using the trait without the interface to prevent breaking changes.

Heya. I don't feel this provides any value. It's just dead code?

I understand why you feel this way. Let me explain a little further.
It was mainly meant to make type hinting possible for this trait, or even provide your own implementation for prunable models instead of using the given one. Just like authenticatable models work right now.
In the current state you are required to use the Prunable trait because else the command will not pick up on them.
If you don't agree we can close the merge request :)

Looks like the pipeline failed, but I'm not sure if it is my fault. Can you try to rerun the workflow?

Done.

@driesvints

Done.

Thanks! Let me know what you think

@ollieread

@markwalet could you define "pruning" in this sense? I'm trying to understand the PR but it's not entirely clear from the code changes.

I'm talking about the Laravel model pruning functionality.
I have several reasons for adding the interface:

Interface checking is faster than trait checking (doesn't really count I guess, wouldn't shave off more than a ms)
Unlike traits, interfaces can be type-hinted. Which improves static code analysis.
You can now implement the interface your own way, without using the trait. The php artisan model:prune command will still work.
This change unifies the behaviour compared with the Authenticable trait & contract.

Does this clarifies things for you?

Thanks! Let me know what you think

I still don't see much value in this PR, sorry :-/

Alright, no problem. I can also add them to my own repositories ;)
Is there a difference between the Authenticatable contracts and this? Or should I create a PR to cleanup/deprecate those interfaces as well?

Thanks for your pull request to Laravel!
Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.
If possible, please consider releasing your code as a package so that the community can still take advantage of your contributions!
If you feel absolutely certain that this code corrects a bug in the framework, please "@" mention me in a follow-up comment with further explanation so that GitHub will send me a notification of your response.


would love to see ownership of files

Would love to see chmod type level characteristics of files.  Example tree command
tree -Cafp --prune /

How does this apply to Kubernetes?

if you are trying to ensure kubernetes security you would want to ensure certain files are owned and permissioned correctly.


WIP: Odds and Ends

This PR includes a mishmash of various fixes and tweaks pulled from multiple active working branches, in order to reduce the changes left on those branches to what's really important, and ensure these fixes are available throughout.
Where possible, these commits were cherry-picked from other branches to help git figure out how to merge and rebase later.
Details of changes:

src/main/java/Graphviz.java: fix a bug in rendering graphviz for modules that use the "Vital Sign" type logic
src/main/java/org/mitre/synthea/engine/State.java: allow calling Java modules via the "CallSubmodule" state, and ensure that module history isn't duplicated (this caused an issue when a Java module was called repeatedly and the module history grows exponentially)
src/main/java/org/mitre/synthea/engine/Transition.java: fix a bug involving null attributes in table based transitions
src/main/java/org/mitre/synthea/helpers/Utilities.java: add a function convertRiskToTimestep to allow converting risk between arbitrary timesteps (not just the currently configured generate.timestep)
src/main/java/org/mitre/synthea/modules/LifecycleModule.java, src/main/java/org/mitre/synthea/world/agents/Provider.java, src/main/java/org/mitre/synthea/world/concepts/Names.java:  remove an implicit and unintended link between the Provider class and the modules by extracting the logic to pick names to a new class. Previously, loading providers would call LifecycleModule.fakeFirstName etc, which would require loading the Module class, which spins up all the modules. In most cases there will be no difference, but this can help prevent some weird bugs in certain situations.
src/main/resources/modules/hypothyroidism.json: fix a range with low/high flipped
src/main/resources/modules/sepsis.json: replace VitalSign states that were setting Systolic and Diastolic blood pressure, and inadvertently overriding the built-in BloodPressureValueGenerators for blood pressure, causing a patient's BP to fluctuate wildly between 40-120 for the rest of their life. Now the blood pressure observation here uses the original range from the module, but doesn't override the underlying BPVG. Also adds another reading of blood pressure using the patient's regular vital signs, per clinical feedback.

Still TODO:

Bring in the fix to require units on observations with numeric values
Review a few tweaks made to exporters to support different classes of observation values (booleans, HealthRecord.entrys, etc) -- these work fine in FHIR but CCDA is trickier

And more to come in a future PR:

Break out the metabolic syndrome standards of care module into multiple submodules. No functional changes intended, just for readability and maintainability

Metabolic syndrome module refactoring should probably be a separate PR.


SetPixels example leaves bitmap in an invalid state

The code in 'The SetPixels Method' seems wrong.
The buffer array is pinned using fixed, SetPixels is called, and then buffer is unpinned. The bitmap now contains a pointer to an unpinned array. When the garbage collector moves buffer, the bitmap will point to a random part of memory. FillBitmapByteBuffer then returns this bitmap, which is invalid, and possibly dangerous.
Seeing as this as one of the only examples on the internet of how to use SetPixels, I would expect many people to copy this code roughly as is.

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: a8c79fac-da50-ff45-bf07-ff9fd1b2baf2
Version Independent ID: 536a1cd8-e3ae-1cb1-1927-3c823ad6456a
Content: Accessing SkiaSharp bitmap pixel bits - Xamarin
Content Source: docs/xamarin-forms/user-interface/graphics/skiasharp/bitmaps/pixel-bits.md
Product: xamarin
Technology: xamarin-skiasharp
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs including Xamarin.Forms. In preparation for this, all issues and PRs in this repository are being closed.
.NET MAUI is the replacement for Xamarin.Forms, and it's documentation can be found here.


[Spec Impl] Move characteristics to custom UUIDs as defined in spec

Background
Currently we are using random SIG UUIDs for all the characteristics.
2030 to 2037
What to do

Move all the characteristics to Spec specified UUIDs(except Service UUID and Scan Response UUID)
Move all UUIDs to a separate constants file which holds all UUID string values (including Service & Scan Response UUIDs). This is to put all UUIDs in one place for easy reference from specification.
Replace Service UUID and Scan Response UUID with proper SIG UUIDs

References:

Specification -> https://mosip.atlassian.net/wiki/spaces/ENGG/pages/962461697/Bluetooth+DRAFT+BLE+Transfer

Picked up for implementation by @PoojaBabusing

Callout
Until #496 is implemented, we have chosen to use 0000000F-5026-444A-9E0E-D6F2450F3A77 as custom Char UUID for Verification status flow


add night mode component

I want to add "NightMode.test.tsx":
import { render, screen } from '@testing-library/react';
import { NightMode } from './NightMode';

describe('Components | Buttons | Account Selector', () => {
  test('it should render', () => {
    render(<NightMode />);

    let nightMode = screen.getByTestId('night-mode-button');

    expect(nightMode).toBeTruthy();
  });
});

But I have this error:
 FAIL  src/components/NightMode/NightMode.test.tsx
  ● Console

    console.error
      Error: Uncaught [TypeError: Invalid attempt to destructure non-iterable instance.
      In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]
          at reportException (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
          at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
          at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
          at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
          at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
          at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
          at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
          at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
          at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
          at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
          at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
          at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
          at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25738:74)
          at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
          at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
          at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
          at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
          at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
          at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
          at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
          at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
          at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
          at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
          at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
          at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
          at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
          at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12) {
        detail: TypeError: Invalid attempt to destructure non-iterable instance.
        In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _slicedToArray (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:14:69)
            at renderWithHooks (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
            at mountIndeterminateComponent (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
            at beginWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
            at HTMLUnknownElement.callCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
            at HTMLUnknownElement.callTheUserObjectsOperation (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
            at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
            at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
            at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
            at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
            at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
            at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
            at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
            at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
            at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
            at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
            at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
            at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25738:74)
            at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
            at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
            at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
            at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
            at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
            at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
            at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
            at new Promise (<anonymous>)
            at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
            at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
            at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
            at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
            at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
            at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
            at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
            at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12),
        type: 'unhandled exception'
      }

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:60:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25738:74)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

    console.error
      Error: Uncaught [TypeError: Invalid attempt to destructure non-iterable instance.
      In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]
          at reportException (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
          at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
          at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
          at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
          at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
          at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
          at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
          at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
          at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
          at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
          at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
          at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
          at recoverFromConcurrentError (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
          at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
          at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
          at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
          at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
          at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
          at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
          at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
          at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
          at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
          at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
          at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
          at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
          at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
          at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
          at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12) {
        detail: TypeError: Invalid attempt to destructure non-iterable instance.
        In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _slicedToArray (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:14:69)
            at renderWithHooks (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
            at mountIndeterminateComponent (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
            at beginWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
            at HTMLUnknownElement.callCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
            at HTMLUnknownElement.callTheUserObjectsOperation (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
            at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
            at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
            at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
            at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
            at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
            at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
            at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
            at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
            at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
            at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
            at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
            at recoverFromConcurrentError (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
            at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
            at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
            at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
            at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
            at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
            at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
            at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
            at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
            at new Promise (<anonymous>)
            at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
            at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
            at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
            at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
            at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
            at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
            at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
            at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12),
        type: 'unhandled exception'
      }

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:60:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

    console.error
      The above error occurred in the <NightMode> component:

          at _objectDestructuringEmpty (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:11:18)

      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:18687:23)
      at update.callback (node_modules/react-dom/cjs/react-dom.development.js:18720:5)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13923:12)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13944:9)
      at commitLayoutEffectOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23391:13)
      at commitLayoutMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24688:9)
      at commitLayoutEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24674:7)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:24612:3)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:26823:5)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:26682:5)
      at finishConcurrentRender (node_modules/react-dom/cjs/react-dom.development.js:25892:9)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25809:7)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

  ● Components | Buttons | Account Selector › it should render

    TypeError: Invalid attempt to destructure non-iterable instance.
    In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

      2 | // @ts-ignore
      3 | import React, { useEffect } from 'react';
    > 4 | import { FiMoon, FiSun } from 'react-icons/fi';
        |                                                ^
      5 |
      6 | import { ComponentPropsWithoutRef } from 'react';
      7 |

      at _nonIterableRest (src/components/NightMode/NightMode.tsx:4:48)
      at _nonIterableRest (src/components/NightMode/NightMode.tsx:4:48)
      at _slicedToArray (src/components/NightMode/NightMode.tsx:14:69)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21587:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27426:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

I want to add "NightMode.test.tsx":
import { render, screen } from '@testing-library/react';
import { NightMode } from './NightMode';

describe('Components | Buttons | Night Mode', () => {
  test('it should render', () => {
    render(<NightMode />);

    let nightMode = screen.getByTestId('nightMode');

    expect(nightMode).toBeTruthy();
  });
});

But I have this error:
 FAIL  src/components/NightMode/NightMode.test.tsx
  ● Console

    console.error
      Error: Uncaught [TypeError: Invalid attempt to destructure non-iterable instance.
      In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]
          at reportException (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
          at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
          at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
          at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
          at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
          at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
          at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
          at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
          at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
          at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
          at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
          at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
          at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25738:74)
          at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
          at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
          at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
          at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
          at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
          at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
          at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
          at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
          at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
          at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
          at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
          at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
          at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
          at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12) {
        detail: TypeError: Invalid attempt to destructure non-iterable instance.
        In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _slicedToArray (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:14:69)
            at renderWithHooks (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
            at mountIndeterminateComponent (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
            at beginWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
            at HTMLUnknownElement.callCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
            at HTMLUnknownElement.callTheUserObjectsOperation (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
            at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
            at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
            at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
            at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
            at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
            at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
            at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
            at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
            at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
            at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
            at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
            at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25738:74)
            at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
            at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
            at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
            at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
            at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
            at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
            at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
            at new Promise (<anonymous>)
            at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
            at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
            at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
            at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
            at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
            at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
            at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
            at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12),
        type: 'unhandled exception'
      }

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:60:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25738:74)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

    console.error
      Error: Uncaught [TypeError: Invalid attempt to destructure non-iterable instance.
      In order to be iterable, non-array objects must have a [Symbol.iterator]() method.]
          at reportException (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:66:24)
          at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
          at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
          at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
          at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
          at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
          at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
          at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
          at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
          at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
          at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
          at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
          at recoverFromConcurrentError (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
          at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
          at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
          at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
          at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
          at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
          at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
          at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
          at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
          at new Promise (<anonymous>)
          at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
          at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
          at processTicksAndRejections (node:internal/process/task_queues:95:5)
          at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
          at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
          at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
          at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
          at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
          at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
          at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
          at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12) {
        detail: TypeError: Invalid attempt to destructure non-iterable instance.
        In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _nonIterableRest (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:4:48)
            at _slicedToArray (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:14:69)
            at renderWithHooks (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:16305:18)
            at mountIndeterminateComponent (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:20074:13)
            at beginWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:21587:16)
            at HTMLUnknownElement.callCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4164:14)
            at HTMLUnknownElement.callTheUserObjectsOperation (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
            at innerInvokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
            at invokeEventListeners (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
            at HTMLUnknownElementImpl._dispatch (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
            at HTMLUnknownElementImpl.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
            at HTMLUnknownElement.dispatchEvent (/home/lilyan/projects/ui-kit/node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
            at Object.invokeGuardedCallbackDev (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4213:16)
            at invokeGuardedCallback (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:4277:31)
            at beginWork$1 (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:27451:7)
            at performUnitOfWork (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26560:12)
            at workLoopSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26466:5)
            at renderRootSync (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:26434:7)
            at recoverFromConcurrentError (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25850:20)
            at performConcurrentWorkOnRoot (/home/lilyan/projects/ui-kit/node_modules/react-dom/cjs/react-dom.development.js:25750:22)
            at flushActQueue (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2667:24)
            at act (/home/lilyan/projects/ui-kit/node_modules/react/cjs/react.development.js:2582:11)
            at /home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/act-compat.js:46:25
            at renderRoot (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:161:26)
            at render (/home/lilyan/projects/ui-kit/node_modules/@testing-library/react/dist/pure.js:247:10)
            at Object.<anonymous> (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.test.tsx:6:11)
            at Promise.then.completed (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:293:28)
            at new Promise (<anonymous>)
            at callAsyncCircusFn (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/utils.js:226:10)
            at _callCircusTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:297:40)
            at processTicksAndRejections (node:internal/process/task_queues:95:5)
            at _runTest (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:233:3)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:135:9)
            at _runTestsForDescribeBlock (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:130:9)
            at run (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/run.js:68:3)
            at runAndTransformResultsToJestFormat (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
            at jestAdapter (/home/lilyan/projects/ui-kit/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
            at runTestInternal (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:367:16)
            at runTest (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/runTest.js:444:34)
            at Object.worker (/home/lilyan/projects/ui-kit/node_modules/jest-runner/build/testWorker.js:106:12),
        type: 'unhandled exception'
      }

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at VirtualConsole.<anonymous> (node_modules/jest-environment-jsdom/build/index.js:60:23)
      at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28)
      at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:353:9)
      at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
      at HTMLUnknownElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
      at HTMLUnknownElementImpl.dispatchEvent (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:104:17)
      at HTMLUnknownElement.dispatchEvent (node_modules/jsdom/lib/jsdom/living/generated/EventTarget.js:241:34)
      at Object.invokeGuardedCallbackDev (node_modules/react-dom/cjs/react-dom.development.js:4213:16)
      at invokeGuardedCallback (node_modules/react-dom/cjs/react-dom.development.js:4277:31)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27451:7)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

    console.error
      The above error occurred in the <NightMode> component:

          at _objectDestructuringEmpty (/home/lilyan/projects/ui-kit/src/components/NightMode/NightMode.tsx:11:18)

      Consider adding an error boundary to your tree to customize error handling behavior.
      Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.

      4 | describe('Components | Buttons | Account Selector', () => {
      5 |   test('it should render', () => {
    > 6 |     render(<NightMode />);
        |           ^
      7 |
      8 |     let nightMode = screen.getByTestId('night-mode-button');
      9 |

      at logCapturedError (node_modules/react-dom/cjs/react-dom.development.js:18687:23)
      at update.callback (node_modules/react-dom/cjs/react-dom.development.js:18720:5)
      at callCallback (node_modules/react-dom/cjs/react-dom.development.js:13923:12)
      at commitUpdateQueue (node_modules/react-dom/cjs/react-dom.development.js:13944:9)
      at commitLayoutEffectOnFiber (node_modules/react-dom/cjs/react-dom.development.js:23391:13)
      at commitLayoutMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24688:9)
      at commitLayoutEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24674:7)
      at commitLayoutEffects (node_modules/react-dom/cjs/react-dom.development.js:24612:3)
      at commitRootImpl (node_modules/react-dom/cjs/react-dom.development.js:26823:5)
      at commitRoot (node_modules/react-dom/cjs/react-dom.development.js:26682:5)
      at finishConcurrentRender (node_modules/react-dom/cjs/react-dom.development.js:25892:9)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25809:7)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

  ● Components | Buttons | Account Selector › it should render

    TypeError: Invalid attempt to destructure non-iterable instance.
    In order to be iterable, non-array objects must have a [Symbol.iterator]() method.

      2 | // @ts-ignore
      3 | import React, { useEffect } from 'react';
    > 4 | import { FiMoon, FiSun } from 'react-icons/fi';
        |                                                ^
      5 |
      6 | import { ComponentPropsWithoutRef } from 'react';
      7 |

      at _nonIterableRest (src/components/NightMode/NightMode.tsx:4:48)
      at _nonIterableRest (src/components/NightMode/NightMode.tsx:4:48)
      at _slicedToArray (src/components/NightMode/NightMode.tsx:14:69)
      at renderWithHooks (node_modules/react-dom/cjs/react-dom.development.js:16305:18)
      at mountIndeterminateComponent (node_modules/react-dom/cjs/react-dom.development.js:20074:13)
      at beginWork (node_modules/react-dom/cjs/react-dom.development.js:21587:16)
      at beginWork$1 (node_modules/react-dom/cjs/react-dom.development.js:27426:14)
      at performUnitOfWork (node_modules/react-dom/cjs/react-dom.development.js:26560:12)
      at workLoopSync (node_modules/react-dom/cjs/react-dom.development.js:26466:5)
      at renderRootSync (node_modules/react-dom/cjs/react-dom.development.js:26434:7)
      at recoverFromConcurrentError (node_modules/react-dom/cjs/react-dom.development.js:25850:20)
      at performConcurrentWorkOnRoot (node_modules/react-dom/cjs/react-dom.development.js:25750:22)
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at act (node_modules/react/cjs/react.development.js:2582:11)
      at node_modules/@testing-library/react/dist/act-compat.js:46:25
      at renderRoot (node_modules/@testing-library/react/dist/pure.js:161:26)
      at render (node_modules/@testing-library/react/dist/pure.js:247:10)
      at Object.<anonymous> (src/components/NightMode/NightMode.test.tsx:6:11)

Don't forget to add this import '@testing-library/jest-dom';  at the beginning of the file.

Done,
But we must merged this PR (https://github.com/massalabs/ui-kit/pull/141) before. Because tests need some changes to run


Broken links

I think https://github.com/planetruby/awesome-events/commit/7ed70d139f8e2b51bede9d4b952117bda93b44e9 broke the links.
For example - you link to https://github.com/planetruby/awesome-events#slovenia but the link should be https://github.com/planetruby/awesome-events#slovenia-si

Good point. Thanks. Will fix it now. Changed the country heading (now includes the internet domain.). Cheers.

Awesome! And thanks for including @RubySlovenia from the get-go :smile: :+1:

You're welcome. All fixed now. Cheers.


Extensibility: Add scrollable container

We need a container to add any component and make it scrollable

I am not @llali

Closing out older issues.  Please reactive if this is impacting an extension under active development.