@piedata/pieui 1.1.2 → 1.1.3

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 (73) hide show
  1. package/dist/cli.js +37 -37
  2. package/dist/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.d.ts.map +1 -1
  3. package/dist/components/Chats/ChatCard/ui/ChatCard.d.ts.map +1 -1
  4. package/dist/components/PieRoot/index.d.ts.map +1 -1
  5. package/dist/components/index.esm.js +13 -13
  6. package/dist/components/index.js +20 -20
  7. package/dist/index.esm.js +15 -15
  8. package/dist/index.js +23 -23
  9. package/dist/util/ajaxCommonUtils.d.ts +7 -1
  10. package/dist/util/ajaxCommonUtils.d.ts.map +1 -1
  11. package/package.json +2 -5
  12. package/src/components/Buttons/AjaxButtonCard/index.ts +0 -1
  13. package/src/components/Buttons/AjaxButtonCard/types/index.ts +0 -17
  14. package/src/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.tsx +0 -38
  15. package/src/components/Chats/ChatCard/index.ts +0 -1
  16. package/src/components/Chats/ChatCard/types/annyang.d.ts +0 -11
  17. package/src/components/Chats/ChatCard/types/index.ts +0 -59
  18. package/src/components/Chats/ChatCard/ui/ChatCard.tsx +0 -130
  19. package/src/components/Chats/ChatCard/ui/components/AttachFileButton.tsx +0 -49
  20. package/src/components/Chats/ChatCard/ui/components/AttachedFileView.tsx +0 -29
  21. package/src/components/Chats/ChatCard/ui/components/ChatCardInput.tsx +0 -177
  22. package/src/components/Chats/ChatCard/ui/components/ChatOption.tsx +0 -25
  23. package/src/components/Chats/ChatCard/ui/components/Markdown.tsx +0 -21
  24. package/src/components/Chats/ChatCard/ui/components/MessageAvatar.tsx +0 -17
  25. package/src/components/Chats/ChatCard/ui/components/MessageCard.tsx +0 -80
  26. package/src/components/Chats/ChatCard/ui/components/MessageContent.tsx +0 -27
  27. package/src/components/Chats/ChatCard/ui/components/MessagesBoard.tsx +0 -61
  28. package/src/components/Chats/ChatCard/ui/components/Options.tsx +0 -20
  29. package/src/components/Chats/ChatCard/ui/components/ResizableTextarea.tsx +0 -59
  30. package/src/components/Chats/ChatCard/ui/components/SendButton.tsx +0 -37
  31. package/src/components/Chats/ChatCard/ui/components/VoiceListeningButton.tsx +0 -35
  32. package/src/components/Chats/ChatCard/ui/components/icons/AttachFileIcon.tsx +0 -18
  33. package/src/components/Chats/ChatCard/ui/components/icons/AttachedFileIcon.tsx +0 -18
  34. package/src/components/Chats/ChatCard/ui/components/icons/CancelFileIcon.tsx +0 -14
  35. package/src/components/Chats/ChatCard/ui/components/icons/DefaultAvatar.tsx +0 -10
  36. package/src/components/Chats/ChatCard/ui/components/icons/SendIcon.tsx +0 -18
  37. package/src/components/Chats/ChatCard/ui/components/icons/VoiceRecordIcon.tsx +0 -15
  38. package/src/components/Containers/AjaxGroupCard/index.ts +0 -1
  39. package/src/components/Containers/AjaxGroupCard/types/index.ts +0 -17
  40. package/src/components/Containers/AjaxGroupCard/ui/AjaxGroupCard.tsx +0 -96
  41. package/src/components/Containers/SequenceCard/index.ts +0 -1
  42. package/src/components/Containers/SequenceCard/types/index.ts +0 -10
  43. package/src/components/Containers/SequenceCard/ui/SequenceCard.tsx +0 -32
  44. package/src/components/Containers/UnionCard/index.ts +0 -1
  45. package/src/components/Containers/UnionCard/types/index.ts +0 -8
  46. package/src/components/Containers/UnionCard/ui/UnionCard.tsx +0 -27
  47. package/src/components/PieCard/index.tsx +0 -149
  48. package/src/components/PieCard/types/index.ts +0 -18
  49. package/src/components/PieRoot/index.tsx +0 -154
  50. package/src/components/PieRoot/types/index.ts +0 -14
  51. package/src/components/PieTelegramRoot/index.tsx +0 -161
  52. package/src/components/UI/index.tsx +0 -70
  53. package/src/components/index.ts +0 -6
  54. package/src/index.ts +0 -15
  55. package/src/providers/CentrifugeIOInitProvider.tsx +0 -42
  56. package/src/providers/SocketIOInitProvider.tsx +0 -52
  57. package/src/types/index.ts +0 -139
  58. package/src/util/ajaxCommonUtils.ts +0 -137
  59. package/src/util/centrifuge.ts +0 -33
  60. package/src/util/fallback.tsx +0 -6
  61. package/src/util/initializeComponents.ts +0 -84
  62. package/src/util/lazy.ts +0 -25
  63. package/src/util/mitt.ts +0 -11
  64. package/src/util/pieConfig.ts +0 -43
  65. package/src/util/registry.ts +0 -81
  66. package/src/util/socket.ts +0 -24
  67. package/src/util/sx2radium.ts +0 -15
  68. package/src/util/tailwindCommonUtils.ts +0 -6
  69. package/src/util/useIsSupported.ts +0 -17
  70. package/src/util/useOpenAIWebRTC.ts +0 -176
  71. package/src/util/useWebApp.ts +0 -32
  72. package/src/util/waitForSidAvailable.ts +0 -21
  73. package/src/util/webrtcClient.ts +0 -247
package/dist/cli.js CHANGED
@@ -336949,10 +336949,9 @@ var require_bridge = __commonJS((exports2) => {
336949
336949
  var thisObjectHasOwnProperty = thisObjectPrototype.hasOwnProperty;
336950
336950
  var ThisProxy = Proxy;
336951
336951
  var ThisWeakMap = WeakMap;
336952
- var {
336953
- get: thisWeakMapGet,
336954
- set: thisWeakMapSet
336955
- } = ThisWeakMap.prototype;
336952
+ var thisWeakMapProto = ThisWeakMap.prototype;
336953
+ var thisWeakMapGet = thisWeakMapProto.get;
336954
+ var thisWeakMapSet = thisWeakMapProto.set;
336956
336955
  var ThisMap = Map;
336957
336956
  var thisMapGet = ThisMap.prototype.get;
336958
336957
  var thisMapSet = ThisMap.prototype.set;
@@ -337058,6 +337057,13 @@ var require_bridge = __commonJS((exports2) => {
337058
337057
  const mappingOtherToThis = new ThisWeakMap;
337059
337058
  const protoMappings = new ThisMap;
337060
337059
  const protoName = new ThisMap;
337060
+ const handlerToObject = new ThisWeakMap;
337061
+ function getHandlerObject(handler) {
337062
+ return thisReflectApply(thisWeakMapGet, handlerToObject, [handler]);
337063
+ }
337064
+ function handlerFromOtherWithContext(handler, other) {
337065
+ return thisFromOtherWithFactory(handler.getFactory(), other);
337066
+ }
337061
337067
  function thisAddProtoMapping(proto, other, name) {
337062
337068
  thisReflectApply(thisMapSet, protoMappings, [proto, thisIdMapping]);
337063
337069
  thisReflectApply(thisMapSet, protoMappings, [
@@ -337160,7 +337166,7 @@ var require_bridge = __commonJS((exports2) => {
337160
337166
  } else {
337161
337167
  ret = desc.value;
337162
337168
  }
337163
- return handler.fromOtherWithContext(ret);
337169
+ return handlerFromOtherWithContext(handler, ret);
337164
337170
  }
337165
337171
  function otherFromThisIfAvailable(to, from, key) {
337166
337172
  if (!thisReflectApply(thisObjectHasOwnProperty, from, [key]))
@@ -337176,17 +337182,11 @@ var require_bridge = __commonJS((exports2) => {
337176
337182
  class BaseHandler extends SafeBase {
337177
337183
  constructor(object) {
337178
337184
  super();
337179
- this.objectWrapper = () => object;
337180
- }
337181
- getObject() {
337182
- return this.objectWrapper();
337185
+ thisReflectApply(thisWeakMapSet, handlerToObject, [this, object]);
337183
337186
  }
337184
337187
  getFactory() {
337185
337188
  return defaultFactory;
337186
337189
  }
337187
- fromOtherWithContext(other) {
337188
- return thisFromOtherWithFactory(this.getFactory(), other);
337189
- }
337190
337190
  doPreventExtensions(target, object, factory) {
337191
337191
  let keys;
337192
337192
  try {
@@ -337211,12 +337211,12 @@ var require_bridge = __commonJS((exports2) => {
337211
337211
  if (current && !current.configurable)
337212
337212
  continue;
337213
337213
  if (desc.get || desc.set) {
337214
- desc.get = this.fromOtherWithContext(desc.get);
337215
- desc.set = this.fromOtherWithContext(desc.set);
337214
+ desc.get = handlerFromOtherWithContext(this, desc.get);
337215
+ desc.set = handlerFromOtherWithContext(this, desc.set);
337216
337216
  } else if (typeof object === "function" && (key === "caller" || key === "callee" || key === "arguments")) {
337217
337217
  desc.value = null;
337218
337218
  } else {
337219
- desc.value = this.fromOtherWithContext(desc.value);
337219
+ desc.value = handlerFromOtherWithContext(this, desc.value);
337220
337220
  }
337221
337221
  } else {
337222
337222
  if (desc.get || desc.set) {
@@ -337240,7 +337240,7 @@ var require_bridge = __commonJS((exports2) => {
337240
337240
  get(target, key, receiver) {
337241
337241
  if (key === "isProxy")
337242
337242
  return true;
337243
- const object = this.getObject();
337243
+ const object = getHandlerObject(this);
337244
337244
  switch (key) {
337245
337245
  case "constructor": {
337246
337246
  const desc = otherSafeGetOwnPropertyDescriptor(object, key);
@@ -337280,10 +337280,10 @@ var require_bridge = __commonJS((exports2) => {
337280
337280
  } catch (e) {
337281
337281
  throw thisFromOtherForThrow(e);
337282
337282
  }
337283
- return this.fromOtherWithContext(ret);
337283
+ return handlerFromOtherWithContext(this, ret);
337284
337284
  }
337285
337285
  set(target, key, value2, receiver) {
337286
- const object = this.getObject();
337286
+ const object = getHandlerObject(this);
337287
337287
  if (key === "__proto__" && !thisOtherHasOwnProperty(object, key)) {
337288
337288
  return this.setPrototypeOf(target, value2);
337289
337289
  }
@@ -337301,7 +337301,7 @@ var require_bridge = __commonJS((exports2) => {
337301
337301
  throw new VMError(OPNA);
337302
337302
  }
337303
337303
  apply(target, context, args) {
337304
- const object = this.getObject();
337304
+ const object = getHandlerObject(this);
337305
337305
  let ret;
337306
337306
  try {
337307
337307
  context = otherFromThis(context);
@@ -337313,7 +337313,7 @@ var require_bridge = __commonJS((exports2) => {
337313
337313
  return thisFromOther(ret);
337314
337314
  }
337315
337315
  construct(target, args, newTarget) {
337316
- const object = this.getObject();
337316
+ const object = getHandlerObject(this);
337317
337317
  let ret;
337318
337318
  try {
337319
337319
  args = otherFromThisArguments(args);
@@ -337324,7 +337324,7 @@ var require_bridge = __commonJS((exports2) => {
337324
337324
  return thisFromOtherWithFactory(this.getFactory(), ret, thisFromOther(object));
337325
337325
  }
337326
337326
  getOwnPropertyDescriptorDesc(target, prop, desc) {
337327
- const object = this.getObject();
337327
+ const object = getHandlerObject(this);
337328
337328
  if (desc && typeof object === "function" && (prop === "arguments" || prop === "caller" || prop === "callee"))
337329
337329
  desc.value = null;
337330
337330
  return desc;
@@ -337332,7 +337332,7 @@ var require_bridge = __commonJS((exports2) => {
337332
337332
  getOwnPropertyDescriptor(target, prop) {
337333
337333
  if (isDangerousCrossRealmSymbol(prop))
337334
337334
  return;
337335
- const object = this.getObject();
337335
+ const object = getHandlerObject(this);
337336
337336
  let desc;
337337
337337
  try {
337338
337338
  desc = otherSafeGetOwnPropertyDescriptor(object, prop);
@@ -337346,15 +337346,15 @@ var require_bridge = __commonJS((exports2) => {
337346
337346
  if (desc.get || desc.set) {
337347
337347
  thisDesc = {
337348
337348
  __proto__: null,
337349
- get: this.fromOtherWithContext(desc.get),
337350
- set: this.fromOtherWithContext(desc.set),
337349
+ get: handlerFromOtherWithContext(this, desc.get),
337350
+ set: handlerFromOtherWithContext(this, desc.set),
337351
337351
  enumerable: desc.enumerable === true,
337352
337352
  configurable: desc.configurable === true
337353
337353
  };
337354
337354
  } else {
337355
337355
  thisDesc = {
337356
337356
  __proto__: null,
337357
- value: this.fromOtherWithContext(desc.value),
337357
+ value: handlerFromOtherWithContext(this, desc.value),
337358
337358
  writable: desc.writable === true,
337359
337359
  enumerable: desc.enumerable === true,
337360
337360
  configurable: desc.configurable === true
@@ -337373,7 +337373,7 @@ var require_bridge = __commonJS((exports2) => {
337373
337373
  return desc;
337374
337374
  }
337375
337375
  defineProperty(target, prop, desc) {
337376
- const object = this.getObject();
337376
+ const object = getHandlerObject(this);
337377
337377
  if (!thisReflectSetPrototypeOf(desc, null))
337378
337378
  throw thisUnexpected();
337379
337379
  desc = this.definePropertyDesc(target, prop, desc);
@@ -337403,15 +337403,15 @@ var require_bridge = __commonJS((exports2) => {
337403
337403
  if (otherDesc.get || otherDesc.set) {
337404
337404
  thisDesc = {
337405
337405
  __proto__: null,
337406
- get: this.fromOtherWithContext(otherDesc.get),
337407
- set: this.fromOtherWithContext(otherDesc.set),
337406
+ get: handlerFromOtherWithContext(this, otherDesc.get),
337407
+ set: handlerFromOtherWithContext(this, otherDesc.set),
337408
337408
  enumerable: otherDesc.enumerable,
337409
337409
  configurable: otherDesc.configurable
337410
337410
  };
337411
337411
  } else {
337412
337412
  thisDesc = {
337413
337413
  __proto__: null,
337414
- value: this.fromOtherWithContext(otherDesc.value),
337414
+ value: handlerFromOtherWithContext(this, otherDesc.value),
337415
337415
  writable: otherDesc.writable,
337416
337416
  enumerable: otherDesc.enumerable,
337417
337417
  configurable: otherDesc.configurable
@@ -337423,7 +337423,7 @@ var require_bridge = __commonJS((exports2) => {
337423
337423
  return true;
337424
337424
  }
337425
337425
  deleteProperty(target, prop) {
337426
- const object = this.getObject();
337426
+ const object = getHandlerObject(this);
337427
337427
  try {
337428
337428
  return otherReflectDeleteProperty(object, prop) === true;
337429
337429
  } catch (e) {
@@ -337433,7 +337433,7 @@ var require_bridge = __commonJS((exports2) => {
337433
337433
  has(target, key) {
337434
337434
  if (isDangerousCrossRealmSymbol(key))
337435
337435
  return false;
337436
- const object = this.getObject();
337436
+ const object = getHandlerObject(this);
337437
337437
  try {
337438
337438
  return otherReflectHas(object, key) === true;
337439
337439
  } catch (e) {
@@ -337441,7 +337441,7 @@ var require_bridge = __commonJS((exports2) => {
337441
337441
  }
337442
337442
  }
337443
337443
  isExtensible(target) {
337444
- const object = this.getObject();
337444
+ const object = getHandlerObject(this);
337445
337445
  try {
337446
337446
  if (otherReflectIsExtensible(object))
337447
337447
  return true;
@@ -337454,7 +337454,7 @@ var require_bridge = __commonJS((exports2) => {
337454
337454
  return false;
337455
337455
  }
337456
337456
  ownKeys(target) {
337457
- const object = this.getObject();
337457
+ const object = getHandlerObject(this);
337458
337458
  let res;
337459
337459
  try {
337460
337460
  res = otherReflectOwnKeys(object);
@@ -337478,7 +337478,7 @@ var require_bridge = __commonJS((exports2) => {
337478
337478
  return filtered;
337479
337479
  }
337480
337480
  preventExtensions(target) {
337481
- const object = this.getObject();
337481
+ const object = getHandlerObject(this);
337482
337482
  try {
337483
337483
  if (!otherReflectPreventExtensions(object))
337484
337484
  return false;
@@ -337491,14 +337491,14 @@ var require_bridge = __commonJS((exports2) => {
337491
337491
  return true;
337492
337492
  }
337493
337493
  enumerate(target) {
337494
- const object = this.getObject();
337494
+ const object = getHandlerObject(this);
337495
337495
  let res;
337496
337496
  try {
337497
337497
  res = otherReflectEnumerate(object);
337498
337498
  } catch (e) {
337499
337499
  throw thisFromOtherForThrow(e);
337500
337500
  }
337501
- return this.fromOtherWithContext(res);
337501
+ return handlerFromOtherWithContext(this, res);
337502
337502
  }
337503
337503
  }
337504
337504
  BaseHandler.prototype[thisSymbolNodeJSUtilInspectCustom] = undefined;
@@ -337575,7 +337575,7 @@ var require_bridge = __commonJS((exports2) => {
337575
337575
  get(target, key, receiver) {
337576
337576
  if (key === "isProxy")
337577
337577
  return true;
337578
- const object = this.getObject();
337578
+ const object = getHandlerObject(this);
337579
337579
  const mock = this.mock;
337580
337580
  if (thisReflectApply(thisObjectHasOwnProperty, mock, key) && !thisOtherHasOwnProperty(object, key)) {
337581
337581
  return mock[key];
@@ -1 +1 @@
1
- {"version":3,"file":"AjaxButtonCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;4DAYzC,mBAAmB;AAyBtB,wBAAqC"}
1
+ {"version":3,"file":"AjaxButtonCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAA;4DAWzC,mBAAmB;AAsBtB,wBAAqC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChatCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chats/ChatCard/ui/ChatCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAMxC,QAAA,MAAM,QAAQ,GAAI,mCAGf,aAAa,4CAqHf,CAAA;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"ChatCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Chats/ChatCard/ui/ChatCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAMxC,QAAA,MAAM,QAAQ,GAAI,mCAGf,aAAa,4CAiHf,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAyIpC,QAAA,MAAM,OAAO,GAAI,OAAO,YAAY,4CASnC,CAAA;AAGD,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAwIpC,QAAA,MAAM,OAAO,GAAI,OAAO,YAAY,4CASnC,CAAA;AAGD,eAAe,OAAO,CAAA"}