@duskmoon-dev/components 0.6.1 → 0.6.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.
|
@@ -3246,6 +3246,16 @@ function snapshotComposerReceipt(input, submission) {
|
|
|
3246
3246
|
throw new TypeError("Unsupported receipt fields");
|
|
3247
3247
|
return value;
|
|
3248
3248
|
}
|
|
3249
|
+
function createSubmissionId() {
|
|
3250
|
+
const webCrypto = globalThis.crypto;
|
|
3251
|
+
if (typeof webCrypto.randomUUID === "function")
|
|
3252
|
+
return webCrypto.randomUUID();
|
|
3253
|
+
const bytes = webCrypto.getRandomValues(new Uint8Array(16));
|
|
3254
|
+
bytes[6] = bytes[6] & 15 | 64;
|
|
3255
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
3256
|
+
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
3257
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
3258
|
+
}
|
|
3249
3259
|
function createComposerSessionController(initial, identity) {
|
|
3250
3260
|
let context = initial;
|
|
3251
3261
|
let disposed = false;
|
|
@@ -3368,7 +3378,7 @@ function createComposerSessionController(initial, identity) {
|
|
|
3368
3378
|
const action = composerActionEligibility(context, intent);
|
|
3369
3379
|
if (disposed || state.submitting || !action.allowed)
|
|
3370
3380
|
return;
|
|
3371
|
-
const clientSubmissionId = identity.nextSubmissionId?.() ??
|
|
3381
|
+
const clientSubmissionId = identity.nextSubmissionId?.() ?? createSubmissionId();
|
|
3372
3382
|
const common = {
|
|
3373
3383
|
protocolVersion: 1,
|
|
3374
3384
|
clientSubmissionId,
|
|
@@ -38,7 +38,7 @@ var __chunks = (base, ids, nodes, entry) => {
|
|
|
38
38
|
__chunkSeen ||= {};
|
|
39
39
|
__preload(ids[entry], 1);
|
|
40
40
|
};
|
|
41
|
-
__chunks(import.meta.url,["
|
|
41
|
+
__chunks(import.meta.url,["actqdgcw","rd10x4gc","kg46s2vk"],[["./index.js",2],["../../../chunk-rd10x4gc.js",2],["../../../chunk-kg46s2vk.js"]],0);
|
|
42
42
|
|
|
43
43
|
// src/components/chat/rich/RichChatComposer.tsx
|
|
44
44
|
import { Component, Suspense, forwardRef as forwardRef5, lazy } from "react";
|
|
@@ -1852,6 +1852,16 @@ function snapshotComposerReceipt(input, submission) {
|
|
|
1852
1852
|
throw new TypeError("Unsupported receipt fields");
|
|
1853
1853
|
return value;
|
|
1854
1854
|
}
|
|
1855
|
+
function createSubmissionId() {
|
|
1856
|
+
const webCrypto = globalThis.crypto;
|
|
1857
|
+
if (typeof webCrypto.randomUUID === "function")
|
|
1858
|
+
return webCrypto.randomUUID();
|
|
1859
|
+
const bytes = webCrypto.getRandomValues(new Uint8Array(16));
|
|
1860
|
+
bytes[6] = bytes[6] & 15 | 64;
|
|
1861
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
1862
|
+
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
1863
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
1864
|
+
}
|
|
1855
1865
|
function createComposerSessionController(initial, identity) {
|
|
1856
1866
|
let context = initial;
|
|
1857
1867
|
let disposed = false;
|
|
@@ -1974,7 +1984,7 @@ function createComposerSessionController(initial, identity) {
|
|
|
1974
1984
|
const action = composerActionEligibility(context, intent);
|
|
1975
1985
|
if (disposed || state.submitting || !action.allowed)
|
|
1976
1986
|
return;
|
|
1977
|
-
const clientSubmissionId = identity.nextSubmissionId?.() ??
|
|
1987
|
+
const clientSubmissionId = identity.nextSubmissionId?.() ?? createSubmissionId();
|
|
1978
1988
|
const common = {
|
|
1979
1989
|
protocolVersion: 1,
|
|
1980
1990
|
clientSubmissionId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.6.
|
|
1
|
+
export declare const version = "0.6.2";
|
package/dist/index.js
CHANGED
|
@@ -107,7 +107,7 @@ function duskmoonMerge(classes) {
|
|
|
107
107
|
import { useCallback as useCallback2, useState as useState2 } from "react";
|
|
108
108
|
|
|
109
109
|
// src/generated/version.ts
|
|
110
|
-
var version = "0.6.
|
|
110
|
+
var version = "0.6.2";
|
|
111
111
|
|
|
112
112
|
// src/infrastructure.ts
|
|
113
113
|
var theme = {
|
|
@@ -3844,6 +3844,16 @@ function snapshotComposerReceipt(input, submission) {
|
|
|
3844
3844
|
throw new TypeError("Unsupported receipt fields");
|
|
3845
3845
|
return value;
|
|
3846
3846
|
}
|
|
3847
|
+
function createSubmissionId() {
|
|
3848
|
+
const webCrypto = globalThis.crypto;
|
|
3849
|
+
if (typeof webCrypto.randomUUID === "function")
|
|
3850
|
+
return webCrypto.randomUUID();
|
|
3851
|
+
const bytes = webCrypto.getRandomValues(new Uint8Array(16));
|
|
3852
|
+
bytes[6] = bytes[6] & 15 | 64;
|
|
3853
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
3854
|
+
const hex = Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
3855
|
+
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
3856
|
+
}
|
|
3847
3857
|
function createComposerSessionController(initial, identity) {
|
|
3848
3858
|
let context = initial;
|
|
3849
3859
|
let disposed = false;
|
|
@@ -3966,7 +3976,7 @@ function createComposerSessionController(initial, identity) {
|
|
|
3966
3976
|
const action = composerActionEligibility(context, intent);
|
|
3967
3977
|
if (disposed || state.submitting || !action.allowed)
|
|
3968
3978
|
return;
|
|
3969
|
-
const clientSubmissionId = identity.nextSubmissionId?.() ??
|
|
3979
|
+
const clientSubmissionId = identity.nextSubmissionId?.() ?? createSubmissionId();
|
|
3970
3980
|
const common = {
|
|
3971
3981
|
protocolVersion: 1,
|
|
3972
3982
|
clientSubmissionId,
|
package/dist/infrastructure.js
CHANGED
package/dist/styles.css
CHANGED
|
@@ -26894,7 +26894,8 @@ html {
|
|
|
26894
26894
|
cursor: pointer;
|
|
26895
26895
|
}
|
|
26896
26896
|
|
|
26897
|
-
.radio
|
|
26897
|
+
/* React wraps its input in a label; Core styles input.radio directly. */
|
|
26898
|
+
label.radio {
|
|
26898
26899
|
position: relative;
|
|
26899
26900
|
display: inline-flex;
|
|
26900
26901
|
width: auto;
|
|
@@ -26910,8 +26911,8 @@ html {
|
|
|
26910
26911
|
cursor: pointer;
|
|
26911
26912
|
}
|
|
26912
26913
|
|
|
26913
|
-
.radio::before,
|
|
26914
|
-
.radio::after {
|
|
26914
|
+
label.radio::before,
|
|
26915
|
+
label.radio::after {
|
|
26915
26916
|
display: none;
|
|
26916
26917
|
content: none;
|
|
26917
26918
|
}
|