• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ringcentral / ringcentral-js-widgets / 21017357600

15 Jan 2026 02:19AM UTC coverage: 61.994% (-1.1%) from 63.06%
21017357600

push

github

web-flow
misc: sync features and bugfixes from 8f9fbb5dfe (#1784)

* misc: sync crius

* chore: update babel-setting deps

* feat(core): update logger and add fromWatch

* misc: fix tsconfig

* misc: fix tsconfig

* misc: update eslint-settings and new eslint-plugin-crius package

* chore: remove ci and nx from package.json

* feat(i18n): new getAcceptLocaleMap and preudo string support

* chore: add preudo i18n

* misc(locale-loader): convert to ts, new format support

* misc(locale-settings): use ts

* chore: add format test in phone number lib

* feat(react-hooks): add more hooks

* chore: add comments

* misc: add more mock files

* misc: update test utils

* misc: update utils

* chore: update tsconfig

* misc: update i18n string, and convert to ts

* feat: update ui components, support emoji input, new video setting ui

* feat: new rcvideo v2 module

* feat: use new subscription register api

* misc(commons): update enums/interfaces

* misc: update Analytics lib

* misc: upgrade uuid and update import

* misc(commons): update formatDuration lib

* misc(test): add test steps

* chore: update tests and more feature tests

* misc: update demo project

* misc: update cli template

* misc: fix deps issue

* misc: remove glip widgets package

* misc: fix wrong import path

* misc: limit jest worker memory

* chore: use npm trusted-publishers

10285 of 18150 branches covered (56.67%)

Branch coverage included in aggregate %.

986 of 2186 new or added lines in 228 files covered. (45.11%)

44 existing lines in 23 files now uncovered.

17404 of 26514 relevant lines covered (65.64%)

167640.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/ringcentral-widgets/components/MessageInput/utils/setNativeValue.ts
1
/**
2
 * using native value to set to trigger native onChange and input event
3

4
// TODO: find way to trigger browser history(cmd+z, cmd+y) events
5
 */
6
export function setNativeValue(element: HTMLElement, value: string) {
NEW
7
  const valueSetter = Object.getOwnPropertyDescriptor(element, 'value')!.set;
×
NEW
8
  const prototype = Object.getPrototypeOf(element);
×
NEW
9
  const prototypeValueSetter = Object.getOwnPropertyDescriptor(
×
10
    prototype,
11
    'value',
12
  )!.set;
13

NEW
14
  if (valueSetter && valueSetter !== prototypeValueSetter) {
×
NEW
15
    prototypeValueSetter!.call(element, value);
×
16
  } else {
NEW
17
    valueSetter!.call(element, value);
×
18
  }
19

NEW
20
  element.dispatchEvent(new Event('input', { bubbles: true }));
×
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc