@design-edito/tools 0.1.48 → 0.1.50

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.
Files changed (133) hide show
  1. package/agnostic/arrays/index.d.ts +2 -0
  2. package/agnostic/arrays/index.js +20 -0
  3. package/agnostic/arrays/shuffle/index.d.ts +1 -0
  4. package/agnostic/arrays/shuffle/index.js +6 -0
  5. package/agnostic/css/index.js +13 -175
  6. package/agnostic/css/styles-set/index.js +20 -0
  7. package/agnostic/errors/register/index.d.ts +1 -0
  8. package/agnostic/html/hyper-json/cast/index.js +8 -8
  9. package/agnostic/html/hyper-json/index.js +9 -9
  10. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +8 -8
  11. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +8 -8
  12. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +8 -8
  13. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +8 -8
  14. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +8 -8
  15. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +8 -8
  16. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +8 -8
  17. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +8 -8
  18. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +8 -8
  19. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +8 -8
  20. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +8 -8
  21. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +8 -8
  22. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +8 -8
  23. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +8 -8
  24. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +8 -8
  25. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +8 -8
  26. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +8 -8
  27. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +8 -8
  28. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +8 -8
  29. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +8 -8
  30. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +8 -8
  31. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +8 -8
  32. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +8 -8
  33. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +8 -8
  34. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +8 -8
  35. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +8 -8
  36. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +8 -8
  37. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +8 -8
  38. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +8 -8
  39. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +8 -8
  40. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +8 -8
  41. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +8 -8
  42. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +8 -8
  43. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +8 -8
  44. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +8 -8
  45. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +8 -8
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +8 -8
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +8 -8
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +8 -8
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +8 -8
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +8 -8
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +8 -8
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +8 -8
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +8 -8
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +8 -8
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +8 -8
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +8 -8
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +8 -8
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +8 -8
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +8 -8
  60. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +8 -8
  61. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +8 -8
  62. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +8 -8
  63. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +8 -8
  64. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +8 -8
  65. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +8 -8
  66. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +8 -8
  67. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +8 -8
  68. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +8 -8
  69. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +8 -8
  70. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +8 -8
  71. package/agnostic/html/hyper-json/tree/index.js +8 -8
  72. package/agnostic/html/hyper-json/utils/index.js +8 -8
  73. package/agnostic/html/index.js +17 -17
  74. package/agnostic/misc/data-size/index.d.ts +41 -0
  75. package/agnostic/misc/data-size/index.js +6 -0
  76. package/agnostic/misc/index.d.ts +5 -2
  77. package/agnostic/misc/index.js +28 -19
  78. package/agnostic/misc/logs/index.js +2 -2
  79. package/agnostic/misc/lorem-ipsum/index.js +8 -6
  80. package/agnostic/numbers/index.js +5 -5
  81. package/agnostic/objects/index.js +7 -7
  82. package/agnostic/random/index.js +2 -2
  83. package/agnostic/strings/index.js +11 -11
  84. package/agnostic/time/index.js +6 -6
  85. package/chunks/chunk-2U2J4P3O.js +31 -0
  86. package/chunks/chunk-3C3MXKEW.js +31 -0
  87. package/chunks/chunk-42ZKFWKF.js +2369 -0
  88. package/chunks/chunk-4EFX53Y4.js +31 -0
  89. package/chunks/chunk-5CYZ66VE.js +31 -0
  90. package/chunks/chunk-5UM7HYXS.js +191 -0
  91. package/chunks/chunk-5VHXL242.js +37 -0
  92. package/chunks/chunk-64SYLWJ7.js +37 -0
  93. package/chunks/chunk-66X6D4HF.js +191 -0
  94. package/chunks/chunk-6A7GLDXD.js +191 -0
  95. package/chunks/chunk-6KWNKTNI.js +173 -0
  96. package/chunks/chunk-75DDEILC.js +191 -0
  97. package/chunks/chunk-7GIJUKYP.js +173 -0
  98. package/chunks/chunk-7KHJKCA7.js +2369 -0
  99. package/chunks/chunk-7VTVA56L.js +37 -0
  100. package/chunks/chunk-7W5LABV2.js +37 -0
  101. package/chunks/chunk-C5CIYEMD.js +191 -0
  102. package/chunks/chunk-CWRRSS4V.js +27 -0
  103. package/chunks/chunk-D6VWX3D6.js +186 -0
  104. package/chunks/chunk-IYHWMMQE.js +37 -0
  105. package/chunks/chunk-JRXEHYIE.js +37 -0
  106. package/chunks/chunk-JUIKU4XP.js +191 -0
  107. package/chunks/chunk-M6WWIEQJ.js +37 -0
  108. package/chunks/chunk-MBWRDYGE.js +191 -0
  109. package/chunks/chunk-O2WG3EMN.js +2369 -0
  110. package/chunks/chunk-PEEPNNRS.js +173 -0
  111. package/chunks/chunk-PLIJVLAB.js +173 -0
  112. package/chunks/chunk-QI67BXO6.js +2370 -0
  113. package/chunks/chunk-RI37ZSKY.js +2369 -0
  114. package/chunks/chunk-SJQNLCGS.js +173 -0
  115. package/chunks/chunk-TOZXS7ZY.js +2369 -0
  116. package/chunks/chunk-U32YPAPW.js +2369 -0
  117. package/chunks/chunk-VH4FK3TX.js +31 -0
  118. package/chunks/chunk-VJJIYJMY.js +13 -0
  119. package/chunks/chunk-VV35APGM.js +2369 -0
  120. package/chunks/chunk-WP7L5ZFP.js +173 -0
  121. package/chunks/chunk-WYY3N6PO.js +2369 -0
  122. package/chunks/chunk-WZC2HZ5W.js +27 -0
  123. package/chunks/chunk-XDYRPW7Q.js +37 -0
  124. package/chunks/chunk-XGOWRHVM.js +37 -0
  125. package/chunks/chunk-XK2PI5WI.js +31 -0
  126. package/chunks/chunk-XL7AQDAE.js +31 -0
  127. package/chunks/chunk-XRUSQWPJ.js +173 -0
  128. package/chunks/chunk-XSOBXDGQ.js +191 -0
  129. package/chunks/chunk-YYYRFMNZ.js +191 -0
  130. package/components/Comp/index.js +8 -0
  131. package/node/files/read-write/index.d.ts +1 -1
  132. package/package.json +11 -16
  133. package/shared/errors/index.d.ts +1 -0
@@ -0,0 +1,191 @@
1
+ import {
2
+ Random
3
+ } from "./chunk-S32K7POB.js";
4
+ import {
5
+ Arrays
6
+ } from "./chunk-3C3MXKEW.js";
7
+
8
+ // src/agnostic/misc/lorem-ipsum/index.ts
9
+ var LoremIpsum;
10
+ ((LoremIpsum2) => {
11
+ LoremIpsum2.words = [
12
+ "a",
13
+ "ac",
14
+ "accumsan",
15
+ "adipiscing",
16
+ "aenean",
17
+ "aliquam",
18
+ "aliquet",
19
+ "amet",
20
+ "ante",
21
+ "arcu",
22
+ "at",
23
+ "auctor",
24
+ "augue",
25
+ "bibendum",
26
+ "blandit",
27
+ "condimentum",
28
+ "consectetur",
29
+ "consequat",
30
+ "convallis",
31
+ "cras",
32
+ "curabitur",
33
+ "cursus",
34
+ "dapibus",
35
+ "diam",
36
+ "dictum",
37
+ "dictumst",
38
+ "dignissim",
39
+ "dolor",
40
+ "donec",
41
+ "dui",
42
+ "duis",
43
+ "efficitur",
44
+ "egestas",
45
+ "eget",
46
+ "eleifend",
47
+ "elementum",
48
+ "elit",
49
+ "enim",
50
+ "erat",
51
+ "eros",
52
+ "est",
53
+ "et",
54
+ "eu",
55
+ "euismod",
56
+ "ex",
57
+ "facilisis",
58
+ "faucibus",
59
+ "felis",
60
+ "feugiat",
61
+ "finibus",
62
+ "fringilla",
63
+ "fusce",
64
+ "gravida",
65
+ "habitasse",
66
+ "hac",
67
+ "hendrerit",
68
+ "iaculis",
69
+ "id",
70
+ "imperdiet",
71
+ "in",
72
+ "integer",
73
+ "interdum",
74
+ "ipsum",
75
+ "justo",
76
+ "lacinia",
77
+ "lacus",
78
+ "laoreet",
79
+ "lectus",
80
+ "leo",
81
+ "libero",
82
+ "ligula",
83
+ "lobortis",
84
+ "lorem",
85
+ "luctus",
86
+ "maecenas",
87
+ "magna",
88
+ "malesuada",
89
+ "massa",
90
+ "mattis",
91
+ "mauris",
92
+ "maximus",
93
+ "metus",
94
+ "mi",
95
+ "molestie",
96
+ "mollis",
97
+ "morbi",
98
+ "nam",
99
+ "nec",
100
+ "neque",
101
+ "nibh",
102
+ "nisi",
103
+ "nisl",
104
+ "non",
105
+ "nulla",
106
+ "nullam",
107
+ "nunc",
108
+ "odio",
109
+ "orci",
110
+ "ornare",
111
+ "pellentesque",
112
+ "pharetra",
113
+ "phasellus",
114
+ "placerat",
115
+ "platea",
116
+ "porta",
117
+ "porttitor",
118
+ "posuere",
119
+ "praesent",
120
+ "pulvinar",
121
+ "purus",
122
+ "quam",
123
+ "quis",
124
+ "quisque",
125
+ "risus",
126
+ "rutrum",
127
+ "sagittis",
128
+ "sapien",
129
+ "sed",
130
+ "sem",
131
+ "semper",
132
+ "sit",
133
+ "sodales",
134
+ "sollicitudin",
135
+ "suscipit",
136
+ "suspendisse",
137
+ "tellus",
138
+ "tempor",
139
+ "tempus",
140
+ "tincidunt",
141
+ "tortor",
142
+ "tristique",
143
+ "turpis",
144
+ "ultrices",
145
+ "ultricies",
146
+ "urna",
147
+ "ut",
148
+ "vehicula",
149
+ "vel",
150
+ "velit",
151
+ "venenatis",
152
+ "vestibulum",
153
+ "vitae",
154
+ "vivamus",
155
+ "viverra",
156
+ "volutpat",
157
+ "vulputate"
158
+ ];
159
+ LoremIpsum2.generateSentence = (wordCount) => {
160
+ const resultArr = [];
161
+ let currentWordCound = wordCount;
162
+ for (let i = 0; i < currentWordCound; i++) {
163
+ const picked = Arrays.randomPick(LoremIpsum2.words);
164
+ if (typeof picked === "string") resultArr.push(picked);
165
+ else {
166
+ currentWordCound += 1;
167
+ }
168
+ }
169
+ const [firstWord, ...otherWords] = resultArr;
170
+ if (firstWord === void 0) return "";
171
+ const capFirstLetter = firstWord?.charAt(0).toUpperCase();
172
+ const restOfFirstWord = firstWord?.slice(1);
173
+ const sentence = [
174
+ `${capFirstLetter}${restOfFirstWord}`,
175
+ ...otherWords
176
+ ].join(" ");
177
+ return `${sentence}.`;
178
+ };
179
+ LoremIpsum2.generateSentences = (sentencesCount, maxSentenceLength = 12, minSentenceLength = 4) => {
180
+ const sentences = [];
181
+ for (let i = 0; i < sentencesCount; i++) {
182
+ const length = Random.randomInt(maxSentenceLength, minSentenceLength) ?? 8;
183
+ sentences.push((0, LoremIpsum2.generateSentence)(length));
184
+ }
185
+ return sentences;
186
+ };
187
+ })(LoremIpsum || (LoremIpsum = {}));
188
+
189
+ export {
190
+ LoremIpsum
191
+ };
@@ -0,0 +1,8 @@
1
+ // src/components/Comp/index.tsx
2
+ import { Fragment, jsx } from "react/jsx-runtime";
3
+ function Comp() {
4
+ return /* @__PURE__ */ jsx(Fragment, { children: "Coucou !" });
5
+ }
6
+ export {
7
+ Comp as default
8
+ };
@@ -5,5 +5,5 @@ type WriteFileData = Parameters<typeof fs.writeFile>[1];
5
5
  type ReadOptions = Parameters<typeof fs.readFile>[1];
6
6
  type WriteOptions = Parameters<typeof fs.writeFile>[2];
7
7
  export type ReadWriteEditorFunc = (curr: ReadFileData) => WriteFileData;
8
- export declare function readWrite(path: Path, editor: ReadWriteEditorFunc, ...options: [ReadOptions?, WriteOptions?]): Promise<string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | import("stream").Stream>;
8
+ export declare function readWrite(path: Path, editor: ReadWriteEditorFunc, ...options: [ReadOptions?, WriteOptions?]): Promise<string | NodeJS.ArrayBufferView<ArrayBufferLike> | Iterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>> | AsyncIterable<string | NodeJS.ArrayBufferView<ArrayBufferLike>> | import("stream")>;
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-edito/tools",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "",
5
5
  "author": "Maxime Fabas",
6
6
  "license": "ISC",
@@ -12,28 +12,23 @@
12
12
  "main": "index.js",
13
13
  "module": "index.js",
14
14
  "peerDependencies": {
15
- "chalk": "^5.3.0",
16
- "react": "^18.3.1",
17
- "react-dom": "^18.3.1"
15
+ "chalk": "^5.4.1",
16
+ "react": "^19.0.0",
17
+ "react-dom": "^19.0.0"
18
18
  },
19
19
  "devDependencies": {
20
- "@types/chalk": "^2.2.0",
21
- "@types/jsdom": "^21.1.7",
22
- "@types/node": "^22.7.6",
20
+ "@types/node": "^22.13.10",
23
21
  "@types/prompts": "^2.4.9",
24
- "@types/react": "^18.3.11",
25
- "@types/react-dom": "^18.3.1",
22
+ "@types/react": "^19.0.11",
23
+ "@types/react-dom": "^19.0.4",
26
24
  "@types/semver": "^7.5.8",
27
- "camelcase": "^8.0.0",
28
25
  "chokidar-cli": "^3.0.0",
29
- "concurrently": "^9.0.1",
30
- "esbuild": "^0.24.0",
31
- "jsdom": "^25.0.1",
32
- "node-fetch": "^3.3.2",
26
+ "concurrently": "^9.1.2",
27
+ "esbuild": "^0.25.1",
33
28
  "prompts": "^2.4.2",
34
29
  "puppeteer": "^23.6.0",
35
- "semver": "^7.6.3",
30
+ "semver": "^7.7.1",
36
31
  "simple-git": "^3.27.0",
37
- "typescript": "^5.6.3"
32
+ "typescript": "^5.8.2"
38
33
  }
39
34
  }
@@ -119,6 +119,7 @@ export declare const register: {
119
119
  name: string;
120
120
  message: string;
121
121
  stack?: string;
122
+ cause?: unknown;
122
123
  };
123
124
  source: {
124
125
  "no-window-document-on-runtime": {