vrtalk-web-sdk 0.1.531 → 0.1.532

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 (49) hide show
  1. package/dist/src/model/vr/xr-logic.d.ts +3 -2
  2. package/dist/src/vue/common/pick-str.d.ts +12 -0
  3. package/dist/vrtalk-web-sdk.js +1 -1
  4. package/dist/vue/common/pick-str.ts +33 -0
  5. package/dist/vue/fields/field-boolean-card-pair.vue +80 -0
  6. package/dist/vue/fields/field-boolean-checkbox.vue +12 -0
  7. package/dist/vue/fields/field-boolean-segment.vue +17 -0
  8. package/dist/vue/fields/field-boolean-switch.vue +9 -0
  9. package/dist/vue/fields/field-boolean-thumb.vue +107 -0
  10. package/dist/vue/fields/field-color-picker.vue +119 -0
  11. package/dist/vue/fields/field-color-swatch-picker.vue +102 -0
  12. package/dist/vue/fields/field-css-color-advanced.vue +390 -0
  13. package/dist/vue/fields/field-css-color-input.vue +66 -0
  14. package/dist/vue/fields/field-css-color-swatch-picker.vue +81 -0
  15. package/dist/vue/fields/field-number-chip-tile.vue +63 -0
  16. package/dist/vue/fields/field-number-dial.vue +144 -0
  17. package/dist/vue/fields/field-number-emoji-scale.vue +60 -0
  18. package/dist/vue/fields/field-number-input.vue +17 -0
  19. package/dist/vue/fields/field-number-progress-tap.vue +205 -0
  20. package/dist/vue/fields/field-number-segment.vue +17 -0
  21. package/dist/vue/fields/field-number-slider-vertical.vue +40 -0
  22. package/dist/vue/fields/field-number-slider.vue +46 -0
  23. package/dist/vue/fields/field-number-star-rating.vue +161 -0
  24. package/dist/vue/fields/field-number-stepper.vue +97 -0
  25. package/dist/vue/fields/field-string-autocomplete.vue +18 -0
  26. package/dist/vue/fields/field-string-avatar-list.vue +96 -0
  27. package/dist/vue/fields/field-string-card-grid.vue +110 -0
  28. package/dist/vue/fields/field-string-color-swatch.vue +61 -0
  29. package/dist/vue/fields/field-string-input.vue +12 -0
  30. package/dist/vue/fields/field-string-radio.vue +37 -0
  31. package/dist/vue/fields/field-string-segment.vue +17 -0
  32. package/dist/vue/fields/field-string-select.vue +20 -0
  33. package/dist/vue/fields/field-string-tag.vue +74 -0
  34. package/dist/vue/fields/field-string-textarea.vue +15 -0
  35. package/dist/vue/interaction-control/vrtalk-interaction-control-renderer.vue +104 -0
  36. package/dist/vue/primitives/vrtalk-autocomplete.vue +126 -0
  37. package/dist/vue/primitives/vrtalk-button.vue +68 -0
  38. package/dist/vue/primitives/vrtalk-checkbox.vue +70 -0
  39. package/dist/vue/primitives/vrtalk-input-number.vue +152 -0
  40. package/dist/vue/primitives/vrtalk-input.vue +59 -0
  41. package/dist/vue/primitives/vrtalk-radio-group.vue +101 -0
  42. package/dist/vue/primitives/vrtalk-segmented.vue +98 -0
  43. package/dist/vue/primitives/vrtalk-select.vue +90 -0
  44. package/dist/vue/primitives/vrtalk-slider.vue +137 -0
  45. package/dist/vue/primitives/vrtalk-switch.vue +72 -0
  46. package/dist/vue/primitives/vrtalk-textarea.vue +71 -0
  47. package/dist/vue/tintable-icon/vrtalk-tintable-icon.vue +61 -0
  48. package/dist/webpack.config.d.ts +2 -1
  49. package/package.json +10 -1
@@ -1,4 +1,4 @@
1
- import { Color, type MediaLoopMode, MultiLanguageStr, Vector3, VRTalkBaseData } from '../general';
1
+ import { Color, type MediaLoopMode, MultiLanguageStr, TintableIconRef, Vector3, VRTalkBaseData } from '../general';
2
2
  import type { XrMonitorComponentType, XrMonitorComponentImageMode, XrMonitorComponentTextAlign, XrMonitorComponentVerticalAlign, XrMonitorComponentProgressBarDirection, XrMonitorComponentVideoObjectFit, XrMonitorComponentButtonIconPosition } from './xr-monitor';
3
3
  import { VrSignalTrigger } from '@/model';
4
4
  import type { XrAnyAction } from './vr-action';
@@ -276,8 +276,9 @@ export declare class XrMonitorComponentRuntimeState {
276
276
  loop: boolean;
277
277
  controls: boolean;
278
278
  objectFit: XrMonitorComponentVideoObjectFit;
279
- iconSrc: string;
279
+ icon: TintableIconRef;
280
280
  iconPosition: XrMonitorComponentButtonIconPosition;
281
+ bound: any;
281
282
  }
282
283
  /**
283
284
  * 监控面板运行时状态
@@ -0,0 +1,12 @@
1
+ /**
2
+ * SDK 共享 Vue 组件统一取值 helper:
3
+ * - MultiLanguageStr 对象 → 按当前语言挑出 string
4
+ * - string / null / undefined → 老数据兼容兜底
5
+ *
6
+ * 注意:此文件被 SDK build 时类型检查,并会原样 copy 到 dist/vue/common/pick-str.ts。
7
+ * 因此 *不能* import 'vrtalk-web-sdk'(自引用)。MultiLanguageStr 的解析逻辑直接 inline。
8
+ *
9
+ * 消费方通过 setPickStrLanguageGetter 注入当前语言 getter,避免 SDK 反向依赖业务 store。
10
+ */
11
+ export declare function setPickStrLanguageGetter(fn: () => string): void;
12
+ export declare function pickStr(v: any): string;