@vuu-ui/vuu-utils 0.13.25 → 0.13.26

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.
@@ -312,10 +312,13 @@ var Cursor = class extends index.Plugin {
312
312
  this.destroy = signalsCore.effect(() => {
313
313
  var _a4;
314
314
  const { dragOperation } = this.manager;
315
- const { cursor = "grabbing" } = (_a4 = this.options) != null ? _a4 : {};
315
+ const { cursor = "grabbing", nonce } = (_a4 = this.options) != null ? _a4 : {};
316
316
  if (dragOperation.status.initialized) {
317
317
  const document2 = doc.value;
318
318
  const style = document2.createElement("style");
319
+ if (nonce) {
320
+ style.setAttribute("nonce", nonce);
321
+ }
319
322
  style.textContent = `* { cursor: ${cursor} !important; }`;
320
323
  document2.head.appendChild(style);
321
324
  return () => style.remove();
@@ -917,17 +920,21 @@ render_fn = function() {
917
920
  };
918
921
  };
919
922
  injectStyles_fn = function() {
920
- var _a4, _b2;
923
+ var _a4, _b2, _c3;
921
924
  const { status, source, target } = this.manager.dragOperation;
925
+ const { nonce } = (_a4 = this.options) != null ? _a4 : {};
922
926
  if (status.initializing) {
923
- const sourceDocument = utilities.getDocument((_a4 = source == null ? void 0 : source.element) != null ? _a4 : null);
924
- const targetDocument = utilities.getDocument((_b2 = target == null ? void 0 : target.element) != null ? _b2 : null);
927
+ const sourceDocument = utilities.getDocument((_b2 = source == null ? void 0 : source.element) != null ? _b2 : null);
928
+ const targetDocument = utilities.getDocument((_c3 = target == null ? void 0 : target.element) != null ? _c3 : null);
925
929
  const documents = /* @__PURE__ */ new Set([sourceDocument, targetDocument]);
926
930
  for (const doc of documents) {
927
931
  let registration = styleSheetRegistry.get(doc);
928
932
  if (!registration) {
929
933
  const style = document.createElement("style");
930
934
  style.textContent = CSS_RULES;
935
+ if (nonce) {
936
+ style.setAttribute("nonce", nonce);
937
+ }
931
938
  doc.head.prepend(style);
932
939
  const mutationObserver = new MutationObserver((entries) => {
933
940
  for (const entry of entries) {
@@ -1301,13 +1308,18 @@ var ScrollListener = class extends index.CorePlugin {
1301
1308
  };
1302
1309
  _timeout = new WeakMap();
1303
1310
  var PreventSelection = class extends index.Plugin {
1304
- constructor(manager) {
1305
- super(manager);
1311
+ constructor(manager, options) {
1312
+ super(manager, options);
1306
1313
  this.manager = manager;
1307
1314
  this.destroy = signalsCore.effect(() => {
1315
+ var _a4;
1308
1316
  const { dragOperation } = this.manager;
1317
+ const { nonce } = (_a4 = this.options) != null ? _a4 : {};
1309
1318
  if (dragOperation.status.initialized) {
1310
1319
  const style = document.createElement("style");
1320
+ if (nonce) {
1321
+ style.setAttribute("nonce", nonce);
1322
+ }
1311
1323
  style.textContent = `* { user-select: none !important; -webkit-user-select: none !important; }`;
1312
1324
  document.head.appendChild(style);
1313
1325
  removeSelection();