@iasiv5/dsh-skins 1.5.28 → 1.5.29

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 +9 -5
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -2973,7 +2973,7 @@ ${references.join("\n")}`,
2973
2973
  if (typeof extension !== "string" || !/^[a-z0-9]+$/.test(extension)) {
2974
2974
  throw new RangeError(`builtinAssetUrl: invalid extension ${JSON.stringify(extension)}`);
2975
2975
  }
2976
- const rev = "1.5.28";
2976
+ const rev = "1.5.29";
2977
2977
  return `/dsh-skins/assets/b_${skinId}_${assetKey}.${extension}?v=${rev}`;
2978
2978
  }
2979
2979
 
@@ -3049,14 +3049,18 @@ ${references.join("\n")}`,
3049
3049
 
3050
3050
  // src/client/skins/decoration.js
3051
3051
  var BUBBLE_HOOKS = {
3052
- chat: { exact: "Sixlwa_bubble", container: "userStack" },
3052
+ chat: { exact: null, container: "userStack" },
3053
3053
  goal: { exact: "oRe1gG_bubble", container: "_stack" },
3054
3054
  bubbleLocal: "_bubble"
3055
3055
  };
3056
- var unionSelector = (hook) => `:is([class*="${hook.exact}"], [class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"])`;
3056
+ var unionSelector = (hook) => hook.exact === null ? `[class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"]` : `:is([class*="${hook.exact}"], [class*="${hook.container}"] > [class*="${BUBBLE_HOOKS.bubbleLocal}"])`;
3057
+ var BUBBLE_SELECTORS = {
3058
+ chat: unionSelector(BUBBLE_HOOKS.chat),
3059
+ goal: unionSelector(BUBBLE_HOOKS.goal)
3060
+ };
3057
3061
  function decorationCss(scope, palette) {
3058
- const chat = unionSelector(BUBBLE_HOOKS.chat);
3059
- const goal = unionSelector(BUBBLE_HOOKS.goal);
3062
+ const chat = BUBBLE_SELECTORS.chat;
3063
+ const goal = BUBBLE_SELECTORS.goal;
3060
3064
  return [
3061
3065
  `${scope} ${chat}{border:1px solid rgba(${palette.light}, 0.38);box-shadow:0 1px 4px rgba(${palette.light}, 0.10)}`,
3062
3066
  `${scope}[data-ds-dark-theme] ${chat}{border-color:rgba(${palette.dark}, 0.38);box-shadow:0 1px 6px rgba(${palette.dark}, 0.10)}`,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iasiv5/dsh-skins",
3
3
  "description": "DSH Web 皮肤插件:多套品牌皮肤侧栏热切换。",
4
4
  "icon": "./icon.svg",
5
- "version": "1.5.28",
5
+ "version": "1.5.29",
6
6
  "homepage": "https://github.com/iasiv5/dsh-skins#readme",
7
7
  "repository": {
8
8
  "type": "git",