@nswds/app 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -64,7 +64,7 @@ var oneDark = require('react-syntax-highlighter/dist/esm/styles/prism/one-dark')
64
64
  var oneLight = require('react-syntax-highlighter/dist/esm/styles/prism/one-light');
65
65
  var tokenlens = require('tokenlens');
66
66
  var useStickToBottom = require('use-stick-to-bottom');
67
- var crypto = require('crypto');
67
+ var nanoid = require('nanoid');
68
68
  var streamdown = require('streamdown');
69
69
  var slugify = require('@sindresorhus/slugify');
70
70
  var zustand = require('zustand');
@@ -126,7 +126,6 @@ var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrim
126
126
  var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
127
127
  var oneDark__default = /*#__PURE__*/_interopDefault(oneDark);
128
128
  var oneLight__default = /*#__PURE__*/_interopDefault(oneLight);
129
- var crypto__default = /*#__PURE__*/_interopDefault(crypto);
130
129
 
131
130
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
132
131
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
@@ -14470,7 +14469,7 @@ function FormatToggle({ format, setFormat }) {
14470
14469
 
14471
14470
  // package.json
14472
14471
  var package_default = {
14473
- version: "3.0.0"};
14472
+ version: "3.0.1"};
14474
14473
  var SluggerContext = React5__namespace.default.createContext(null);
14475
14474
  function flattenText(nodes) {
14476
14475
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -30686,39 +30685,6 @@ var OpenInv0 = (props) => {
30686
30685
  }
30687
30686
  ) });
30688
30687
  };
30689
-
30690
- // node_modules/nanoid/url-alphabet/index.js
30691
- var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
30692
-
30693
- // node_modules/nanoid/index.js
30694
- var POOL_SIZE_MULTIPLIER = 128;
30695
- var pool;
30696
- var poolOffset;
30697
- var fillPool = (bytes) => {
30698
- if (bytes < 0) throw new RangeError("Wrong ID size");
30699
- try {
30700
- if (!pool || pool.length < bytes) {
30701
- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
30702
- crypto__default.default.randomFillSync(pool);
30703
- poolOffset = 0;
30704
- } else if (poolOffset + bytes > pool.length) {
30705
- crypto__default.default.randomFillSync(pool);
30706
- poolOffset = 0;
30707
- }
30708
- } catch (e) {
30709
- pool = void 0;
30710
- throw e;
30711
- }
30712
- poolOffset += bytes;
30713
- };
30714
- var nanoid = (size = 21) => {
30715
- fillPool(size |= 0);
30716
- let id3 = "";
30717
- for (let i = poolOffset - size; i < poolOffset; i++) {
30718
- id3 += urlAlphabet[pool[i] & 63];
30719
- }
30720
- return id3;
30721
- };
30722
30688
  function Textarea2({ className, ...props }) {
30723
30689
  return /* @__PURE__ */ jsxRuntime.jsx(
30724
30690
  "textarea",
@@ -30896,7 +30862,7 @@ var PromptInput = ({
30896
30862
  const next = [];
30897
30863
  for (const file of capped) {
30898
30864
  next.push({
30899
- id: nanoid(),
30865
+ id: nanoid.nanoid(),
30900
30866
  type: "file",
30901
30867
  url: URL.createObjectURL(file),
30902
30868
  mediaType: file.type,