@cossistant/react 0.0.13 → 0.0.16

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 (125) hide show
  1. package/hooks/index.d.ts +2 -1
  2. package/hooks/index.js +2 -1
  3. package/hooks/use-home-page.js +1 -1
  4. package/hooks/use-home-page.js.map +1 -1
  5. package/hooks/use-scroll-mask.d.ts +24 -0
  6. package/hooks/use-scroll-mask.d.ts.map +1 -0
  7. package/hooks/use-scroll-mask.js +90 -0
  8. package/hooks/use-scroll-mask.js.map +1 -0
  9. package/hooks/use-send-message.js +1 -1
  10. package/hooks/use-send-message.js.map +1 -1
  11. package/index.d.ts +7 -2
  12. package/index.js +9 -5
  13. package/package.json +3 -3
  14. package/parse.d.ts.map +1 -1
  15. package/primitives/bubble.d.ts +10 -2
  16. package/primitives/bubble.d.ts.map +1 -1
  17. package/primitives/bubble.js +11 -3
  18. package/primitives/bubble.js.map +1 -1
  19. package/primitives/conversation-timeline.d.ts.map +1 -1
  20. package/primitives/conversation-timeline.js +10 -20
  21. package/primitives/conversation-timeline.js.map +1 -1
  22. package/primitives/index.d.ts +5 -2
  23. package/primitives/index.js +11 -3
  24. package/primitives/index.parts.d.ts +4 -1
  25. package/primitives/index.parts.js +5 -2
  26. package/primitives/page-registry.d.ts +30 -0
  27. package/primitives/page-registry.d.ts.map +1 -0
  28. package/primitives/page-registry.js +45 -0
  29. package/primitives/page-registry.js.map +1 -0
  30. package/primitives/page.d.ts +21 -0
  31. package/primitives/page.d.ts.map +1 -0
  32. package/primitives/page.js +18 -0
  33. package/primitives/page.js.map +1 -0
  34. package/primitives/router.d.ts +35 -0
  35. package/primitives/router.d.ts.map +1 -0
  36. package/primitives/router.js +22 -0
  37. package/primitives/router.js.map +1 -0
  38. package/primitives/window.d.ts +8 -3
  39. package/primitives/window.d.ts.map +1 -1
  40. package/primitives/window.js +8 -3
  41. package/primitives/window.js.map +1 -1
  42. package/realtime/index.js +1 -1
  43. package/realtime/provider.js +1 -1
  44. package/realtime/support-provider.js +0 -4
  45. package/realtime/support-provider.js.map +1 -1
  46. package/realtime-events.d.ts +1 -1
  47. package/schemas2.d.ts.map +1 -1
  48. package/support/components/avatar-stack.js +1 -1
  49. package/support/components/avatar-stack.js.map +1 -1
  50. package/support/components/bubble.js +1 -1
  51. package/support/components/bubble.js.map +1 -1
  52. package/support/components/button.d.ts +1 -1
  53. package/support/components/button.js +3 -3
  54. package/support/components/button.js.map +1 -1
  55. package/support/components/container.js +1 -1
  56. package/support/components/container.js.map +1 -1
  57. package/support/components/conversation-timeline.js +1 -1
  58. package/support/components/conversation-timeline.js.map +1 -1
  59. package/support/components/multimodal-input.js +2 -2
  60. package/support/components/multimodal-input.js.map +1 -1
  61. package/support/components/support-content.d.ts +5 -7
  62. package/support/components/support-content.d.ts.map +1 -1
  63. package/support/components/support-content.js +9 -11
  64. package/support/components/support-content.js.map +1 -1
  65. package/support/components/theme-wrapper.d.ts +15 -0
  66. package/support/components/theme-wrapper.d.ts.map +1 -0
  67. package/support/components/theme-wrapper.js +18 -0
  68. package/support/components/theme-wrapper.js.map +1 -0
  69. package/support/components/timeline-identification-tool.js +2 -2
  70. package/support/components/timeline-identification-tool.js.map +1 -1
  71. package/support/components/watermark.js +2 -2
  72. package/support/components/watermark.js.map +1 -1
  73. package/support/index.d.ts +36 -6
  74. package/support/index.d.ts.map +1 -1
  75. package/support/index.js +43 -20
  76. package/support/index.js.map +1 -1
  77. package/support/pages/articles.d.ts +4 -1
  78. package/support/pages/articles.d.ts.map +1 -1
  79. package/support/pages/articles.js +1 -1
  80. package/support/pages/articles.js.map +1 -1
  81. package/support/pages/conversation-history.d.ts +5 -10
  82. package/support/pages/conversation-history.d.ts.map +1 -1
  83. package/support/pages/conversation-history.js +2 -9
  84. package/support/pages/conversation-history.js.map +1 -1
  85. package/support/pages/conversation.d.ts +17 -12
  86. package/support/pages/conversation.d.ts.map +1 -1
  87. package/support/pages/conversation.js +5 -2
  88. package/support/pages/conversation.js.map +1 -1
  89. package/support/pages/home.d.ts +5 -12
  90. package/support/pages/home.d.ts.map +1 -1
  91. package/support/pages/home.js +3 -12
  92. package/support/pages/home.js.map +1 -1
  93. package/support/router.d.ts +9 -4
  94. package/support/router.d.ts.map +1 -1
  95. package/support/router.js +34 -15
  96. package/support/router.js.map +1 -1
  97. package/support/store/support-store.d.ts +17 -14
  98. package/support/store/support-store.d.ts.map +1 -1
  99. package/support/store/support-store.js +13 -10
  100. package/support/store/support-store.js.map +1 -1
  101. package/support/{support-DfYemt9I.css → support-BQhCt9Za.css} +80 -128
  102. package/support/support-BQhCt9Za.css.map +1 -0
  103. package/support/types.d.ts +28 -0
  104. package/support/types.d.ts.map +1 -0
  105. package/support/types.js +1 -0
  106. package/support.css +1 -1
  107. package/tailwind.css +79 -127
  108. package/utils/conversation.d.ts.map +1 -1
  109. package/utils/conversation.js +3 -1
  110. package/utils/conversation.js.map +1 -1
  111. package/utils/use-render-element.d.ts.map +1 -1
  112. package/zod-extensions.d.ts.map +1 -1
  113. package/index4.d.ts +0 -18
  114. package/index4.d.ts.map +0 -1
  115. package/index5.d.ts +0 -999
  116. package/index5.d.ts.map +0 -1
  117. package/index6.d.ts +0 -6
  118. package/react.d.ts +0 -4
  119. package/support/components/text-effect.d.ts +0 -53
  120. package/support/components/text-effect.d.ts.map +0 -1
  121. package/support/components/text-effect.js +0 -225
  122. package/support/components/text-effect.js.map +0 -1
  123. package/support/support-DfYemt9I.css.map +0 -1
  124. package/types.d-BJcRxCew.d.ts +0 -39
  125. package/types.d-BJcRxCew.d.ts.map +0 -1
@@ -4,7 +4,9 @@ import { ConversationStatus } from "@cossistant/types";
4
4
  const HIDDEN_STATUSES = new Set([ConversationStatus.RESOLVED, "closed"]);
5
5
  function hasDisplayableTitle(conversation) {
6
6
  const title = conversation.title?.trim();
7
- return Boolean(title && title.length > 0);
7
+ if (title && title.length > 0) return true;
8
+ const lastMessageText = conversation.lastTimelineItem?.text?.trim();
9
+ return Boolean(lastMessageText && lastMessageText.length > 0);
8
10
  }
9
11
  function shouldDisplayConversation(conversation) {
10
12
  if (!hasDisplayableTitle(conversation)) return false;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.js","names":[],"sources":["../../src/utils/conversation.ts"],"sourcesContent":["import { type Conversation, ConversationStatus } from \"@cossistant/types\";\n\nconst HIDDEN_STATUSES = new Set<ConversationStatus | \"closed\">([\n\tConversationStatus.RESOLVED,\n\t\"closed\",\n]);\n\nfunction hasDisplayableTitle(conversation: Conversation): boolean {\n\tconst title = conversation.title?.trim();\n\n\treturn Boolean(title && title.length > 0);\n}\n\nexport function shouldDisplayConversation(conversation: Conversation): boolean {\n\tif (!hasDisplayableTitle(conversation)) {\n\t\treturn false;\n\t}\n\n\tif (conversation.deletedAt) {\n\t\treturn false;\n\t}\n\n\tif (HIDDEN_STATUSES.has(conversation.status)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n"],"mappings":";;;AAEA,MAAM,kBAAkB,IAAI,IAAmC,CAC9D,mBAAmB,UACnB,SACA,CAAC;AAEF,SAAS,oBAAoB,cAAqC;CACjE,MAAM,QAAQ,aAAa,OAAO,MAAM;AAExC,QAAO,QAAQ,SAAS,MAAM,SAAS,EAAE;;AAG1C,SAAgB,0BAA0B,cAAqC;AAC9E,KAAI,CAAC,oBAAoB,aAAa,CACrC,QAAO;AAGR,KAAI,aAAa,UAChB,QAAO;AAGR,KAAI,gBAAgB,IAAI,aAAa,OAAO,CAC3C,QAAO;AAGR,QAAO"}
1
+ {"version":3,"file":"conversation.js","names":[],"sources":["../../src/utils/conversation.ts"],"sourcesContent":["import { type Conversation, ConversationStatus } from \"@cossistant/types\";\n\nconst HIDDEN_STATUSES = new Set<ConversationStatus | \"closed\">([\n\tConversationStatus.RESOLVED,\n\t\"closed\",\n]);\n\nfunction hasDisplayableTitle(conversation: Conversation): boolean {\n\tconst title = conversation.title?.trim();\n\n\tif (title && title.length > 0) {\n\t\treturn true;\n\t}\n\n\t// Allow conversations with messages even if no explicit title\n\tconst lastMessageText = conversation.lastTimelineItem?.text?.trim();\n\treturn Boolean(lastMessageText && lastMessageText.length > 0);\n}\n\nexport function shouldDisplayConversation(conversation: Conversation): boolean {\n\tif (!hasDisplayableTitle(conversation)) {\n\t\treturn false;\n\t}\n\n\tif (conversation.deletedAt) {\n\t\treturn false;\n\t}\n\n\tif (HIDDEN_STATUSES.has(conversation.status)) {\n\t\treturn false;\n\t}\n\n\treturn true;\n}\n"],"mappings":";;;AAEA,MAAM,kBAAkB,IAAI,IAAmC,CAC9D,mBAAmB,UACnB,SACA,CAAC;AAEF,SAAS,oBAAoB,cAAqC;CACjE,MAAM,QAAQ,aAAa,OAAO,MAAM;AAExC,KAAI,SAAS,MAAM,SAAS,EAC3B,QAAO;CAIR,MAAM,kBAAkB,aAAa,kBAAkB,MAAM,MAAM;AACnE,QAAO,QAAQ,mBAAmB,gBAAgB,SAAS,EAAE;;AAG9D,SAAgB,0BAA0B,cAAqC;AAC9E,KAAI,CAAC,oBAAoB,aAAa,CACrC,QAAO;AAGR,KAAI,aAAa,UAChB,QAAO;AAGR,KAAI,gBAAgB,IAAI,aAAa,OAAO,CAC3C,QAAO;AAGR,QAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KAE1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,GAA4B,CAAA,CAAA,KAAK,EAAL,KAAK,EAAA,GAAA,MAAA,CAAA;AAAA,KAE1C,QAAA,CAAA,KAAQ,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EACL,KADK,EAAA,KAAA,EAEL,KAFK,EAAA,GAGR,OAAA,CAAM,YAHE;KAKR,WAJG,CAAA,KAAA,EAAA,YAI4B,YAJ5B,CAAA,GAAA;EACA,MAAA,CAAA,EAIE,OAAA,CAAM,YAJR,GAIuB,QAJvB,CAIgC,GAAA,CAAI,iBAJpC,CAIsD,GAJtD,CAAA,EAI4D,KAJ5D,CAAA;EACH,SAAM,CAAA,EAIE,SAJF,CAIY,KAJZ,CAAA;EAAY,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA;KAQlB,YAN+B,CAAA,KAAA,EAAA,YAMC,YAND,CAAA,GAAA;EAC1B,KAAM,CAAA,EAMP,KANO;EAAwB,GAAI,CAAA,EAOrC,OAAA,CAAM,GAP+B,CAAA,GAAA,CAAA;EAAkB,KAAA,CAAA,EAQrD,OARqD,CAQ7C,GAAA,CAAI,iBARyC,CAQvB,GARuB,CAAA,CAAA;EAAM,OAAA,CAAA,EAAA,OAAA;CAArC;;;;AAK1B,iBAyBW,gBAzBC,CAAA,cA0BF,MA1BE,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,YA2BJ,YA3BI,CAAA,CAAA,GAAA,EA6BX,GA7BW,EAAA,cAAA,EA8BA,WA9BA,CA8BY,KA9BZ,EA8BmB,GA9BnB,CAAA,EAAA,MAAA,CAAA,EA+BP,YA/BO,CA+BM,KA/BN,EA+Ba,GA/Bb,CAAA,CAAA,EAgCd,OAAA,CAAM,YAhCQ,GAAA,IAAA"}
1
+ {"version":3,"file":"use-render-element.d.ts","names":[],"sources":["../../src/utils/use-render-element.tsx"],"sourcesContent":[],"mappings":";;;;AAI+B,KAE1B,YAAA,GAAY,MAAS,GAAA,CAAI,iBAAA;AAAiB,KAE1C,SAAA,CAAA,KAAS,CAAA,GAAA,MAAA,GAAA,CAA4B,CAAA,KAAK,EAAL,KAAK,EAAA,GAAA,MAAA,CAAA;AAAA,KAE1C,QAAA,CAAA,KAAQ,EAAA,KAAA,CAAA,GAAA,CAAA,KAAA,EACL,KADK,EAAA,KAAA,EAEL,KAFK,EAAA,GAGR,OAAA,CAAM,YAHE;KAKR,WAJG,CAAA,KAAA,EAAA,YAI4B,YAJ5B,CAAA,GAAA;EACA,MAAA,CAAA,EAIE,OAAA,CAAM,YAJR,GAIuB,QAJvB,CAIgC,GAAA,CAAI,iBAJpC,CAIsD,GAJtD,CAAA,EAI4D,KAJ5D,CAAA;EACH,SAAM,CAAA,EAIE,SAJF,CAIY,KAJZ,CAAA;EAAY,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA;KAQlB,YAN+B,CAAA,KAAA,EAAA,YAMC,YAND,CAAA,GAAA;EAC1B,KAAM,CAAA,EAMP,KANO;EAAwB,GAAI,CAAA,EAOrC,OAAA,CAAM,GAP+B,CAAA,GAAA,CAAA;EAAkB,KAAA,CAAA,EAQrD,OARqD,CAQ7C,GAAA,CAAI,iBARyC,CAQvB,GARuB,CAAA,CAAA;EAAM,OAAA,CAAA,EAAA,OAAA;CAArC;;;;AAK1B,iBAyBW,gBAzBC,CAAA,cA0BF,MA1BE,CAAA,MAAA,EAAA,GAAA,CAAA,EAAA,YA2BJ,YA3BI,CAAA,CAAA,GAAA,EA6BX,GA7BW,EAAA,cAAA,EA8BA,WA9BA,CA8BY,KA9BZ,EA8BmB,GA9BnB,CAAA,EAAA,MAAA,CAAA,EA+BP,YA/BO,CA+BM,KA/BN,EA+Ba,GA/Bb,CAAA,CAAA,EAgCd,OAAA,CAAM,YAhCQ,GAAA,IAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"zod-extensions.d.ts","names":["ParameterObject","ParameterObject30","SchemaObject","SchemaObject30","ParameterObject31","SchemaObject31","ZodObject","z","core","ExampleValue","T","Date","UnionPreferredType","ZodOpenAPIMetadata","E","Omit","Partial","OpenApiOptions","InternalUserOnlyZodOpenAPIInternalMetadata","ZodOpenApiFullMetadataForRegistry","ZodOpenAPIInternalMetadata","ZodOpenApiFullMetadata","_1","Output","Input","Internals","$ZodTypeInternals","$ZodType","sideEffect","extendZodWithOpenApi"],"sources":["../../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts"],"sourcesContent":["import { ParameterObject as ParameterObject30, SchemaObject as SchemaObject30 } from 'openapi3-ts/oas30';\nimport { ParameterObject as ParameterObject31, SchemaObject as SchemaObject31 } from 'openapi3-ts/oas31';\nimport type { ZodObject } from 'zod';\nimport { z } from 'zod';\nimport type { core } from 'zod';\ntype ExampleValue<T> = T extends Date ? string : T;\ntype ParameterObject = ParameterObject30 | ParameterObject31;\ntype SchemaObject = SchemaObject30 | SchemaObject31;\nexport type UnionPreferredType = 'oneOf' | 'anyOf';\nexport type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject, 'example' | 'examples' | 'default'> & {\n param?: Partial<ParameterObject> & {\n example?: E;\n };\n example?: E;\n examples?: E[];\n default?: T;\n _internal?: never;\n};\ninterface OpenApiOptions {\n unionPreferredType?: UnionPreferredType;\n}\n/**\n *\n * Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182\n * zod started preserving metadata from functions. Since the ZodObject type contains some function types\n * that also have generics this leads to a too deep type instantiation. We only use this type internally\n * so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata\n * method has an explicit return type of ZodOpenAPIInternalMetadata.\n */\ninterface InternalUserOnlyZodOpenAPIInternalMetadata extends OpenApiOptions {\n refId?: string;\n extendedFrom?: {\n refId: string;\n schema: any;\n };\n}\n/**\n *\n * The metadata that is received from the registry should be obtained using the Metadata methods that have an\n * explicit return type of ZodOpenApiFullMetadata or ZodOpenAPIInternalMetadata.\n *\n * @deprecated Do not use for anything other than the registry. See the comment above for more details.\n */\nexport interface ZodOpenApiFullMetadataForRegistry<T = any> extends Omit<ZodOpenAPIMetadata<T>, '_internal'> {\n _internal?: InternalUserOnlyZodOpenAPIInternalMetadata;\n [k: string]: unknown;\n}\nexport interface ZodOpenAPIInternalMetadata extends InternalUserOnlyZodOpenAPIInternalMetadata {\n extendedFrom?: {\n refId: string;\n schema: ZodObject;\n };\n}\nexport interface ZodOpenApiFullMetadata<T = any> extends ZodOpenApiFullMetadataForRegistry<T> {\n _internal?: ZodOpenAPIInternalMetadata;\n}\ndeclare module 'zod' {\n interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {\n openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n }\n}\nexport declare function extendZodWithOpenApi(zod: typeof z): void;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIgC,KAC3BS,YAAAA,CAAAA,CAAY,CAAA,GAAMC,CAAN,SAAgBC,IAAhB,GAAA,MAAA,GAAgCD,CAAhC;KACZV,iBAAAA,GAAkBC,eADAS,GACoBN,iBADpBM;KAElBR,cAAAA,GAAeC,YAFaQ,GAEIN,cAFJM;AAAgBD,KAGrCE,kBAAAA,GAHqCF,OAAAA,GAAAA,OAAAA;AAAC,KAItCG,kBAJsC,CAAA,IAAA,GAAA,EAAA,IAINJ,YAJM,CAIOC,CAJP,CAAA,CAAA,GAIaK,IAJb,CAIkBb,cAJlB,EAAA,SAAA,GAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAC7CF,KAAAA,CAAAA,EAIOgB,OAJPhB,CAIeA,iBAJA,CAAA,GAAGC;IAClBC,OAAAA,CAAAA,EAIaY,CAJbZ;EACOU,CAAAA;EACAC,OAAAA,CAAAA,EAIEC,CAJFD;EAA6CH,QAAAA,CAAAA,EAK1CI,CAL0CJ,EAAAA;EAAbD,OAAAA,CAAAA,EAM9BC,CAN8BD;EAAwBP,SAAAA,CAAAA,EAAAA,KAAAA;CAALa;UASrDE,cAAAA,CARUjB;EAARgB,kBAAAA,CAAAA,EASaJ,kBATbI;;;;;;AAOV;AAsCD;;;;;qFAEsFR,kBAAuBe,QAAQC,SAAShB,kBAAuBe,QAAQC,gBAAgBhB,SAAce,QAAQC,OAAOC;sBACjLT,QAAQH,mBAAmBW,mBAAmBP;sCAC9BD,QAAQH,mBAAmBW,mBAAmBP"}
1
+ {"version":3,"file":"zod-extensions.d.ts","names":["ParameterObject","ParameterObject30","SchemaObject","SchemaObject30","ParameterObject31","SchemaObject31","ZodObject","z","core","ExampleValue","T","Date","UnionPreferredType","ZodOpenAPIMetadata","E","Omit","Partial","OpenApiOptions","InternalUserOnlyZodOpenAPIInternalMetadata","ZodOpenApiFullMetadataForRegistry","ZodOpenAPIInternalMetadata","ZodOpenApiFullMetadata","_0","Output","Input","Internals","$ZodTypeInternals","$ZodType","sideEffect","extendZodWithOpenApi"],"sources":["../../../node_modules/.bun/@asteasolutions+zod-to-openapi@8.1.0+5954958163efbb2a/node_modules/@asteasolutions/zod-to-openapi/dist/zod-extensions.d.ts"],"sourcesContent":["import { ParameterObject as ParameterObject30, SchemaObject as SchemaObject30 } from 'openapi3-ts/oas30';\nimport { ParameterObject as ParameterObject31, SchemaObject as SchemaObject31 } from 'openapi3-ts/oas31';\nimport type { ZodObject } from 'zod';\nimport { z } from 'zod';\nimport type { core } from 'zod';\ntype ExampleValue<T> = T extends Date ? string : T;\ntype ParameterObject = ParameterObject30 | ParameterObject31;\ntype SchemaObject = SchemaObject30 | SchemaObject31;\nexport type UnionPreferredType = 'oneOf' | 'anyOf';\nexport type ZodOpenAPIMetadata<T = any, E = ExampleValue<T>> = Omit<SchemaObject, 'example' | 'examples' | 'default'> & {\n param?: Partial<ParameterObject> & {\n example?: E;\n };\n example?: E;\n examples?: E[];\n default?: T;\n _internal?: never;\n};\ninterface OpenApiOptions {\n unionPreferredType?: UnionPreferredType;\n}\n/**\n *\n * Since this commit https://github.com/colinhacks/zod/commit/6707ebb14c885b1c577ce64a240475e26e3ff182\n * zod started preserving metadata from functions. Since the ZodObject type contains some function types\n * that also have generics this leads to a too deep type instantiation. We only use this type internally\n * so I've opted to type the _internal metadata in the registry as any. However the Metadata.getInternalMetadata\n * method has an explicit return type of ZodOpenAPIInternalMetadata.\n */\ninterface InternalUserOnlyZodOpenAPIInternalMetadata extends OpenApiOptions {\n refId?: string;\n extendedFrom?: {\n refId: string;\n schema: any;\n };\n}\n/**\n *\n * The metadata that is received from the registry should be obtained using the Metadata methods that have an\n * explicit return type of ZodOpenApiFullMetadata or ZodOpenAPIInternalMetadata.\n *\n * @deprecated Do not use for anything other than the registry. See the comment above for more details.\n */\nexport interface ZodOpenApiFullMetadataForRegistry<T = any> extends Omit<ZodOpenAPIMetadata<T>, '_internal'> {\n _internal?: InternalUserOnlyZodOpenAPIInternalMetadata;\n [k: string]: unknown;\n}\nexport interface ZodOpenAPIInternalMetadata extends InternalUserOnlyZodOpenAPIInternalMetadata {\n extendedFrom?: {\n refId: string;\n schema: ZodObject;\n };\n}\nexport interface ZodOpenApiFullMetadata<T = any> extends ZodOpenApiFullMetadataForRegistry<T> {\n _internal?: ZodOpenAPIInternalMetadata;\n}\ndeclare module 'zod' {\n interface ZodType<out Output = unknown, out Input = unknown, out Internals extends core.$ZodTypeInternals<Output, Input> = core.$ZodTypeInternals<Output, Input>> extends core.$ZodType<Output, Input, Internals> {\n openapi(metadata: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n openapi(refId: string, metadata?: Partial<ZodOpenAPIMetadata<Input>>, options?: OpenApiOptions): this;\n }\n}\nexport declare function extendZodWithOpenApi(zod: typeof z): void;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;AAIgC,KAC3BS,YAAAA,CAAAA,CAAY,CAAA,GAAMC,CAAN,SAAgBC,IAAhB,GAAA,MAAA,GAAgCD,CAAhC;KACZV,iBAAAA,GAAkBC,eADAS,GACoBN,iBADpBM;KAElBR,cAAAA,GAAeC,YAFaQ,GAEIN,cAFJM;AAAgBD,KAGrCE,kBAAAA,GAHqCF,OAAAA,GAAAA,OAAAA;AAAC,KAItCG,kBAJsC,CAAA,IAAA,GAAA,EAAA,IAINJ,YAJM,CAIOC,CAJP,CAAA,CAAA,GAIaK,IAJb,CAIkBb,cAJlB,EAAA,SAAA,GAAA,UAAA,GAAA,SAAA,CAAA,GAAA;EAC7CF,KAAAA,CAAAA,EAIOgB,OAJPhB,CAIeA,iBAJA,CAAA,GAAGC;IAClBC,OAAAA,CAAAA,EAIaY,CAJbZ;EACOU,CAAAA;EACAC,OAAAA,CAAAA,EAIEC,CAJFD;EAA6CH,QAAAA,CAAAA,EAK1CI,CAL0CJ,EAAAA;EAAbD,OAAAA,CAAAA,EAM9BC,CAN8BD;EAAwBP,SAAAA,CAAAA,EAAAA,KAAAA;CAALa;UASrDE,cAAAA,CARUjB;EAARgB,kBAAAA,CAAAA,EASaJ,kBATbI;;;;;;AAOV;AAsCD;;;;;qFAEsFR,kBAAuBe,QAAQC,SAAShB,kBAAuBe,QAAQC,gBAAgBhB,SAAce,QAAQC,OAAOC;sBACjLT,QAAQH,mBAAmBW,mBAAmBP;sCAC9BD,QAAQH,mBAAmBW,mBAAmBP"}
package/index4.d.ts DELETED
@@ -1,18 +0,0 @@
1
- //#region ../../node_modules/.bun/motion-utils@12.23.6/node_modules/motion-utils/dist/index.d.ts
2
-
3
- type EasingFunction = (v: number) => number;
4
- type BezierDefinition = readonly [number, number, number, number];
5
- type EasingDefinition = BezierDefinition | "linear" | "easeIn" | "easeOut" | "easeInOut" | "circIn" | "circOut" | "circInOut" | "backIn" | "backOut" | "backInOut" | "anticipate";
6
- /**
7
- * The easing function to use. Set as one of:
8
- *
9
- * - The name of an in-built easing function.
10
- * - An array of four numbers to define a cubic bezier curve.
11
- * - An easing function, that accepts and returns a progress value between `0` and `1`.
12
- *
13
- * @public
14
- */
15
- type Easing = EasingDefinition | EasingFunction;
16
- //#endregion
17
- export { type BezierDefinition, type Easing, type EasingDefinition, type EasingFunction };
18
- //# sourceMappingURL=index4.d.ts.map
package/index4.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index4.d.ts","names":["addUniqueItem","T","removeItem","moveItem","clamp","DevMessage","warning","invariant","MotionGlobalConfig","isNumericalString","isObject","isZeroValueString","memo","noop","pipe","Function","progress","GenericHandler","SubscriptionManager","Handler","VoidFunction","Parameters","secondsToMilliseconds","millisecondsToSeconds","velocityPerSecond","hasWarned","warnOnce","wrap","anticipate","backOut","backIn","EasingFunction","backInOut","EasingModifier","BezierDefinition","EasingDefinition","Easing","circIn","circOut","circInOut","cubicBezier","easeIn","easeOut","easeInOut","mirrorEasing","reverseEasing","Direction","steps","getEasingForSegment","isBezierDefinition","isEasingArray","easingDefinitionToFunction","Point","Axis","Box","BoundingBox","AxisDelta","Delta","TransformPoint"],"sources":["../../../node_modules/.bun/motion-utils@12.23.6/node_modules/motion-utils/dist/index.d.ts"],"sourcesContent":["declare function addUniqueItem<T>(arr: T[], item: T): void;\ndeclare function removeItem<T>(arr: T[], item: T): void;\ndeclare function moveItem<T>([...arr]: T[], fromIndex: number, toIndex: number): T[];\n\ndeclare const clamp: (min: number, max: number, v: number) => number;\n\ntype DevMessage = (check: boolean, message: string, errorCode?: string) => void;\ndeclare let warning: DevMessage;\ndeclare let invariant: DevMessage;\n\ndeclare const MotionGlobalConfig: {\n skipAnimations?: boolean;\n instantAnimations?: boolean;\n useManualTiming?: boolean;\n WillChange?: any;\n mix?: <T>(a: T, b: T) => (p: number) => T;\n};\n\n/**\n * Check if value is a numerical string, ie a string that is purely a number eg \"100\" or \"-100.1\"\n */\ndeclare const isNumericalString: (v: string) => boolean;\n\ndeclare function isObject(value: unknown): value is object;\n\n/**\n * Check if the value is a zero value string like \"0px\" or \"0%\"\n */\ndeclare const isZeroValueString: (v: string) => boolean;\n\ndeclare function memo<T extends any>(callback: () => T): () => T;\n\ndeclare const noop: <T>(any: T) => T;\n\ndeclare const pipe: (...transformers: Function[]) => Function;\n\ndeclare const progress: (from: number, to: number, value: number) => number;\n\ntype GenericHandler = (...args: any) => void;\ndeclare class SubscriptionManager<Handler extends GenericHandler> {\n private subscriptions;\n add(handler: Handler): VoidFunction;\n notify(a?: Parameters<Handler>[0], b?: Parameters<Handler>[1], c?: Parameters<Handler>[2]): void;\n getSize(): number;\n clear(): void;\n}\n\n/**\n * Converts seconds to milliseconds\n *\n * @param seconds - Time in seconds.\n * @return milliseconds - Converted time in milliseconds.\n */\ndeclare const secondsToMilliseconds: (seconds: number) => number;\ndeclare const millisecondsToSeconds: (milliseconds: number) => number;\n\ndeclare function velocityPerSecond(velocity: number, frameDuration: number): number;\n\ndeclare function hasWarned(message: string): boolean;\ndeclare function warnOnce(condition: boolean, message: string, errorCode?: string): void;\n\ndeclare const wrap: (min: number, max: number, v: number) => number;\n\ndeclare const anticipate: (p: number) => number;\n\ndeclare const backOut: (t: number) => number;\ndeclare const backIn: EasingFunction;\ndeclare const backInOut: EasingFunction;\n\ntype EasingFunction = (v: number) => number;\ntype EasingModifier = (easing: EasingFunction) => EasingFunction;\ntype BezierDefinition = readonly [number, number, number, number];\ntype EasingDefinition = BezierDefinition | \"linear\" | \"easeIn\" | \"easeOut\" | \"easeInOut\" | \"circIn\" | \"circOut\" | \"circInOut\" | \"backIn\" | \"backOut\" | \"backInOut\" | \"anticipate\";\n/**\n * The easing function to use. Set as one of:\n *\n * - The name of an in-built easing function.\n * - An array of four numbers to define a cubic bezier curve.\n * - An easing function, that accepts and returns a progress value between `0` and `1`.\n *\n * @public\n */\ntype Easing = EasingDefinition | EasingFunction;\n\ndeclare const circIn: EasingFunction;\ndeclare const circOut: EasingFunction;\ndeclare const circInOut: EasingFunction;\n\ndeclare function cubicBezier(mX1: number, mY1: number, mX2: number, mY2: number): (t: number) => number;\n\ndeclare const easeIn: (t: number) => number;\ndeclare const easeOut: (t: number) => number;\ndeclare const easeInOut: (t: number) => number;\n\ndeclare const mirrorEasing: EasingModifier;\n\ndeclare const reverseEasing: EasingModifier;\n\ntype Direction = \"start\" | \"end\";\ndeclare function steps(numSteps: number, direction?: Direction): EasingFunction;\n\ndeclare function getEasingForSegment(easing: Easing | Easing[], i: number): Easing;\n\ndeclare const isBezierDefinition: (easing: Easing | Easing[]) => easing is BezierDefinition;\n\ndeclare const isEasingArray: (ease: any) => ease is Easing[];\n\ndeclare const easingDefinitionToFunction: (definition: Easing) => EasingFunction;\n\ninterface Point {\n x: number;\n y: number;\n}\ninterface Axis {\n min: number;\n max: number;\n}\ninterface Box {\n x: Axis;\n y: Axis;\n}\ninterface BoundingBox {\n top: number;\n right: number;\n bottom: number;\n left: number;\n}\ninterface AxisDelta {\n translate: number;\n scale: number;\n origin: number;\n originPoint: number;\n}\ninterface Delta {\n x: AxisDelta;\n y: AxisDelta;\n}\ntype TransformPoint = (point: Point) => Point;\n\nexport { type Axis, type AxisDelta, type BezierDefinition, type BoundingBox, type Box, type Delta, type DevMessage, type Direction, type Easing, type EasingDefinition, type EasingFunction, type EasingModifier, MotionGlobalConfig, type Point, SubscriptionManager, type TransformPoint, addUniqueItem, anticipate, backIn, backInOut, backOut, circIn, circInOut, circOut, clamp, cubicBezier, easeIn, easeInOut, easeOut, easingDefinitionToFunction, getEasingForSegment, hasWarned, invariant, isBezierDefinition, isEasingArray, isNumericalString, isObject, isZeroValueString, memo, millisecondsToSeconds, mirrorEasing, moveItem, noop, pipe, progress, removeItem, reverseEasing, secondsToMilliseconds, steps, velocityPerSecond, warnOnce, warning, wrap };\n"],"x_google_ignoreList":[0],"mappings":";;KAqEK+B,cAAAA;KAEAG,gBAAAA;KACAC,gBAAAA,GAAmBD;;;;;;;;;;KAUnBE,MAAAA,GAASD,mBAAmBJ"}