@nswds/app 3.0.0 → 3.0.2

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.js CHANGED
@@ -66,7 +66,7 @@ import oneDark from 'react-syntax-highlighter/dist/esm/styles/prism/one-dark';
66
66
  import oneLight from 'react-syntax-highlighter/dist/esm/styles/prism/one-light';
67
67
  import { estimateCost } from 'tokenlens';
68
68
  import { StickToBottom, useStickToBottomContext } from 'use-stick-to-bottom';
69
- import crypto from 'crypto';
69
+ import { nanoid } from 'nanoid';
70
70
  import { Streamdown } from 'streamdown';
71
71
  import { slugifyWithCounter } from '@sindresorhus/slugify';
72
72
  import { create } from 'zustand';
@@ -14414,7 +14414,7 @@ function FormatToggle({ format, setFormat }) {
14414
14414
 
14415
14415
  // package.json
14416
14416
  var package_default = {
14417
- version: "3.0.0"};
14417
+ version: "3.0.2"};
14418
14418
  var SluggerContext = React5__default.createContext(null);
14419
14419
  function flattenText(nodes) {
14420
14420
  if (nodes == null || typeof nodes === "boolean") return "";
@@ -30630,39 +30630,6 @@ var OpenInv0 = (props) => {
30630
30630
  }
30631
30631
  ) });
30632
30632
  };
30633
-
30634
- // node_modules/nanoid/url-alphabet/index.js
30635
- var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
30636
-
30637
- // node_modules/nanoid/index.js
30638
- var POOL_SIZE_MULTIPLIER = 128;
30639
- var pool;
30640
- var poolOffset;
30641
- var fillPool = (bytes) => {
30642
- if (bytes < 0) throw new RangeError("Wrong ID size");
30643
- try {
30644
- if (!pool || pool.length < bytes) {
30645
- pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
30646
- crypto.randomFillSync(pool);
30647
- poolOffset = 0;
30648
- } else if (poolOffset + bytes > pool.length) {
30649
- crypto.randomFillSync(pool);
30650
- poolOffset = 0;
30651
- }
30652
- } catch (e) {
30653
- pool = void 0;
30654
- throw e;
30655
- }
30656
- poolOffset += bytes;
30657
- };
30658
- var nanoid = (size = 21) => {
30659
- fillPool(size |= 0);
30660
- let id3 = "";
30661
- for (let i = poolOffset - size; i < poolOffset; i++) {
30662
- id3 += urlAlphabet[pool[i] & 63];
30663
- }
30664
- return id3;
30665
- };
30666
30633
  function Textarea2({ className, ...props }) {
30667
30634
  return /* @__PURE__ */ jsx(
30668
30635
  "textarea",