Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurClemens committed Aug 14, 2024
1 parent d10b302 commit cf4a304
Show file tree
Hide file tree
Showing 7 changed files with 1,930 additions and 1,640 deletions.
12 changes: 4 additions & 8 deletions dist/dialogic-js.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,21 @@ var getFirstFocusable = (content) => {
return focusable[0];
};
var storeDataset = (cache, id, dataset) => {
if (!id)
return;
if (!id) return;
if (!cache[id]) {
cache[id] = JSON.stringify(dataset);
}
};
var readDataset = (cache, id) => {
if (!id)
return;
if (!id) return;
return JSON.parse(cache[id]);
};
var clearDataset = (cache, id) => {
if (!id)
return;
if (!id) return;
delete cache[id];
};
var applyDataset = (dataset, el) => {
if (!el || !dataset)
return;
if (!el || !dataset) return;
Object.keys(dataset).forEach((key) => {
el.dataset[key] = dataset[key];
});
Expand Down
12 changes: 4 additions & 8 deletions dist/dialogic-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,21 @@ var getFirstFocusable = (content) => {
return focusable[0];
};
var storeDataset = (cache, id, dataset) => {
if (!id)
return;
if (!id) return;
if (!cache[id]) {
cache[id] = JSON.stringify(dataset);
}
};
var readDataset = (cache, id) => {
if (!id)
return;
if (!id) return;
return JSON.parse(cache[id]);
};
var clearDataset = (cache, id) => {
if (!id)
return;
if (!id) return;
delete cache[id];
};
var applyDataset = (dataset, el) => {
if (!el || !dataset)
return;
if (!el || !dataset) return;
Object.keys(dataset).forEach((key) => {
el.dataset[key] = dataset[key];
});
Expand Down
2 changes: 0 additions & 2 deletions dist/index.d.ts

This file was deleted.

79 changes: 0 additions & 79 deletions dist/prompt.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions dist/util.d.ts

This file was deleted.

Loading

0 comments on commit cf4a304

Please sign in to comment.