@cossistant/react 0.0.28 → 0.0.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 (89) hide show
  1. package/README.md +1 -1
  2. package/api.d.ts +1 -1
  3. package/api.d.ts.map +1 -1
  4. package/checks.d.ts +1 -1
  5. package/checks.d.ts.map +1 -1
  6. package/clsx.d.ts +1 -1
  7. package/clsx.d.ts.map +1 -1
  8. package/coerce.d.ts +1 -1
  9. package/coerce.d.ts.map +1 -1
  10. package/conversation.d.ts +3 -3
  11. package/core.d.ts +1 -1
  12. package/core.d.ts.map +1 -1
  13. package/errors.d.ts +12 -3
  14. package/errors.d.ts.map +1 -1
  15. package/errors2.d.ts +1 -1
  16. package/errors2.d.ts.map +1 -1
  17. package/hooks/index.d.ts +2 -2
  18. package/hooks/private/use-grouped-messages.d.ts +8 -5
  19. package/hooks/private/use-grouped-messages.d.ts.map +1 -1
  20. package/hooks/private/use-grouped-messages.js +44 -11
  21. package/hooks/private/use-grouped-messages.js.map +1 -1
  22. package/hooks/use-conversation-seen.js +1 -1
  23. package/hooks/use-conversation-seen.js.map +1 -1
  24. package/hooks/use-conversation-timeline.d.ts.map +1 -1
  25. package/hooks/use-conversation-timeline.js +1 -3
  26. package/hooks/use-conversation-timeline.js.map +1 -1
  27. package/index.d.ts +2 -2
  28. package/json-schema.d.ts +70 -0
  29. package/json-schema.d.ts.map +1 -0
  30. package/openapi30.d.ts +1 -1
  31. package/openapi30.d.ts.map +1 -1
  32. package/openapi31.d.ts +1 -1
  33. package/openapi31.d.ts.map +1 -1
  34. package/package.json +3 -3
  35. package/parse.d.ts +1 -1
  36. package/parse.d.ts.map +1 -1
  37. package/primitives/avatar/fallback.d.ts.map +1 -1
  38. package/primitives/avatar/fallback.js +1 -1
  39. package/primitives/avatar/fallback.js.map +1 -1
  40. package/primitives/avatar/image.d.ts +1 -1
  41. package/primitives/day-separator.d.ts +76 -0
  42. package/primitives/day-separator.d.ts.map +1 -0
  43. package/primitives/day-separator.js +111 -0
  44. package/primitives/day-separator.js.map +1 -0
  45. package/primitives/index.d.ts +3 -2
  46. package/primitives/index.js +6 -1
  47. package/primitives/index.parts.d.ts +2 -1
  48. package/primitives/index.parts.js +2 -1
  49. package/primitives/multimodal-input.d.ts +2 -2
  50. package/primitives/multimodal-input.d.ts.map +1 -1
  51. package/primitives/timeline-item-group.d.ts.map +1 -1
  52. package/primitives/timeline-item-group.js +1 -1
  53. package/primitives/timeline-item-group.js.map +1 -1
  54. package/primitives/timeline-item.js +1 -1
  55. package/primitives/timeline-item.js.map +1 -1
  56. package/realtime/support-provider.js +4 -0
  57. package/realtime/support-provider.js.map +1 -1
  58. package/realtime-events.d.ts +127 -3
  59. package/realtime-events.d.ts.map +1 -1
  60. package/registries.d.ts +1 -1
  61. package/registries.d.ts.map +1 -1
  62. package/schemas.d.ts +305 -7
  63. package/schemas.d.ts.map +1 -1
  64. package/schemas2.d.ts +29 -4
  65. package/schemas2.d.ts.map +1 -1
  66. package/schemas3.d.ts +1 -1
  67. package/specification-extension.d.ts +1 -1
  68. package/specification-extension.d.ts.map +1 -1
  69. package/standard-schema.d.ts +83 -21
  70. package/standard-schema.d.ts.map +1 -1
  71. package/support/components/button.d.ts +1 -1
  72. package/support/components/conversation-timeline.d.ts +5 -0
  73. package/support/components/conversation-timeline.d.ts.map +1 -1
  74. package/support/components/conversation-timeline.js +22 -2
  75. package/support/components/conversation-timeline.js.map +1 -1
  76. package/support/text/index.d.ts +1 -1
  77. package/support/text/index.d.ts.map +1 -1
  78. package/support/text/index.js.map +1 -1
  79. package/to-json-schema.d.ts +96 -0
  80. package/to-json-schema.d.ts.map +1 -0
  81. package/util.d.ts +6 -2
  82. package/util.d.ts.map +1 -1
  83. package/utils/use-render-element.d.ts.map +1 -1
  84. package/utils/use-render-element.js +18 -3
  85. package/utils/use-render-element.js.map +1 -1
  86. package/versions.d.ts +2 -2
  87. package/versions.d.ts.map +1 -1
  88. package/zod-extensions.d.ts +1 -1
  89. package/zod-extensions.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"openapi30.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","SchemaObjectFormat","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/openapi3-ts/dist/model/openapi30.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport type SchemaObjectFormat = 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\nexport interface SchemaObject extends ISpecificationExtension {\n nullable?: boolean;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: SchemaObjectFormat;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n exclusiveMaximum?: boolean;\n minimum?: number;\n exclusiveMinimum?: boolean;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UA8FiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;KAIL2B,gBAAAA;KACAC,kBAAAA;UACK7B,YAAAA,SAAqBX;;kBAElByC;;;QAGVC;iBACSlC;;;;SAIR+B,mBAAmBA;WACjBC;WACA7B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;;;;;;;;;;;;;;;;;;;;UAwBzB6B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkB1C"}
1
+ {"version":3,"file":"openapi30.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","SchemaObjectFormat","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi30.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport type SchemaObjectFormat = 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\nexport interface SchemaObject extends ISpecificationExtension {\n nullable?: boolean;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: SchemaObjectFormat;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n exclusiveMaximum?: boolean;\n minimum?: number;\n exclusiveMinimum?: boolean;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UA8FiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;KAIL2B,gBAAAA;KACAC,kBAAAA;UACK7B,YAAAA,SAAqBX;;kBAElByC;;;QAGVC;iBACSlC;;;;SAIR+B,mBAAmBA;WACjBC;WACA7B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;;;;;;;;;;;;;;;;;;;;UAwBzB6B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkB1C"}
package/openapi31.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ISpecificationExtension } from "./specification-extension.js";
2
2
 
3
- //#region ../../node_modules/openapi3-ts/dist/model/openapi31.d.ts
3
+ //#region ../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi31.d.ts
4
4
 
5
5
  interface ExternalDocumentationObject extends ISpecificationExtension {
6
6
  description?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"openapi31.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/openapi3-ts/dist/model/openapi31.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths?: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n webhooks?: PathsObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n identifier?: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n pathItems?: {\n [pathItem: string]: PathItemObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject | undefined, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses?: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n summary?: string;\n description?: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport interface SchemaObject extends ISpecificationExtension {\n $ref?: string;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n propertyNames?: SchemaObject | ReferenceObject;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n const?: any;\n exclusiveMaximum?: number;\n minimum?: number;\n exclusiveMinimum?: number;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n prefixItems?: (SchemaObject | ReferenceObject)[];\n contentMediaType?: string;\n contentEncoding?: string;\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UAmGiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;;;KAML2B,gBAAAA;UACK5B,YAAAA,SAAqBX;;kBAElBwC;;;QAGVC;iBACSjC;;;;SAIR+B,mBAAmBA;;WAEjB5B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;kBACtBD,eAAeC;;;;;;;;;;;;;;;;;;;;iBAoBhBD,eAAeC;;;;UAQjB4B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkBzC"}
1
+ {"version":3,"file":"openapi31.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi31.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths?: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n webhooks?: PathsObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n identifier?: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n pathItems?: {\n [pathItem: string]: PathItemObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject | undefined, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses?: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n summary?: string;\n description?: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport interface SchemaObject extends ISpecificationExtension {\n $ref?: string;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n propertyNames?: SchemaObject | ReferenceObject;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n const?: any;\n exclusiveMaximum?: number;\n minimum?: number;\n exclusiveMinimum?: number;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n prefixItems?: (SchemaObject | ReferenceObject)[];\n contentMediaType?: string;\n contentEncoding?: string;\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UAmGiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;;;KAML2B,gBAAAA;UACK5B,YAAAA,SAAqBX;;kBAElBwC;;;QAGVC;iBACSjC;;;;SAIR+B,mBAAmBA;;WAEjB5B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;kBACtBD,eAAeC;;;;;;;;;;;;;;;;;;;;iBAoBhBD,eAAeC;;;;UAQjB4B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkBzC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cossistant/react",
3
3
  "type": "module",
4
- "version": "0.0.28",
4
+ "version": "0.0.29",
5
5
  "private": false,
6
6
  "author": "Cossistant team",
7
7
  "description": "Headless React SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.",
@@ -88,8 +88,8 @@
88
88
  "*.css"
89
89
  ],
90
90
  "dependencies": {
91
- "@cossistant/core": "0.0.28",
92
- "@cossistant/types": "0.0.28",
91
+ "@cossistant/core": "0.0.29",
92
+ "@cossistant/types": "0.0.29",
93
93
  "@floating-ui/react": "^0.27.16",
94
94
  "class-variance-authority": "^0.7.1",
95
95
  "clsx": "^2.1.1",
package/parse.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ZodError } from "./errors2.js";
2
2
 
3
- //#region ../../node_modules/zod/v4/classic/parse.d.cts
3
+ //#region ../../node_modules/.bun/zod@4.2.1/node_modules/zod/v4/classic/parse.d.cts
4
4
  type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
5
5
  type ZodSafeParseSuccess<T> = {
6
6
  success: true;
package/parse.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","names":["core","ZodError","ZodSafeParseResult","T","ZodSafeParseSuccess","ZodSafeParseError","parse","$ZodType","$ZodIssue","ParseContext","util","AnyFunc","$ZodErrorClass","output","parseAsync","Promise","safeParse","safeParseAsync","encode","input","decode","encodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync"],"sources":["../../../node_modules/zod/v4/classic/parse.d.cts"],"sourcesContent":["import * as core from \"../core/index.cjs\";\nimport { type ZodError } from \"./errors.cjs\";\nexport type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;\nexport type ZodSafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type ZodSafeParseError<T> = {\n success: false;\n data?: never;\n error: ZodError<T>;\n};\nexport declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => core.output<T>;\nexport declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => Promise<core.output<T>>;\nexport declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\nexport declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.input<T>;\nexport declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;\nexport declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.input<T>>;\nexport declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;\nexport declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.input<T>>;\nexport declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.input<T>>>;\nexport declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\n"],"x_google_ignoreList":[0],"mappings":";;;KAEYE,wBAAwBE,oBAAoBD,KAAKE,kBAAkBF;AAAnED,KACAE,mBADkB,CAAAD,CAAAA,CAAAA,GAAAA;EAA0BA,OAAAA,EAAAA,IAAAA;EAApBC,IAAAA,EAG1BD,CAH0BC;EAA2CD,KAAAA,CAAAA,EAAAA,KAAAA;CAAlBE;AAAiB,KAMlEA,iBANkE,CAAA,CAAA,CAAA,GAAA;EAClED,OAAAA,EAAAA,KAAAA;EAKAC,IAAAA,CAAAA,EAAAA,KAAAA;SAGDJ,SAASE"}
1
+ {"version":3,"file":"parse.d.ts","names":["core","ZodError","ZodSafeParseResult","T","ZodSafeParseSuccess","ZodSafeParseError","parse","$ZodType","$ZodIssue","ParseContext","util","AnyFunc","$ZodErrorClass","output","parseAsync","Promise","safeParse","safeParseAsync","encode","input","decode","encodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync"],"sources":["../../../node_modules/.bun/zod@4.2.1/node_modules/zod/v4/classic/parse.d.cts"],"sourcesContent":["import * as core from \"../core/index.cjs\";\nimport { type ZodError } from \"./errors.cjs\";\nexport type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;\nexport type ZodSafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type ZodSafeParseError<T> = {\n success: false;\n data?: never;\n error: ZodError<T>;\n};\nexport declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => core.output<T>;\nexport declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => Promise<core.output<T>>;\nexport declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\nexport declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.input<T>;\nexport declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;\nexport declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.input<T>>;\nexport declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;\nexport declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.input<T>>;\nexport declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.input<T>>>;\nexport declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\n"],"x_google_ignoreList":[0],"mappings":";;;KAEYE,wBAAwBE,oBAAoBD,KAAKE,kBAAkBF;AAAnED,KACAE,mBADkB,CAAAD,CAAAA,CAAAA,GAAAA;EAA0BA,OAAAA,EAAAA,IAAAA;EAApBC,IAAAA,EAG1BD,CAH0BC;EAA2CD,KAAAA,CAAAA,EAAAA,KAAAA;CAAlBE;AAAiB,KAMlEA,iBANkE,CAAA,CAAA,CAAA,GAAA;EAClED,OAAAA,EAAAA,KAAAA;EAKAC,IAAAA,CAAAA,EAAAA,KAAAA;SAGDJ,SAASE"}
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.d.ts","names":[],"sources":["../../../src/primitives/avatar/fallback.tsx"],"sourcesContent":[],"mappings":";;;KASY,mBAAA,GAAsB,KACjC,OAAA,CAAM,eAAe;aAGV,OAAA,CAAM;EAJN,IAAA,CAAA,EAAA,MAAA;EACU,OAAA,CAAA,EAAA,MAAA;EAArB,OAAM,CAAA,EAAA,OAAA;EAD2B,SAAA,CAAA,EAAA,MAAA;CAItB;;AA4BZ;;;AAA2B,cAAd,cAAc,EAAA,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,OAAA,CAAA,cAAA,CAAA,eAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EA5Bf,QAAM,CAAA,EAAN,OAAA,CAAM,SAAA;;;EA4BS,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA"}
1
+ {"version":3,"file":"fallback.d.ts","names":[],"sources":["../../../src/primitives/avatar/fallback.tsx"],"sourcesContent":[],"mappings":";;;KASY,mBAAA,GAAsB,KACjC,OAAA,CAAM,eAAe;aAGV,OAAA,CAAM;EAJN,IAAA,CAAA,EAAA,MAAA;EACU,OAAA,CAAA,EAAA,MAAA;EAArB,OAAM,CAAA,EAAA,OAAA;EAD2B,SAAA,CAAA,EAAA,MAAA;CAItB;;AA2BZ;;;AAA2B,cAAd,cAAc,EAAA,OAAA,CAAA,yBAAA,CAAA,IAAA,CAAA,OAAA,CAAA,cAAA,CAAA,eAAA,CAAA,EAAA,UAAA,CAAA,GAAA;EA3Bf,QAAM,CAAA,EAAN,OAAA,CAAM,SAAA;;;EA2BS,OAAA,CAAA,EAAA,OAAA;EAAA,SAAA,CAAA,EAAA,MAAA"}
@@ -7,7 +7,7 @@ const getInitials = (name) => {
7
7
  const names = name.trim().split(" ");
8
8
  if (names.length === 0) return "";
9
9
  if (names.length === 1) return names[0]?.charAt(0).toUpperCase() || "";
10
- return ((names[0]?.charAt(0) || "") + (names[names.length - 1]?.charAt(0) || "")).toUpperCase();
10
+ return ((names[0]?.charAt(0) || "") + (names.at(-1)?.charAt(0) || "")).toUpperCase();
11
11
  };
12
12
  /**
13
13
  * Displays initials or custom content while the avatar image loads or fails.
@@ -1 +1 @@
1
- {"version":3,"file":"fallback.js","names":["React","state: FallbackState"],"sources":["../../../src/primitives/avatar/fallback.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { useRenderElement } from \"../../utils/use-render-element\";\nimport { useAvatarContext } from \"./avatar\";\n\ntype FallbackState = {\n\timageLoadingStatus: \"idle\" | \"loading\" | \"loaded\" | \"error\";\n\tinitials?: string;\n};\n\nexport type AvatarFallbackProps = Omit<\n\tReact.HTMLAttributes<HTMLSpanElement>,\n\t\"children\"\n> & {\n\tchildren?: React.ReactNode;\n\tname?: string;\n\tdelayMs?: number;\n\tasChild?: boolean;\n\tclassName?: string;\n};\n\nconst getInitials = (name: string): string => {\n\tconst names = name.trim().split(\" \");\n\tif (names.length === 0) {\n\t\treturn \"\";\n\t}\n\n\tif (names.length === 1) {\n\t\treturn names[0]?.charAt(0).toUpperCase() || \"\";\n\t}\n\n\tconst firstInitial = names[0]?.charAt(0) || \"\";\n\t// biome-ignore lint/style/useAtIndex: ok here\n\tconst lastInitial = names[names.length - 1]?.charAt(0) || \"\";\n\n\treturn (firstInitial + lastInitial).toUpperCase();\n};\n\n/**\n * Displays initials or custom content while the avatar image loads or fails.\n * Optional delay avoids flashes when images load instantly.\n */\nexport const AvatarFallback = (() => {\n\tconst Component = React.forwardRef<HTMLSpanElement, AvatarFallbackProps>(\n\t\t(\n\t\t\t{\n\t\t\t\tchildren,\n\t\t\t\tname = \"\",\n\t\t\t\tdelayMs = 0,\n\t\t\t\tclassName,\n\t\t\t\tasChild = false,\n\t\t\t\t...props\n\t\t\t},\n\t\t\tref\n\t\t) => {\n\t\t\tconst { imageLoadingStatus } = useAvatarContext();\n\t\t\tconst [canRender, setCanRender] = React.useState(delayMs === 0);\n\n\t\t\tReact.useEffect(() => {\n\t\t\t\tif (delayMs > 0) {\n\t\t\t\t\tconst timerId = window.setTimeout(() => setCanRender(true), delayMs);\n\t\t\t\t\treturn () => window.clearTimeout(timerId);\n\t\t\t\t}\n\t\t\t}, [delayMs]);\n\n\t\t\tconst initials = React.useMemo(() => {\n\t\t\t\tif (name) {\n\t\t\t\t\treturn getInitials(name);\n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t\t}, [name]);\n\n\t\t\tconst state: FallbackState = {\n\t\t\t\timageLoadingStatus,\n\t\t\t\tinitials,\n\t\t\t};\n\n\t\t\tconst shouldRender =\n\t\t\t\tcanRender &&\n\t\t\t\timageLoadingStatus !== \"loaded\" &&\n\t\t\t\timageLoadingStatus !== \"loading\";\n\n\t\t\tconst content = children || initials;\n\n\t\t\treturn useRenderElement(\n\t\t\t\t\"span\",\n\t\t\t\t{\n\t\t\t\t\tasChild,\n\t\t\t\t\tclassName,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tref,\n\t\t\t\t\tstate,\n\t\t\t\t\tenabled: shouldRender,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tchildren: content,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t);\n\n\tComponent.displayName = \"AvatarFallback\";\n\treturn Component;\n})();\n"],"mappings":";;;;;AAoBA,MAAM,eAAe,SAAyB;CAC7C,MAAM,QAAQ,KAAK,MAAM,CAAC,MAAM,IAAI;AACpC,KAAI,MAAM,WAAW,EACpB,QAAO;AAGR,KAAI,MAAM,WAAW,EACpB,QAAO,MAAM,IAAI,OAAO,EAAE,CAAC,aAAa,IAAI;AAO7C,UAJqB,MAAM,IAAI,OAAO,EAAE,IAAI,OAExB,MAAM,MAAM,SAAS,IAAI,OAAO,EAAE,IAAI,KAEtB,aAAa;;;;;;AAOlD,MAAa,wBAAwB;CACpC,MAAM,YAAYA,QAAM,YAEtB,EACC,UACA,OAAO,IACP,UAAU,GACV,WACA,UAAU,MACV,GAAG,SAEJ,QACI;EACJ,MAAM,EAAE,uBAAuB,kBAAkB;EACjD,MAAM,CAAC,WAAW,gBAAgBA,QAAM,SAAS,YAAY,EAAE;AAE/D,UAAM,gBAAgB;AACrB,OAAI,UAAU,GAAG;IAChB,MAAM,UAAU,OAAO,iBAAiB,aAAa,KAAK,EAAE,QAAQ;AACpE,iBAAa,OAAO,aAAa,QAAQ;;KAExC,CAAC,QAAQ,CAAC;EAEb,MAAM,WAAWA,QAAM,cAAc;AACpC,OAAI,KACH,QAAO,YAAY,KAAK;AAEzB,UAAO;KACL,CAAC,KAAK,CAAC;EAEV,MAAMC,QAAuB;GAC5B;GACA;GACA;EAED,MAAM,eACL,aACA,uBAAuB,YACvB,uBAAuB;EAExB,MAAM,UAAU,YAAY;AAE5B,SAAO,iBACN,QACA;GACC;GACA;GACA,EACD;GACC;GACA;GACA,SAAS;GACT,OAAO;IACN,GAAG;IACH,UAAU;IACV;GACD,CACD;GAEF;AAED,WAAU,cAAc;AACxB,QAAO;IACJ"}
1
+ {"version":3,"file":"fallback.js","names":["React","state: FallbackState"],"sources":["../../../src/primitives/avatar/fallback.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { useRenderElement } from \"../../utils/use-render-element\";\nimport { useAvatarContext } from \"./avatar\";\n\ntype FallbackState = {\n\timageLoadingStatus: \"idle\" | \"loading\" | \"loaded\" | \"error\";\n\tinitials?: string;\n};\n\nexport type AvatarFallbackProps = Omit<\n\tReact.HTMLAttributes<HTMLSpanElement>,\n\t\"children\"\n> & {\n\tchildren?: React.ReactNode;\n\tname?: string;\n\tdelayMs?: number;\n\tasChild?: boolean;\n\tclassName?: string;\n};\n\nconst getInitials = (name: string): string => {\n\tconst names = name.trim().split(\" \");\n\tif (names.length === 0) {\n\t\treturn \"\";\n\t}\n\n\tif (names.length === 1) {\n\t\treturn names[0]?.charAt(0).toUpperCase() || \"\";\n\t}\n\n\tconst firstInitial = names[0]?.charAt(0) || \"\";\n\tconst lastInitial = names.at(-1)?.charAt(0) || \"\";\n\n\treturn (firstInitial + lastInitial).toUpperCase();\n};\n\n/**\n * Displays initials or custom content while the avatar image loads or fails.\n * Optional delay avoids flashes when images load instantly.\n */\nexport const AvatarFallback = (() => {\n\tconst Component = React.forwardRef<HTMLSpanElement, AvatarFallbackProps>(\n\t\t(\n\t\t\t{\n\t\t\t\tchildren,\n\t\t\t\tname = \"\",\n\t\t\t\tdelayMs = 0,\n\t\t\t\tclassName,\n\t\t\t\tasChild = false,\n\t\t\t\t...props\n\t\t\t},\n\t\t\tref\n\t\t) => {\n\t\t\tconst { imageLoadingStatus } = useAvatarContext();\n\t\t\tconst [canRender, setCanRender] = React.useState(delayMs === 0);\n\n\t\t\tReact.useEffect(() => {\n\t\t\t\tif (delayMs > 0) {\n\t\t\t\t\tconst timerId = window.setTimeout(() => setCanRender(true), delayMs);\n\t\t\t\t\treturn () => window.clearTimeout(timerId);\n\t\t\t\t}\n\t\t\t}, [delayMs]);\n\n\t\t\tconst initials = React.useMemo(() => {\n\t\t\t\tif (name) {\n\t\t\t\t\treturn getInitials(name);\n\t\t\t\t}\n\t\t\t\treturn \"\";\n\t\t\t}, [name]);\n\n\t\t\tconst state: FallbackState = {\n\t\t\t\timageLoadingStatus,\n\t\t\t\tinitials,\n\t\t\t};\n\n\t\t\tconst shouldRender =\n\t\t\t\tcanRender &&\n\t\t\t\timageLoadingStatus !== \"loaded\" &&\n\t\t\t\timageLoadingStatus !== \"loading\";\n\n\t\t\tconst content = children || initials;\n\n\t\t\treturn useRenderElement(\n\t\t\t\t\"span\",\n\t\t\t\t{\n\t\t\t\t\tasChild,\n\t\t\t\t\tclassName,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tref,\n\t\t\t\t\tstate,\n\t\t\t\t\tenabled: shouldRender,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tchildren: content,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t);\n\n\tComponent.displayName = \"AvatarFallback\";\n\treturn Component;\n})();\n"],"mappings":";;;;;AAoBA,MAAM,eAAe,SAAyB;CAC7C,MAAM,QAAQ,KAAK,MAAM,CAAC,MAAM,IAAI;AACpC,KAAI,MAAM,WAAW,EACpB,QAAO;AAGR,KAAI,MAAM,WAAW,EACpB,QAAO,MAAM,IAAI,OAAO,EAAE,CAAC,aAAa,IAAI;AAM7C,UAHqB,MAAM,IAAI,OAAO,EAAE,IAAI,OACxB,MAAM,GAAG,GAAG,EAAE,OAAO,EAAE,IAAI,KAEX,aAAa;;;;;;AAOlD,MAAa,wBAAwB;CACpC,MAAM,YAAYA,QAAM,YAEtB,EACC,UACA,OAAO,IACP,UAAU,GACV,WACA,UAAU,MACV,GAAG,SAEJ,QACI;EACJ,MAAM,EAAE,uBAAuB,kBAAkB;EACjD,MAAM,CAAC,WAAW,gBAAgBA,QAAM,SAAS,YAAY,EAAE;AAE/D,UAAM,gBAAgB;AACrB,OAAI,UAAU,GAAG;IAChB,MAAM,UAAU,OAAO,iBAAiB,aAAa,KAAK,EAAE,QAAQ;AACpE,iBAAa,OAAO,aAAa,QAAQ;;KAExC,CAAC,QAAQ,CAAC;EAEb,MAAM,WAAWA,QAAM,cAAc;AACpC,OAAI,KACH,QAAO,YAAY,KAAK;AAEzB,UAAO;KACL,CAAC,KAAK,CAAC;EAEV,MAAMC,QAAuB;GAC5B;GACA;GACA;EAED,MAAM,eACL,aACA,uBAAuB,YACvB,uBAAuB;EAExB,MAAM,UAAU,YAAY;AAE5B,SAAO,iBACN,QACA;GACC;GACA;GACA,EACD;GACC;GACA;GACA,SAAS;GACT,OAAO;IACN,GAAG;IACH,UAAU;IACV;GACD,CACD;GAEF;AAED,WAAU,cAAc;AACxB,QAAO;IACJ"}
@@ -15,7 +15,7 @@ type AvatarImageProps = Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "src"
15
15
  * Controlled `<img>` that syncs its loading status back to the avatar context
16
16
  * so fallbacks know when to display.
17
17
  */
18
- declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "src" | "alt"> & {
18
+ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<React$1.ImgHTMLAttributes<HTMLImageElement>, "alt" | "src"> & {
19
19
  src: string;
20
20
  alt?: string;
21
21
  asChild?: boolean;
@@ -0,0 +1,76 @@
1
+ import * as React$1 from "react";
2
+
3
+ //#region src/primitives/day-separator.d.ts
4
+
5
+ /**
6
+ * Default date formatter that returns "Today", "Yesterday", or a full date string
7
+ */
8
+ declare const defaultFormatDate: (date: Date) => string;
9
+ /**
10
+ * Shape returned to render-prop children describing the day separator state
11
+ */
12
+ type DaySeparatorRenderProps = {
13
+ date: Date;
14
+ dateString: string;
15
+ formattedDate: string;
16
+ isToday: boolean;
17
+ isYesterday: boolean;
18
+ };
19
+ type DaySeparatorProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
20
+ children?: React$1.ReactNode | ((props: DaySeparatorRenderProps) => React$1.ReactNode);
21
+ asChild?: boolean;
22
+ className?: string;
23
+ date: Date;
24
+ dateString: string;
25
+ formatDate?: (date: Date) => string;
26
+ };
27
+ /**
28
+ * Headless day separator component that marks the boundary between different days
29
+ * in a conversation timeline. Consumers can either render their own layout via
30
+ * a render prop or rely on slotted children.
31
+ */
32
+ declare const DaySeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
33
+ children?: React$1.ReactNode | ((props: DaySeparatorRenderProps) => React$1.ReactNode);
34
+ asChild?: boolean;
35
+ className?: string;
36
+ date: Date;
37
+ dateString: string;
38
+ formatDate?: (date: Date) => string;
39
+ } & React$1.RefAttributes<HTMLDivElement>>;
40
+ type DaySeparatorLineProps = Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
41
+ children?: React$1.ReactNode;
42
+ asChild?: boolean;
43
+ className?: string;
44
+ };
45
+ /**
46
+ * Decorative line element for the day separator.
47
+ * Typically rendered on either side of the label.
48
+ */
49
+ declare const DaySeparatorLine: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> & {
50
+ children?: React$1.ReactNode;
51
+ asChild?: boolean;
52
+ className?: string;
53
+ } & React$1.RefAttributes<HTMLDivElement>>;
54
+ type DaySeparatorLabelProps = Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
55
+ children?: React$1.ReactNode | ((props: {
56
+ formattedDate: string;
57
+ }) => React$1.ReactNode);
58
+ asChild?: boolean;
59
+ className?: string;
60
+ formattedDate?: string;
61
+ };
62
+ /**
63
+ * Text label element for the day separator.
64
+ * Displays the formatted date string.
65
+ */
66
+ declare const DaySeparatorLabel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLSpanElement>, "children"> & {
67
+ children?: React$1.ReactNode | ((props: {
68
+ formattedDate: string;
69
+ }) => React$1.ReactNode);
70
+ asChild?: boolean;
71
+ className?: string;
72
+ formattedDate?: string;
73
+ } & React$1.RefAttributes<HTMLSpanElement>>;
74
+ //#endregion
75
+ export { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate };
76
+ //# sourceMappingURL=day-separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"day-separator.d.ts","names":[],"sources":["../../src/primitives/day-separator.tsx"],"sourcesContent":[],"mappings":";;;;;;AA4BA;AAoBY,cApBC,iBAoBsB,EAAA,CAAA,IAC5B,EArBiC,IAqB7B,EAAA,GAAA,MAAA;AAOX;;;AAAgC,KARpB,uBAAA,GAQoB;EAK5B,IAAA,EAZG,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BtB,CAzBsB,IAyBtB,CAzBsB,OAAA,CAAA,cAyBtB,CAzBsB,cAyBtB,CAAA,EAAA,UAAA,CAAA,GAAA;EAD8B,QAAA,CAAA,EAjCzB,OAAA,CAAM,SAiCmB;EAKjC,OAAM,CAAA,EAAA,OAAA;EACiC,SAAM,CAAA,EAAA,MAAA;CAAS,wBAAA,eAAA,CAAA,CAAA;AAU7C,KAhBD,sBAAA,GAAyB,IA8CjC,CA7CH,OAAA,CAAM,cA6CH,CA7CkB,eA6ClB,CAAA,EAAA,UAAA,CAAA,GAAA;EA9B0B,QAAA,CAAA,EAX1B,OAAA,CAAM,SAWoB,GAAA,CAAA,CAAA,KAAA,EAAA;IAAA,aAAA,EAAA,MAAA;EAAA,CAAA,EAAA,GAVa,OAAA,CAAM,SAUnB,CAAA;EAX1B,OAAM,CAAA,EAAA,OAAA;EACiC,SAAM,CAAA,EAAA,MAAA;;;;;;;cAUpC,mBAAiB,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAX1B,OAAA,CAAM;;QACiC,OAAA,CAAM"}
@@ -0,0 +1,111 @@
1
+ import { useRenderElement } from "../utils/use-render-element.js";
2
+ import * as React$1 from "react";
3
+
4
+ //#region src/primitives/day-separator.tsx
5
+ /**
6
+ * Helper to check if a date is today
7
+ */
8
+ const isToday = (date) => {
9
+ const now = /* @__PURE__ */ new Date();
10
+ const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
11
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() === today.getTime();
12
+ };
13
+ /**
14
+ * Helper to check if a date is yesterday
15
+ */
16
+ const isYesterday = (date) => {
17
+ const now = /* @__PURE__ */ new Date();
18
+ const today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
19
+ const yesterday = new Date(today);
20
+ yesterday.setDate(yesterday.getDate() - 1);
21
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() === yesterday.getTime();
22
+ };
23
+ /**
24
+ * Default date formatter that returns "Today", "Yesterday", or a full date string
25
+ */
26
+ const defaultFormatDate = (date) => {
27
+ if (isToday(date)) return "Today";
28
+ if (isYesterday(date)) return "Yesterday";
29
+ return date.toLocaleDateString(void 0, {
30
+ year: "numeric",
31
+ month: "long",
32
+ day: "numeric"
33
+ });
34
+ };
35
+ /**
36
+ * Headless day separator component that marks the boundary between different days
37
+ * in a conversation timeline. Consumers can either render their own layout via
38
+ * a render prop or rely on slotted children.
39
+ */
40
+ const DaySeparator = (() => {
41
+ const Component = React$1.forwardRef(({ children, className, asChild = false, date, dateString, formatDate = defaultFormatDate,...restProps }, ref) => {
42
+ const formattedDate = formatDate(date);
43
+ const renderProps = {
44
+ date,
45
+ dateString,
46
+ formattedDate,
47
+ isToday: isToday(date),
48
+ isYesterday: isYesterday(date)
49
+ };
50
+ const content = typeof children === "function" ? children(renderProps) : children;
51
+ return useRenderElement("div", {
52
+ className,
53
+ asChild
54
+ }, {
55
+ ref,
56
+ state: renderProps,
57
+ props: {
58
+ role: "separator",
59
+ "aria-label": `Day separator: ${formattedDate}`,
60
+ ...restProps,
61
+ children: content
62
+ }
63
+ });
64
+ });
65
+ Component.displayName = "DaySeparator";
66
+ return Component;
67
+ })();
68
+ /**
69
+ * Decorative line element for the day separator.
70
+ * Typically rendered on either side of the label.
71
+ */
72
+ const DaySeparatorLine = (() => {
73
+ const Component = React$1.forwardRef(({ children, className, asChild = false,...props }, ref) => useRenderElement("div", {
74
+ className,
75
+ asChild
76
+ }, {
77
+ ref,
78
+ props: {
79
+ "aria-hidden": true,
80
+ ...props,
81
+ children
82
+ }
83
+ }));
84
+ Component.displayName = "DaySeparatorLine";
85
+ return Component;
86
+ })();
87
+ /**
88
+ * Text label element for the day separator.
89
+ * Displays the formatted date string.
90
+ */
91
+ const DaySeparatorLabel = (() => {
92
+ const Component = React$1.forwardRef(({ children, className, asChild = false, formattedDate = "",...props }, ref) => {
93
+ const content = typeof children === "function" ? children({ formattedDate }) : children ?? formattedDate;
94
+ return useRenderElement("span", {
95
+ className,
96
+ asChild
97
+ }, {
98
+ ref,
99
+ props: {
100
+ ...props,
101
+ children: content
102
+ }
103
+ });
104
+ });
105
+ Component.displayName = "DaySeparatorLabel";
106
+ return Component;
107
+ })();
108
+
109
+ //#endregion
110
+ export { DaySeparator, DaySeparatorLabel, DaySeparatorLine, defaultFormatDate };
111
+ //# sourceMappingURL=day-separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"day-separator.js","names":["React","renderProps: DaySeparatorRenderProps"],"sources":["../../src/primitives/day-separator.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { useRenderElement } from \"../utils/use-render-element\";\n\n/**\n * Helper to check if a date is today\n */\nconst isToday = (date: Date): boolean => {\n\tconst now = new Date();\n\tconst today = new Date(now.getFullYear(), now.getMonth(), now.getDate());\n\tconst itemDay = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n\treturn itemDay.getTime() === today.getTime();\n};\n\n/**\n * Helper to check if a date is yesterday\n */\nconst isYesterday = (date: Date): boolean => {\n\tconst now = new Date();\n\tconst today = new Date(now.getFullYear(), now.getMonth(), now.getDate());\n\tconst yesterday = new Date(today);\n\tyesterday.setDate(yesterday.getDate() - 1);\n\tconst itemDay = new Date(date.getFullYear(), date.getMonth(), date.getDate());\n\treturn itemDay.getTime() === yesterday.getTime();\n};\n\n/**\n * Default date formatter that returns \"Today\", \"Yesterday\", or a full date string\n */\nexport const defaultFormatDate = (date: Date): string => {\n\tif (isToday(date)) {\n\t\treturn \"Today\";\n\t}\n\n\tif (isYesterday(date)) {\n\t\treturn \"Yesterday\";\n\t}\n\n\t// Format as \"January 15, 2024\"\n\treturn date.toLocaleDateString(undefined, {\n\t\tyear: \"numeric\",\n\t\tmonth: \"long\",\n\t\tday: \"numeric\",\n\t});\n};\n\n/**\n * Shape returned to render-prop children describing the day separator state\n */\nexport type DaySeparatorRenderProps = {\n\tdate: Date;\n\tdateString: string;\n\tformattedDate: string;\n\tisToday: boolean;\n\tisYesterday: boolean;\n};\n\nexport type DaySeparatorProps = Omit<\n\tReact.HTMLAttributes<HTMLDivElement>,\n\t\"children\"\n> & {\n\tchildren?:\n\t\t| React.ReactNode\n\t\t| ((props: DaySeparatorRenderProps) => React.ReactNode);\n\tasChild?: boolean;\n\tclassName?: string;\n\tdate: Date;\n\tdateString: string;\n\tformatDate?: (date: Date) => string;\n};\n\n/**\n * Headless day separator component that marks the boundary between different days\n * in a conversation timeline. Consumers can either render their own layout via\n * a render prop or rely on slotted children.\n */\nexport const DaySeparator = (() => {\n\tconst Component = React.forwardRef<HTMLDivElement, DaySeparatorProps>(\n\t\t(\n\t\t\t{\n\t\t\t\tchildren,\n\t\t\t\tclassName,\n\t\t\t\tasChild = false,\n\t\t\t\tdate,\n\t\t\t\tdateString,\n\t\t\t\tformatDate = defaultFormatDate,\n\t\t\t\t...restProps\n\t\t\t},\n\t\t\tref\n\t\t) => {\n\t\t\tconst formattedDate = formatDate(date);\n\t\t\tconst isTodayValue = isToday(date);\n\t\t\tconst isYesterdayValue = isYesterday(date);\n\n\t\t\tconst renderProps: DaySeparatorRenderProps = {\n\t\t\t\tdate,\n\t\t\t\tdateString,\n\t\t\t\tformattedDate,\n\t\t\t\tisToday: isTodayValue,\n\t\t\t\tisYesterday: isYesterdayValue,\n\t\t\t};\n\n\t\t\tconst content =\n\t\t\t\ttypeof children === \"function\" ? children(renderProps) : children;\n\n\t\t\treturn useRenderElement(\n\t\t\t\t\"div\",\n\t\t\t\t{\n\t\t\t\t\tclassName,\n\t\t\t\t\tasChild,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tref,\n\t\t\t\t\tstate: renderProps,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\trole: \"separator\",\n\t\t\t\t\t\t\"aria-label\": `Day separator: ${formattedDate}`,\n\t\t\t\t\t\t...restProps,\n\t\t\t\t\t\tchildren: content,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t);\n\n\tComponent.displayName = \"DaySeparator\";\n\treturn Component;\n})();\n\nexport type DaySeparatorLineProps = Omit<\n\tReact.HTMLAttributes<HTMLDivElement>,\n\t\"children\"\n> & {\n\tchildren?: React.ReactNode;\n\tasChild?: boolean;\n\tclassName?: string;\n};\n\n/**\n * Decorative line element for the day separator.\n * Typically rendered on either side of the label.\n */\nexport const DaySeparatorLine = (() => {\n\tconst Component = React.forwardRef<HTMLDivElement, DaySeparatorLineProps>(\n\t\t({ children, className, asChild = false, ...props }, ref) =>\n\t\t\tuseRenderElement(\n\t\t\t\t\"div\",\n\t\t\t\t{\n\t\t\t\t\tclassName,\n\t\t\t\t\tasChild,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tref,\n\t\t\t\t\tprops: {\n\t\t\t\t\t\t\"aria-hidden\": true,\n\t\t\t\t\t\t...props,\n\t\t\t\t\t\tchildren,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t)\n\t);\n\n\tComponent.displayName = \"DaySeparatorLine\";\n\treturn Component;\n})();\n\nexport type DaySeparatorLabelProps = Omit<\n\tReact.HTMLAttributes<HTMLSpanElement>,\n\t\"children\"\n> & {\n\tchildren?:\n\t\t| React.ReactNode\n\t\t| ((props: { formattedDate: string }) => React.ReactNode);\n\tasChild?: boolean;\n\tclassName?: string;\n\tformattedDate?: string;\n};\n\n/**\n * Text label element for the day separator.\n * Displays the formatted date string.\n */\nexport const DaySeparatorLabel = (() => {\n\tconst Component = React.forwardRef<HTMLSpanElement, DaySeparatorLabelProps>(\n\t\t(\n\t\t\t{ children, className, asChild = false, formattedDate = \"\", ...props },\n\t\t\tref\n\t\t) => {\n\t\t\tconst content =\n\t\t\t\ttypeof children === \"function\"\n\t\t\t\t\t? children({ formattedDate })\n\t\t\t\t\t: (children ?? formattedDate);\n\n\t\t\treturn useRenderElement(\n\t\t\t\t\"span\",\n\t\t\t\t{\n\t\t\t\t\tclassName,\n\t\t\t\t\tasChild,\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tref,\n\t\t\t\t\tpr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a,SAAS,YAAY,GAAG;AAE1D,SAAO,iBACN,OACA;GACC;GACA;GACA,EACD;GACC;GACA,OAAO;GACP,OAAO;IACN,MAAM;IACN,cAAc,kBAAkB;IAChC,GAAG;IACH,UAAU;IACV;GACD,CACD;GAEF;AAED,WAAU,cAAc;AACxB,QAAO;IACJ;;;;;AAeJ,MAAa,0BAA0B;CACtC,MAAM,YAAYD,QAAM,YACtB,EAAE,UAAU,WAAW,UAAU,MAAO,GAAG,SAAS,QACpD,iBACC,OACA;EACC;EACA;EACA,EACD;EACC;EACA,OAAO;GACN,eAAe;GACf,GAAG;GACH;GACA;EACD,CACD,CACF;AAED,WAAU,cAAc;AACxB,QAAO;IACJ;;;;;AAkBJ,MAAa,2BAA2B;CACvC,MAAM,YAAYA,QAAM,YAEtB,EAAE,UAAU,WAAW,UAAU,OAAO,gBAAgB,GAAI,GAAG,SAC/D,QACI;EACJ,MAAM,UACL,OAAO,aAAa,aACjB,SAAS,EAAE,eAAe,CAAC,GAC1B,YAAY;AAEjB,SAAO,iBACN,QACA;GACC;GACA;GACA,EACD;GACC;GACA,OAAO;IACN,GAAG;IACH,UAAU;IACV;GACD,CACD;GAEF;AAED,WAAU,cAAc;AACxB,QAAO;IACJ"}
@@ -5,6 +5,7 @@ import { AvatarFallback } from "./avatar/fallback.js";
5
5
  import { AvatarImage } from "./avatar/image.js";
6
6
  import { Button } from "./button.js";
7
7
  import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
8
+ import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
8
9
  import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
9
10
  import { PageDefinition, Router, RouterProps } from "./router.js";
10
11
  import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
@@ -16,8 +17,8 @@ import "./index.parts.js";
16
17
 
17
18
  //#region src/primitives/index.d.ts
18
19
  declare namespace index_d_exports {
19
- export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, PageDefinition, Router, RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, SupportWindow as Window, extractFileParts, extractImageParts, hasAttachments };
20
+ export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, FileInput, SupportInput as Input, MultimodalInput, PageDefinition, Router, RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments };
20
21
  }
21
22
  //#endregion
22
- export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, PageDefinition, Router, RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, SupportWindow as Window, extractFileParts, extractImageParts, hasAttachments, index_d_exports };
23
+ export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, FileInput, SupportInput as Input, MultimodalInput, PageDefinition, Router, RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TriggerProps, TriggerRenderProps, TypingIndicator, TypingIndicatorProps, TypingParticipant, TypingParticipantType, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, index_d_exports };
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -6,6 +6,7 @@ import { TypingIndicator } from "../support/components/typing-indicator.js";
6
6
  import { SupportConfig } from "../support-config.js";
7
7
  import { Button } from "./button.js";
8
8
  import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
9
+ import { DaySeparator, DaySeparatorLabel, DaySeparatorLine, defaultFormatDate } from "./day-separator.js";
9
10
  import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
10
11
  import { Router } from "./router.js";
11
12
  import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
@@ -25,6 +26,9 @@ var primitives_exports = /* @__PURE__ */ __export({
25
26
  ConversationTimelineContainer: () => ConversationTimelineContainer,
26
27
  ConversationTimelineEmpty: () => ConversationTimelineEmpty,
27
28
  ConversationTimelineLoading: () => ConversationTimelineLoading,
29
+ DaySeparator: () => DaySeparator,
30
+ DaySeparatorLabel: () => DaySeparatorLabel,
31
+ DaySeparatorLine: () => DaySeparatorLine,
28
32
  FileInput: () => FileInput,
29
33
  Input: () => SupportInput,
30
34
  MultimodalInput: () => MultimodalInput,
@@ -44,11 +48,12 @@ var primitives_exports = /* @__PURE__ */ __export({
44
48
  Trigger: () => SupportTrigger,
45
49
  TypingIndicator: () => TypingIndicator,
46
50
  Window: () => SupportWindow,
51
+ defaultFormatDate: () => defaultFormatDate,
47
52
  extractFileParts: () => extractFileParts,
48
53
  extractImageParts: () => extractImageParts,
49
54
  hasAttachments: () => hasAttachments
50
55
  });
51
56
 
52
57
  //#endregion
53
- export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TypingIndicator, SupportWindow as Window, extractFileParts, extractImageParts, hasAttachments, primitives_exports };
58
+ export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, SupportInput as Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TypingIndicator, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments, primitives_exports };
54
59
  //# sourceMappingURL=index.js.map
@@ -6,6 +6,7 @@ import { AvatarImage } from "./avatar/image.js";
6
6
  import "./avatar/index.js";
7
7
  import { Button } from "./button.js";
8
8
  import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
9
+ import { DaySeparator, DaySeparatorLabel, DaySeparatorLabelProps, DaySeparatorLine, DaySeparatorLineProps, DaySeparatorProps, DaySeparatorRenderProps, defaultFormatDate } from "./day-separator.js";
9
10
  import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
10
11
  import { PageDefinition, Router, RouterProps } from "./router.js";
11
12
  import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
@@ -13,4 +14,4 @@ import { TimelineItemAttachments, TimelineItemFiles, TimelineItemImages, extract
13
14
  import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator } from "./timeline-item-group.js";
14
15
  import { SupportTrigger, TriggerProps, TriggerRenderProps } from "./trigger.js";
15
16
  import { SupportWindow } from "./window.js";
16
- export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, type PageDefinition, Router, type RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, type TriggerProps, type TriggerRenderProps, TypingIndicator, type TypingIndicatorProps, type TypingParticipant, type TypingParticipantType, SupportWindow as Window, extractFileParts, extractImageParts, hasAttachments };
17
+ export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, type DaySeparatorLabelProps, DaySeparatorLine, type DaySeparatorLineProps, type DaySeparatorProps, type DaySeparatorRenderProps, FileInput, SupportInput as Input, MultimodalInput, type PageDefinition, Router, type RouterProps, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, type TriggerProps, type TriggerRenderProps, TypingIndicator, type TypingIndicatorProps, type TypingParticipant, type TypingParticipantType, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments };
@@ -5,6 +5,7 @@ import { TypingIndicator } from "../support/components/typing-indicator.js";
5
5
  import { SupportConfig } from "../support-config.js";
6
6
  import { Button } from "./button.js";
7
7
  import { ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading } from "./conversation-timeline.js";
8
+ import { DaySeparator, DaySeparatorLabel, DaySeparatorLine, defaultFormatDate } from "./day-separator.js";
8
9
  import { FileInput, MultimodalInput, SupportInput } from "./multimodal-input.js";
9
10
  import { Router } from "./router.js";
10
11
  import { TimelineItem, TimelineItemContent, TimelineItemTimestamp } from "./timeline-item.js";
@@ -13,4 +14,4 @@ import { TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, T
13
14
  import { SupportTrigger } from "./trigger.js";
14
15
  import { SupportWindow } from "./window.js";
15
16
 
16
- export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, FileInput, SupportInput as Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TypingIndicator, SupportWindow as Window, extractFileParts, extractImageParts, hasAttachments };
17
+ export { Avatar, AvatarFallback, AvatarImage, Button, SupportConfig as Config, ConversationTimeline, ConversationTimelineContainer, ConversationTimelineEmpty, ConversationTimelineLoading, DaySeparator, DaySeparatorLabel, DaySeparatorLine, FileInput, SupportInput as Input, MultimodalInput, Router, TimelineItem, TimelineItemAttachments, TimelineItemContent, TimelineItemFiles, TimelineItemGroup, TimelineItemGroupAvatar, TimelineItemGroupContent, TimelineItemGroupHeader, TimelineItemGroupReadIndicator, TimelineItemGroupSeenIndicator, TimelineItemImages, TimelineItemTimestamp, SupportTrigger as Trigger, TypingIndicator, SupportWindow as Window, defaultFormatDate, extractFileParts, extractImageParts, hasAttachments };
@@ -16,7 +16,7 @@ type MultimodalInputProps = Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElem
16
16
  * clipboard uploads and auto-resizing while remaining composable via
17
17
  * `asChild`.
18
18
  */
19
- declare const MultimodalInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value"> & {
19
+ declare const MultimodalInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange"> & {
20
20
  value: string;
21
21
  onChange: (value: string) => void;
22
22
  onSubmit?: () => void;
@@ -38,7 +38,7 @@ declare const FileInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttr
38
38
  onFileSelect?: (files: File[]) => void;
39
39
  asChild?: boolean;
40
40
  } & React$1.RefAttributes<HTMLInputElement>>;
41
- declare const SupportInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "value"> & {
41
+ declare const SupportInput: React$1.ForwardRefExoticComponent<Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange"> & {
42
42
  value: string;
43
43
  onChange: (value: string) => void;
44
44
  onSubmit?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"multimodal-input.d.ts","names":[],"sources":["../../src/primitives/multimodal-input.tsx"],"sourcesContent":[],"mappings":";;;KAGY,oBAAA,GAAuB,KAClC,OAAA,CAAM,uBAAuB;;EADlB,QAAA,EAAA,CAAA,KAAA,EAAA,MAAoB,EAAA,GAAA,IAAA;EACF,QAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EAA7B,YAAM,CAAA,EAAA,CAAA,KAAA,EAMiB,IANjB,EAAA,EAAA,GAAA,IAAA;EAD4B,OAAA,CAAA,EAAA,OAAA;EAOX,SAAA,CAAA,EAAA,MAAA;EAGf,KAAA,CAAA,EAAA,KAAA,GAAA,IAAA;EAAK,QAAA,CAAA,EAAA,OAAA;AASd,CAAA;;;;;;cAAa,iBAAe,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,uBAAA;;EAAA,QAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAA,QAAA,CAAA,EAAA,GAAA,GAAA,IAAA;EA4GhB,YAAA,CAAA,EAAA,CAAA,KAAc,EAxHF,IAwHE,EAAA,EAAA,GAAA,IAAA;EAA6B,OAAA,CAAA,EAAA,OAAA;EAA1B,SAAM,CAAA,EAAA,MAAA;EACX,KAAA,CAAA,EAtHf,KAsHe,GAAA,IAAA;EAAI,QAAA,CAAA,EAAA,OAAA;AAQ5B,CAAA,wBAkCI,oBAAA,CAAA,CAAA;AAlCkB,KATV,cAAA,GAAiB,OAAA,CAAM,mBASb,CATiC,gBASjC,CAAA,GAAA;EAAA,YAAA,CAAA,EAAA,CAAA,KAAA,EARE,IAQF,EAAA,EAAA,GAAA,IAAA;EARE,OAAA,CAAA,EAA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A,EAAA;IAQT,SAAA,EAAA,SAAA,MAAA,EAAA;IAA8B,WAAA,EAAA,OAAA;EAAA,CAAA,EAAA,GA1EjC,OAAA,CAAM,SA0E2B,CAAA;EAAA,OAAA,CAAA,EAAA,OAAA;EAhBvC,SAAM,CAAA,EAAA,MAAA;EAEG,SAAA,CAAA,EAAA,SAAA,MAAA,EAAA;CAEH;;;;;;cAnDG,gCAA8B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAfvC,OAAA,CAAM;;;QAIA,OAAA,CAAM;;;;;KAqDJ,mCAAA,GAAsC,KACjD,OAAA,CAAM,eAAe;aAIlB,OAAA,CAAM;aAEG;;;;;QAEH,OAAA,CAAM;;;;oBAIG;;;;;;;cAQN,gCAA8B,OAAA,CAAA,0BAAA,KAAA,OAAA,CAAA,eAAA;aAhBvC,OAAA,CAAM;aAEG;;;;;QAEH,OAAA,CAAM;;;;oBAIG"}
@@ -12,7 +12,7 @@ const TimelineItemGroup = (() => {
12
12
  const Component = React$1.forwardRef(({ children, className, asChild = false, items = [], viewerId, seenByIds = [], lastReadItemIds,...restProps }, ref) => {
13
13
  const { viewerType,...elementProps } = restProps;
14
14
  const firstItem = items[0];
15
- const lastItem = items[items.length - 1];
15
+ const lastItem = items.at(-1);
16
16
  let senderId = "";
17
17
  let senderType;
18
18
  if (firstItem?.visitorId) {