@deepseek-ai/dsh-client-ui-sidebar-right 0.2.1-alpha.1 → 0.2.1-alpha.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.
Files changed (2) hide show
  1. package/lib/client.js +73 -33
  2. package/package.json +21 -21
package/lib/client.js CHANGED
@@ -6753,7 +6753,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6753
6753
  }
6754
6754
  };
6755
6755
  //#endregion
6756
- //#region ../../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/constants.js
6756
+ //#region ../../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/constants.js
6757
6757
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6758
6758
  const WIN_SLASH = "\\\\/";
6759
6759
  const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
@@ -6922,7 +6922,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6922
6922
  };
6923
6923
  }));
6924
6924
  //#endregion
6925
- //#region ../../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/utils.js
6925
+ //#region ../../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/utils.js
6926
6926
  var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
6927
6927
  const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants();
6928
6928
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
@@ -6970,7 +6970,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6970
6970
  };
6971
6971
  }));
6972
6972
  //#endregion
6973
- //#region ../../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/scan.js
6973
+ //#region ../../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/scan.js
6974
6974
  var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6975
6975
  const utils = require_utils();
6976
6976
  const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants();
@@ -6999,7 +6999,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6999
6999
  const scan = (input, options) => {
7000
7000
  const opts = options || {};
7001
7001
  const length = input.length - 1;
7002
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
7002
+ const scanToEnd = opts.parts === true || opts.tokens === true || opts.scanToEnd === true;
7003
7003
  const slashes = [];
7004
7004
  const tokens = [];
7005
7005
  const parts = [];
@@ -7102,14 +7102,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7102
7102
  finished = true;
7103
7103
  if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
7104
7104
  if (scanToEnd === true) {
7105
+ let parens = 0;
7105
7106
  while (eos() !== true && (code = advance())) {
7106
7107
  if (code === CHAR_BACKWARD_SLASH) {
7107
7108
  backslashes = token.backslashes = true;
7108
- code = advance();
7109
+ advance();
7110
+ continue;
7111
+ }
7112
+ if (code === CHAR_LEFT_PARENTHESES) {
7113
+ parens++;
7109
7114
  continue;
7110
7115
  }
7111
- if (code === CHAR_RIGHT_PARENTHESES) {
7112
- isGlob = token.isGlob = true;
7116
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
7113
7117
  finished = true;
7114
7118
  break;
7115
7119
  }
@@ -7157,13 +7161,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7157
7161
  if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
7158
7162
  isGlob = token.isGlob = true;
7159
7163
  if (scanToEnd === true) {
7164
+ let parens = 1;
7160
7165
  while (eos() !== true && (code = advance())) {
7161
- if (code === CHAR_LEFT_PARENTHESES) {
7166
+ if (code === CHAR_BACKWARD_SLASH) {
7162
7167
  backslashes = token.backslashes = true;
7163
- code = advance();
7168
+ advance();
7169
+ continue;
7170
+ }
7171
+ if (code === CHAR_LEFT_PARENTHESES) {
7172
+ parens++;
7164
7173
  continue;
7165
7174
  }
7166
- if (code === CHAR_RIGHT_PARENTHESES) {
7175
+ if (code === CHAR_RIGHT_PARENTHESES && --parens === 0) {
7167
7176
  finished = true;
7168
7177
  break;
7169
7178
  }
@@ -7226,7 +7235,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7226
7235
  if (opts.parts === true || opts.tokens === true) {
7227
7236
  let prevIndex;
7228
7237
  for (let idx = 0; idx < slashes.length; idx++) {
7229
- const n = prevIndex ? prevIndex + 1 : start;
7238
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
7230
7239
  const i = slashes[idx];
7231
7240
  const value = input.slice(n, i);
7232
7241
  if (opts.tokens) {
@@ -7237,18 +7246,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7237
7246
  depth(tokens[idx]);
7238
7247
  state.maxDepth += tokens[idx].depth;
7239
7248
  }
7240
- if (idx !== 0 || value !== "") parts.push(value);
7241
- prevIndex = i;
7242
- }
7243
- if (prevIndex && prevIndex + 1 < input.length) {
7244
- const value = input.slice(prevIndex + 1);
7245
- parts.push(value);
7246
- if (opts.tokens) {
7247
- tokens[tokens.length - 1].value = value;
7248
- depth(tokens[tokens.length - 1]);
7249
- state.maxDepth += tokens[tokens.length - 1].depth;
7249
+ if (i >= start) {
7250
+ parts.push(value);
7251
+ prevIndex = i;
7250
7252
  }
7251
7253
  }
7254
+ const n = prevIndex !== void 0 ? prevIndex + 1 : start;
7255
+ const value = input.slice(n);
7256
+ parts.push(value);
7257
+ if (opts.tokens && prevIndex && prevIndex + 1 < input.length) {
7258
+ tokens[tokens.length - 1].value = value;
7259
+ depth(tokens[tokens.length - 1]);
7260
+ state.maxDepth += tokens[tokens.length - 1].depth;
7261
+ }
7252
7262
  state.slashes = slashes;
7253
7263
  state.parts = parts;
7254
7264
  }
@@ -7257,7 +7267,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7257
7267
  module.exports = scan;
7258
7268
  }));
7259
7269
  //#endregion
7260
- //#region ../../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/parse.js
7270
+ //#region ../../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/parse.js
7261
7271
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
7262
7272
  const constants = require_constants();
7263
7273
  const utils = require_utils();
@@ -7412,7 +7422,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7412
7422
  }
7413
7423
  }
7414
7424
  };
7415
- const getStarExtglobSequenceOutput = (pattern) => {
7425
+ const buildCharClassStar = (chars) => {
7426
+ return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
7427
+ };
7428
+ const getStarExtglobSequenceChars = (pattern) => {
7416
7429
  let index = 0;
7417
7430
  const chars = [];
7418
7431
  while (index < pattern.length) {
@@ -7426,7 +7439,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7426
7439
  index += match.end + 1;
7427
7440
  }
7428
7441
  if (chars.length < 1) return;
7429
- return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
7442
+ return chars;
7430
7443
  };
7431
7444
  const repeatedExtglobRecursion = (pattern) => {
7432
7445
  let depth = 0;
@@ -7446,14 +7459,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7446
7459
  if (branches.length > 1) {
7447
7460
  if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
7448
7461
  }
7462
+ const safeChars = [];
7463
+ let sawStarSequence = false;
7464
+ let combinable = true;
7449
7465
  for (const branch of branches) {
7450
- const safeOutput = getStarExtglobSequenceOutput(branch);
7451
- if (safeOutput) return {
7452
- risky: true,
7453
- safeOutput
7454
- };
7466
+ const chars = getStarExtglobSequenceChars(branch);
7467
+ if (chars) {
7468
+ sawStarSequence = true;
7469
+ safeChars.push(...chars);
7470
+ continue;
7471
+ }
7472
+ const literal = normalizeSimpleBranch(branch);
7473
+ if (literal && literal.length === 1) {
7474
+ safeChars.push(literal);
7475
+ continue;
7476
+ }
7477
+ combinable = false;
7455
7478
  if (repeatedExtglobRecursion(branch) > max) return { risky: true };
7456
7479
  }
7480
+ if (sawStarSequence) return combinable ? {
7481
+ risky: true,
7482
+ safeOutput: buildCharClassStar([...new Set(safeChars)])
7483
+ } : { risky: true };
7457
7484
  return { risky: false };
7458
7485
  };
7459
7486
  /**
@@ -8138,6 +8165,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8138
8165
  rest = rest.slice(3);
8139
8166
  consume("/**", 3);
8140
8167
  }
8168
+ const isEnd = eos() || state.parens > 0 && rest === ")".repeat(state.parens) && !extglobs.some((extglob) => extglob.type === "negate");
8141
8169
  if (prior.type === "bos" && eos()) {
8142
8170
  prev.type = "globstar";
8143
8171
  prev.value += value;
@@ -8147,7 +8175,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8147
8175
  consume(value);
8148
8176
  continue;
8149
8177
  }
8150
- if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
8178
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && isEnd) {
8151
8179
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
8152
8180
  prior.output = `(?:${prior.output}`;
8153
8181
  prev.type = "globstar";
@@ -8312,7 +8340,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8312
8340
  module.exports = parse;
8313
8341
  }));
8314
8342
  //#endregion
8315
- //#region ../../../node_modules/.pnpm/picomatch@4.0.4/node_modules/picomatch/lib/picomatch.js
8343
+ //#region ../../../node_modules/.pnpm/picomatch@4.0.7/node_modules/picomatch/lib/picomatch.js
8316
8344
  var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8317
8345
  const scan = require_scan();
8318
8346
  const parse = require_parse();
@@ -8333,6 +8361,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8333
8361
  * const isMatch = picomatch('*.!(*a)');
8334
8362
  * console.log(isMatch('a.a')); //=> false
8335
8363
  * console.log(isMatch('a.b')); //=> true
8364
+ *
8365
+ * // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
8366
+ * const picomatch = require('picomatch/posix');
8367
+ * // the same API, defaulting to posix paths
8368
+ * const isMatch = picomatch('a/*');
8369
+ * console.log(isMatch('a\\b')); //=> false
8370
+ * console.log(isMatch('a/b')); //=> true
8371
+ *
8372
+ * // you can still configure the matcher function to accept windows paths
8373
+ * const isMatch = picomatch('a/*', { options: windows });
8374
+ * console.log(isMatch('a\\b')); //=> true
8375
+ * console.log(isMatch('a/b')); //=> true
8336
8376
  * ```
8337
8377
  * @name picomatch
8338
8378
  * @param {String|Array} `globs` One or more glob patterns.
@@ -8451,8 +8491,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8451
8491
  * @return {Boolean}
8452
8492
  * @api public
8453
8493
  */
8454
- picomatch.matchBase = (input, glob, options) => {
8455
- return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input));
8494
+ picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
8495
+ return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(utils.basename(input, { windows: posix }));
8456
8496
  };
8457
8497
  /**
8458
8498
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-client-ui-sidebar-right",
3
3
  "description": "Right Sidebar: the docking surface's session-bound state, its panel and header expand control, and the navigation service over it",
4
- "version": "0.2.1-alpha.1",
4
+ "version": "0.2.1-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -43,32 +43,32 @@
43
43
  "@deepseek-ai/cordis": "~4.0.5-alpha.1"
44
44
  },
45
45
  "devDependencies": {
46
- "@testing-library/react": "^16.1.0",
47
- "@types/picomatch": "^4.0.2",
46
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
47
+ "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.2",
48
+ "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.2",
49
+ "@deepseek-ai/dsh-client-resources": "0.2.1-alpha.2",
50
+ "@deepseek-ai/dsh-client-store": "0.2.1-alpha.2",
51
+ "@deepseek-ai/dsh-client-test-runtime": "0.2.1-alpha.2",
52
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.2",
53
+ "@deepseek-ai/dsh-client-ui-dockkit": "0.2.1-alpha.2",
54
+ "@deepseek-ai/dsh-client-ui-layout": "0.2.1-alpha.2",
55
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.2",
56
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.2",
57
+ "@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.2",
58
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.2",
59
+ "@deepseek-ai/dsh-session": "0.2.1-alpha.2",
60
+ "@testing-library/react": "^16.3.3",
61
+ "@types/picomatch": "^4.0.3",
48
62
  "@types/react": "~18.3.1",
49
63
  "@types/react-dom": "~18.3.0",
50
64
  "react": "^18.2.0",
51
65
  "react-dom": "^18.2.0",
52
- "picomatch": "^4.0.4",
66
+ "picomatch": "^4.0.7",
53
67
  "clsx": "^2.0.0",
68
+ "@deepseek-ai/dsh-util-crypto": "0.2.1-alpha.2",
54
69
  "zod": "^4.4.3",
55
- "@deepseek-ai/cordis": "~4.0.5-alpha.1",
56
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.1",
57
- "@deepseek-ai/dsh-client-locale": "0.2.1-alpha.1",
58
- "@deepseek-ai/dsh-client-resources": "0.2.1-alpha.1",
59
- "@deepseek-ai/dsh-client-test-runtime": "0.2.1-alpha.1",
60
- "@deepseek-ai/dsh-client-store": "0.2.1-alpha.1",
61
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-alpha.1",
62
- "@deepseek-ai/dsh-client-ui-dockkit": "0.2.1-alpha.1",
63
- "@deepseek-ai/dsh-client-ui-layout": "0.2.1-alpha.1",
64
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-alpha.1",
65
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-alpha.1",
66
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-alpha.1",
67
- "@deepseek-ai/dsh-session": "0.2.1-alpha.1",
68
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-alpha.1",
69
- "@deepseek-ai/dsh-util-crypto": "0.2.1-alpha.1",
70
- "@deepseek-ai/dsh-client-shortcuts": "0.2.1-alpha.1",
71
- "@deepseek-ai/dsh-brand": "0.2.1-alpha.1"
70
+ "@deepseek-ai/dsh-client-shortcuts": "0.2.1-alpha.2",
71
+ "@deepseek-ai/dsh-brand": "0.2.1-alpha.2"
72
72
  },
73
73
  "files": [
74
74
  "lib/index.js",