@cloudscape-design/components 3.0.1005 → 3.0.1006
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/code-editor/use-editor.d.ts +2 -1
- package/code-editor/use-editor.d.ts.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/internal/vendor/d3-scale.js +42 -48
- package/multiselect/use-multiselect.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="ace-builds/types/ace-modules" />
|
|
2
3
|
import { Ace } from 'ace-builds';
|
|
3
4
|
import { CodeEditorProps } from './interfaces';
|
|
4
5
|
export declare function useEditor(ace: any, themes?: CodeEditorProps.AvailableThemes, loading?: boolean): {
|
|
5
6
|
editorRef: import("react").RefObject<HTMLDivElement>;
|
|
6
|
-
editor:
|
|
7
|
+
editor: import("ace-builds").Editor | null;
|
|
7
8
|
};
|
|
8
9
|
export declare function useSyncEditorLabels(editor: null | Ace.Editor, {
|
|
9
10
|
controlId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-editor.d.ts","sourceRoot":"","sources":["../../../src/code-editor/use-editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-editor.d.ts","sourceRoot":"","sources":["../../../src/code-editor/use-editor.tsx"],"names":[],"mappings":";;AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAG/C,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,eAAe,CAAC,eAAe,EAAE,OAAO,CAAC,EAAE,OAAO;;;EAoB9F;AAED,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EACzB,EACE,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,GAChB,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,CAAA;CAAE,QAkCjG;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EACzB,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE;IAAE,KAAK,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,GAAG,MAAM,CAAA;CAAE;;EAWrE;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,QAY1E;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,QAIhF;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,QAIpF;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,IAAI,GAAG,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,QAIzF"}
|
package/internal/environment.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (af9fa355)";
|
|
3
|
+
export var GIT_SHA = "af9fa355";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var ALWAYS_VISUAL_REFRESH = true;
|
package/internal/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Name: d3-array
|
|
3
|
-
* Version: 3.2.
|
|
3
|
+
* Version: 3.2.4
|
|
4
4
|
* License: ISC
|
|
5
5
|
* Private: false
|
|
6
6
|
* Description: Array manipulation, ordering, searching, summarizing, etc.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* License Copyright:
|
|
11
11
|
* ===
|
|
12
12
|
*
|
|
13
|
-
* Copyright 2010-
|
|
13
|
+
* Copyright 2010-2023 Mike Bostock
|
|
14
14
|
*
|
|
15
15
|
* Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
16
16
|
* with or without fee is hereby granted, provided that the above copyright notice
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
25
25
|
* THIS SOFTWARE.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
27
|
* ---
|
|
29
28
|
*
|
|
30
29
|
* Name: internmap
|
|
@@ -52,7 +51,6 @@
|
|
|
52
51
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
53
52
|
* THIS SOFTWARE.
|
|
54
53
|
*
|
|
55
|
-
*
|
|
56
54
|
* ---
|
|
57
55
|
*
|
|
58
56
|
* Name: d3-scale
|
|
@@ -80,7 +78,6 @@
|
|
|
80
78
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
81
79
|
* THIS SOFTWARE.
|
|
82
80
|
*
|
|
83
|
-
*
|
|
84
81
|
* ---
|
|
85
82
|
*
|
|
86
83
|
* Name: d3-color
|
|
@@ -108,7 +105,6 @@
|
|
|
108
105
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
109
106
|
* THIS SOFTWARE.
|
|
110
107
|
*
|
|
111
|
-
*
|
|
112
108
|
* ---
|
|
113
109
|
*
|
|
114
110
|
* Name: d3-interpolate
|
|
@@ -136,7 +132,6 @@
|
|
|
136
132
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
137
133
|
* THIS SOFTWARE.
|
|
138
134
|
*
|
|
139
|
-
*
|
|
140
135
|
* ---
|
|
141
136
|
*
|
|
142
137
|
* Name: d3-format
|
|
@@ -164,7 +159,6 @@
|
|
|
164
159
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
165
160
|
* THIS SOFTWARE.
|
|
166
161
|
*
|
|
167
|
-
*
|
|
168
162
|
* ---
|
|
169
163
|
*
|
|
170
164
|
* Name: d3-time
|
|
@@ -192,7 +186,6 @@
|
|
|
192
186
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
193
187
|
* THIS SOFTWARE.
|
|
194
188
|
*
|
|
195
|
-
*
|
|
196
189
|
* ---
|
|
197
190
|
*
|
|
198
191
|
* Name: d3-time-format
|
|
@@ -340,59 +333,60 @@ function keyof(value) {
|
|
|
340
333
|
return value !== null && typeof value === "object" ? value.valueOf() : value;
|
|
341
334
|
}
|
|
342
335
|
|
|
343
|
-
|
|
336
|
+
const e10 = Math.sqrt(50),
|
|
344
337
|
e5 = Math.sqrt(10),
|
|
345
338
|
e2 = Math.sqrt(2);
|
|
346
339
|
|
|
347
|
-
function
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
340
|
+
function tickSpec(start, stop, count) {
|
|
341
|
+
const step = (stop - start) / Math.max(0, count),
|
|
342
|
+
power = Math.floor(Math.log10(step)),
|
|
343
|
+
error = step / Math.pow(10, power),
|
|
344
|
+
factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;
|
|
345
|
+
let i1, i2, inc;
|
|
346
|
+
if (power < 0) {
|
|
347
|
+
inc = Math.pow(10, -power) / factor;
|
|
348
|
+
i1 = Math.round(start * inc);
|
|
349
|
+
i2 = Math.round(stop * inc);
|
|
350
|
+
if (i1 / inc < start) ++i1;
|
|
351
|
+
if (i2 / inc > stop) --i2;
|
|
352
|
+
inc = -inc;
|
|
353
|
+
} else {
|
|
354
|
+
inc = Math.pow(10, power) * factor;
|
|
355
|
+
i1 = Math.round(start / inc);
|
|
356
|
+
i2 = Math.round(stop / inc);
|
|
357
|
+
if (i1 * inc < start) ++i1;
|
|
358
|
+
if (i2 * inc > stop) --i2;
|
|
359
|
+
}
|
|
360
|
+
if (i2 < i1 && 0.5 <= count && count < 2) return tickSpec(start, stop, count * 2);
|
|
361
|
+
return [i1, i2, inc];
|
|
362
|
+
}
|
|
353
363
|
|
|
364
|
+
function ticks(start, stop, count) {
|
|
354
365
|
stop = +stop, start = +start, count = +count;
|
|
355
|
-
if (
|
|
356
|
-
if (
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
if (
|
|
362
|
-
|
|
363
|
-
ticks = new Array(n = r1 - r0 + 1);
|
|
364
|
-
while (++i < n) ticks[i] = (r0 + i) * step;
|
|
366
|
+
if (!(count > 0)) return [];
|
|
367
|
+
if (start === stop) return [start];
|
|
368
|
+
const reverse = stop < start, [i1, i2, inc] = reverse ? tickSpec(stop, start, count) : tickSpec(start, stop, count);
|
|
369
|
+
if (!(i2 >= i1)) return [];
|
|
370
|
+
const n = i2 - i1 + 1, ticks = new Array(n);
|
|
371
|
+
if (reverse) {
|
|
372
|
+
if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) / -inc;
|
|
373
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i2 - i) * inc;
|
|
365
374
|
} else {
|
|
366
|
-
|
|
367
|
-
let
|
|
368
|
-
if (r0 / step < start) ++r0;
|
|
369
|
-
if (r1 / step > stop) --r1;
|
|
370
|
-
ticks = new Array(n = r1 - r0 + 1);
|
|
371
|
-
while (++i < n) ticks[i] = (r0 + i) / step;
|
|
375
|
+
if (inc < 0) for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) / -inc;
|
|
376
|
+
else for (let i = 0; i < n; ++i) ticks[i] = (i1 + i) * inc;
|
|
372
377
|
}
|
|
373
|
-
|
|
374
|
-
if (reverse) ticks.reverse();
|
|
375
|
-
|
|
376
378
|
return ticks;
|
|
377
379
|
}
|
|
378
380
|
|
|
379
381
|
function tickIncrement(start, stop, count) {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
error = step / Math.pow(10, power);
|
|
383
|
-
return power >= 0
|
|
384
|
-
? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
|
|
385
|
-
: -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
|
|
382
|
+
stop = +stop, start = +start, count = +count;
|
|
383
|
+
return tickSpec(start, stop, count)[2];
|
|
386
384
|
}
|
|
387
385
|
|
|
388
386
|
function tickStep(start, stop, count) {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
if (error >= e10) step1 *= 10;
|
|
393
|
-
else if (error >= e5) step1 *= 5;
|
|
394
|
-
else if (error >= e2) step1 *= 2;
|
|
395
|
-
return stop < start ? -step1 : step1;
|
|
387
|
+
stop = +stop, start = +start, count = +count;
|
|
388
|
+
const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
|
|
389
|
+
return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
|
|
396
390
|
}
|
|
397
391
|
|
|
398
392
|
function range(start, stop, step) {
|
|
@@ -60,8 +60,8 @@ export declare function useMultiselect({
|
|
|
60
60
|
ariaLabelledby: string | undefined;
|
|
61
61
|
ariaDescribedby: string | undefined;
|
|
62
62
|
embedded: boolean | undefined;
|
|
63
|
-
open?: boolean | undefined;
|
|
64
63
|
position?: import("csstype").Property.Position | undefined;
|
|
64
|
+
open?: boolean | undefined;
|
|
65
65
|
className?: string | undefined;
|
|
66
66
|
id?: string | undefined;
|
|
67
67
|
role?: "listbox" | "menu" | "list" | undefined;
|
package/package.json
CHANGED
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
"./internal/base-component/index.js",
|
|
150
150
|
"./internal/base-component/styles.css.js"
|
|
151
151
|
],
|
|
152
|
-
"version": "3.0.
|
|
152
|
+
"version": "3.0.1006",
|
|
153
153
|
"repository": {
|
|
154
154
|
"type": "git",
|
|
155
155
|
"url": "https://github.com/cloudscape-design/components.git"
|