Skip to content

Commit

Permalink
Merge branch 'master' into form-component
Browse files Browse the repository at this point in the history
  • Loading branch information
KhudaDad414 authored Dec 12, 2023
2 parents 7818d86 + 2116282 commit f1fe7b4
Show file tree
Hide file tree
Showing 15 changed files with 365 additions and 234 deletions.
7 changes: 0 additions & 7 deletions .changeset/fluffy-plums-mix.md

This file was deleted.

11 changes: 6 additions & 5 deletions apps/studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
"./LICENSE"
],
"dependencies": {
"@asyncapi/avro-schema-parser": "^3.0.6",
"@asyncapi/converter": "^1.4.4",
"@asyncapi/avro-schema-parser": "^3.0.7",
"@asyncapi/converter": "^1.4.5",
"@asyncapi/openapi-schema-parser": "^3.0.4",
"@asyncapi/parser": "^3.0.0",
"@asyncapi/parser": "^3.0.1",
"@asyncapi/protobuf-schema-parser": "^3.0.4",
"@asyncapi/react-component": "^1.2.2",
"@asyncapi/specs": "^6.0.0",
"@asyncapi/specs": "^6.1.0",
"@ebay/nice-modal-react": "^1.2.10",
"@headlessui/react": "^1.7.4",
"@hookstate/core": "^4.0.0-rc21",
Expand Down Expand Up @@ -75,7 +76,7 @@
},
"devDependencies": {
"@asyncapi/dotnet-nats-template": "^0.12.1",
"@asyncapi/go-watermill-template": "^0.2.47",
"@asyncapi/go-watermill-template": "^0.2.50",
"@asyncapi/html-template": "^2.0.0",
"@asyncapi/java-spring-cloud-stream-template": "^0.13.4",
"@asyncapi/java-spring-template": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/studio/src/examples/ibmmq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ operations:
channel:
$ref: '#/channels/songReleased'
messages:
- $ref: '#/components/messages/Song'
- $ref: '#/channels/songReleased/messages/Song'
sendSong:
action: send
channel:
$ref: '#/channels/songReleased'
messages:
- $ref: '#/components/messages/Song'
- $ref: '#/channels/songReleased/messages/Song'
components:
messages:
Song:
Expand Down
4 changes: 2 additions & 2 deletions apps/studio/src/examples/real-world/gitter-streaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ operations:
http:
method: POST
messages:
- $ref: '#/components/messages/chatMessage'
- $ref: '#/components/messages/heartbeat'
- $ref: '#/channels/rooms/messages/chatMessage'
- $ref: '#/channels/rooms/messages/heartbeat'
components:
securitySchemes:
httpBearerToken:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/pong'
- $ref: '#/channels/currencyExchange/messages/pong'
messages:
- $ref: '#/components/messages/ping'
- $ref: '#/channels/currencyExchange/messages/ping'
sendHeartbeat:
action: send
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/heartbeat'
- $ref: '#/channels/currencyExchange/messages/heartbeat'
systemStatus:
action: send
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/systemStatus'
- $ref: '#/channels/currencyExchange/messages/systemStatus'
receiveSubscribeRequest:
action: receive
channel:
Expand All @@ -72,10 +72,10 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/subscriptionStatus'
- $ref: '#/components/messages/dummyCurrencyInfo'
- $ref: '#/channels/currencyExchange/messages/subscriptionStatus'
- $ref: '#/channels/currencyExchange/messages/dummyCurrencyInfo'
messages:
- $ref: '#/components/messages/subscribe'
- $ref: '#/channels/currencyExchange/messages/subscribe'
receiveUnsubscribeRequest:
action: receive
channel:
Expand All @@ -84,9 +84,9 @@ operations:
channel:
$ref: '#/channels/currencyExchange'
messages:
- $ref: '#/components/messages/subscriptionStatus'
- $ref: '#/channels/currencyExchange/messages/subscriptionStatus'
messages:
- $ref: '#/components/messages/unsubscribe'
- $ref: '#/channels/currencyExchange/messages/unsubscribe'


components:
Expand Down
94 changes: 47 additions & 47 deletions apps/studio/src/examples/real-world/slack-rtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,58 +115,58 @@ operations:
channel:
$ref: '#/channels/root'
messages:
- $ref: '#/components/messages/outgoingMessage'
- $ref: '#/channels/root/messages/outgoingMessage'
sendMessages:
action: send
channel:
$ref: '#/channels/root'
messages:
- $ref: '#/components/messages/hello'
- $ref: '#/components/messages/connectionError'
- $ref: '#/components/messages/accountsChanged'
- $ref: '#/components/messages/botAdded'
- $ref: '#/components/messages/botChanged'
- $ref: '#/components/messages/channelArchive'
- $ref: '#/components/messages/channelCreated'
- $ref: '#/components/messages/channelDeleted'
- $ref: '#/components/messages/channelHistoryChanged'
- $ref: '#/components/messages/channelJoined'
- $ref: '#/components/messages/channelLeft'
- $ref: '#/components/messages/channelMarked'
- $ref: '#/components/messages/channelRename'
- $ref: '#/components/messages/channelUnarchive'
- $ref: '#/components/messages/commandsChanged'
- $ref: '#/components/messages/dndUpdated'
- $ref: '#/components/messages/dndUpdatedUser'
- $ref: '#/components/messages/emailDomainChanged'
- $ref: '#/components/messages/emojiRemoved'
- $ref: '#/components/messages/emojiAdded'
- $ref: '#/components/messages/fileChange'
- $ref: '#/components/messages/fileCommentAdded'
- $ref: '#/components/messages/fileCommentDeleted'
- $ref: '#/components/messages/fileCommentEdited'
- $ref: '#/components/messages/fileCreated'
- $ref: '#/components/messages/fileDeleted'
- $ref: '#/components/messages/filePublic'
- $ref: '#/components/messages/fileShared'
- $ref: '#/components/messages/fileUnshared'
- $ref: '#/components/messages/goodbye'
- $ref: '#/components/messages/groupArchive'
- $ref: '#/components/messages/groupClose'
- $ref: '#/components/messages/groupHistoryChanged'
- $ref: '#/components/messages/groupJoined'
- $ref: '#/components/messages/groupLeft'
- $ref: '#/components/messages/groupMarked'
- $ref: '#/components/messages/groupOpen'
- $ref: '#/components/messages/groupRename'
- $ref: '#/components/messages/groupUnarchive'
- $ref: '#/components/messages/imClose'
- $ref: '#/components/messages/imCreated'
- $ref: '#/components/messages/imMarked'
- $ref: '#/components/messages/imOpen'
- $ref: '#/components/messages/manualPresenceChange'
- $ref: '#/components/messages/memberJoinedChannel'
- $ref: '#/components/messages/message'
- $ref: '#/channels/root/messages/hello'
- $ref: '#/channels/root/messages/connectionError'
- $ref: '#/channels/root/messages/accountsChanged'
- $ref: '#/channels/root/messages/botAdded'
- $ref: '#/channels/root/messages/botChanged'
- $ref: '#/channels/root/messages/channelArchive'
- $ref: '#/channels/root/messages/channelCreated'
- $ref: '#/channels/root/messages/channelDeleted'
- $ref: '#/channels/root/messages/channelHistoryChanged'
- $ref: '#/channels/root/messages/channelJoined'
- $ref: '#/channels/root/messages/channelLeft'
- $ref: '#/channels/root/messages/channelMarked'
- $ref: '#/channels/root/messages/channelRename'
- $ref: '#/channels/root/messages/channelUnarchive'
- $ref: '#/channels/root/messages/commandsChanged'
- $ref: '#/channels/root/messages/dndUpdated'
- $ref: '#/channels/root/messages/dndUpdatedUser'
- $ref: '#/channels/root/messages/emailDomainChanged'
- $ref: '#/channels/root/messages/emojiRemoved'
- $ref: '#/channels/root/messages/emojiAdded'
- $ref: '#/channels/root/messages/fileChange'
- $ref: '#/channels/root/messages/fileCommentAdded'
- $ref: '#/channels/root/messages/fileCommentDeleted'
- $ref: '#/channels/root/messages/fileCommentEdited'
- $ref: '#/channels/root/messages/fileCreated'
- $ref: '#/channels/root/messages/fileDeleted'
- $ref: '#/channels/root/messages/filePublic'
- $ref: '#/channels/root/messages/fileShared'
- $ref: '#/channels/root/messages/fileUnshared'
- $ref: '#/channels/root/messages/goodbye'
- $ref: '#/channels/root/messages/groupArchive'
- $ref: '#/channels/root/messages/groupClose'
- $ref: '#/channels/root/messages/groupHistoryChanged'
- $ref: '#/channels/root/messages/groupJoined'
- $ref: '#/channels/root/messages/groupLeft'
- $ref: '#/channels/root/messages/groupMarked'
- $ref: '#/channels/root/messages/groupOpen'
- $ref: '#/channels/root/messages/groupRename'
- $ref: '#/channels/root/messages/groupUnarchive'
- $ref: '#/channels/root/messages/imClose'
- $ref: '#/channels/root/messages/imCreated'
- $ref: '#/channels/root/messages/imMarked'
- $ref: '#/channels/root/messages/imOpen'
- $ref: '#/channels/root/messages/manualPresenceChange'
- $ref: '#/channels/root/messages/memberJoinedChannel'
- $ref: '#/channels/root/messages/message'
components:
securitySchemes:
token:
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/examples/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ operations:
channel:
$ref: '#/channels/userSignedup'
messages:
- $ref: '#/components/messages/UserSignedUp'
- $ref: '#/channels/userSignedup/messages/UserSignedUp'
components:
messages:
UserSignedUp:
Expand Down
8 changes: 4 additions & 4 deletions apps/studio/src/examples/streetlights-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,31 +81,31 @@ operations:
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/lightMeasured'
- $ref: '#/channels/lightingMeasured/messages/lightMeasured'
turnOn:
action: send
channel:
$ref: '#/channels/lightTurnOn'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOn/messages/turnOn'
turnOff:
action: send
channel:
$ref: '#/channels/lightTurnOff'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOff/messages/turnOff'
dimLight:
action: send
channel:
$ref: '#/channels/lightsDim'
traits:
- $ref: '#/components/operationTraits/kafka'
messages:
- $ref: '#/components/messages/dimLight'
- $ref: '#/channels/lightsDim/messages/dimLight'
components:
messages:
lightMeasured:
Expand Down
8 changes: 4 additions & 4 deletions apps/studio/src/examples/streetlights-mqtt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,31 +107,31 @@ operations:
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/lightMeasured'
- $ref: '#/channels/lightingMeasured/messages/lightMeasured'
turnOn:
action: send
channel:
$ref: '#/channels/lightTurnOn'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOn/messages/turnOn'
turnOff:
action: send
channel:
$ref: '#/channels/lightTurnOff'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/turnOnOff'
- $ref: '#/channels/lightTurnOff/messages/turnOff'
dimLight:
action: send
channel:
$ref: '#/channels/lightsDim'
traits:
- $ref: '#/components/operationTraits/mqtt'
messages:
- $ref: '#/components/messages/dimLight'
- $ref: '#/channels/lightsDim/messages/dimLight'
components:
messages:
lightMeasured:
Expand Down
2 changes: 1 addition & 1 deletion apps/studio/src/examples/websocket-gemini.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ operations:
$ref: '#/channels/marketDataV1'
summary: Receive market updates on a given symbol
messages:
- $ref: '#/components/messages/marketData'
- $ref: '#/channels/marketDataV1/messages/marketData'
components:
messages:
marketData:
Expand Down
2 changes: 2 additions & 0 deletions apps/studio/src/services/parser.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { AbstractService } from './abstract.service';
import { Parser, DiagnosticSeverity } from '@asyncapi/parser/cjs';
import { OpenAPISchemaParser } from '@asyncapi/openapi-schema-parser';
import { AvroSchemaParser } from '@asyncapi/avro-schema-parser';
import { ProtoBuffSchemaParser } from '@asyncapi/protobuf-schema-parser';
import { untilde } from '@asyncapi/parser/cjs/utils';

import { isDeepEqual } from '../helpers';
Expand All @@ -21,6 +22,7 @@ export class ParserService extends AbstractService {
// Temporary fix for TS error
OpenAPISchemaParser() as SchemaParser<unknown, unknown>,
AvroSchemaParser() as SchemaParser<unknown, unknown>,
ProtoBuffSchemaParser() as SchemaParser<unknown, unknown>,
],
__unstable: {
resolver: {
Expand Down
Loading

0 comments on commit f1fe7b4

Please sign in to comment.