@thoughtspot/visual-embed-sdk 1.33.0-dc.1 → 1.33.1-dc.2
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.
- package/cjs/package.json +5 -5
- package/cjs/src/embed/app.d.ts +0 -13
- package/cjs/src/embed/app.d.ts.map +1 -1
- package/cjs/src/embed/app.js.map +1 -1
- package/cjs/src/embed/bodyless-conversation.d.ts +1 -1
- package/cjs/src/embed/bodyless-conversation.js +1 -1
- package/cjs/src/embed/conversation.d.ts +15 -0
- package/cjs/src/embed/conversation.d.ts.map +1 -1
- package/cjs/src/embed/conversation.js +17 -0
- package/cjs/src/embed/conversation.js.map +1 -1
- package/cjs/src/embed/conversation.spec.js +1 -1
- package/cjs/src/embed/conversation.spec.js.map +1 -1
- package/cjs/src/embed/liveboard.d.ts.map +1 -1
- package/cjs/src/embed/liveboard.js +2 -1
- package/cjs/src/embed/liveboard.js.map +1 -1
- package/cjs/src/embed/search.d.ts +0 -13
- package/cjs/src/embed/search.d.ts.map +1 -1
- package/cjs/src/embed/search.js.map +1 -1
- package/cjs/src/types.d.ts +18 -35
- package/cjs/src/types.d.ts.map +1 -1
- package/cjs/src/types.js +4 -33
- package/cjs/src/types.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/cjs/src/utils/graphql/answerService/answerService.spec.js +18 -0
- package/cjs/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
- package/cjs/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.d.ts +13 -0
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.js +13 -0
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/dist/es/index-BwesxE_h.js +7369 -0
- package/dist/es/index.js +17483 -0
- package/dist/es/react/index.js +24027 -0
- package/dist/es/react/src/auth.d.ts +171 -0
- package/dist/es/react/src/auth.d.ts.map +1 -0
- package/dist/es/react/src/auth.spec.d.ts +15 -0
- package/dist/es/react/src/auth.spec.d.ts.map +1 -0
- package/dist/es/react/src/authToken.d.ts +17 -0
- package/dist/es/react/src/authToken.d.ts.map +1 -0
- package/dist/es/react/src/authToken.spec.d.ts +2 -0
- package/dist/es/react/src/authToken.spec.d.ts.map +1 -0
- package/dist/es/react/src/config.d.ts +21 -0
- package/dist/es/react/src/config.d.ts.map +1 -0
- package/dist/es/react/src/config.spec.d.ts +5 -0
- package/dist/es/react/src/config.spec.d.ts.map +1 -0
- package/dist/es/react/src/css-variables.d.ts +384 -0
- package/dist/es/react/src/css-variables.d.ts.map +1 -0
- package/dist/es/react/src/embed/app.d.ts +478 -0
- package/dist/es/react/src/embed/app.d.ts.map +1 -0
- package/dist/es/react/src/embed/app.spec.d.ts +2 -0
- package/dist/es/react/src/embed/app.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/base.d.ts +136 -0
- package/dist/es/react/src/embed/base.d.ts.map +1 -0
- package/dist/es/react/src/embed/base.spec.d.ts +2 -0
- package/dist/es/react/src/embed/base.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/bodyless-conversation.d.ts +26 -0
- package/dist/es/react/src/embed/bodyless-conversation.d.ts.map +1 -0
- package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts +2 -0
- package/dist/es/react/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/conversation.d.ts +43 -0
- package/dist/es/react/src/embed/conversation.d.ts.map +1 -0
- package/dist/es/react/src/embed/conversation.spec.d.ts +2 -0
- package/dist/es/react/src/embed/conversation.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/embed.spec.d.ts +2 -0
- package/dist/es/react/src/embed/embed.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/embedConfig.d.ts +17 -0
- package/dist/es/react/src/embed/embedConfig.d.ts.map +1 -0
- package/dist/es/react/src/embed/events.spec.d.ts +2 -0
- package/dist/es/react/src/embed/events.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/liveboard.d.ts +379 -0
- package/dist/es/react/src/embed/liveboard.d.ts.map +1 -0
- package/dist/es/react/src/embed/liveboard.spec.d.ts +2 -0
- package/dist/es/react/src/embed/liveboard.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/pinboard.spec.d.ts +2 -0
- package/dist/es/react/src/embed/pinboard.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/sage.d.ts +148 -0
- package/dist/es/react/src/embed/sage.d.ts.map +1 -0
- package/dist/es/react/src/embed/sage.spec.d.ts +2 -0
- package/dist/es/react/src/embed/sage.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/search-bar.d.ts +93 -0
- package/dist/es/react/src/embed/search-bar.d.ts.map +1 -0
- package/dist/es/react/src/embed/search.d.ts +282 -0
- package/dist/es/react/src/embed/search.d.ts.map +1 -0
- package/dist/es/react/src/embed/search.spec.d.ts +2 -0
- package/dist/es/react/src/embed/search.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/dist/es/react/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/dist/es/react/src/embed/ts-embed.d.ts +374 -0
- package/dist/es/react/src/embed/ts-embed.d.ts.map +1 -0
- package/dist/es/react/src/embed/ts-embed.spec.d.ts +2 -0
- package/dist/es/react/src/embed/ts-embed.spec.d.ts.map +1 -0
- package/dist/es/react/src/errors.d.ts +19 -0
- package/dist/es/react/src/errors.d.ts.map +1 -0
- package/dist/es/react/src/index.d.ts +28 -0
- package/dist/es/react/src/index.d.ts.map +1 -0
- package/dist/es/react/src/mixpanel-service.d.ts +35 -0
- package/dist/es/react/src/mixpanel-service.d.ts.map +1 -0
- package/dist/es/react/src/mixpanel-service.spec.d.ts +2 -0
- package/dist/es/react/src/mixpanel-service.spec.d.ts.map +1 -0
- package/dist/es/react/src/react/all-types-export.d.ts +3 -0
- package/dist/es/react/src/react/all-types-export.d.ts.map +1 -0
- package/dist/es/react/src/react/all-types-export.spec.d.ts +2 -0
- package/dist/es/react/src/react/all-types-export.spec.d.ts.map +1 -0
- package/dist/es/react/src/react/index.d.ts +254 -0
- package/dist/es/react/src/react/index.d.ts.map +1 -0
- package/dist/es/react/src/react/index.spec.d.ts +3 -0
- package/dist/es/react/src/react/index.spec.d.ts.map +1 -0
- package/dist/es/react/src/react/util.d.ts +19 -0
- package/dist/es/react/src/react/util.d.ts.map +1 -0
- package/dist/es/react/src/test/test-utils.d.ts +61 -0
- package/dist/es/react/src/test/test-utils.d.ts.map +1 -0
- package/dist/es/react/src/tokenizedFetch.d.ts +18 -0
- package/dist/es/react/src/tokenizedFetch.d.ts.map +1 -0
- package/dist/es/react/src/types.d.ts +4363 -0
- package/dist/es/react/src/types.d.ts.map +1 -0
- package/dist/es/react/src/utils/authService/authService.d.ts +45 -0
- package/dist/es/react/src/utils/authService/authService.d.ts.map +1 -0
- package/dist/es/react/src/utils/authService/authService.spec.d.ts +2 -0
- package/dist/es/react/src/utils/authService/authService.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/authService/index.d.ts +3 -0
- package/dist/es/react/src/utils/authService/index.d.ts.map +1 -0
- package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts +22 -0
- package/dist/es/react/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
- package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/es/react/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/global-styles.d.ts +2 -0
- package/dist/es/react/src/utils/global-styles.d.ts.map +1 -0
- package/dist/es/react/src/utils/global-styles.spec.d.ts +2 -0
- package/dist/es/react/src/utils/global-styles.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
- package/dist/es/react/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts +180 -0
- package/dist/es/react/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/graphql-request.d.ts +15 -0
- package/dist/es/react/src/utils/graphql/graphql-request.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
- package/dist/es/react/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
- package/dist/es/react/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/preview-service.d.ts +9 -0
- package/dist/es/react/src/utils/graphql/preview-service.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/sourceService.d.ts +8 -0
- package/dist/es/react/src/utils/graphql/sourceService.d.ts.map +1 -0
- package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts +2 -0
- package/dist/es/react/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts +16 -0
- package/dist/es/react/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
- package/dist/es/react/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/logger.d.ts +18 -0
- package/dist/es/react/src/utils/logger.d.ts.map +1 -0
- package/dist/es/react/src/utils/logger.spec.d.ts +25 -0
- package/dist/es/react/src/utils/logger.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/processData.d.ts +22 -0
- package/dist/es/react/src/utils/processData.d.ts.map +1 -0
- package/dist/es/react/src/utils/processData.spec.d.ts +2 -0
- package/dist/es/react/src/utils/processData.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/processTrigger.d.ts +16 -0
- package/dist/es/react/src/utils/processTrigger.d.ts.map +1 -0
- package/dist/es/react/src/utils/processTrigger.spec.d.ts +2 -0
- package/dist/es/react/src/utils/processTrigger.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/reporting.d.ts +16 -0
- package/dist/es/react/src/utils/reporting.d.ts.map +1 -0
- package/dist/es/react/src/utils/reporting.spec.d.ts +2 -0
- package/dist/es/react/src/utils/reporting.spec.d.ts.map +1 -0
- package/dist/es/react/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/es/react/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/es/react/src/utils.d.ts +103 -0
- package/dist/es/react/src/utils.d.ts.map +1 -0
- package/dist/es/react/src/utils.spec.d.ts +2 -0
- package/dist/es/react/src/utils.spec.d.ts.map +1 -0
- package/dist/es/src/auth.d.ts +171 -0
- package/dist/es/src/auth.d.ts.map +1 -0
- package/dist/es/src/auth.spec.d.ts +15 -0
- package/dist/es/src/auth.spec.d.ts.map +1 -0
- package/dist/es/src/authToken.d.ts +17 -0
- package/dist/es/src/authToken.d.ts.map +1 -0
- package/dist/es/src/authToken.spec.d.ts +2 -0
- package/dist/es/src/authToken.spec.d.ts.map +1 -0
- package/dist/es/src/config.d.ts +21 -0
- package/dist/es/src/config.d.ts.map +1 -0
- package/dist/es/src/config.spec.d.ts +5 -0
- package/dist/es/src/config.spec.d.ts.map +1 -0
- package/dist/es/src/css-variables.d.ts +384 -0
- package/dist/es/src/css-variables.d.ts.map +1 -0
- package/dist/es/src/embed/app.d.ts +478 -0
- package/dist/es/src/embed/app.d.ts.map +1 -0
- package/dist/es/src/embed/app.spec.d.ts +2 -0
- package/dist/es/src/embed/app.spec.d.ts.map +1 -0
- package/dist/es/src/embed/base.d.ts +136 -0
- package/dist/es/src/embed/base.d.ts.map +1 -0
- package/dist/es/src/embed/base.spec.d.ts +2 -0
- package/dist/es/src/embed/base.spec.d.ts.map +1 -0
- package/dist/es/src/embed/bodyless-conversation.d.ts +26 -0
- package/dist/es/src/embed/bodyless-conversation.d.ts.map +1 -0
- package/dist/es/src/embed/bodyless-conversation.spec.d.ts +2 -0
- package/dist/es/src/embed/bodyless-conversation.spec.d.ts.map +1 -0
- package/dist/es/src/embed/conversation.d.ts +43 -0
- package/dist/es/src/embed/conversation.d.ts.map +1 -0
- package/dist/es/src/embed/conversation.spec.d.ts +2 -0
- package/dist/es/src/embed/conversation.spec.d.ts.map +1 -0
- package/dist/es/src/embed/embed.spec.d.ts +2 -0
- package/dist/es/src/embed/embed.spec.d.ts.map +1 -0
- package/dist/es/src/embed/embedConfig.d.ts +17 -0
- package/dist/es/src/embed/embedConfig.d.ts.map +1 -0
- package/dist/es/src/embed/events.spec.d.ts +2 -0
- package/dist/es/src/embed/events.spec.d.ts.map +1 -0
- package/dist/es/src/embed/liveboard.d.ts +379 -0
- package/dist/es/src/embed/liveboard.d.ts.map +1 -0
- package/dist/es/src/embed/liveboard.spec.d.ts +2 -0
- package/dist/es/src/embed/liveboard.spec.d.ts.map +1 -0
- package/dist/es/src/embed/pinboard.spec.d.ts +2 -0
- package/dist/es/src/embed/pinboard.spec.d.ts.map +1 -0
- package/dist/es/src/embed/sage.d.ts +148 -0
- package/dist/es/src/embed/sage.d.ts.map +1 -0
- package/dist/es/src/embed/sage.spec.d.ts +2 -0
- package/dist/es/src/embed/sage.spec.d.ts.map +1 -0
- package/dist/es/src/embed/search-bar.d.ts +93 -0
- package/dist/es/src/embed/search-bar.d.ts.map +1 -0
- package/dist/es/src/embed/search.d.ts +282 -0
- package/dist/es/src/embed/search.d.ts.map +1 -0
- package/dist/es/src/embed/search.spec.d.ts +2 -0
- package/dist/es/src/embed/search.spec.d.ts.map +1 -0
- package/dist/es/src/embed/ts-embed-trigger.spec.d.ts +2 -0
- package/dist/es/src/embed/ts-embed-trigger.spec.d.ts.map +1 -0
- package/dist/es/src/embed/ts-embed.d.ts +374 -0
- package/dist/es/src/embed/ts-embed.d.ts.map +1 -0
- package/dist/es/src/embed/ts-embed.spec.d.ts +2 -0
- package/dist/es/src/embed/ts-embed.spec.d.ts.map +1 -0
- package/dist/es/src/errors.d.ts +19 -0
- package/dist/es/src/errors.d.ts.map +1 -0
- package/dist/es/src/index.d.ts +28 -0
- package/dist/es/src/index.d.ts.map +1 -0
- package/dist/es/src/mixpanel-service.d.ts +35 -0
- package/dist/es/src/mixpanel-service.d.ts.map +1 -0
- package/dist/es/src/mixpanel-service.spec.d.ts +2 -0
- package/dist/es/src/mixpanel-service.spec.d.ts.map +1 -0
- package/dist/es/src/react/all-types-export.d.ts +3 -0
- package/dist/es/src/react/all-types-export.d.ts.map +1 -0
- package/dist/es/src/react/all-types-export.spec.d.ts +2 -0
- package/dist/es/src/react/all-types-export.spec.d.ts.map +1 -0
- package/dist/es/src/react/index.d.ts +254 -0
- package/dist/es/src/react/index.d.ts.map +1 -0
- package/dist/es/src/react/index.spec.d.ts +3 -0
- package/dist/es/src/react/index.spec.d.ts.map +1 -0
- package/dist/es/src/react/util.d.ts +19 -0
- package/dist/es/src/react/util.d.ts.map +1 -0
- package/dist/es/src/test/test-utils.d.ts +61 -0
- package/dist/es/src/test/test-utils.d.ts.map +1 -0
- package/dist/es/src/tokenizedFetch.d.ts +18 -0
- package/dist/es/src/tokenizedFetch.d.ts.map +1 -0
- package/dist/es/src/types.d.ts +4363 -0
- package/dist/es/src/types.d.ts.map +1 -0
- package/dist/es/src/utils/authService/authService.d.ts +45 -0
- package/dist/es/src/utils/authService/authService.d.ts.map +1 -0
- package/dist/es/src/utils/authService/authService.spec.d.ts +2 -0
- package/dist/es/src/utils/authService/authService.spec.d.ts.map +1 -0
- package/dist/es/src/utils/authService/index.d.ts +3 -0
- package/dist/es/src/utils/authService/index.d.ts.map +1 -0
- package/dist/es/src/utils/authService/tokenizedAuthService.d.ts +22 -0
- package/dist/es/src/utils/authService/tokenizedAuthService.d.ts.map +1 -0
- package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts +2 -0
- package/dist/es/src/utils/authService/tokenizedAuthService.spec.d.ts.map +1 -0
- package/dist/es/src/utils/global-styles.d.ts +2 -0
- package/dist/es/src/utils/global-styles.d.ts.map +1 -0
- package/dist/es/src/utils/global-styles.spec.d.ts +2 -0
- package/dist/es/src/utils/global-styles.spec.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts +10 -0
- package/dist/es/src/utils/graphql/answerService/answer-queries.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/answerService/answerService.d.ts +180 -0
- package/dist/es/src/utils/graphql/answerService/answerService.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts +2 -0
- package/dist/es/src/utils/graphql/answerService/answerService.spec.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/graphql-request.d.ts +15 -0
- package/dist/es/src/utils/graphql/graphql-request.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/graphql-request.spec.d.ts +2 -0
- package/dist/es/src/utils/graphql/graphql-request.spec.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts +3 -0
- package/dist/es/src/utils/graphql/nlsService/conversation-queries.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts +12 -0
- package/dist/es/src/utils/graphql/nlsService/conversation-service.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts +2 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-queries.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts +17 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts +2 -0
- package/dist/es/src/utils/graphql/nlsService/nls-answer-service.spec.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/preview-service.d.ts +9 -0
- package/dist/es/src/utils/graphql/preview-service.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/preview-service.spec.d.ts +2 -0
- package/dist/es/src/utils/graphql/preview-service.spec.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/sourceService.d.ts +8 -0
- package/dist/es/src/utils/graphql/sourceService.d.ts.map +1 -0
- package/dist/es/src/utils/graphql/sourceService.spec.d.ts +2 -0
- package/dist/es/src/utils/graphql/sourceService.spec.d.ts.map +1 -0
- package/dist/es/src/utils/liveboardService/liveboardService.d.ts +16 -0
- package/dist/es/src/utils/liveboardService/liveboardService.d.ts.map +1 -0
- package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts +2 -0
- package/dist/es/src/utils/liveboardService/liveboardService.spec.d.ts.map +1 -0
- package/dist/es/src/utils/logger.d.ts +18 -0
- package/dist/es/src/utils/logger.d.ts.map +1 -0
- package/dist/es/src/utils/logger.spec.d.ts +25 -0
- package/dist/es/src/utils/logger.spec.d.ts.map +1 -0
- package/dist/es/src/utils/processData.d.ts +22 -0
- package/dist/es/src/utils/processData.d.ts.map +1 -0
- package/dist/es/src/utils/processData.spec.d.ts +2 -0
- package/dist/es/src/utils/processData.spec.d.ts.map +1 -0
- package/dist/es/src/utils/processTrigger.d.ts +16 -0
- package/dist/es/src/utils/processTrigger.d.ts.map +1 -0
- package/dist/es/src/utils/processTrigger.spec.d.ts +2 -0
- package/dist/es/src/utils/processTrigger.spec.d.ts.map +1 -0
- package/dist/es/src/utils/reporting.d.ts +16 -0
- package/dist/es/src/utils/reporting.d.ts.map +1 -0
- package/dist/es/src/utils/reporting.spec.d.ts +2 -0
- package/dist/es/src/utils/reporting.spec.d.ts.map +1 -0
- package/dist/es/src/utils/sessionInfoService.d.ts +66 -0
- package/dist/es/src/utils/sessionInfoService.d.ts.map +1 -0
- package/dist/es/src/utils.d.ts +103 -0
- package/dist/es/src/utils.d.ts.map +1 -0
- package/dist/es/src/utils.spec.d.ts +2 -0
- package/dist/es/src/utils.spec.d.ts.map +1 -0
- package/dist/src/embed/app.d.ts +0 -13
- package/dist/src/embed/app.d.ts.map +1 -1
- package/dist/src/embed/bodyless-conversation.d.ts +1 -1
- package/dist/src/embed/conversation.d.ts +15 -0
- package/dist/src/embed/conversation.d.ts.map +1 -1
- package/dist/src/embed/liveboard.d.ts.map +1 -1
- package/dist/src/embed/search.d.ts +0 -13
- package/dist/src/embed/search.d.ts.map +1 -1
- package/dist/src/types.d.ts +18 -35
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts +1 -1
- package/dist/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
- package/dist/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
- package/dist/src/utils/liveboardService/liveboardService.d.ts +13 -0
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +488 -462
- package/dist/tsembed-react.js +686 -503
- package/dist/tsembed.es.js +455 -430
- package/dist/tsembed.js +672 -468
- package/dist/visual-embed-sdk-react-full.d.ts +55 -65
- package/dist/visual-embed-sdk-react.d.ts +55 -65
- package/dist/visual-embed-sdk.d.ts +40 -65
- package/lib/package.json +5 -5
- package/lib/src/embed/app.d.ts +0 -13
- package/lib/src/embed/app.d.ts.map +1 -1
- package/lib/src/embed/app.js.map +1 -1
- package/lib/src/embed/bodyless-conversation.d.ts +1 -1
- package/lib/src/embed/bodyless-conversation.js +1 -1
- package/lib/src/embed/conversation.d.ts +15 -0
- package/lib/src/embed/conversation.d.ts.map +1 -1
- package/lib/src/embed/conversation.js +17 -0
- package/lib/src/embed/conversation.js.map +1 -1
- package/lib/src/embed/conversation.spec.js +1 -1
- package/lib/src/embed/conversation.spec.js.map +1 -1
- package/lib/src/embed/liveboard.d.ts.map +1 -1
- package/lib/src/embed/liveboard.js +2 -1
- package/lib/src/embed/liveboard.js.map +1 -1
- package/lib/src/embed/search.d.ts +0 -13
- package/lib/src/embed/search.d.ts.map +1 -1
- package/lib/src/embed/search.js.map +1 -1
- package/lib/src/types.d.ts +18 -35
- package/lib/src/types.d.ts.map +1 -1
- package/lib/src/types.js +4 -33
- package/lib/src/types.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts +1 -1
- package/lib/src/utils/graphql/answerService/answerService.d.ts.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js +1 -1
- package/lib/src/utils/graphql/answerService/answerService.js.map +1 -1
- package/lib/src/utils/graphql/answerService/answerService.spec.js +18 -0
- package/lib/src/utils/graphql/answerService/answerService.spec.js.map +1 -1
- package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts +7 -2
- package/lib/src/utils/graphql/nlsService/nls-answer-service.d.ts.map +1 -1
- package/lib/src/utils/graphql/nlsService/nls-answer-service.js +7 -2
- package/lib/src/utils/graphql/nlsService/nls-answer-service.js.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.d.ts +13 -0
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.js +13 -0
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/lib/src/visual-embed-sdk.d.ts +40 -65
- package/package.json +5 -5
- package/src/embed/app.ts +0 -13
- package/src/embed/bodyless-conversation.ts +1 -1
- package/src/embed/conversation.spec.ts +1 -1
- package/src/embed/conversation.ts +16 -0
- package/src/embed/liveboard.ts +2 -0
- package/src/embed/search.ts +0 -13
- package/src/types.ts +17 -34
- package/src/utils/graphql/answerService/answerService.spec.ts +24 -0
- package/src/utils/graphql/answerService/answerService.ts +1 -1
- package/src/utils/graphql/nlsService/nls-answer-service.ts +7 -2
- package/src/utils/liveboardService/liveboardService.ts +13 -0
package/dist/tsembed-react.js
CHANGED
|
@@ -2,11 +2,41 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.tsembed = {}, global.React));
|
|
5
|
-
}(this, (function (exports, React) { 'use strict';
|
|
5
|
+
})(this, (function (exports, React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
6
23
|
|
|
7
|
-
function
|
|
24
|
+
function _mergeNamespaces(n, m) {
|
|
25
|
+
m.forEach(function (e) {
|
|
26
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
27
|
+
if (k !== 'default' && !(k in n)) {
|
|
28
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
29
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return e[k]; }
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
return Object.freeze(n);
|
|
37
|
+
}
|
|
8
38
|
|
|
9
|
-
var
|
|
39
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
10
40
|
|
|
11
41
|
var has = Object.prototype.hasOwnProperty;
|
|
12
42
|
|
|
@@ -100,8 +130,8 @@
|
|
|
100
130
|
|
|
101
131
|
|
|
102
132
|
function useDeepCompareMemoize(value) {
|
|
103
|
-
var ref =
|
|
104
|
-
var signalRef =
|
|
133
|
+
var ref = React__namespace.useRef(value);
|
|
134
|
+
var signalRef = React__namespace.useRef(0);
|
|
105
135
|
|
|
106
136
|
if (!dequal(value, ref.current)) {
|
|
107
137
|
ref.current = value;
|
|
@@ -109,7 +139,7 @@
|
|
|
109
139
|
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
110
140
|
|
|
111
141
|
|
|
112
|
-
return
|
|
142
|
+
return React__namespace.useMemo(function () {
|
|
113
143
|
return ref.current;
|
|
114
144
|
}, [signalRef.current]);
|
|
115
145
|
}
|
|
@@ -117,11 +147,11 @@
|
|
|
117
147
|
function useDeepCompareEffect(callback, dependencies) {
|
|
118
148
|
|
|
119
149
|
|
|
120
|
-
return
|
|
150
|
+
return React__namespace.useEffect(callback, useDeepCompareMemoize(dependencies));
|
|
121
151
|
}
|
|
122
152
|
|
|
123
153
|
// istanbul ignore next
|
|
124
|
-
const isObject = (obj) => {
|
|
154
|
+
const isObject$1 = (obj) => {
|
|
125
155
|
if (typeof obj === "object" && obj !== null) {
|
|
126
156
|
if (typeof Object.getPrototypeOf === "function") {
|
|
127
157
|
const prototype = Object.getPrototypeOf(obj);
|
|
@@ -146,7 +176,7 @@
|
|
|
146
176
|
: [...result[key], ...current[key]]
|
|
147
177
|
: current[key];
|
|
148
178
|
}
|
|
149
|
-
else if (isObject(result[key]) && isObject(current[key])) {
|
|
179
|
+
else if (isObject$1(result[key]) && isObject$1(current[key])) {
|
|
150
180
|
result[key] = merge(result[key], current[key]);
|
|
151
181
|
}
|
|
152
182
|
else {
|
|
@@ -605,6 +635,15 @@
|
|
|
605
635
|
*/
|
|
606
636
|
AuthType["Basic"] = "Basic";
|
|
607
637
|
})(AuthType || (AuthType = {}));
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* This option does not apply to the classic homepage experience.
|
|
641
|
+
* To access the updated modular homepage,
|
|
642
|
+
* set `modularHomeExperience` to `true`
|
|
643
|
+
* (available as Early Access feature in 9.12.5.cl).
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
exports.HomeLeftNavItem = void 0;
|
|
608
647
|
(function (HomeLeftNavItem) {
|
|
609
648
|
/**
|
|
610
649
|
* @version SDK: 1.28.0| ThoughtSpot: 9.12.5.cl
|
|
@@ -635,6 +674,11 @@
|
|
|
635
674
|
*/
|
|
636
675
|
HomeLeftNavItem["LiveboardSchedules"] = "liveboard-schedules";
|
|
637
676
|
})(exports.HomeLeftNavItem || (exports.HomeLeftNavItem = {}));
|
|
677
|
+
/**
|
|
678
|
+
* A map of the supported runtime filter operations
|
|
679
|
+
*/
|
|
680
|
+
// eslint-disable-next-line no-shadow
|
|
681
|
+
exports.RuntimeFilterOp = void 0;
|
|
638
682
|
(function (RuntimeFilterOp) {
|
|
639
683
|
/**
|
|
640
684
|
* Equals
|
|
@@ -697,6 +741,15 @@
|
|
|
697
741
|
*/
|
|
698
742
|
RuntimeFilterOp["NOT_IN"] = "NOT_IN";
|
|
699
743
|
})(exports.RuntimeFilterOp || (exports.RuntimeFilterOp = {}));
|
|
744
|
+
/**
|
|
745
|
+
* Home page module that can be hidden.
|
|
746
|
+
* **Note**: This option does not apply to the classic homepage.
|
|
747
|
+
* To access the updated modular homepage, set
|
|
748
|
+
* `modularHomeExperience` to `true` (available as Early Access feature in 9.12.5.cl).
|
|
749
|
+
* @version SDK: 1.28.0 | Thoughtspot: 9.12.5.cl
|
|
750
|
+
*/
|
|
751
|
+
// eslint-disable-next-line no-shadow
|
|
752
|
+
exports.HomepageModule = void 0;
|
|
700
753
|
(function (HomepageModule) {
|
|
701
754
|
/**
|
|
702
755
|
* Search bar
|
|
@@ -723,6 +776,47 @@
|
|
|
723
776
|
*/
|
|
724
777
|
HomepageModule["Learning"] = "LEARNING";
|
|
725
778
|
})(exports.HomepageModule || (exports.HomepageModule = {}));
|
|
779
|
+
/**
|
|
780
|
+
* Event types emitted by the embedded ThoughtSpot application.
|
|
781
|
+
*
|
|
782
|
+
* To add an event listener use the corresponding
|
|
783
|
+
* {@link LiveboardEmbed.on} or {@link AppEmbed.on} or {@link SearchEmbed.on} method.
|
|
784
|
+
* @example
|
|
785
|
+
* ```js
|
|
786
|
+
* import { EmbedEvent } from '@thoughtspot/visual-embed-sdk';
|
|
787
|
+
* // Or
|
|
788
|
+
* // const { EmbedEvent } = window.tsembed;
|
|
789
|
+
*
|
|
790
|
+
* // create the liveboard embed.
|
|
791
|
+
*
|
|
792
|
+
* liveboardEmbed.on(EmbedEvent.Drilldown, (drilldown) => {
|
|
793
|
+
* console.log('Drilldown event', drilldown);
|
|
794
|
+
* }));
|
|
795
|
+
* ```
|
|
796
|
+
*
|
|
797
|
+
* If you are using React components for embedding, you can register to any
|
|
798
|
+
* events from the `EmbedEvent` list by using the `on<EventName>` convention.
|
|
799
|
+
* For example,`onAlert`, `onCopyToClipboard` and so on.
|
|
800
|
+
* @example
|
|
801
|
+
* ```js
|
|
802
|
+
* // ...
|
|
803
|
+
* const MyComponent = ({ dataSources }) => {
|
|
804
|
+
* const onLoad = () => {
|
|
805
|
+
* console.log(EmbedEvent.Load, {});
|
|
806
|
+
* };
|
|
807
|
+
*
|
|
808
|
+
* return (
|
|
809
|
+
* <SearchEmbed
|
|
810
|
+
* dataSources={dataSources}
|
|
811
|
+
* onLoad = {logEvent("Load")}
|
|
812
|
+
* />
|
|
813
|
+
* );
|
|
814
|
+
* };
|
|
815
|
+
* ```
|
|
816
|
+
* @group Events
|
|
817
|
+
*/
|
|
818
|
+
// eslint-disable-next-line no-shadow
|
|
819
|
+
exports.EmbedEvent = void 0;
|
|
726
820
|
(function (EmbedEvent) {
|
|
727
821
|
/**
|
|
728
822
|
* Rendering has initialized.
|
|
@@ -1594,7 +1688,6 @@
|
|
|
1594
1688
|
*
|
|
1595
1689
|
* Prerequisite: Set isOnBeforeGetVizDataInterceptEnabled : true
|
|
1596
1690
|
* for this embed event to get emitted.
|
|
1597
|
-
*
|
|
1598
1691
|
* @param: payload
|
|
1599
1692
|
* @param: responder
|
|
1600
1693
|
* Contains elements that lets developers define whether ThoughtSpot
|
|
@@ -1605,9 +1698,7 @@
|
|
|
1605
1698
|
*
|
|
1606
1699
|
* error: Developers can customize the user facing message when execute is
|
|
1607
1700
|
* set to false using the error parameter in responder
|
|
1608
|
-
*
|
|
1609
1701
|
* @version SDK : 1.29.0 | Thoughtspot : 10.2.0.cl
|
|
1610
|
-
*
|
|
1611
1702
|
* @example
|
|
1612
1703
|
*```js
|
|
1613
1704
|
* .on(EmbedEvent.OnBeforeGetVizDataIntercept,
|
|
@@ -1659,6 +1750,61 @@
|
|
|
1659
1750
|
*/
|
|
1660
1751
|
EmbedEvent["ParameterChanged"] = "parameterChanged";
|
|
1661
1752
|
})(exports.EmbedEvent || (exports.EmbedEvent = {}));
|
|
1753
|
+
/**
|
|
1754
|
+
* Event types that can be triggered by the host application
|
|
1755
|
+
* to the embedded ThoughtSpot app.
|
|
1756
|
+
*
|
|
1757
|
+
* To trigger an event use the corresponding
|
|
1758
|
+
* {@link LiveboardEmbed.trigger} or {@link AppEmbed.trigger} or {@link
|
|
1759
|
+
* SearchEmbed.trigger} method.
|
|
1760
|
+
* @example
|
|
1761
|
+
* ```js
|
|
1762
|
+
* import { HostEvent } from '@thoughtspot/visual-embed-sdk';
|
|
1763
|
+
* // Or
|
|
1764
|
+
* // const { HostEvent } = window.tsembed;
|
|
1765
|
+
*
|
|
1766
|
+
* // create the liveboard embed.
|
|
1767
|
+
*
|
|
1768
|
+
* liveboardEmbed.trigger(HostEvent.UpdateRuntimeFilters, [
|
|
1769
|
+
* { columnName: 'state, operator: RuntimeFilterOp.EQ, values: ['california']}
|
|
1770
|
+
* ]);
|
|
1771
|
+
* ```
|
|
1772
|
+
* @example
|
|
1773
|
+
* If using React components to embed, use the format shown in this example:
|
|
1774
|
+
*
|
|
1775
|
+
* ```js
|
|
1776
|
+
* const selectVizs = () => {
|
|
1777
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, [
|
|
1778
|
+
* "715e4613-c891-4884-be44-aa8d13701c06",
|
|
1779
|
+
* "3f84d633-e325-44b2-be25-c6650e5a49cf"
|
|
1780
|
+
* ]);
|
|
1781
|
+
* };
|
|
1782
|
+
* ```
|
|
1783
|
+
*
|
|
1784
|
+
*
|
|
1785
|
+
* You can also attach an Embed event to a Host event to trigger
|
|
1786
|
+
* a specific action as shown in this example:
|
|
1787
|
+
* @example
|
|
1788
|
+
* ```js
|
|
1789
|
+
* const EmbeddedComponent = () => {
|
|
1790
|
+
* const embedRef = useRef(null); // import { useRef } from react
|
|
1791
|
+
* const onLiveboardRendered = () => {
|
|
1792
|
+
* embedRef.current.trigger(HostEvent.SetVisibleVizs, ['viz1', 'viz2']);
|
|
1793
|
+
* };
|
|
1794
|
+
*
|
|
1795
|
+
* return (
|
|
1796
|
+
* <LiveboardEmbed
|
|
1797
|
+
* ref={embedRef}
|
|
1798
|
+
* liveboardId="<liveboard-guid>"
|
|
1799
|
+
* onLiveboardRendered={onLiveboardRendered}
|
|
1800
|
+
* />
|
|
1801
|
+
* );
|
|
1802
|
+
* }
|
|
1803
|
+
* ```
|
|
1804
|
+
* @group Events
|
|
1805
|
+
*/
|
|
1806
|
+
// eslint-disable-next-line no-shadow
|
|
1807
|
+
exports.HostEvent = void 0;
|
|
1662
1808
|
(function (HostEvent) {
|
|
1663
1809
|
/**
|
|
1664
1810
|
* Triggers a search operation with the search tokens specified in
|
|
@@ -1957,28 +2103,23 @@
|
|
|
1957
2103
|
/**
|
|
1958
2104
|
* Trigger the **Make a copy** action on a Liveboard,
|
|
1959
2105
|
* visualization, or Answer page.
|
|
1960
|
-
*
|
|
1961
2106
|
* @example
|
|
1962
2107
|
* ```js
|
|
1963
2108
|
* liveboardEmbed.trigger(HostEvent.MakeACopy)
|
|
1964
2109
|
* ```
|
|
1965
|
-
*
|
|
1966
2110
|
* @example
|
|
1967
2111
|
* ```js
|
|
1968
2112
|
* liveboardEmbed.trigger(HostEvent.MakeACopy, {
|
|
1969
2113
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'})
|
|
1970
2114
|
* ```
|
|
1971
|
-
*
|
|
1972
2115
|
* @example
|
|
1973
2116
|
* ```js
|
|
1974
2117
|
* vizEmbed.trigger(HostEvent.MakeACopy)
|
|
1975
2118
|
* ```
|
|
1976
|
-
*
|
|
1977
2119
|
* @example
|
|
1978
2120
|
* ```js
|
|
1979
2121
|
* searchEmbed.trigger(HostEvent.MakeACopy)
|
|
1980
2122
|
* ```
|
|
1981
|
-
*
|
|
1982
2123
|
* @version SDK: 1.15.0 | ThoughtSpot: 8.7.0.cl, 8.8.1.sw
|
|
1983
2124
|
*/
|
|
1984
2125
|
HostEvent["MakeACopy"] = "makeACopy";
|
|
@@ -2004,7 +2145,6 @@
|
|
|
2004
2145
|
/**
|
|
2005
2146
|
* Trigger the **Create alert** action on a KPI chart
|
|
2006
2147
|
* in a Liveboard or saved Answer.
|
|
2007
|
-
*
|
|
2008
2148
|
* @param - an object with `vizId` as a key
|
|
2009
2149
|
* @example
|
|
2010
2150
|
* ```js
|
|
@@ -2012,7 +2152,6 @@
|
|
|
2012
2152
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2013
2153
|
* })
|
|
2014
2154
|
* ```
|
|
2015
|
-
*
|
|
2016
2155
|
* @example
|
|
2017
2156
|
* ```js
|
|
2018
2157
|
* searchEmbed.trigger(HostEvent.CreateMonitor)
|
|
@@ -2023,7 +2162,6 @@
|
|
|
2023
2162
|
/**
|
|
2024
2163
|
* Trigger the **Manage alerts** action on a KPI chart
|
|
2025
2164
|
* in a visualization or saved Answer.
|
|
2026
|
-
*
|
|
2027
2165
|
* @param - an object with `vizId` as a key
|
|
2028
2166
|
* @example
|
|
2029
2167
|
* ```js
|
|
@@ -2031,12 +2169,10 @@
|
|
|
2031
2169
|
* vizId: '730496d6-6903-4601-937e-2c691821af3c'
|
|
2032
2170
|
* })
|
|
2033
2171
|
* ```
|
|
2034
|
-
*
|
|
2035
2172
|
* @example
|
|
2036
2173
|
* ```js
|
|
2037
2174
|
* searchEmbed.trigger(HostEvent.ManageMonitor)
|
|
2038
2175
|
* ```
|
|
2039
|
-
*
|
|
2040
2176
|
* @example
|
|
2041
2177
|
* ```js
|
|
2042
2178
|
* vizEmbed.trigger(HostEvent.ManageMonitor)
|
|
@@ -2366,7 +2502,6 @@
|
|
|
2366
2502
|
* }
|
|
2367
2503
|
* });
|
|
2368
2504
|
* ```
|
|
2369
|
-
*
|
|
2370
2505
|
* @example
|
|
2371
2506
|
*
|
|
2372
2507
|
* ```js
|
|
@@ -2448,7 +2583,6 @@
|
|
|
2448
2583
|
/**
|
|
2449
2584
|
* Get the answer session for a Search or
|
|
2450
2585
|
* Liveboard visualization.
|
|
2451
|
-
*
|
|
2452
2586
|
* @example
|
|
2453
2587
|
* ```js
|
|
2454
2588
|
* const {session} = await embed.trigger(
|
|
@@ -2456,12 +2590,10 @@
|
|
|
2456
2590
|
* vizId: '123', // For Liveboard Visualization.
|
|
2457
2591
|
* })
|
|
2458
2592
|
* ```
|
|
2459
|
-
*
|
|
2460
2593
|
* @example
|
|
2461
2594
|
* ```js
|
|
2462
2595
|
* const {session} = await embed.trigger( HostEvent.GetAnswerSession )
|
|
2463
2596
|
* ```
|
|
2464
|
-
*
|
|
2465
2597
|
* @version SDK: 1.26.0 | Thoughtspot: 9.10.0.cl
|
|
2466
2598
|
*/
|
|
2467
2599
|
HostEvent["GetAnswerSession"] = "getAnswerSession";
|
|
@@ -2636,7 +2768,36 @@
|
|
|
2636
2768
|
Param["ShowLiveboardVerifiedBadge"] = "showLiveboardVerifiedBadge";
|
|
2637
2769
|
Param["ShowLiveboardReverifyBanner"] = "showLiveboardReverifyBanner";
|
|
2638
2770
|
Param["LiveboardHeaderV2"] = "isLiveboardHeaderV2Enabled";
|
|
2771
|
+
Param["SpotterEnabled"] = "isSpotterExperienceEnabled";
|
|
2639
2772
|
})(Param || (Param = {}));
|
|
2773
|
+
/**
|
|
2774
|
+
* ThoughtSpot application pages include actions and menu commands
|
|
2775
|
+
* for various user-initiated operations. These actions are represented
|
|
2776
|
+
* as enumeration members in the SDK. To show, hide, or disable
|
|
2777
|
+
* specific actions in the embedded view, define the Action
|
|
2778
|
+
* enumeration members in the `disabledActions`, `visibleActions`,
|
|
2779
|
+
* or `hiddenActions` array.
|
|
2780
|
+
* @example
|
|
2781
|
+
* ```js
|
|
2782
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2783
|
+
* ... // other options
|
|
2784
|
+
* visibleActions: [Action.Save, Action.Edit, Action.Present, ActionAction.Explore],
|
|
2785
|
+
* disabledActions: [Action.Download],
|
|
2786
|
+
* //hiddenActions: [], // Set either this or visibleActions
|
|
2787
|
+
* })
|
|
2788
|
+
* ```
|
|
2789
|
+
* @example
|
|
2790
|
+
* ```js
|
|
2791
|
+
* const embed = new LiveboardEmbed('#embed-container', {
|
|
2792
|
+
* ... // other options
|
|
2793
|
+
* //visibleActions: [],
|
|
2794
|
+
* disabledActions: [Action.Download],
|
|
2795
|
+
* hiddenActions: [Action.Edit, ActionAction.Explore],
|
|
2796
|
+
* })
|
|
2797
|
+
* ```
|
|
2798
|
+
*/
|
|
2799
|
+
// eslint-disable-next-line no-shadow
|
|
2800
|
+
exports.Action = void 0;
|
|
2640
2801
|
(function (Action) {
|
|
2641
2802
|
/**
|
|
2642
2803
|
* The **Save** action on an Answer or Liveboard.
|
|
@@ -3162,7 +3323,6 @@
|
|
|
3162
3323
|
/**
|
|
3163
3324
|
* @deprecated
|
|
3164
3325
|
* Reports errors
|
|
3165
|
-
*
|
|
3166
3326
|
* @example
|
|
3167
3327
|
* ```js
|
|
3168
3328
|
* disabledActions: [Action.ReportError]
|
|
@@ -3392,14 +3552,12 @@
|
|
|
3392
3552
|
* ```js
|
|
3393
3553
|
* disabledActions: [Action.RequestVerification]
|
|
3394
3554
|
* ```
|
|
3395
|
-
*
|
|
3396
3555
|
* @version SDK: 1.25.0 | Thoughtspot: 9.6.0.cl
|
|
3397
3556
|
*/
|
|
3398
3557
|
Action["RequestVerification"] = "requestVerification";
|
|
3399
3558
|
/**
|
|
3400
3559
|
*
|
|
3401
|
-
*
|
|
3402
|
-
*
|
|
3560
|
+
*Allows users to mark a Liveboard as verified.
|
|
3403
3561
|
* @example
|
|
3404
3562
|
* ```js
|
|
3405
3563
|
* disabledActions: [Action.MarkAsVerified]
|
|
@@ -3410,7 +3568,6 @@
|
|
|
3410
3568
|
/**
|
|
3411
3569
|
* The **Add Tab** action on a Liveboard.
|
|
3412
3570
|
* Allows adding a new tab to a Liveboard view.
|
|
3413
|
-
*
|
|
3414
3571
|
* @example
|
|
3415
3572
|
* ```js
|
|
3416
3573
|
* disabledActions: [Action.AddTab]
|
|
@@ -3420,8 +3577,7 @@
|
|
|
3420
3577
|
Action["AddTab"] = "addTab";
|
|
3421
3578
|
/**
|
|
3422
3579
|
*
|
|
3423
|
-
*
|
|
3424
|
-
*
|
|
3580
|
+
*Initiates contextual change analysis on KPI charts.
|
|
3425
3581
|
* @example
|
|
3426
3582
|
* ```js
|
|
3427
3583
|
* disabledActions: [Action.EnableContextualChangeAnalysis]
|
|
@@ -3435,7 +3591,6 @@
|
|
|
3435
3591
|
* ```js
|
|
3436
3592
|
* disabledActions: [Action.ShowSageQuery]
|
|
3437
3593
|
* ```
|
|
3438
|
-
*
|
|
3439
3594
|
* @version SDK: 1.26.0 | Thoughtspot: 9.7.0.cl
|
|
3440
3595
|
*/
|
|
3441
3596
|
Action["ShowSageQuery"] = "showSageQuery";
|
|
@@ -3450,8 +3605,7 @@
|
|
|
3450
3605
|
Action["EditSageAnswer"] = "editSageAnswer";
|
|
3451
3606
|
/**
|
|
3452
3607
|
*
|
|
3453
|
-
*
|
|
3454
|
-
*
|
|
3608
|
+
*This action allows users to send feedback on AI-generated Answers.
|
|
3455
3609
|
* @example
|
|
3456
3610
|
* ```js
|
|
3457
3611
|
* disabledActions: [Action.SageAnswerFeedback]
|
|
@@ -3528,7 +3682,6 @@
|
|
|
3528
3682
|
* hiddenAction: [Action.CreateLiveboard]
|
|
3529
3683
|
* disabledActions: [Action.CreateLiveboard]
|
|
3530
3684
|
* ```
|
|
3531
|
-
*
|
|
3532
3685
|
* @version SDK: 1.32.0 | Thoughtspot: 10.1.0.cl
|
|
3533
3686
|
*/
|
|
3534
3687
|
Action["CreateLiveboard"] = "createLiveboard";
|
|
@@ -3624,7 +3777,6 @@
|
|
|
3624
3777
|
Action["UnsubscribeScheduleHomepage"] = "unsubscribeScheduleHomepage";
|
|
3625
3778
|
/**
|
|
3626
3779
|
* The **Manage Tags** action on Homepage Favourite Module.
|
|
3627
|
-
*
|
|
3628
3780
|
* @example
|
|
3629
3781
|
* ```js
|
|
3630
3782
|
* disabledActions: [Action.ManageTags]
|
|
@@ -3666,6 +3818,7 @@
|
|
|
3666
3818
|
ContextMenuTriggerOptions["LEFT_CLICK"] = "left-click";
|
|
3667
3819
|
ContextMenuTriggerOptions["RIGHT_CLICK"] = "right-click";
|
|
3668
3820
|
})(ContextMenuTriggerOptions || (ContextMenuTriggerOptions = {}));
|
|
3821
|
+
exports.LogLevel = void 0;
|
|
3669
3822
|
(function (LogLevel) {
|
|
3670
3823
|
/**
|
|
3671
3824
|
* No logs will be logged in the console.
|
|
@@ -4022,20 +4175,20 @@
|
|
|
4022
4175
|
var _Symbol = Symbol$1;
|
|
4023
4176
|
|
|
4024
4177
|
/** Used for built-in method references. */
|
|
4025
|
-
var objectProto = Object.prototype;
|
|
4178
|
+
var objectProto$b = Object.prototype;
|
|
4026
4179
|
|
|
4027
4180
|
/** Used to check objects for own properties. */
|
|
4028
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
4181
|
+
var hasOwnProperty$9 = objectProto$b.hasOwnProperty;
|
|
4029
4182
|
|
|
4030
4183
|
/**
|
|
4031
4184
|
* Used to resolve the
|
|
4032
4185
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4033
4186
|
* of values.
|
|
4034
4187
|
*/
|
|
4035
|
-
var nativeObjectToString = objectProto.toString;
|
|
4188
|
+
var nativeObjectToString$1 = objectProto$b.toString;
|
|
4036
4189
|
|
|
4037
4190
|
/** Built-in value references. */
|
|
4038
|
-
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
4191
|
+
var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
|
|
4039
4192
|
|
|
4040
4193
|
/**
|
|
4041
4194
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
@@ -4045,20 +4198,20 @@
|
|
|
4045
4198
|
* @returns {string} Returns the raw `toStringTag`.
|
|
4046
4199
|
*/
|
|
4047
4200
|
function getRawTag(value) {
|
|
4048
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag),
|
|
4049
|
-
tag = value[symToStringTag];
|
|
4201
|
+
var isOwn = hasOwnProperty$9.call(value, symToStringTag$1),
|
|
4202
|
+
tag = value[symToStringTag$1];
|
|
4050
4203
|
|
|
4051
4204
|
try {
|
|
4052
|
-
value[symToStringTag] = undefined;
|
|
4205
|
+
value[symToStringTag$1] = undefined;
|
|
4053
4206
|
var unmasked = true;
|
|
4054
4207
|
} catch (e) {}
|
|
4055
4208
|
|
|
4056
|
-
var result = nativeObjectToString.call(value);
|
|
4209
|
+
var result = nativeObjectToString$1.call(value);
|
|
4057
4210
|
if (unmasked) {
|
|
4058
4211
|
if (isOwn) {
|
|
4059
|
-
value[symToStringTag] = tag;
|
|
4212
|
+
value[symToStringTag$1] = tag;
|
|
4060
4213
|
} else {
|
|
4061
|
-
delete value[symToStringTag];
|
|
4214
|
+
delete value[symToStringTag$1];
|
|
4062
4215
|
}
|
|
4063
4216
|
}
|
|
4064
4217
|
return result;
|
|
@@ -4067,14 +4220,14 @@
|
|
|
4067
4220
|
var _getRawTag = getRawTag;
|
|
4068
4221
|
|
|
4069
4222
|
/** Used for built-in method references. */
|
|
4070
|
-
var objectProto$
|
|
4223
|
+
var objectProto$a = Object.prototype;
|
|
4071
4224
|
|
|
4072
4225
|
/**
|
|
4073
4226
|
* Used to resolve the
|
|
4074
4227
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4075
4228
|
* of values.
|
|
4076
4229
|
*/
|
|
4077
|
-
var nativeObjectToString
|
|
4230
|
+
var nativeObjectToString = objectProto$a.toString;
|
|
4078
4231
|
|
|
4079
4232
|
/**
|
|
4080
4233
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
@@ -4084,17 +4237,17 @@
|
|
|
4084
4237
|
* @returns {string} Returns the converted string.
|
|
4085
4238
|
*/
|
|
4086
4239
|
function objectToString(value) {
|
|
4087
|
-
return nativeObjectToString
|
|
4240
|
+
return nativeObjectToString.call(value);
|
|
4088
4241
|
}
|
|
4089
4242
|
|
|
4090
4243
|
var _objectToString = objectToString;
|
|
4091
4244
|
|
|
4092
4245
|
/** `Object#toString` result references. */
|
|
4093
|
-
var nullTag = '[object Null]',
|
|
4246
|
+
var nullTag$1 = '[object Null]',
|
|
4094
4247
|
undefinedTag = '[object Undefined]';
|
|
4095
4248
|
|
|
4096
4249
|
/** Built-in value references. */
|
|
4097
|
-
var symToStringTag
|
|
4250
|
+
var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
|
|
4098
4251
|
|
|
4099
4252
|
/**
|
|
4100
4253
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
@@ -4105,9 +4258,9 @@
|
|
|
4105
4258
|
*/
|
|
4106
4259
|
function baseGetTag(value) {
|
|
4107
4260
|
if (value == null) {
|
|
4108
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
4261
|
+
return value === undefined ? undefinedTag : nullTag$1;
|
|
4109
4262
|
}
|
|
4110
|
-
return (symToStringTag
|
|
4263
|
+
return (symToStringTag && symToStringTag in Object(value))
|
|
4111
4264
|
? _getRawTag(value)
|
|
4112
4265
|
: _objectToString(value);
|
|
4113
4266
|
}
|
|
@@ -4139,16 +4292,16 @@
|
|
|
4139
4292
|
* _.isObject(null);
|
|
4140
4293
|
* // => false
|
|
4141
4294
|
*/
|
|
4142
|
-
function isObject
|
|
4295
|
+
function isObject(value) {
|
|
4143
4296
|
var type = typeof value;
|
|
4144
4297
|
return value != null && (type == 'object' || type == 'function');
|
|
4145
4298
|
}
|
|
4146
4299
|
|
|
4147
|
-
var isObject_1 = isObject
|
|
4300
|
+
var isObject_1 = isObject;
|
|
4148
4301
|
|
|
4149
4302
|
/** `Object#toString` result references. */
|
|
4150
4303
|
var asyncTag = '[object AsyncFunction]',
|
|
4151
|
-
funcTag = '[object Function]',
|
|
4304
|
+
funcTag$1 = '[object Function]',
|
|
4152
4305
|
genTag = '[object GeneratorFunction]',
|
|
4153
4306
|
proxyTag = '[object Proxy]';
|
|
4154
4307
|
|
|
@@ -4176,7 +4329,7 @@
|
|
|
4176
4329
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
4177
4330
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
4178
4331
|
var tag = _baseGetTag(value);
|
|
4179
|
-
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
4332
|
+
return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
|
|
4180
4333
|
}
|
|
4181
4334
|
|
|
4182
4335
|
var isFunction_1 = isFunction;
|
|
@@ -4206,10 +4359,10 @@
|
|
|
4206
4359
|
var _isMasked = isMasked;
|
|
4207
4360
|
|
|
4208
4361
|
/** Used for built-in method references. */
|
|
4209
|
-
var funcProto = Function.prototype;
|
|
4362
|
+
var funcProto$1 = Function.prototype;
|
|
4210
4363
|
|
|
4211
4364
|
/** Used to resolve the decompiled source of functions. */
|
|
4212
|
-
var funcToString = funcProto.toString;
|
|
4365
|
+
var funcToString$1 = funcProto$1.toString;
|
|
4213
4366
|
|
|
4214
4367
|
/**
|
|
4215
4368
|
* Converts `func` to its source code.
|
|
@@ -4221,7 +4374,7 @@
|
|
|
4221
4374
|
function toSource(func) {
|
|
4222
4375
|
if (func != null) {
|
|
4223
4376
|
try {
|
|
4224
|
-
return funcToString.call(func);
|
|
4377
|
+
return funcToString$1.call(func);
|
|
4225
4378
|
} catch (e) {}
|
|
4226
4379
|
try {
|
|
4227
4380
|
return (func + '');
|
|
@@ -4242,18 +4395,18 @@
|
|
|
4242
4395
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
4243
4396
|
|
|
4244
4397
|
/** Used for built-in method references. */
|
|
4245
|
-
var funcProto
|
|
4246
|
-
objectProto$
|
|
4398
|
+
var funcProto = Function.prototype,
|
|
4399
|
+
objectProto$9 = Object.prototype;
|
|
4247
4400
|
|
|
4248
4401
|
/** Used to resolve the decompiled source of functions. */
|
|
4249
|
-
var funcToString
|
|
4402
|
+
var funcToString = funcProto.toString;
|
|
4250
4403
|
|
|
4251
4404
|
/** Used to check objects for own properties. */
|
|
4252
|
-
var hasOwnProperty$
|
|
4405
|
+
var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
|
4253
4406
|
|
|
4254
4407
|
/** Used to detect if a method is native. */
|
|
4255
4408
|
var reIsNative = RegExp('^' +
|
|
4256
|
-
funcToString
|
|
4409
|
+
funcToString.call(hasOwnProperty$8).replace(reRegExpChar, '\\$&')
|
|
4257
4410
|
.replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
|
|
4258
4411
|
);
|
|
4259
4412
|
|
|
@@ -4347,13 +4500,13 @@
|
|
|
4347
4500
|
var _hashDelete = hashDelete;
|
|
4348
4501
|
|
|
4349
4502
|
/** Used to stand-in for `undefined` hash values. */
|
|
4350
|
-
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4503
|
+
var HASH_UNDEFINED$2 = '__lodash_hash_undefined__';
|
|
4351
4504
|
|
|
4352
4505
|
/** Used for built-in method references. */
|
|
4353
|
-
var objectProto$
|
|
4506
|
+
var objectProto$8 = Object.prototype;
|
|
4354
4507
|
|
|
4355
4508
|
/** Used to check objects for own properties. */
|
|
4356
|
-
var hasOwnProperty$
|
|
4509
|
+
var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
|
4357
4510
|
|
|
4358
4511
|
/**
|
|
4359
4512
|
* Gets the hash value for `key`.
|
|
@@ -4368,18 +4521,18 @@
|
|
|
4368
4521
|
var data = this.__data__;
|
|
4369
4522
|
if (_nativeCreate) {
|
|
4370
4523
|
var result = data[key];
|
|
4371
|
-
return result === HASH_UNDEFINED ? undefined : result;
|
|
4524
|
+
return result === HASH_UNDEFINED$2 ? undefined : result;
|
|
4372
4525
|
}
|
|
4373
|
-
return hasOwnProperty$
|
|
4526
|
+
return hasOwnProperty$7.call(data, key) ? data[key] : undefined;
|
|
4374
4527
|
}
|
|
4375
4528
|
|
|
4376
4529
|
var _hashGet = hashGet;
|
|
4377
4530
|
|
|
4378
4531
|
/** Used for built-in method references. */
|
|
4379
|
-
var objectProto$
|
|
4532
|
+
var objectProto$7 = Object.prototype;
|
|
4380
4533
|
|
|
4381
4534
|
/** Used to check objects for own properties. */
|
|
4382
|
-
var hasOwnProperty$
|
|
4535
|
+
var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
|
4383
4536
|
|
|
4384
4537
|
/**
|
|
4385
4538
|
* Checks if a hash value for `key` exists.
|
|
@@ -4392,7 +4545,7 @@
|
|
|
4392
4545
|
*/
|
|
4393
4546
|
function hashHas(key) {
|
|
4394
4547
|
var data = this.__data__;
|
|
4395
|
-
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$
|
|
4548
|
+
return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty$6.call(data, key);
|
|
4396
4549
|
}
|
|
4397
4550
|
|
|
4398
4551
|
var _hashHas = hashHas;
|
|
@@ -4645,7 +4798,7 @@
|
|
|
4645
4798
|
var _Stack = Stack;
|
|
4646
4799
|
|
|
4647
4800
|
/** Used to stand-in for `undefined` hash values. */
|
|
4648
|
-
var HASH_UNDEFINED
|
|
4801
|
+
var HASH_UNDEFINED = '__lodash_hash_undefined__';
|
|
4649
4802
|
|
|
4650
4803
|
/**
|
|
4651
4804
|
* Adds `value` to the array cache.
|
|
@@ -4658,7 +4811,7 @@
|
|
|
4658
4811
|
* @returns {Object} Returns the cache instance.
|
|
4659
4812
|
*/
|
|
4660
4813
|
function setCacheAdd(value) {
|
|
4661
|
-
this.__data__.set(value, HASH_UNDEFINED
|
|
4814
|
+
this.__data__.set(value, HASH_UNDEFINED);
|
|
4662
4815
|
return this;
|
|
4663
4816
|
}
|
|
4664
4817
|
|
|
@@ -4742,8 +4895,8 @@
|
|
|
4742
4895
|
var _cacheHas = cacheHas;
|
|
4743
4896
|
|
|
4744
4897
|
/** Used to compose bitmasks for value comparisons. */
|
|
4745
|
-
var COMPARE_PARTIAL_FLAG = 1,
|
|
4746
|
-
COMPARE_UNORDERED_FLAG = 2;
|
|
4898
|
+
var COMPARE_PARTIAL_FLAG$3 = 1,
|
|
4899
|
+
COMPARE_UNORDERED_FLAG$1 = 2;
|
|
4747
4900
|
|
|
4748
4901
|
/**
|
|
4749
4902
|
* A specialized version of `baseIsEqualDeep` for arrays with support for
|
|
@@ -4759,7 +4912,7 @@
|
|
|
4759
4912
|
* @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.
|
|
4760
4913
|
*/
|
|
4761
4914
|
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
4762
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG,
|
|
4915
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3,
|
|
4763
4916
|
arrLength = array.length,
|
|
4764
4917
|
othLength = other.length;
|
|
4765
4918
|
|
|
@@ -4774,7 +4927,7 @@
|
|
|
4774
4927
|
}
|
|
4775
4928
|
var index = -1,
|
|
4776
4929
|
result = true,
|
|
4777
|
-
seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new _SetCache : undefined;
|
|
4930
|
+
seen = (bitmask & COMPARE_UNORDERED_FLAG$1) ? new _SetCache : undefined;
|
|
4778
4931
|
|
|
4779
4932
|
stack.set(array, other);
|
|
4780
4933
|
stack.set(other, array);
|
|
@@ -4866,22 +5019,22 @@
|
|
|
4866
5019
|
var _setToArray = setToArray;
|
|
4867
5020
|
|
|
4868
5021
|
/** Used to compose bitmasks for value comparisons. */
|
|
4869
|
-
var COMPARE_PARTIAL_FLAG$
|
|
4870
|
-
COMPARE_UNORDERED_FLAG
|
|
5022
|
+
var COMPARE_PARTIAL_FLAG$2 = 1,
|
|
5023
|
+
COMPARE_UNORDERED_FLAG = 2;
|
|
4871
5024
|
|
|
4872
5025
|
/** `Object#toString` result references. */
|
|
4873
|
-
var boolTag = '[object Boolean]',
|
|
4874
|
-
dateTag = '[object Date]',
|
|
4875
|
-
errorTag = '[object Error]',
|
|
4876
|
-
mapTag = '[object Map]',
|
|
4877
|
-
numberTag = '[object Number]',
|
|
4878
|
-
regexpTag = '[object RegExp]',
|
|
4879
|
-
setTag = '[object Set]',
|
|
4880
|
-
stringTag = '[object String]',
|
|
5026
|
+
var boolTag$2 = '[object Boolean]',
|
|
5027
|
+
dateTag$1 = '[object Date]',
|
|
5028
|
+
errorTag$1 = '[object Error]',
|
|
5029
|
+
mapTag$2 = '[object Map]',
|
|
5030
|
+
numberTag$1 = '[object Number]',
|
|
5031
|
+
regexpTag$1 = '[object RegExp]',
|
|
5032
|
+
setTag$2 = '[object Set]',
|
|
5033
|
+
stringTag$1 = '[object String]',
|
|
4881
5034
|
symbolTag = '[object Symbol]';
|
|
4882
5035
|
|
|
4883
|
-
var arrayBufferTag = '[object ArrayBuffer]',
|
|
4884
|
-
dataViewTag = '[object DataView]';
|
|
5036
|
+
var arrayBufferTag$1 = '[object ArrayBuffer]',
|
|
5037
|
+
dataViewTag$2 = '[object DataView]';
|
|
4885
5038
|
|
|
4886
5039
|
/** Used to convert symbols to primitives and strings. */
|
|
4887
5040
|
var symbolProto = _Symbol ? _Symbol.prototype : undefined,
|
|
@@ -4906,7 +5059,7 @@
|
|
|
4906
5059
|
*/
|
|
4907
5060
|
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
|
4908
5061
|
switch (tag) {
|
|
4909
|
-
case dataViewTag:
|
|
5062
|
+
case dataViewTag$2:
|
|
4910
5063
|
if ((object.byteLength != other.byteLength) ||
|
|
4911
5064
|
(object.byteOffset != other.byteOffset)) {
|
|
4912
5065
|
return false;
|
|
@@ -4914,35 +5067,35 @@
|
|
|
4914
5067
|
object = object.buffer;
|
|
4915
5068
|
other = other.buffer;
|
|
4916
5069
|
|
|
4917
|
-
case arrayBufferTag:
|
|
5070
|
+
case arrayBufferTag$1:
|
|
4918
5071
|
if ((object.byteLength != other.byteLength) ||
|
|
4919
5072
|
!equalFunc(new _Uint8Array(object), new _Uint8Array(other))) {
|
|
4920
5073
|
return false;
|
|
4921
5074
|
}
|
|
4922
5075
|
return true;
|
|
4923
5076
|
|
|
4924
|
-
case boolTag:
|
|
4925
|
-
case dateTag:
|
|
4926
|
-
case numberTag:
|
|
5077
|
+
case boolTag$2:
|
|
5078
|
+
case dateTag$1:
|
|
5079
|
+
case numberTag$1:
|
|
4927
5080
|
// Coerce booleans to `1` or `0` and dates to milliseconds.
|
|
4928
5081
|
// Invalid dates are coerced to `NaN`.
|
|
4929
5082
|
return eq_1(+object, +other);
|
|
4930
5083
|
|
|
4931
|
-
case errorTag:
|
|
5084
|
+
case errorTag$1:
|
|
4932
5085
|
return object.name == other.name && object.message == other.message;
|
|
4933
5086
|
|
|
4934
|
-
case regexpTag:
|
|
4935
|
-
case stringTag:
|
|
5087
|
+
case regexpTag$1:
|
|
5088
|
+
case stringTag$1:
|
|
4936
5089
|
// Coerce regexes to strings and treat strings, primitives and objects,
|
|
4937
5090
|
// as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring
|
|
4938
5091
|
// for more details.
|
|
4939
5092
|
return object == (other + '');
|
|
4940
5093
|
|
|
4941
|
-
case mapTag:
|
|
5094
|
+
case mapTag$2:
|
|
4942
5095
|
var convert = _mapToArray;
|
|
4943
5096
|
|
|
4944
|
-
case setTag:
|
|
4945
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
5097
|
+
case setTag$2:
|
|
5098
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$2;
|
|
4946
5099
|
convert || (convert = _setToArray);
|
|
4947
5100
|
|
|
4948
5101
|
if (object.size != other.size && !isPartial) {
|
|
@@ -4953,7 +5106,7 @@
|
|
|
4953
5106
|
if (stacked) {
|
|
4954
5107
|
return stacked == other;
|
|
4955
5108
|
}
|
|
4956
|
-
bitmask |= COMPARE_UNORDERED_FLAG
|
|
5109
|
+
bitmask |= COMPARE_UNORDERED_FLAG;
|
|
4957
5110
|
|
|
4958
5111
|
// Recursively compare objects (susceptible to call stack limits).
|
|
4959
5112
|
stack.set(object, other);
|
|
@@ -5088,10 +5241,10 @@
|
|
|
5088
5241
|
var stubArray_1 = stubArray;
|
|
5089
5242
|
|
|
5090
5243
|
/** Used for built-in method references. */
|
|
5091
|
-
var objectProto$
|
|
5244
|
+
var objectProto$6 = Object.prototype;
|
|
5092
5245
|
|
|
5093
5246
|
/** Built-in value references. */
|
|
5094
|
-
var propertyIsEnumerable = objectProto$
|
|
5247
|
+
var propertyIsEnumerable$1 = objectProto$6.propertyIsEnumerable;
|
|
5095
5248
|
|
|
5096
5249
|
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
5097
5250
|
var nativeGetSymbols = Object.getOwnPropertySymbols;
|
|
@@ -5109,7 +5262,7 @@
|
|
|
5109
5262
|
}
|
|
5110
5263
|
object = Object(object);
|
|
5111
5264
|
return _arrayFilter(nativeGetSymbols(object), function(symbol) {
|
|
5112
|
-
return propertyIsEnumerable.call(object, symbol);
|
|
5265
|
+
return propertyIsEnumerable$1.call(object, symbol);
|
|
5113
5266
|
});
|
|
5114
5267
|
};
|
|
5115
5268
|
|
|
@@ -5167,7 +5320,7 @@
|
|
|
5167
5320
|
var isObjectLike_1 = isObjectLike;
|
|
5168
5321
|
|
|
5169
5322
|
/** `Object#toString` result references. */
|
|
5170
|
-
var argsTag = '[object Arguments]';
|
|
5323
|
+
var argsTag$2 = '[object Arguments]';
|
|
5171
5324
|
|
|
5172
5325
|
/**
|
|
5173
5326
|
* The base implementation of `_.isArguments`.
|
|
@@ -5177,19 +5330,19 @@
|
|
|
5177
5330
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
5178
5331
|
*/
|
|
5179
5332
|
function baseIsArguments(value) {
|
|
5180
|
-
return isObjectLike_1(value) && _baseGetTag(value) == argsTag;
|
|
5333
|
+
return isObjectLike_1(value) && _baseGetTag(value) == argsTag$2;
|
|
5181
5334
|
}
|
|
5182
5335
|
|
|
5183
5336
|
var _baseIsArguments = baseIsArguments;
|
|
5184
5337
|
|
|
5185
5338
|
/** Used for built-in method references. */
|
|
5186
|
-
var objectProto$
|
|
5339
|
+
var objectProto$5 = Object.prototype;
|
|
5187
5340
|
|
|
5188
5341
|
/** Used to check objects for own properties. */
|
|
5189
|
-
var hasOwnProperty$
|
|
5342
|
+
var hasOwnProperty$5 = objectProto$5.hasOwnProperty;
|
|
5190
5343
|
|
|
5191
5344
|
/** Built-in value references. */
|
|
5192
|
-
var propertyIsEnumerable
|
|
5345
|
+
var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
|
5193
5346
|
|
|
5194
5347
|
/**
|
|
5195
5348
|
* Checks if `value` is likely an `arguments` object.
|
|
@@ -5210,8 +5363,8 @@
|
|
|
5210
5363
|
* // => false
|
|
5211
5364
|
*/
|
|
5212
5365
|
var isArguments = _baseIsArguments(function() { return arguments; }()) ? _baseIsArguments : function(value) {
|
|
5213
|
-
return isObjectLike_1(value) && hasOwnProperty$
|
|
5214
|
-
!propertyIsEnumerable
|
|
5366
|
+
return isObjectLike_1(value) && hasOwnProperty$5.call(value, 'callee') &&
|
|
5367
|
+
!propertyIsEnumerable.call(value, 'callee');
|
|
5215
5368
|
};
|
|
5216
5369
|
|
|
5217
5370
|
var isArguments_1 = isArguments;
|
|
@@ -5237,7 +5390,7 @@
|
|
|
5237
5390
|
|
|
5238
5391
|
var isBuffer_1 = createCommonjsModule(function (module, exports) {
|
|
5239
5392
|
/** Detect free variable `exports`. */
|
|
5240
|
-
var freeExports =
|
|
5393
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
5241
5394
|
|
|
5242
5395
|
/** Detect free variable `module`. */
|
|
5243
5396
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -5274,7 +5427,7 @@
|
|
|
5274
5427
|
});
|
|
5275
5428
|
|
|
5276
5429
|
/** Used as references for various `Number` constants. */
|
|
5277
|
-
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
5430
|
+
var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
|
5278
5431
|
|
|
5279
5432
|
/** Used to detect unsigned integer values. */
|
|
5280
5433
|
var reIsUint = /^(?:0|[1-9]\d*)$/;
|
|
@@ -5289,7 +5442,7 @@
|
|
|
5289
5442
|
*/
|
|
5290
5443
|
function isIndex(value, length) {
|
|
5291
5444
|
var type = typeof value;
|
|
5292
|
-
length = length == null ? MAX_SAFE_INTEGER : length;
|
|
5445
|
+
length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
|
5293
5446
|
|
|
5294
5447
|
return !!length &&
|
|
5295
5448
|
(type == 'number' ||
|
|
@@ -5300,7 +5453,7 @@
|
|
|
5300
5453
|
var _isIndex = isIndex;
|
|
5301
5454
|
|
|
5302
5455
|
/** Used as references for various `Number` constants. */
|
|
5303
|
-
var MAX_SAFE_INTEGER
|
|
5456
|
+
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
5304
5457
|
|
|
5305
5458
|
/**
|
|
5306
5459
|
* Checks if `value` is a valid array-like length.
|
|
@@ -5330,27 +5483,27 @@
|
|
|
5330
5483
|
*/
|
|
5331
5484
|
function isLength(value) {
|
|
5332
5485
|
return typeof value == 'number' &&
|
|
5333
|
-
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER
|
|
5486
|
+
value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
|
5334
5487
|
}
|
|
5335
5488
|
|
|
5336
5489
|
var isLength_1 = isLength;
|
|
5337
5490
|
|
|
5338
5491
|
/** `Object#toString` result references. */
|
|
5339
5492
|
var argsTag$1 = '[object Arguments]',
|
|
5340
|
-
arrayTag = '[object Array]',
|
|
5493
|
+
arrayTag$1 = '[object Array]',
|
|
5341
5494
|
boolTag$1 = '[object Boolean]',
|
|
5342
|
-
dateTag
|
|
5343
|
-
errorTag
|
|
5344
|
-
funcTag
|
|
5495
|
+
dateTag = '[object Date]',
|
|
5496
|
+
errorTag = '[object Error]',
|
|
5497
|
+
funcTag = '[object Function]',
|
|
5345
5498
|
mapTag$1 = '[object Map]',
|
|
5346
|
-
numberTag
|
|
5347
|
-
objectTag = '[object Object]',
|
|
5348
|
-
regexpTag
|
|
5499
|
+
numberTag = '[object Number]',
|
|
5500
|
+
objectTag$2 = '[object Object]',
|
|
5501
|
+
regexpTag = '[object RegExp]',
|
|
5349
5502
|
setTag$1 = '[object Set]',
|
|
5350
|
-
stringTag
|
|
5351
|
-
weakMapTag = '[object WeakMap]';
|
|
5503
|
+
stringTag = '[object String]',
|
|
5504
|
+
weakMapTag$1 = '[object WeakMap]';
|
|
5352
5505
|
|
|
5353
|
-
var arrayBufferTag
|
|
5506
|
+
var arrayBufferTag = '[object ArrayBuffer]',
|
|
5354
5507
|
dataViewTag$1 = '[object DataView]',
|
|
5355
5508
|
float32Tag = '[object Float32Array]',
|
|
5356
5509
|
float64Tag = '[object Float64Array]',
|
|
@@ -5369,14 +5522,14 @@
|
|
|
5369
5522
|
typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =
|
|
5370
5523
|
typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =
|
|
5371
5524
|
typedArrayTags[uint32Tag] = true;
|
|
5372
|
-
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] =
|
|
5373
|
-
typedArrayTags[arrayBufferTag
|
|
5374
|
-
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag
|
|
5375
|
-
typedArrayTags[errorTag
|
|
5376
|
-
typedArrayTags[mapTag$1] = typedArrayTags[numberTag
|
|
5377
|
-
typedArrayTags[objectTag] = typedArrayTags[regexpTag
|
|
5378
|
-
typedArrayTags[setTag$1] = typedArrayTags[stringTag
|
|
5379
|
-
typedArrayTags[weakMapTag] = false;
|
|
5525
|
+
typedArrayTags[argsTag$1] = typedArrayTags[arrayTag$1] =
|
|
5526
|
+
typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag$1] =
|
|
5527
|
+
typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] =
|
|
5528
|
+
typedArrayTags[errorTag] = typedArrayTags[funcTag] =
|
|
5529
|
+
typedArrayTags[mapTag$1] = typedArrayTags[numberTag] =
|
|
5530
|
+
typedArrayTags[objectTag$2] = typedArrayTags[regexpTag] =
|
|
5531
|
+
typedArrayTags[setTag$1] = typedArrayTags[stringTag] =
|
|
5532
|
+
typedArrayTags[weakMapTag$1] = false;
|
|
5380
5533
|
|
|
5381
5534
|
/**
|
|
5382
5535
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
@@ -5409,7 +5562,7 @@
|
|
|
5409
5562
|
|
|
5410
5563
|
var _nodeUtil = createCommonjsModule(function (module, exports) {
|
|
5411
5564
|
/** Detect free variable `exports`. */
|
|
5412
|
-
var freeExports =
|
|
5565
|
+
var freeExports = exports && !exports.nodeType && exports;
|
|
5413
5566
|
|
|
5414
5567
|
/** Detect free variable `module`. */
|
|
5415
5568
|
var freeModule = freeExports && 'object' == 'object' && module && !module.nodeType && module;
|
|
@@ -5463,10 +5616,10 @@
|
|
|
5463
5616
|
var isTypedArray_1 = isTypedArray;
|
|
5464
5617
|
|
|
5465
5618
|
/** Used for built-in method references. */
|
|
5466
|
-
var objectProto$
|
|
5619
|
+
var objectProto$4 = Object.prototype;
|
|
5467
5620
|
|
|
5468
5621
|
/** Used to check objects for own properties. */
|
|
5469
|
-
var hasOwnProperty$
|
|
5622
|
+
var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
|
5470
5623
|
|
|
5471
5624
|
/**
|
|
5472
5625
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
@@ -5486,7 +5639,7 @@
|
|
|
5486
5639
|
length = result.length;
|
|
5487
5640
|
|
|
5488
5641
|
for (var key in value) {
|
|
5489
|
-
if ((inherited || hasOwnProperty$
|
|
5642
|
+
if ((inherited || hasOwnProperty$4.call(value, key)) &&
|
|
5490
5643
|
!(skipIndexes && (
|
|
5491
5644
|
// Safari 9 has enumerable `arguments.length` in strict mode.
|
|
5492
5645
|
key == 'length' ||
|
|
@@ -5506,7 +5659,7 @@
|
|
|
5506
5659
|
var _arrayLikeKeys = arrayLikeKeys;
|
|
5507
5660
|
|
|
5508
5661
|
/** Used for built-in method references. */
|
|
5509
|
-
var objectProto$
|
|
5662
|
+
var objectProto$3 = Object.prototype;
|
|
5510
5663
|
|
|
5511
5664
|
/**
|
|
5512
5665
|
* Checks if `value` is likely a prototype object.
|
|
@@ -5517,7 +5670,7 @@
|
|
|
5517
5670
|
*/
|
|
5518
5671
|
function isPrototype(value) {
|
|
5519
5672
|
var Ctor = value && value.constructor,
|
|
5520
|
-
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$
|
|
5673
|
+
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$3;
|
|
5521
5674
|
|
|
5522
5675
|
return value === proto;
|
|
5523
5676
|
}
|
|
@@ -5546,10 +5699,10 @@
|
|
|
5546
5699
|
var _nativeKeys = nativeKeys;
|
|
5547
5700
|
|
|
5548
5701
|
/** Used for built-in method references. */
|
|
5549
|
-
var objectProto$
|
|
5702
|
+
var objectProto$2 = Object.prototype;
|
|
5550
5703
|
|
|
5551
5704
|
/** Used to check objects for own properties. */
|
|
5552
|
-
var hasOwnProperty$
|
|
5705
|
+
var hasOwnProperty$3 = objectProto$2.hasOwnProperty;
|
|
5553
5706
|
|
|
5554
5707
|
/**
|
|
5555
5708
|
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
@@ -5564,7 +5717,7 @@
|
|
|
5564
5717
|
}
|
|
5565
5718
|
var result = [];
|
|
5566
5719
|
for (var key in Object(object)) {
|
|
5567
|
-
if (hasOwnProperty$
|
|
5720
|
+
if (hasOwnProperty$3.call(object, key) && key != 'constructor') {
|
|
5568
5721
|
result.push(key);
|
|
5569
5722
|
}
|
|
5570
5723
|
}
|
|
@@ -5652,13 +5805,13 @@
|
|
|
5652
5805
|
var _getAllKeys = getAllKeys;
|
|
5653
5806
|
|
|
5654
5807
|
/** Used to compose bitmasks for value comparisons. */
|
|
5655
|
-
var COMPARE_PARTIAL_FLAG$
|
|
5808
|
+
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
5656
5809
|
|
|
5657
5810
|
/** Used for built-in method references. */
|
|
5658
|
-
var objectProto$
|
|
5811
|
+
var objectProto$1 = Object.prototype;
|
|
5659
5812
|
|
|
5660
5813
|
/** Used to check objects for own properties. */
|
|
5661
|
-
var hasOwnProperty$
|
|
5814
|
+
var hasOwnProperty$2 = objectProto$1.hasOwnProperty;
|
|
5662
5815
|
|
|
5663
5816
|
/**
|
|
5664
5817
|
* A specialized version of `baseIsEqualDeep` for objects with support for
|
|
@@ -5674,7 +5827,7 @@
|
|
|
5674
5827
|
* @returns {boolean} Returns `true` if the objects are equivalent, else `false`.
|
|
5675
5828
|
*/
|
|
5676
5829
|
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5677
|
-
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$
|
|
5830
|
+
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1,
|
|
5678
5831
|
objProps = _getAllKeys(object),
|
|
5679
5832
|
objLength = objProps.length,
|
|
5680
5833
|
othProps = _getAllKeys(other),
|
|
@@ -5686,7 +5839,7 @@
|
|
|
5686
5839
|
var index = objLength;
|
|
5687
5840
|
while (index--) {
|
|
5688
5841
|
var key = objProps[index];
|
|
5689
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
5842
|
+
if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
|
|
5690
5843
|
return false;
|
|
5691
5844
|
}
|
|
5692
5845
|
}
|
|
@@ -5761,13 +5914,13 @@
|
|
|
5761
5914
|
var _WeakMap = WeakMap;
|
|
5762
5915
|
|
|
5763
5916
|
/** `Object#toString` result references. */
|
|
5764
|
-
var mapTag
|
|
5917
|
+
var mapTag = '[object Map]',
|
|
5765
5918
|
objectTag$1 = '[object Object]',
|
|
5766
5919
|
promiseTag = '[object Promise]',
|
|
5767
|
-
setTag
|
|
5768
|
-
weakMapTag
|
|
5920
|
+
setTag = '[object Set]',
|
|
5921
|
+
weakMapTag = '[object WeakMap]';
|
|
5769
5922
|
|
|
5770
|
-
var dataViewTag
|
|
5923
|
+
var dataViewTag = '[object DataView]';
|
|
5771
5924
|
|
|
5772
5925
|
/** Used to detect maps, sets, and weakmaps. */
|
|
5773
5926
|
var dataViewCtorString = _toSource(_DataView),
|
|
@@ -5786,11 +5939,11 @@
|
|
|
5786
5939
|
var getTag = _baseGetTag;
|
|
5787
5940
|
|
|
5788
5941
|
// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
5789
|
-
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag
|
|
5790
|
-
(_Map && getTag(new _Map) != mapTag
|
|
5942
|
+
if ((_DataView && getTag(new _DataView(new ArrayBuffer(1))) != dataViewTag) ||
|
|
5943
|
+
(_Map && getTag(new _Map) != mapTag) ||
|
|
5791
5944
|
(_Promise && getTag(_Promise.resolve()) != promiseTag) ||
|
|
5792
|
-
(_Set && getTag(new _Set) != setTag
|
|
5793
|
-
(_WeakMap && getTag(new _WeakMap) != weakMapTag
|
|
5945
|
+
(_Set && getTag(new _Set) != setTag) ||
|
|
5946
|
+
(_WeakMap && getTag(new _WeakMap) != weakMapTag)) {
|
|
5794
5947
|
getTag = function(value) {
|
|
5795
5948
|
var result = _baseGetTag(value),
|
|
5796
5949
|
Ctor = result == objectTag$1 ? value.constructor : undefined,
|
|
@@ -5798,11 +5951,11 @@
|
|
|
5798
5951
|
|
|
5799
5952
|
if (ctorString) {
|
|
5800
5953
|
switch (ctorString) {
|
|
5801
|
-
case dataViewCtorString: return dataViewTag
|
|
5802
|
-
case mapCtorString: return mapTag
|
|
5954
|
+
case dataViewCtorString: return dataViewTag;
|
|
5955
|
+
case mapCtorString: return mapTag;
|
|
5803
5956
|
case promiseCtorString: return promiseTag;
|
|
5804
|
-
case setCtorString: return setTag
|
|
5805
|
-
case weakMapCtorString: return weakMapTag
|
|
5957
|
+
case setCtorString: return setTag;
|
|
5958
|
+
case weakMapCtorString: return weakMapTag;
|
|
5806
5959
|
}
|
|
5807
5960
|
}
|
|
5808
5961
|
return result;
|
|
@@ -5812,18 +5965,18 @@
|
|
|
5812
5965
|
var _getTag = getTag;
|
|
5813
5966
|
|
|
5814
5967
|
/** Used to compose bitmasks for value comparisons. */
|
|
5815
|
-
var COMPARE_PARTIAL_FLAG
|
|
5968
|
+
var COMPARE_PARTIAL_FLAG = 1;
|
|
5816
5969
|
|
|
5817
5970
|
/** `Object#toString` result references. */
|
|
5818
|
-
var argsTag
|
|
5819
|
-
arrayTag
|
|
5820
|
-
objectTag
|
|
5971
|
+
var argsTag = '[object Arguments]',
|
|
5972
|
+
arrayTag = '[object Array]',
|
|
5973
|
+
objectTag = '[object Object]';
|
|
5821
5974
|
|
|
5822
5975
|
/** Used for built-in method references. */
|
|
5823
|
-
var objectProto
|
|
5976
|
+
var objectProto = Object.prototype;
|
|
5824
5977
|
|
|
5825
5978
|
/** Used to check objects for own properties. */
|
|
5826
|
-
var hasOwnProperty$
|
|
5979
|
+
var hasOwnProperty$1 = objectProto.hasOwnProperty;
|
|
5827
5980
|
|
|
5828
5981
|
/**
|
|
5829
5982
|
* A specialized version of `baseIsEqual` for arrays and objects which performs
|
|
@@ -5842,14 +5995,14 @@
|
|
|
5842
5995
|
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
|
5843
5996
|
var objIsArr = isArray_1(object),
|
|
5844
5997
|
othIsArr = isArray_1(other),
|
|
5845
|
-
objTag = objIsArr ? arrayTag
|
|
5846
|
-
othTag = othIsArr ? arrayTag
|
|
5998
|
+
objTag = objIsArr ? arrayTag : _getTag(object),
|
|
5999
|
+
othTag = othIsArr ? arrayTag : _getTag(other);
|
|
5847
6000
|
|
|
5848
|
-
objTag = objTag == argsTag
|
|
5849
|
-
othTag = othTag == argsTag
|
|
6001
|
+
objTag = objTag == argsTag ? objectTag : objTag;
|
|
6002
|
+
othTag = othTag == argsTag ? objectTag : othTag;
|
|
5850
6003
|
|
|
5851
|
-
var objIsObj = objTag == objectTag
|
|
5852
|
-
othIsObj = othTag == objectTag
|
|
6004
|
+
var objIsObj = objTag == objectTag,
|
|
6005
|
+
othIsObj = othTag == objectTag,
|
|
5853
6006
|
isSameTag = objTag == othTag;
|
|
5854
6007
|
|
|
5855
6008
|
if (isSameTag && isBuffer_1(object)) {
|
|
@@ -5865,9 +6018,9 @@
|
|
|
5865
6018
|
? _equalArrays(object, other, bitmask, customizer, equalFunc, stack)
|
|
5866
6019
|
: _equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5867
6020
|
}
|
|
5868
|
-
if (!(bitmask & COMPARE_PARTIAL_FLAG
|
|
5869
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
5870
|
-
othIsWrapped = othIsObj && hasOwnProperty$
|
|
6021
|
+
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
6022
|
+
var objIsWrapped = objIsObj && hasOwnProperty$1.call(object, '__wrapped__'),
|
|
6023
|
+
othIsWrapped = othIsObj && hasOwnProperty$1.call(other, '__wrapped__');
|
|
5871
6024
|
|
|
5872
6025
|
if (objIsWrapped || othIsWrapped) {
|
|
5873
6026
|
var objUnwrapped = objIsWrapped ? object.value() : object,
|
|
@@ -6011,7 +6164,7 @@
|
|
|
6011
6164
|
this.logMessages(args, exports.LogLevel.WARN);
|
|
6012
6165
|
}
|
|
6013
6166
|
}
|
|
6014
|
-
const logger = new Logger();
|
|
6167
|
+
const logger$3 = new Logger();
|
|
6015
6168
|
|
|
6016
6169
|
const ERROR_MESSAGE = {
|
|
6017
6170
|
INVALID_THOUGHTSPOT_HOST: 'Error parsing ThoughtSpot host. Please provide a valid URL.',
|
|
@@ -6053,7 +6206,7 @@
|
|
|
6053
6206
|
return fetch(url, options).then(async (r) => {
|
|
6054
6207
|
var _a;
|
|
6055
6208
|
if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
|
|
6056
|
-
logger.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
|
|
6209
|
+
logger$3.error('Failure', await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
|
|
6057
6210
|
}
|
|
6058
6211
|
return r;
|
|
6059
6212
|
});
|
|
@@ -6076,7 +6229,7 @@
|
|
|
6076
6229
|
return res.ok;
|
|
6077
6230
|
}
|
|
6078
6231
|
catch (e) {
|
|
6079
|
-
logger.warn(`Token Verification Service failed : ${e.message}`);
|
|
6232
|
+
logger$3.warn(`Token Verification Service failed : ${e.message}`);
|
|
6080
6233
|
}
|
|
6081
6234
|
return false;
|
|
6082
6235
|
}
|
|
@@ -6179,7 +6332,7 @@
|
|
|
6179
6332
|
await validateAuthToken(embedConfig, authToken);
|
|
6180
6333
|
}
|
|
6181
6334
|
catch (e) {
|
|
6182
|
-
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
|
|
6335
|
+
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e.message}`);
|
|
6183
6336
|
throw e;
|
|
6184
6337
|
}
|
|
6185
6338
|
cachedAuthToken = authToken;
|
|
@@ -6187,7 +6340,7 @@
|
|
|
6187
6340
|
}
|
|
6188
6341
|
const validateAuthToken = async (embedConfig, authToken, suppressAlert) => {
|
|
6189
6342
|
if (embedConfig.disableTokenVerification) {
|
|
6190
|
-
logger.info('Token verification is disabled. Assuming token is valid.');
|
|
6343
|
+
logger$3.info('Token verification is disabled. Assuming token is valid.');
|
|
6191
6344
|
return true;
|
|
6192
6345
|
}
|
|
6193
6346
|
try {
|
|
@@ -6728,7 +6881,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
6728
6881
|
* @param deviceScaleFactor The scale factor for the PNG
|
|
6729
6882
|
* @return Response
|
|
6730
6883
|
*/
|
|
6731
|
-
async fetchPNGBlob(userLocale = 'en-us',
|
|
6884
|
+
async fetchPNGBlob(userLocale = 'en-us', omitBackground = false, deviceScaleFactor = 2) {
|
|
6732
6885
|
const fetchUrl = this.getFetchPNGBlobUrl(userLocale, omitBackground, deviceScaleFactor);
|
|
6733
6886
|
return tokenizedFetch(fetchUrl, {
|
|
6734
6887
|
credentials: 'include',
|
|
@@ -6886,7 +7039,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
6886
7039
|
function addPointFromColVal(colVal) {
|
|
6887
7040
|
var _a;
|
|
6888
7041
|
const dataType = colVal.column.dataType;
|
|
6889
|
-
|
|
7042
|
+
colVal.column.id;
|
|
6890
7043
|
let dataValue;
|
|
6891
7044
|
if (dataType === 'DATE') {
|
|
6892
7045
|
if (Number.isFinite(colVal.value)) {
|
|
@@ -7034,7 +7187,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
7034
7187
|
var ObjProto = Object.prototype;
|
|
7035
7188
|
var slice = ArrayProto.slice;
|
|
7036
7189
|
var toString = ObjProto.toString;
|
|
7037
|
-
var hasOwnProperty
|
|
7190
|
+
var hasOwnProperty = ObjProto.hasOwnProperty;
|
|
7038
7191
|
var windowConsole = window$1.console;
|
|
7039
7192
|
var navigator = window$1.navigator;
|
|
7040
7193
|
var document$1 = window$1.document;
|
|
@@ -7171,7 +7324,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
7171
7324
|
}
|
|
7172
7325
|
} else {
|
|
7173
7326
|
for (var key in obj) {
|
|
7174
|
-
if (hasOwnProperty
|
|
7327
|
+
if (hasOwnProperty.call(obj, key)) {
|
|
7175
7328
|
if (iterator.call(context, obj[key], key, obj) === breaker) {
|
|
7176
7329
|
return;
|
|
7177
7330
|
}
|
|
@@ -7207,7 +7360,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
7207
7360
|
};
|
|
7208
7361
|
|
|
7209
7362
|
_.isArguments = function(obj) {
|
|
7210
|
-
return !!(obj && hasOwnProperty
|
|
7363
|
+
return !!(obj && hasOwnProperty.call(obj, 'callee'));
|
|
7211
7364
|
};
|
|
7212
7365
|
|
|
7213
7366
|
_.toArray = function(iterable) {
|
|
@@ -7295,7 +7448,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
7295
7448
|
_.isEmptyObject = function(obj) {
|
|
7296
7449
|
if (_.isObject(obj)) {
|
|
7297
7450
|
for (var key in obj) {
|
|
7298
|
-
if (hasOwnProperty
|
|
7451
|
+
if (hasOwnProperty.call(obj, key)) {
|
|
7299
7452
|
return false;
|
|
7300
7453
|
}
|
|
7301
7454
|
}
|
|
@@ -7487,7 +7640,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
7487
7640
|
|
|
7488
7641
|
// Iterate through all of the keys in the object.
|
|
7489
7642
|
for (k in value) {
|
|
7490
|
-
if (hasOwnProperty
|
|
7643
|
+
if (hasOwnProperty.call(value, k)) {
|
|
7491
7644
|
v = str(k, value);
|
|
7492
7645
|
if (v) {
|
|
7493
7646
|
partial.push(quote(k) + (gap ? ': ' : ':') + v);
|
|
@@ -9295,7 +9448,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9295
9448
|
// maximum interval between request retries after exponential backoff
|
|
9296
9449
|
var MAX_RETRY_INTERVAL_MS = 10 * 60 * 1000; // 10 minutes
|
|
9297
9450
|
|
|
9298
|
-
var logger
|
|
9451
|
+
var logger = console_with_prefix('batch');
|
|
9299
9452
|
|
|
9300
9453
|
/**
|
|
9301
9454
|
* RequestBatcher: manages the queueing, flushing, retry etc of requests of one
|
|
@@ -9399,7 +9552,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9399
9552
|
try {
|
|
9400
9553
|
|
|
9401
9554
|
if (this.requestInProgress) {
|
|
9402
|
-
logger
|
|
9555
|
+
logger.log('Flush: Request already in progress');
|
|
9403
9556
|
return;
|
|
9404
9557
|
}
|
|
9405
9558
|
|
|
@@ -9560,7 +9713,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9560
9713
|
if (options.unloading) {
|
|
9561
9714
|
requestOptions.transport = 'sendBeacon';
|
|
9562
9715
|
}
|
|
9563
|
-
logger
|
|
9716
|
+
logger.log('MIXPANEL REQUEST:', dataForRequest);
|
|
9564
9717
|
this.sendRequest(dataForRequest, requestOptions, batchSendCallback);
|
|
9565
9718
|
|
|
9566
9719
|
} catch(err) {
|
|
@@ -9573,7 +9726,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9573
9726
|
* Log error to global logger and optional user-defined logger.
|
|
9574
9727
|
*/
|
|
9575
9728
|
RequestBatcher.prototype.reportError = function(msg, err) {
|
|
9576
|
-
logger
|
|
9729
|
+
logger.error.apply(logger.error, arguments);
|
|
9577
9730
|
if (this.errorReporter) {
|
|
9578
9731
|
try {
|
|
9579
9732
|
if (!(err instanceof Error)) {
|
|
@@ -9581,7 +9734,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
9581
9734
|
}
|
|
9582
9735
|
this.errorReporter(msg, err);
|
|
9583
9736
|
} catch(err) {
|
|
9584
|
-
logger
|
|
9737
|
+
logger.error(err);
|
|
9585
9738
|
}
|
|
9586
9739
|
}
|
|
9587
9740
|
};
|
|
@@ -13134,9 +13287,10 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13134
13287
|
|
|
13135
13288
|
var mixpanel_cjs = mixpanel;
|
|
13136
13289
|
|
|
13137
|
-
var mixpanel$1 = /*#__PURE__*/
|
|
13138
|
-
|
|
13139
|
-
|
|
13290
|
+
var mixpanel$1 = /*#__PURE__*/_mergeNamespaces({
|
|
13291
|
+
__proto__: null,
|
|
13292
|
+
default: mixpanel_cjs
|
|
13293
|
+
}, [mixpanel_cjs]);
|
|
13140
13294
|
|
|
13141
13295
|
// Needed to avoid error in CJS builds on some bundlers.
|
|
13142
13296
|
const mixpanelLib = mixpanel_cjs || mixpanel$1;
|
|
@@ -13189,7 +13343,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13189
13343
|
function initMixpanel(sessionInfo) {
|
|
13190
13344
|
var _a;
|
|
13191
13345
|
if (!sessionInfo || !sessionInfo.mixpanelToken) {
|
|
13192
|
-
logger.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
|
|
13346
|
+
logger$3.error(ERROR_MESSAGE.MIXPANEL_TOKEN_NOT_FOUND);
|
|
13193
13347
|
return;
|
|
13194
13348
|
}
|
|
13195
13349
|
// On a public cluster the user is anonymous, so don't set the identify to
|
|
@@ -13213,11 +13367,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13213
13367
|
}
|
|
13214
13368
|
}
|
|
13215
13369
|
catch (e) {
|
|
13216
|
-
logger.error('Error initializing mixpanel', e);
|
|
13370
|
+
logger$3.error('Error initializing mixpanel', e);
|
|
13217
13371
|
}
|
|
13218
13372
|
}
|
|
13219
13373
|
|
|
13220
|
-
|
|
13374
|
+
createCommonjsModule(function (module) {
|
|
13221
13375
|
|
|
13222
13376
|
var has = Object.prototype.hasOwnProperty
|
|
13223
13377
|
, prefix = '~';
|
|
@@ -13571,7 +13725,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13571
13725
|
return tokenizedFetch(url, options).then(async (r) => {
|
|
13572
13726
|
var _a;
|
|
13573
13727
|
if (!r.ok && r.type !== 'opaqueredirect' && r.type !== 'opaque') {
|
|
13574
|
-
logger.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
|
|
13728
|
+
logger$3.error(`Failed to fetch ${url}`, await ((_a = r.text) === null || _a === void 0 ? void 0 : _a.call(r)));
|
|
13575
13729
|
}
|
|
13576
13730
|
return r;
|
|
13577
13731
|
});
|
|
@@ -13608,7 +13762,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13608
13762
|
return res.ok;
|
|
13609
13763
|
}
|
|
13610
13764
|
catch (e) {
|
|
13611
|
-
logger.warn(`Is Logged In Service failed : ${e.message}`);
|
|
13765
|
+
logger$3.warn(`Is Logged In Service failed : ${e.message}`);
|
|
13612
13766
|
}
|
|
13613
13767
|
return false;
|
|
13614
13768
|
}
|
|
@@ -13731,7 +13885,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13731
13885
|
*/
|
|
13732
13886
|
function notifyAuthSDKSuccess() {
|
|
13733
13887
|
{
|
|
13734
|
-
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13888
|
+
logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13735
13889
|
return;
|
|
13736
13890
|
}
|
|
13737
13891
|
}
|
|
@@ -13740,7 +13894,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13740
13894
|
*/
|
|
13741
13895
|
async function notifyAuthSuccess() {
|
|
13742
13896
|
{
|
|
13743
|
-
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13897
|
+
logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13744
13898
|
return;
|
|
13745
13899
|
}
|
|
13746
13900
|
}
|
|
@@ -13750,7 +13904,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13750
13904
|
*/
|
|
13751
13905
|
function notifyAuthFailure(failureType) {
|
|
13752
13906
|
{
|
|
13753
|
-
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13907
|
+
logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13754
13908
|
return;
|
|
13755
13909
|
}
|
|
13756
13910
|
}
|
|
@@ -13759,7 +13913,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13759
13913
|
*/
|
|
13760
13914
|
function notifyLogout() {
|
|
13761
13915
|
{
|
|
13762
|
-
logger.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13916
|
+
logger$3.error(ERROR_MESSAGE.SDK_NOT_INITIALIZED);
|
|
13763
13917
|
return;
|
|
13764
13918
|
}
|
|
13765
13919
|
}
|
|
@@ -13797,7 +13951,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
13797
13951
|
}
|
|
13798
13952
|
}
|
|
13799
13953
|
catch (e) {
|
|
13800
|
-
logger.error('Post login services failed.', e.message, e);
|
|
13954
|
+
logger$3.error('Post login services failed.', e.message, e);
|
|
13801
13955
|
}
|
|
13802
13956
|
}
|
|
13803
13957
|
/**
|
|
@@ -14016,12 +14170,20 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14016
14170
|
};
|
|
14017
14171
|
|
|
14018
14172
|
/* eslint-disable camelcase */
|
|
14019
|
-
|
|
14173
|
+
/* eslint-disable import/no-mutable-exports */
|
|
14174
|
+
/**
|
|
14175
|
+
* Copyright (c) 2022
|
|
14176
|
+
*
|
|
14177
|
+
* Base classes
|
|
14178
|
+
* @summary Base classes
|
|
14179
|
+
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
14180
|
+
*/
|
|
14181
|
+
({
|
|
14020
14182
|
loginFailedMessage: 'Not logged in',
|
|
14021
14183
|
authTriggerText: 'Authorize',
|
|
14022
14184
|
authType: AuthType.None,
|
|
14023
14185
|
logLevel: exports.LogLevel.ERROR,
|
|
14024
|
-
};
|
|
14186
|
+
});
|
|
14025
14187
|
let authPromise;
|
|
14026
14188
|
const getAuthPromise = () => authPromise;
|
|
14027
14189
|
/**
|
|
@@ -14043,12 +14205,12 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14043
14205
|
});
|
|
14044
14206
|
return authPromise;
|
|
14045
14207
|
};
|
|
14046
|
-
|
|
14208
|
+
({
|
|
14047
14209
|
[PrefetchFeatures.SearchEmbed]: (url) => `${url}v2/#/embed/answer`,
|
|
14048
14210
|
[PrefetchFeatures.LiveboardEmbed]: (url) => url,
|
|
14049
14211
|
[PrefetchFeatures.FullApp]: (url) => url,
|
|
14050
14212
|
[PrefetchFeatures.VizEmbed]: (url) => url,
|
|
14051
|
-
};
|
|
14213
|
+
});
|
|
14052
14214
|
/**
|
|
14053
14215
|
*
|
|
14054
14216
|
*/
|
|
@@ -14227,7 +14389,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14227
14389
|
});
|
|
14228
14390
|
}
|
|
14229
14391
|
|
|
14230
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.33.
|
|
14392
|
+
var name="@thoughtspot/visual-embed-sdk";var version$1="1.33.1-dc.2";var description="ThoughtSpot Embed SDK";var module="lib/src/index.js";var main="dist/tsembed.js";var types="lib/src/index.d.ts";var files=["dist/**","lib/**","src/**","cjs/**"];var exports$1={".":{"import":"./lib/src/index.js",require:"./cjs/src/index.js",types:"./lib/src/index.d.ts"},"./react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"},"./lib/src/react":{"import":"./lib/src/react/all-types-export.js",require:"./cjs/src/react/all-types-export.js",types:"./lib/src/react/all-types-export.d.ts"}};var typesVersions={"*":{react:["./lib/src/react/all-types-export.d.ts"]}};var scripts={lint:"eslint 'src/**'","lint:fix":"eslint 'src/**/*.*' --fix",tsc:"tsc -p . --incremental false; tsc -p . --incremental false --module commonjs --outDir cjs","build-and-publish":"npm run build:gatsby && npm run publish","bundle-dts-file":"dts-bundle --name @thoughtspot/visual-embed-sdk --out visual-embed-sdk.d.ts --main lib/src/index.d.ts","bundle-dts":"dts-bundle --name ../../dist/visual-embed-sdk --main lib/src/index.d.ts --outputAsModuleFolder=true","bundle-dts-react":"dts-bundle --name ../../../dist/visual-embed-sdk-react --main lib/src/react/index.d.ts --outputAsModuleFolder=true","bundle-dts-react-full":"dts-bundle --name ../../../dist/visual-embed-sdk-react-full --main lib/src/react/all-types-export.d.ts --outputAsModuleFolder=true",build:"rollup -c",watch:"rollup -cw",docgen:"typedoc --tsconfig tsconfig.json --theme typedoc-theme --json static/typedoc/typedoc.json --disableOutputCheck","test-sdk":"jest -c jest.config.sdk.js --runInBand",test:"npm run test-sdk",posttest:"cat ./coverage/sdk/lcov.info | coveralls","is-publish-allowed":"node scripts/is-publish-allowed.js",prepublishOnly:"npm run is-publish-allowed && npm run test && npm run tsc && npm run bundle-dts-file && npm run bundle-dts && npm run bundle-dts-react && npm run bundle-dts-react-full && npm run build","check-size":"npm run build && size-limit","publish-dev":"npm publish --tag dc","publish-prod":"npm publish --tag latest",dev:"vite -c vite.local.config.ts"};var peerDependencies={react:"> 16.8.0","react-dom":"> 16.8.0"};var dependencies={algoliasearch:"^4.10.5",classnames:"^2.3.1",dompurify:"^2.3.4","eslint-plugin-comment-length":"^0.9.2","eslint-plugin-jsdoc":"^46.9.0",eventemitter3:"^4.0.7","gatsby-plugin-vercel":"^1.0.3","html-react-parser":"^1.4.12",lodash:"^4.17.21","mixpanel-browser":"2.47.0","ts-deepmerge":"^6.0.2",tslib:"^2.5.3","use-deep-compare-effect":"^1.8.1",yaml:"^2.5.1"};var devDependencies={"@mdx-js/mdx":"^1.6.22","@mdx-js/react":"^1.6.22","@react-icons/all-files":"^4.1.0","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^11.2.1","@rollup/plugin-replace":"^5.0.2","@size-limit/preset-big-lib":"^8.2.6","@testing-library/dom":"^7.31.0","@testing-library/jest-dom":"^5.14.1","@testing-library/react":"^11.2.7","@testing-library/user-event":"^13.1.8","@types/jest":"^22.2.3","@types/lodash":"^4.17.0","@types/mixpanel-browser":"^2.35.6","@types/react-test-renderer":"^17.0.1","@typescript-eslint/eslint-plugin":"^4.6.0","@typescript-eslint/parser":"^4.6.0",asciidoctor:"^2.2.1","babel-jest":"^26.6.3","babel-preset-gatsby":"^1.10.0","command-line-args":"^5.1.1",coveralls:"^3.1.0",crypto:"^1.0.1","current-git-branch":"^1.1.0","dts-bundle":"^0.7.3",eslint:"^7.12.1","eslint-config-airbnb-base":"^14.2.0","eslint-config-prettier":"^6.15.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.2.0","fs-extra":"^10.0.0","gh-pages":"^3.1.0","highlight.js":"^10.6.0","html-to-text":"^8.0.0","identity-obj-proxy":"^3.0.0","istanbul-merge":"^1.1.1",jest:"^26.6.3","jest-fetch-mock":"^3.0.3",jsdom:"^17.0.0","node-sass":"^8.0.0",prettier:"2.1.2",react:"^16.14.0","react-dom":"^16.14.0","react-resizable":"^1.11.0","react-resize-detector":"^6.6.0","react-test-renderer":"^17.0.2","react-use-flexsearch":"^0.1.1",rollup:"4.24.0","rollup-plugin-typescript2":"0.27.3","ts-jest":"^26.5.5","ts-loader":"8.0.4",typedoc:"0.21.6","typedoc-plugin-toc-group":"thoughtspot/typedoc-plugin-toc-group",typescript:"^4.9.4","url-search-params-polyfill":"^8.1.0",util:"^0.12.4",vite:"^5.3.4"};var author="ThoughtSpot";var email="support@thoughtspot.com";var license="ThoughtSpot Development Tools End User License Agreement";var directories={lib:"lib"};var repository={type:"git",url:"git+https://github.com/thoughtspot/visual-embed-sdk.git"};var publishConfig={registry:"https://registry.npmjs.org"};var keywords=["thoughtspot","everywhere","embedded","embed","sdk","analytics"];var bugs={url:"https://github.com/thoughtspot/visual-embed-sdk/issues"};var homepage="https://github.com/thoughtspot/visual-embed-sdk#readme";var globals={window:{}};var pkgInfo = {name:name,version:version$1,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/es/index.js",limit:"30 kB"}],scripts:scripts,peerDependencies:peerDependencies,dependencies:dependencies,devDependencies:devDependencies,author:author,email:email,license:license,directories:directories,repository:repository,publishConfig:publishConfig,keywords:keywords,bugs:bugs,homepage:homepage,globals:globals};
|
|
14231
14393
|
|
|
14232
14394
|
/**
|
|
14233
14395
|
* Copyright (c) 2022
|
|
@@ -14236,7 +14398,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14236
14398
|
* @summary Base classes
|
|
14237
14399
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
14238
14400
|
*/
|
|
14239
|
-
const { version
|
|
14401
|
+
const { version } = pkgInfo;
|
|
14240
14402
|
/**
|
|
14241
14403
|
* Global prefix for all Thoughtspot postHash Params.
|
|
14242
14404
|
*/
|
|
@@ -14325,7 +14487,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14325
14487
|
});
|
|
14326
14488
|
}
|
|
14327
14489
|
catch (e) {
|
|
14328
|
-
logger.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
14490
|
+
logger$3.error(`${ERROR_MESSAGE.INVALID_TOKEN_ERROR} Error : ${e === null || e === void 0 ? void 0 : e.message}`);
|
|
14329
14491
|
processAuthFailure(e, this.isPreRendered ? this.preRenderWrapper : this.el);
|
|
14330
14492
|
}
|
|
14331
14493
|
}
|
|
@@ -14353,7 +14515,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14353
14515
|
allOtherKeys.forEach((key) => {
|
|
14354
14516
|
if (!isUndefined(viewConfig[key])
|
|
14355
14517
|
&& !isEqual_1(viewConfig[key], preRenderedObject.viewConfig[key])) {
|
|
14356
|
-
logger.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
14518
|
+
logger$3.warn(`${viewConfig.embedComponentType || 'Component'} was pre-rendered with `
|
|
14357
14519
|
+ `"${key}" as "${JSON.stringify(preRenderedObject.viewConfig[key])}" `
|
|
14358
14520
|
+ `but a different value "${JSON.stringify(viewConfig[key])}" `
|
|
14359
14521
|
+ 'was passed to the Embed component. '
|
|
@@ -14400,7 +14562,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14400
14562
|
error,
|
|
14401
14563
|
});
|
|
14402
14564
|
// Log error
|
|
14403
|
-
logger.error(error);
|
|
14565
|
+
logger$3.error(error);
|
|
14404
14566
|
}
|
|
14405
14567
|
/**
|
|
14406
14568
|
* Extracts the type field from the event payload
|
|
@@ -14465,7 +14627,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14465
14627
|
this.executeCallbacks(exports.EmbedEvent.Error, {
|
|
14466
14628
|
offlineWarning,
|
|
14467
14629
|
});
|
|
14468
|
-
logger.warn(offlineWarning);
|
|
14630
|
+
logger$3.warn(offlineWarning);
|
|
14469
14631
|
};
|
|
14470
14632
|
window.addEventListener('offline', offlineEventListener);
|
|
14471
14633
|
this.subscribedListeners = {
|
|
@@ -14509,7 +14671,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14509
14671
|
queryParams[Param.HostAppUrl] = encodeURIComponent(hostAppUrl);
|
|
14510
14672
|
queryParams[Param.ViewPortHeight] = window.innerHeight;
|
|
14511
14673
|
queryParams[Param.ViewPortWidth] = window.innerWidth;
|
|
14512
|
-
queryParams[Param.Version] = version
|
|
14674
|
+
queryParams[Param.Version] = version;
|
|
14513
14675
|
queryParams[Param.AuthType] = this.embedConfig.authType;
|
|
14514
14676
|
queryParams[Param.blockNonEmbedFullAppAccess] = (_b = this.embedConfig.blockNonEmbedFullAppAccess) !== null && _b !== void 0 ? _b : true;
|
|
14515
14677
|
if (this.embedConfig.disableLoginRedirect === true || this.embedConfig.autoLogin === true) {
|
|
@@ -14931,7 +15093,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14931
15093
|
isRegisteredBySDK,
|
|
14932
15094
|
});
|
|
14933
15095
|
if (this.isRendered) {
|
|
14934
|
-
logger.warn('Please register event handlers before calling render');
|
|
15096
|
+
logger$3.warn('Please register event handlers before calling render');
|
|
14935
15097
|
}
|
|
14936
15098
|
const callbacks = this.eventHandlerMap.get(messageType) || [];
|
|
14937
15099
|
callbacks.push({ options, callback });
|
|
@@ -14975,11 +15137,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
14975
15137
|
}
|
|
14976
15138
|
catch (e) {
|
|
14977
15139
|
eventPort.postMessage({ error: e });
|
|
14978
|
-
logger.log(e);
|
|
15140
|
+
logger$3.log(e);
|
|
14979
15141
|
}
|
|
14980
15142
|
}
|
|
14981
15143
|
else {
|
|
14982
|
-
logger.log('Event Port is not defined');
|
|
15144
|
+
logger$3.log('Event Port is not defined');
|
|
14983
15145
|
}
|
|
14984
15146
|
}
|
|
14985
15147
|
/**
|
|
@@ -15021,7 +15183,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15021
15183
|
*/
|
|
15022
15184
|
preRender(showPreRenderByDefault = false) {
|
|
15023
15185
|
if (!this.viewConfig.preRenderId) {
|
|
15024
|
-
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
15186
|
+
logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
15025
15187
|
return this;
|
|
15026
15188
|
}
|
|
15027
15189
|
this.isPreRendered = true;
|
|
@@ -15066,7 +15228,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15066
15228
|
this.unsubscribeToEvents();
|
|
15067
15229
|
}
|
|
15068
15230
|
catch (e) {
|
|
15069
|
-
logger.log('Error destroying TS Embed', e);
|
|
15231
|
+
logger$3.log('Error destroying TS Embed', e);
|
|
15070
15232
|
}
|
|
15071
15233
|
}
|
|
15072
15234
|
getUnderlyingFrameElement() {
|
|
@@ -15095,7 +15257,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15095
15257
|
*/
|
|
15096
15258
|
showPreRender() {
|
|
15097
15259
|
if (!this.viewConfig.preRenderId) {
|
|
15098
|
-
logger.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
15260
|
+
logger$3.error(ERROR_MESSAGE.PRERENDER_ID_MISSING);
|
|
15099
15261
|
return;
|
|
15100
15262
|
}
|
|
15101
15263
|
if (!this.isPreRenderAvailable()) {
|
|
@@ -15137,7 +15299,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15137
15299
|
*/
|
|
15138
15300
|
syncPreRenderStyle() {
|
|
15139
15301
|
if (!this.isPreRenderAvailable() || !this.el) {
|
|
15140
|
-
logger.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
|
|
15302
|
+
logger$3.error(ERROR_MESSAGE.SYNC_STYLE_CALLED_BEFORE_RENDER);
|
|
15141
15303
|
return;
|
|
15142
15304
|
}
|
|
15143
15305
|
const elBoundingClient = this.el.getBoundingClientRect();
|
|
@@ -15155,7 +15317,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15155
15317
|
hidePreRender() {
|
|
15156
15318
|
if (!this.isPreRenderAvailable()) {
|
|
15157
15319
|
// if the embed component is not preRendered , nothing to hide
|
|
15158
|
-
logger.warn('PreRender should be called before hiding it using hidePreRender.');
|
|
15320
|
+
logger$3.warn('PreRender should be called before hiding it using hidePreRender.');
|
|
15159
15321
|
return;
|
|
15160
15322
|
}
|
|
15161
15323
|
const preRenderHideStyles = {
|
|
@@ -15263,7 +15425,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15263
15425
|
* @version: SDK: 1.18.0 | ThoughtSpot: 8.10.0.cl, 9.0.1-sw
|
|
15264
15426
|
* @group Embed components
|
|
15265
15427
|
*/
|
|
15266
|
-
class SearchBarEmbed extends TsEmbed {
|
|
15428
|
+
let SearchBarEmbed$1 = class SearchBarEmbed extends TsEmbed {
|
|
15267
15429
|
constructor(domSelector, viewConfig) {
|
|
15268
15430
|
super(domSelector);
|
|
15269
15431
|
this.embedComponentType = 'SearchBarEmbed';
|
|
@@ -15314,7 +15476,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15314
15476
|
await this.renderIFrame(src);
|
|
15315
15477
|
return this;
|
|
15316
15478
|
}
|
|
15317
|
-
}
|
|
15479
|
+
};
|
|
15318
15480
|
|
|
15319
15481
|
/**
|
|
15320
15482
|
* Copyright (c) 2023
|
|
@@ -15328,7 +15490,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15328
15490
|
* @version: SDK: 1.23.0 | ThoughtSpot: 9.4.0.cl, 9.5.1-sw
|
|
15329
15491
|
* @group Embed components
|
|
15330
15492
|
*/
|
|
15331
|
-
class SageEmbed extends V1Embed {
|
|
15493
|
+
let SageEmbed$1 = class SageEmbed extends V1Embed {
|
|
15332
15494
|
// eslint-disable-next-line no-useless-constructor
|
|
15333
15495
|
constructor(domSelector, viewConfig) {
|
|
15334
15496
|
viewConfig.embedComponentType = 'SageEmbed';
|
|
@@ -15390,7 +15552,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15390
15552
|
await this.renderV1Embed(src);
|
|
15391
15553
|
return this;
|
|
15392
15554
|
}
|
|
15393
|
-
}
|
|
15555
|
+
};
|
|
15394
15556
|
|
|
15395
15557
|
/**
|
|
15396
15558
|
* Copyright (c) 2022
|
|
@@ -15403,7 +15565,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15403
15565
|
* Define the initial state os column custom group accordions
|
|
15404
15566
|
* in data panel v2.
|
|
15405
15567
|
*/
|
|
15406
|
-
var DataPanelCustomColumnGroupsAccordionState;
|
|
15568
|
+
var DataPanelCustomColumnGroupsAccordionState$1;
|
|
15407
15569
|
(function (DataPanelCustomColumnGroupsAccordionState) {
|
|
15408
15570
|
/**
|
|
15409
15571
|
* Expand all the accordion initially in data panel v2.
|
|
@@ -15417,7 +15579,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15417
15579
|
* Expand the first accordion and collapse the rest.
|
|
15418
15580
|
*/
|
|
15419
15581
|
DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
|
|
15420
|
-
})(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
|
|
15582
|
+
})(DataPanelCustomColumnGroupsAccordionState$1 || (DataPanelCustomColumnGroupsAccordionState$1 = {}));
|
|
15421
15583
|
const HiddenActionItemByDefaultForSearchEmbed = [
|
|
15422
15584
|
exports.Action.EditACopy,
|
|
15423
15585
|
exports.Action.SaveAsView,
|
|
@@ -15429,7 +15591,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15429
15591
|
* Embed ThoughtSpot search
|
|
15430
15592
|
* @group Embed components
|
|
15431
15593
|
*/
|
|
15432
|
-
class SearchEmbed extends TsEmbed {
|
|
15594
|
+
let SearchEmbed$1 = class SearchEmbed extends TsEmbed {
|
|
15433
15595
|
constructor(domSelector, viewConfig) {
|
|
15434
15596
|
viewConfig.embedComponentType = 'SearchEmbed';
|
|
15435
15597
|
super(domSelector, viewConfig);
|
|
@@ -15453,7 +15615,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15453
15615
|
var _a;
|
|
15454
15616
|
const { hideResults, enableSearchAssist, forceTable, searchOptions, runtimeFilters, dataSource, dataSources, excludeRuntimeFiltersfromURL, hideSearchBar, dataPanelV2 = true, useLastSelectedSources = false, runtimeParameters, collapseSearchBarInitially = false, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15455
15617
|
/* eslint-disable-next-line max-len */
|
|
15456
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
15618
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL, focusSearchBarOnRender = true, excludeRuntimeParametersfromURL, collapseSearchBar = true, } = this.viewConfig;
|
|
15457
15619
|
const queryParams = this.getBaseQueryParams();
|
|
15458
15620
|
queryParams[Param.HideActions] = [
|
|
15459
15621
|
...((_a = queryParams[Param.HideActions]) !== null && _a !== void 0 ? _a : []),
|
|
@@ -15501,15 +15663,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15501
15663
|
queryParams[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15502
15664
|
queryParams[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15503
15665
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15504
|
-
=== DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
|
|
15666
|
+
=== DataPanelCustomColumnGroupsAccordionState$1.COLLAPSE_ALL
|
|
15505
15667
|
|| dataPanelCustomGroupsAccordionInitialState
|
|
15506
|
-
=== DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
|
|
15668
|
+
=== DataPanelCustomColumnGroupsAccordionState$1.EXPAND_FIRST) {
|
|
15507
15669
|
/* eslint-disable-next-line max-len */
|
|
15508
15670
|
queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
|
|
15509
15671
|
}
|
|
15510
15672
|
else {
|
|
15511
15673
|
/* eslint-disable-next-line max-len */
|
|
15512
|
-
queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
15674
|
+
queryParams[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState$1.EXPAND_ALL;
|
|
15513
15675
|
}
|
|
15514
15676
|
let query = '';
|
|
15515
15677
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
@@ -15542,7 +15704,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15542
15704
|
*/
|
|
15543
15705
|
async render() {
|
|
15544
15706
|
super.render();
|
|
15545
|
-
|
|
15707
|
+
this.viewConfig;
|
|
15546
15708
|
const src = this.getIFrameSrc();
|
|
15547
15709
|
await this.renderIFrame(src);
|
|
15548
15710
|
getAuthPromise().then(() => {
|
|
@@ -15553,7 +15715,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15553
15715
|
});
|
|
15554
15716
|
return this;
|
|
15555
15717
|
}
|
|
15556
|
-
}
|
|
15718
|
+
};
|
|
15557
15719
|
|
|
15558
15720
|
/**
|
|
15559
15721
|
* Copyright (c) 2022
|
|
@@ -15564,6 +15726,11 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15564
15726
|
* @module
|
|
15565
15727
|
* @author Ayon Ghosh <ayon.ghosh@thoughtspot.com>
|
|
15566
15728
|
*/
|
|
15729
|
+
/**
|
|
15730
|
+
* Pages within the ThoughtSpot app that can be embedded.
|
|
15731
|
+
*/
|
|
15732
|
+
// eslint-disable-next-line no-shadow
|
|
15733
|
+
exports.Page = void 0;
|
|
15567
15734
|
(function (Page) {
|
|
15568
15735
|
/**
|
|
15569
15736
|
* Home page
|
|
@@ -15602,7 +15769,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15602
15769
|
* Define the initial state os column custom group accordions
|
|
15603
15770
|
* in data panel v2.
|
|
15604
15771
|
*/
|
|
15605
|
-
var DataPanelCustomColumnGroupsAccordionState
|
|
15772
|
+
var DataPanelCustomColumnGroupsAccordionState;
|
|
15606
15773
|
(function (DataPanelCustomColumnGroupsAccordionState) {
|
|
15607
15774
|
/**
|
|
15608
15775
|
* Expand all the accordion initially in data panel v2.
|
|
@@ -15616,7 +15783,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15616
15783
|
* Expand the first accordion and collapse the rest.
|
|
15617
15784
|
*/
|
|
15618
15785
|
DataPanelCustomColumnGroupsAccordionState["EXPAND_FIRST"] = "EXPAND_FIRST";
|
|
15619
|
-
})(DataPanelCustomColumnGroupsAccordionState
|
|
15786
|
+
})(DataPanelCustomColumnGroupsAccordionState || (DataPanelCustomColumnGroupsAccordionState = {}));
|
|
15620
15787
|
var HomePageSearchBarMode;
|
|
15621
15788
|
(function (HomePageSearchBarMode) {
|
|
15622
15789
|
HomePageSearchBarMode["OBJECT_SEARCH"] = "objectSearch";
|
|
@@ -15627,7 +15794,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15627
15794
|
* Embeds full ThoughtSpot experience in a host application.
|
|
15628
15795
|
* @group Embed components
|
|
15629
15796
|
*/
|
|
15630
|
-
class AppEmbed extends V1Embed {
|
|
15797
|
+
let AppEmbed$1 = class AppEmbed extends V1Embed {
|
|
15631
15798
|
// eslint-disable-next-line no-useless-constructor
|
|
15632
15799
|
constructor(domSelector, viewConfig) {
|
|
15633
15800
|
viewConfig.embedComponentType = 'AppEmbed';
|
|
@@ -15665,7 +15832,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15665
15832
|
getEmbedParams() {
|
|
15666
15833
|
const { tag, hideObjects, liveboardV2, showPrimaryNavbar, disableProfileAndHelp, hideApplicationSwitcher, hideOrgSwitcher, enableSearchAssist, fullHeight, dataPanelV2 = true, hideLiveboardHeader = false, showLiveboardTitle = true, showLiveboardDescription = true, hideHomepageLeftNav = false, modularHomeExperience = false, isLiveboardHeaderSticky = true, enableAskSage, collapseSearchBarInitially = false, enable2ColumnLayout, enableCustomColumnGroups = false, isOnBeforeGetVizDataInterceptEnabled = false,
|
|
15667
15834
|
/* eslint-disable-next-line max-len */
|
|
15668
|
-
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState
|
|
15835
|
+
dataPanelCustomGroupsAccordionInitialState = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL, collapseSearchBar = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, homePageSearchBarMode, } = this.viewConfig;
|
|
15669
15836
|
let params = {};
|
|
15670
15837
|
params[Param.EmbedApp] = true;
|
|
15671
15838
|
params[Param.PrimaryNavHidden] = !showPrimaryNavbar;
|
|
@@ -15715,15 +15882,15 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15715
15882
|
params[Param.CollapseSearchBarInitially] = collapseSearchBarInitially || collapseSearchBar;
|
|
15716
15883
|
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
15717
15884
|
if (dataPanelCustomGroupsAccordionInitialState
|
|
15718
|
-
=== DataPanelCustomColumnGroupsAccordionState
|
|
15885
|
+
=== DataPanelCustomColumnGroupsAccordionState.COLLAPSE_ALL
|
|
15719
15886
|
|| dataPanelCustomGroupsAccordionInitialState
|
|
15720
|
-
=== DataPanelCustomColumnGroupsAccordionState
|
|
15887
|
+
=== DataPanelCustomColumnGroupsAccordionState.EXPAND_FIRST) {
|
|
15721
15888
|
/* eslint-disable-next-line max-len */
|
|
15722
15889
|
params[Param.DataPanelCustomGroupsAccordionInitialState] = dataPanelCustomGroupsAccordionInitialState;
|
|
15723
15890
|
}
|
|
15724
15891
|
else {
|
|
15725
15892
|
/* eslint-disable-next-line max-len */
|
|
15726
|
-
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState
|
|
15893
|
+
params[Param.DataPanelCustomGroupsAccordionInitialState] = DataPanelCustomColumnGroupsAccordionState.EXPAND_ALL;
|
|
15727
15894
|
}
|
|
15728
15895
|
const queryParams = getQueryParamString(params, true);
|
|
15729
15896
|
return queryParams;
|
|
@@ -15794,7 +15961,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15794
15961
|
*/
|
|
15795
15962
|
navigateToPage(path, noReload = false) {
|
|
15796
15963
|
if (!this.iFrame) {
|
|
15797
|
-
logger.log('Please call render before invoking this method');
|
|
15964
|
+
logger$3.log('Please call render before invoking this method');
|
|
15798
15965
|
return;
|
|
15799
15966
|
}
|
|
15800
15967
|
if (noReload) {
|
|
@@ -15802,7 +15969,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15802
15969
|
}
|
|
15803
15970
|
else {
|
|
15804
15971
|
if (typeof path !== 'string') {
|
|
15805
|
-
logger.warn('Path can only by a string when triggered without noReload');
|
|
15972
|
+
logger$3.warn('Path can only by a string when triggered without noReload');
|
|
15806
15973
|
return;
|
|
15807
15974
|
}
|
|
15808
15975
|
const iframeSrc = this.iFrame.src;
|
|
@@ -15822,7 +15989,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
15822
15989
|
await this.renderV1Embed(src);
|
|
15823
15990
|
return this;
|
|
15824
15991
|
}
|
|
15825
|
-
}
|
|
15992
|
+
};
|
|
15826
15993
|
|
|
15827
15994
|
/* eslint-disable quotes */
|
|
15828
15995
|
const getPreviewQuery = `
|
|
@@ -15919,7 +16086,7 @@ query GetEurekaVizSnapshots(
|
|
|
15919
16086
|
* ```
|
|
15920
16087
|
* @group Embed components
|
|
15921
16088
|
*/
|
|
15922
|
-
class LiveboardEmbed extends V1Embed {
|
|
16089
|
+
let LiveboardEmbed$1 = class LiveboardEmbed extends V1Embed {
|
|
15923
16090
|
// eslint-disable-next-line no-useless-constructor
|
|
15924
16091
|
constructor(domSelector, viewConfig) {
|
|
15925
16092
|
viewConfig.embedComponentType = 'LiveboardEmbed';
|
|
@@ -15958,7 +16125,7 @@ query GetEurekaVizSnapshots(
|
|
|
15958
16125
|
let params = {};
|
|
15959
16126
|
params[Param.EmbedApp] = true;
|
|
15960
16127
|
params = this.getBaseQueryParams(params);
|
|
15961
|
-
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, } = this.viewConfig;
|
|
16128
|
+
const { enableVizTransformations, fullHeight, defaultHeight, visibleVizs, liveboardV2, vizId, hideTabPanel, activeTabId, hideLiveboardHeader, showLiveboardDescription, showLiveboardTitle, isLiveboardHeaderSticky = true, isLiveboardCompactHeaderEnabled = false, showLiveboardVerifiedBadge = true, showLiveboardReverifyBanner = true, enableAskSage, enable2ColumnLayout, dataPanelV2 = true, enableCustomColumnGroups = false, } = this.viewConfig;
|
|
15962
16129
|
const preventLiveboardFilterRemoval = this.viewConfig.preventLiveboardFilterRemoval
|
|
15963
16130
|
|| this.viewConfig.preventPinboardFilterRemoval;
|
|
15964
16131
|
if (fullHeight === true) {
|
|
@@ -16006,6 +16173,7 @@ query GetEurekaVizSnapshots(
|
|
|
16006
16173
|
params[Param.ShowLiveboardVerifiedBadge] = showLiveboardVerifiedBadge;
|
|
16007
16174
|
params[Param.ShowLiveboardReverifyBanner] = showLiveboardReverifyBanner;
|
|
16008
16175
|
params[Param.DataPanelV2Enabled] = dataPanelV2;
|
|
16176
|
+
params[Param.EnableCustomColumnGroups] = enableCustomColumnGroups;
|
|
16009
16177
|
const queryParams = getQueryParamString(params, true);
|
|
16010
16178
|
return queryParams;
|
|
16011
16179
|
}
|
|
@@ -16146,7 +16314,7 @@ query GetEurekaVizSnapshots(
|
|
|
16146
16314
|
}
|
|
16147
16315
|
return url;
|
|
16148
16316
|
}
|
|
16149
|
-
}
|
|
16317
|
+
};
|
|
16150
16318
|
|
|
16151
16319
|
/**
|
|
16152
16320
|
*
|
|
@@ -16168,7 +16336,22 @@ query GetEurekaVizSnapshots(
|
|
|
16168
16336
|
});
|
|
16169
16337
|
}
|
|
16170
16338
|
|
|
16171
|
-
|
|
16339
|
+
/**
|
|
16340
|
+
* Embed ThoughtSpot AI Conversation.
|
|
16341
|
+
* @group Embed components
|
|
16342
|
+
* @example
|
|
16343
|
+
* ```js
|
|
16344
|
+
* const conversation = new ConversationEmbed('#tsEmbed', {
|
|
16345
|
+
* worksheetId: 'worksheetId',
|
|
16346
|
+
* searchOptions: {
|
|
16347
|
+
* searchQuery: 'searchQuery',
|
|
16348
|
+
* },
|
|
16349
|
+
* });
|
|
16350
|
+
* conversation.render();
|
|
16351
|
+
* ```
|
|
16352
|
+
* @version SDK: 1.33.1 | ThoughtSpot: 10.5.0.cl
|
|
16353
|
+
*/
|
|
16354
|
+
let ConversationEmbed$1 = class ConversationEmbed extends TsEmbed {
|
|
16172
16355
|
constructor(container, viewConfig) {
|
|
16173
16356
|
super(container, viewConfig);
|
|
16174
16357
|
this.viewConfig = viewConfig;
|
|
@@ -16177,6 +16360,7 @@ query GetEurekaVizSnapshots(
|
|
|
16177
16360
|
const { worksheetId, searchOptions, } = this.viewConfig;
|
|
16178
16361
|
const path = 'insights/conv-assist';
|
|
16179
16362
|
const queryParams = this.getBaseQueryParams();
|
|
16363
|
+
queryParams[Param.SpotterEnabled] = true;
|
|
16180
16364
|
let query = '';
|
|
16181
16365
|
const queryParamsString = getQueryParamString(queryParams, true);
|
|
16182
16366
|
if (queryParamsString) {
|
|
@@ -16194,15 +16378,15 @@ query GetEurekaVizSnapshots(
|
|
|
16194
16378
|
await this.renderIFrame(src);
|
|
16195
16379
|
return this;
|
|
16196
16380
|
}
|
|
16197
|
-
}
|
|
16381
|
+
};
|
|
16198
16382
|
|
|
16199
16383
|
const componentFactory = (EmbedConstructor,
|
|
16200
16384
|
// isPreRenderedComponent: Specifies whether the component being returned is
|
|
16201
16385
|
// intended for preRendering. If set to true, the component will call the
|
|
16202
16386
|
// Embed.preRender() method instead of the usual render method, and it will
|
|
16203
16387
|
// not be destroyed when the component is unmounted.
|
|
16204
|
-
isPreRenderedComponent = false) =>
|
|
16205
|
-
const ref =
|
|
16388
|
+
isPreRenderedComponent = false) => React.forwardRef((props, forwardedRef) => {
|
|
16389
|
+
const ref = React.useRef(null);
|
|
16206
16390
|
const { className, ...embedProps } = props;
|
|
16207
16391
|
const { viewConfig, listeners } = getViewPropsAndListeners(embedProps);
|
|
16208
16392
|
const handleDestroy = (tsEmbed) => {
|
|
@@ -16253,7 +16437,7 @@ query GetEurekaVizSnapshots(
|
|
|
16253
16437
|
handleDestroy(tsEmbed);
|
|
16254
16438
|
};
|
|
16255
16439
|
}, [viewConfig, listeners]);
|
|
16256
|
-
return viewConfig.insertAsSibling ? (
|
|
16440
|
+
return viewConfig.insertAsSibling ? (React.createElement("span", { "data-testid": "tsEmbed", ref: ref, style: { position: 'absolute' } })) : (React.createElement("div", { "data-testid": "tsEmbed", ref: ref, className: className }));
|
|
16257
16441
|
});
|
|
16258
16442
|
/**
|
|
16259
16443
|
* React component for Search Embed.
|
|
@@ -16267,8 +16451,8 @@ query GetEurekaVizSnapshots(
|
|
|
16267
16451
|
* }
|
|
16268
16452
|
* ```
|
|
16269
16453
|
*/
|
|
16270
|
-
const SearchEmbed
|
|
16271
|
-
const PreRenderedSearchEmbed = componentFactory(SearchEmbed, true);
|
|
16454
|
+
const SearchEmbed = componentFactory(SearchEmbed$1);
|
|
16455
|
+
const PreRenderedSearchEmbed = componentFactory(SearchEmbed$1, true);
|
|
16272
16456
|
/**
|
|
16273
16457
|
* React component for Full app Embed.
|
|
16274
16458
|
* @example
|
|
@@ -16282,7 +16466,7 @@ query GetEurekaVizSnapshots(
|
|
|
16282
16466
|
* }
|
|
16283
16467
|
* ```
|
|
16284
16468
|
*/
|
|
16285
|
-
const AppEmbed
|
|
16469
|
+
const AppEmbed = componentFactory(AppEmbed$1);
|
|
16286
16470
|
/**
|
|
16287
16471
|
* React component for PreRendered Liveboard embed.
|
|
16288
16472
|
*
|
|
@@ -16301,7 +16485,7 @@ query GetEurekaVizSnapshots(
|
|
|
16301
16485
|
* }
|
|
16302
16486
|
* ```
|
|
16303
16487
|
*/
|
|
16304
|
-
const PreRenderedAppEmbed = componentFactory(AppEmbed, true);
|
|
16488
|
+
const PreRenderedAppEmbed = componentFactory(AppEmbed$1, true);
|
|
16305
16489
|
/**
|
|
16306
16490
|
* React component for Liveboard embed.
|
|
16307
16491
|
* @example
|
|
@@ -16316,8 +16500,8 @@ query GetEurekaVizSnapshots(
|
|
|
16316
16500
|
* }
|
|
16317
16501
|
* ```
|
|
16318
16502
|
*/
|
|
16319
|
-
const LiveboardEmbed
|
|
16320
|
-
const PinboardEmbed = LiveboardEmbed
|
|
16503
|
+
const LiveboardEmbed = componentFactory(LiveboardEmbed$1);
|
|
16504
|
+
const PinboardEmbed = LiveboardEmbed;
|
|
16321
16505
|
/**
|
|
16322
16506
|
* React component for PreRendered Liveboard embed.
|
|
16323
16507
|
*
|
|
@@ -16339,7 +16523,7 @@ query GetEurekaVizSnapshots(
|
|
|
16339
16523
|
* }
|
|
16340
16524
|
* ```
|
|
16341
16525
|
*/
|
|
16342
|
-
const PreRenderedLiveboardEmbed = componentFactory(LiveboardEmbed, true);
|
|
16526
|
+
const PreRenderedLiveboardEmbed = componentFactory(LiveboardEmbed$1, true);
|
|
16343
16527
|
const PreRenderedPinboardEmbed = PreRenderedLiveboardEmbed;
|
|
16344
16528
|
/**
|
|
16345
16529
|
* React component for Search bar embed.
|
|
@@ -16353,7 +16537,7 @@ query GetEurekaVizSnapshots(
|
|
|
16353
16537
|
* }
|
|
16354
16538
|
* ```
|
|
16355
16539
|
*/
|
|
16356
|
-
const SearchBarEmbed
|
|
16540
|
+
const SearchBarEmbed = componentFactory(SearchBarEmbed$1);
|
|
16357
16541
|
/**
|
|
16358
16542
|
* React component for PreRendered Liveboard embed.
|
|
16359
16543
|
*
|
|
@@ -16372,7 +16556,7 @@ query GetEurekaVizSnapshots(
|
|
|
16372
16556
|
* }
|
|
16373
16557
|
* ```
|
|
16374
16558
|
*/
|
|
16375
|
-
const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed, true);
|
|
16559
|
+
const PreRenderedSearchBarEmbed = componentFactory(SearchBarEmbed$1, true);
|
|
16376
16560
|
/**
|
|
16377
16561
|
* React component for LLM based search Sage embed.
|
|
16378
16562
|
* @example
|
|
@@ -16385,7 +16569,7 @@ query GetEurekaVizSnapshots(
|
|
|
16385
16569
|
* }
|
|
16386
16570
|
* ```
|
|
16387
16571
|
*/
|
|
16388
|
-
const SageEmbed
|
|
16572
|
+
const SageEmbed = componentFactory(SageEmbed$1);
|
|
16389
16573
|
/**
|
|
16390
16574
|
* React component for PreRendered Liveboard embed.
|
|
16391
16575
|
*
|
|
@@ -16404,7 +16588,7 @@ query GetEurekaVizSnapshots(
|
|
|
16404
16588
|
* }
|
|
16405
16589
|
* ```
|
|
16406
16590
|
*/
|
|
16407
|
-
const PreRenderedSageEmbed = componentFactory(SageEmbed, true);
|
|
16591
|
+
const PreRenderedSageEmbed = componentFactory(SageEmbed$1, true);
|
|
16408
16592
|
/**
|
|
16409
16593
|
* React component for LLM based conversation BI.
|
|
16410
16594
|
* @example
|
|
@@ -16420,7 +16604,7 @@ query GetEurekaVizSnapshots(
|
|
|
16420
16604
|
* }
|
|
16421
16605
|
* ```
|
|
16422
16606
|
*/
|
|
16423
|
-
const ConversationEmbed
|
|
16607
|
+
const ConversationEmbed = componentFactory(ConversationEmbed$1);
|
|
16424
16608
|
/**
|
|
16425
16609
|
* React component for PreRendered Conversation embed.
|
|
16426
16610
|
*
|
|
@@ -16439,7 +16623,7 @@ query GetEurekaVizSnapshots(
|
|
|
16439
16623
|
* }
|
|
16440
16624
|
* ```
|
|
16441
16625
|
*/
|
|
16442
|
-
const PreRenderedConversationEmbed = componentFactory(ConversationEmbed, true);
|
|
16626
|
+
const PreRenderedConversationEmbed = componentFactory(ConversationEmbed$1, true);
|
|
16443
16627
|
/**
|
|
16444
16628
|
* Get a reference to the embed component to trigger events on the component.
|
|
16445
16629
|
* @example
|
|
@@ -16457,23 +16641,23 @@ query GetEurekaVizSnapshots(
|
|
|
16457
16641
|
* @returns {React.MutableRefObject<T extends TsEmbed>} ref
|
|
16458
16642
|
*/
|
|
16459
16643
|
function useEmbedRef() {
|
|
16460
|
-
return
|
|
16644
|
+
return React.useRef(null);
|
|
16461
16645
|
}
|
|
16462
16646
|
|
|
16463
16647
|
const ALIAS = Symbol.for('yaml.alias');
|
|
16464
16648
|
const DOC = Symbol.for('yaml.document');
|
|
16465
16649
|
const MAP = Symbol.for('yaml.map');
|
|
16466
16650
|
const PAIR = Symbol.for('yaml.pair');
|
|
16467
|
-
const SCALAR = Symbol.for('yaml.scalar');
|
|
16651
|
+
const SCALAR$1 = Symbol.for('yaml.scalar');
|
|
16468
16652
|
const SEQ = Symbol.for('yaml.seq');
|
|
16469
16653
|
const NODE_TYPE = Symbol.for('yaml.node.type');
|
|
16470
16654
|
const isAlias = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === ALIAS;
|
|
16471
16655
|
const isDocument = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === DOC;
|
|
16472
16656
|
const isMap = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === MAP;
|
|
16473
16657
|
const isPair = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === PAIR;
|
|
16474
|
-
const isScalar = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR;
|
|
16658
|
+
const isScalar$1 = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SCALAR$1;
|
|
16475
16659
|
const isSeq = (node) => !!node && typeof node === 'object' && node[NODE_TYPE] === SEQ;
|
|
16476
|
-
function isCollection(node) {
|
|
16660
|
+
function isCollection$1(node) {
|
|
16477
16661
|
if (node && typeof node === 'object')
|
|
16478
16662
|
switch (node[NODE_TYPE]) {
|
|
16479
16663
|
case MAP:
|
|
@@ -16487,17 +16671,17 @@ query GetEurekaVizSnapshots(
|
|
|
16487
16671
|
switch (node[NODE_TYPE]) {
|
|
16488
16672
|
case ALIAS:
|
|
16489
16673
|
case MAP:
|
|
16490
|
-
case SCALAR:
|
|
16674
|
+
case SCALAR$1:
|
|
16491
16675
|
case SEQ:
|
|
16492
16676
|
return true;
|
|
16493
16677
|
}
|
|
16494
16678
|
return false;
|
|
16495
16679
|
}
|
|
16496
|
-
const hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
|
|
16680
|
+
const hasAnchor = (node) => (isScalar$1(node) || isCollection$1(node)) && !!node.anchor;
|
|
16497
16681
|
|
|
16498
|
-
const BREAK = Symbol('break visit');
|
|
16499
|
-
const SKIP = Symbol('skip children');
|
|
16500
|
-
const REMOVE = Symbol('remove node');
|
|
16682
|
+
const BREAK$1 = Symbol('break visit');
|
|
16683
|
+
const SKIP$1 = Symbol('skip children');
|
|
16684
|
+
const REMOVE$1 = Symbol('remove node');
|
|
16501
16685
|
/**
|
|
16502
16686
|
* Apply a visitor to an AST node or document.
|
|
16503
16687
|
*
|
|
@@ -16528,11 +16712,11 @@ query GetEurekaVizSnapshots(
|
|
|
16528
16712
|
* and `Node` (alias, map, seq & scalar) targets. Of all these, only the most
|
|
16529
16713
|
* specific defined one will be used for each node.
|
|
16530
16714
|
*/
|
|
16531
|
-
function visit(node, visitor) {
|
|
16715
|
+
function visit$1(node, visitor) {
|
|
16532
16716
|
const visitor_ = initVisitor(visitor);
|
|
16533
16717
|
if (isDocument(node)) {
|
|
16534
16718
|
const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
|
|
16535
|
-
if (cd === REMOVE)
|
|
16719
|
+
if (cd === REMOVE$1)
|
|
16536
16720
|
node.contents = null;
|
|
16537
16721
|
}
|
|
16538
16722
|
else
|
|
@@ -16542,11 +16726,11 @@ query GetEurekaVizSnapshots(
|
|
|
16542
16726
|
// namespace using `var`, but then complains about that because
|
|
16543
16727
|
// `unique symbol` must be `const`.
|
|
16544
16728
|
/** Terminate visit traversal completely */
|
|
16545
|
-
visit.BREAK = BREAK;
|
|
16729
|
+
visit$1.BREAK = BREAK$1;
|
|
16546
16730
|
/** Do not visit the children of the current node */
|
|
16547
|
-
visit.SKIP = SKIP;
|
|
16731
|
+
visit$1.SKIP = SKIP$1;
|
|
16548
16732
|
/** Remove the current node */
|
|
16549
|
-
visit.REMOVE = REMOVE;
|
|
16733
|
+
visit$1.REMOVE = REMOVE$1;
|
|
16550
16734
|
function visit_(key, node, visitor, path) {
|
|
16551
16735
|
const ctrl = callVisitor(key, node, visitor, path);
|
|
16552
16736
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
@@ -16554,15 +16738,15 @@ query GetEurekaVizSnapshots(
|
|
|
16554
16738
|
return visit_(key, ctrl, visitor, path);
|
|
16555
16739
|
}
|
|
16556
16740
|
if (typeof ctrl !== 'symbol') {
|
|
16557
|
-
if (isCollection(node)) {
|
|
16741
|
+
if (isCollection$1(node)) {
|
|
16558
16742
|
path = Object.freeze(path.concat(node));
|
|
16559
16743
|
for (let i = 0; i < node.items.length; ++i) {
|
|
16560
16744
|
const ci = visit_(i, node.items[i], visitor, path);
|
|
16561
16745
|
if (typeof ci === 'number')
|
|
16562
16746
|
i = ci - 1;
|
|
16563
|
-
else if (ci === BREAK)
|
|
16564
|
-
return BREAK;
|
|
16565
|
-
else if (ci === REMOVE) {
|
|
16747
|
+
else if (ci === BREAK$1)
|
|
16748
|
+
return BREAK$1;
|
|
16749
|
+
else if (ci === REMOVE$1) {
|
|
16566
16750
|
node.items.splice(i, 1);
|
|
16567
16751
|
i -= 1;
|
|
16568
16752
|
}
|
|
@@ -16571,14 +16755,14 @@ query GetEurekaVizSnapshots(
|
|
|
16571
16755
|
else if (isPair(node)) {
|
|
16572
16756
|
path = Object.freeze(path.concat(node));
|
|
16573
16757
|
const ck = visit_('key', node.key, visitor, path);
|
|
16574
|
-
if (ck === BREAK)
|
|
16575
|
-
return BREAK;
|
|
16576
|
-
else if (ck === REMOVE)
|
|
16758
|
+
if (ck === BREAK$1)
|
|
16759
|
+
return BREAK$1;
|
|
16760
|
+
else if (ck === REMOVE$1)
|
|
16577
16761
|
node.key = null;
|
|
16578
16762
|
const cv = visit_('value', node.value, visitor, path);
|
|
16579
|
-
if (cv === BREAK)
|
|
16580
|
-
return BREAK;
|
|
16581
|
-
else if (cv === REMOVE)
|
|
16763
|
+
if (cv === BREAK$1)
|
|
16764
|
+
return BREAK$1;
|
|
16765
|
+
else if (cv === REMOVE$1)
|
|
16582
16766
|
node.value = null;
|
|
16583
16767
|
}
|
|
16584
16768
|
}
|
|
@@ -16619,7 +16803,7 @@ query GetEurekaVizSnapshots(
|
|
|
16619
16803
|
const visitor_ = initVisitor(visitor);
|
|
16620
16804
|
if (isDocument(node)) {
|
|
16621
16805
|
const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
|
|
16622
|
-
if (cd === REMOVE)
|
|
16806
|
+
if (cd === REMOVE$1)
|
|
16623
16807
|
node.contents = null;
|
|
16624
16808
|
}
|
|
16625
16809
|
else
|
|
@@ -16629,11 +16813,11 @@ query GetEurekaVizSnapshots(
|
|
|
16629
16813
|
// namespace using `var`, but then complains about that because
|
|
16630
16814
|
// `unique symbol` must be `const`.
|
|
16631
16815
|
/** Terminate visit traversal completely */
|
|
16632
|
-
visitAsync.BREAK = BREAK;
|
|
16816
|
+
visitAsync.BREAK = BREAK$1;
|
|
16633
16817
|
/** Do not visit the children of the current node */
|
|
16634
|
-
visitAsync.SKIP = SKIP;
|
|
16818
|
+
visitAsync.SKIP = SKIP$1;
|
|
16635
16819
|
/** Remove the current node */
|
|
16636
|
-
visitAsync.REMOVE = REMOVE;
|
|
16820
|
+
visitAsync.REMOVE = REMOVE$1;
|
|
16637
16821
|
async function visitAsync_(key, node, visitor, path) {
|
|
16638
16822
|
const ctrl = await callVisitor(key, node, visitor, path);
|
|
16639
16823
|
if (isNode(ctrl) || isPair(ctrl)) {
|
|
@@ -16641,15 +16825,15 @@ query GetEurekaVizSnapshots(
|
|
|
16641
16825
|
return visitAsync_(key, ctrl, visitor, path);
|
|
16642
16826
|
}
|
|
16643
16827
|
if (typeof ctrl !== 'symbol') {
|
|
16644
|
-
if (isCollection(node)) {
|
|
16828
|
+
if (isCollection$1(node)) {
|
|
16645
16829
|
path = Object.freeze(path.concat(node));
|
|
16646
16830
|
for (let i = 0; i < node.items.length; ++i) {
|
|
16647
16831
|
const ci = await visitAsync_(i, node.items[i], visitor, path);
|
|
16648
16832
|
if (typeof ci === 'number')
|
|
16649
16833
|
i = ci - 1;
|
|
16650
|
-
else if (ci === BREAK)
|
|
16651
|
-
return BREAK;
|
|
16652
|
-
else if (ci === REMOVE) {
|
|
16834
|
+
else if (ci === BREAK$1)
|
|
16835
|
+
return BREAK$1;
|
|
16836
|
+
else if (ci === REMOVE$1) {
|
|
16653
16837
|
node.items.splice(i, 1);
|
|
16654
16838
|
i -= 1;
|
|
16655
16839
|
}
|
|
@@ -16658,14 +16842,14 @@ query GetEurekaVizSnapshots(
|
|
|
16658
16842
|
else if (isPair(node)) {
|
|
16659
16843
|
path = Object.freeze(path.concat(node));
|
|
16660
16844
|
const ck = await visitAsync_('key', node.key, visitor, path);
|
|
16661
|
-
if (ck === BREAK)
|
|
16662
|
-
return BREAK;
|
|
16663
|
-
else if (ck === REMOVE)
|
|
16845
|
+
if (ck === BREAK$1)
|
|
16846
|
+
return BREAK$1;
|
|
16847
|
+
else if (ck === REMOVE$1)
|
|
16664
16848
|
node.key = null;
|
|
16665
16849
|
const cv = await visitAsync_('value', node.value, visitor, path);
|
|
16666
|
-
if (cv === BREAK)
|
|
16667
|
-
return BREAK;
|
|
16668
|
-
else if (cv === REMOVE)
|
|
16850
|
+
if (cv === BREAK$1)
|
|
16851
|
+
return BREAK$1;
|
|
16852
|
+
else if (cv === REMOVE$1)
|
|
16669
16853
|
node.value = null;
|
|
16670
16854
|
}
|
|
16671
16855
|
}
|
|
@@ -16699,7 +16883,7 @@ query GetEurekaVizSnapshots(
|
|
|
16699
16883
|
return visitor.Seq?.(key, node, path);
|
|
16700
16884
|
if (isPair(node))
|
|
16701
16885
|
return visitor.Pair?.(key, node, path);
|
|
16702
|
-
if (isScalar(node))
|
|
16886
|
+
if (isScalar$1(node))
|
|
16703
16887
|
return visitor.Scalar?.(key, node, path);
|
|
16704
16888
|
if (isAlias(node))
|
|
16705
16889
|
return visitor.Alias?.(key, node, path);
|
|
@@ -16707,7 +16891,7 @@ query GetEurekaVizSnapshots(
|
|
|
16707
16891
|
}
|
|
16708
16892
|
function replaceNode(key, path, node) {
|
|
16709
16893
|
const parent = path[path.length - 1];
|
|
16710
|
-
if (isCollection(parent)) {
|
|
16894
|
+
if (isCollection$1(parent)) {
|
|
16711
16895
|
parent.items[key] = node;
|
|
16712
16896
|
}
|
|
16713
16897
|
else if (isPair(parent)) {
|
|
@@ -16877,7 +17061,7 @@ query GetEurekaVizSnapshots(
|
|
|
16877
17061
|
let tagNames;
|
|
16878
17062
|
if (doc && tagEntries.length > 0 && isNode(doc.contents)) {
|
|
16879
17063
|
const tags = {};
|
|
16880
|
-
visit(doc.contents, (_key, node) => {
|
|
17064
|
+
visit$1(doc.contents, (_key, node) => {
|
|
16881
17065
|
if (isNode(node) && node.tag)
|
|
16882
17066
|
tags[node.tag] = true;
|
|
16883
17067
|
});
|
|
@@ -16912,7 +17096,7 @@ query GetEurekaVizSnapshots(
|
|
|
16912
17096
|
}
|
|
16913
17097
|
function anchorNames(root) {
|
|
16914
17098
|
const anchors = new Set();
|
|
16915
|
-
visit(root, {
|
|
17099
|
+
visit$1(root, {
|
|
16916
17100
|
Value(_key, node) {
|
|
16917
17101
|
if (node.anchor)
|
|
16918
17102
|
anchors.add(node.anchor);
|
|
@@ -16951,7 +17135,7 @@ query GetEurekaVizSnapshots(
|
|
|
16951
17135
|
const ref = sourceObjects.get(source);
|
|
16952
17136
|
if (typeof ref === 'object' &&
|
|
16953
17137
|
ref.anchor &&
|
|
16954
|
-
(isScalar(ref.node) || isCollection(ref.node))) {
|
|
17138
|
+
(isScalar$1(ref.node) || isCollection$1(ref.node))) {
|
|
16955
17139
|
ref.node.anchor = ref.anchor;
|
|
16956
17140
|
}
|
|
16957
17141
|
else {
|
|
@@ -17102,10 +17286,10 @@ query GetEurekaVizSnapshots(
|
|
|
17102
17286
|
*/
|
|
17103
17287
|
resolve(doc) {
|
|
17104
17288
|
let found = undefined;
|
|
17105
|
-
visit(doc, {
|
|
17289
|
+
visit$1(doc, {
|
|
17106
17290
|
Node: (_key, node) => {
|
|
17107
17291
|
if (node === this)
|
|
17108
|
-
return visit.BREAK;
|
|
17292
|
+
return visit$1.BREAK;
|
|
17109
17293
|
if (node.anchor === this.source)
|
|
17110
17294
|
found = node;
|
|
17111
17295
|
}
|
|
@@ -17163,7 +17347,7 @@ query GetEurekaVizSnapshots(
|
|
|
17163
17347
|
const anchor = anchors && source && anchors.get(source);
|
|
17164
17348
|
return anchor ? anchor.count * anchor.aliasCount : 0;
|
|
17165
17349
|
}
|
|
17166
|
-
else if (isCollection(node)) {
|
|
17350
|
+
else if (isCollection$1(node)) {
|
|
17167
17351
|
let count = 0;
|
|
17168
17352
|
for (const item of node.items) {
|
|
17169
17353
|
const c = getAliasCount(doc, item, anchors);
|
|
@@ -17183,7 +17367,7 @@ query GetEurekaVizSnapshots(
|
|
|
17183
17367
|
const isScalarValue = (value) => !value || (typeof value !== 'function' && typeof value !== 'object');
|
|
17184
17368
|
class Scalar extends NodeBase {
|
|
17185
17369
|
constructor(value) {
|
|
17186
|
-
super(SCALAR);
|
|
17370
|
+
super(SCALAR$1);
|
|
17187
17371
|
this.value = value;
|
|
17188
17372
|
}
|
|
17189
17373
|
toJSON(arg, ctx) {
|
|
@@ -17345,7 +17529,7 @@ query GetEurekaVizSnapshots(
|
|
|
17345
17529
|
else {
|
|
17346
17530
|
const [key, ...rest] = path;
|
|
17347
17531
|
const node = this.get(key, true);
|
|
17348
|
-
if (isCollection(node))
|
|
17532
|
+
if (isCollection$1(node))
|
|
17349
17533
|
node.addIn(rest, value);
|
|
17350
17534
|
else if (node === undefined && this.schema)
|
|
17351
17535
|
this.set(key, collectionFromPath(this.schema, rest, value));
|
|
@@ -17362,7 +17546,7 @@ query GetEurekaVizSnapshots(
|
|
|
17362
17546
|
if (rest.length === 0)
|
|
17363
17547
|
return this.delete(key);
|
|
17364
17548
|
const node = this.get(key, true);
|
|
17365
|
-
if (isCollection(node))
|
|
17549
|
+
if (isCollection$1(node))
|
|
17366
17550
|
return node.deleteIn(rest);
|
|
17367
17551
|
else
|
|
17368
17552
|
throw new Error(`Expected YAML collection at ${key}. Remaining path: ${rest}`);
|
|
@@ -17376,9 +17560,9 @@ query GetEurekaVizSnapshots(
|
|
|
17376
17560
|
const [key, ...rest] = path;
|
|
17377
17561
|
const node = this.get(key, true);
|
|
17378
17562
|
if (rest.length === 0)
|
|
17379
|
-
return !keepScalar && isScalar(node) ? node.value : node;
|
|
17563
|
+
return !keepScalar && isScalar$1(node) ? node.value : node;
|
|
17380
17564
|
else
|
|
17381
|
-
return isCollection(node) ? node.getIn(rest, keepScalar) : undefined;
|
|
17565
|
+
return isCollection$1(node) ? node.getIn(rest, keepScalar) : undefined;
|
|
17382
17566
|
}
|
|
17383
17567
|
hasAllNullValues(allowScalar) {
|
|
17384
17568
|
return this.items.every(node => {
|
|
@@ -17387,7 +17571,7 @@ query GetEurekaVizSnapshots(
|
|
|
17387
17571
|
const n = node.value;
|
|
17388
17572
|
return (n == null ||
|
|
17389
17573
|
(allowScalar &&
|
|
17390
|
-
isScalar(n) &&
|
|
17574
|
+
isScalar$1(n) &&
|
|
17391
17575
|
n.value == null &&
|
|
17392
17576
|
!n.commentBefore &&
|
|
17393
17577
|
!n.comment &&
|
|
@@ -17402,7 +17586,7 @@ query GetEurekaVizSnapshots(
|
|
|
17402
17586
|
if (rest.length === 0)
|
|
17403
17587
|
return this.has(key);
|
|
17404
17588
|
const node = this.get(key, true);
|
|
17405
|
-
return isCollection(node) ? node.hasIn(rest) : false;
|
|
17589
|
+
return isCollection$1(node) ? node.hasIn(rest) : false;
|
|
17406
17590
|
}
|
|
17407
17591
|
/**
|
|
17408
17592
|
* Sets a value in this collection. For `!!set`, `value` needs to be a
|
|
@@ -17415,7 +17599,7 @@ query GetEurekaVizSnapshots(
|
|
|
17415
17599
|
}
|
|
17416
17600
|
else {
|
|
17417
17601
|
const node = this.get(key, true);
|
|
17418
|
-
if (isCollection(node))
|
|
17602
|
+
if (isCollection$1(node))
|
|
17419
17603
|
node.setIn(rest, value);
|
|
17420
17604
|
else if (node === undefined && this.schema)
|
|
17421
17605
|
this.set(key, collectionFromPath(this.schema, rest, value));
|
|
@@ -17962,7 +18146,7 @@ query GetEurekaVizSnapshots(
|
|
|
17962
18146
|
}
|
|
17963
18147
|
let tagObj = undefined;
|
|
17964
18148
|
let obj;
|
|
17965
|
-
if (isScalar(item)) {
|
|
18149
|
+
if (isScalar$1(item)) {
|
|
17966
18150
|
obj = item.value;
|
|
17967
18151
|
const match = tags.filter(t => t.identify?.(obj));
|
|
17968
18152
|
tagObj =
|
|
@@ -17983,7 +18167,7 @@ query GetEurekaVizSnapshots(
|
|
|
17983
18167
|
if (!doc.directives)
|
|
17984
18168
|
return '';
|
|
17985
18169
|
const props = [];
|
|
17986
|
-
const anchor = (isScalar(node) || isCollection(node)) && node.anchor;
|
|
18170
|
+
const anchor = (isScalar$1(node) || isCollection$1(node)) && node.anchor;
|
|
17987
18171
|
if (anchor && anchorIsValid(anchor)) {
|
|
17988
18172
|
anchors.add(anchor);
|
|
17989
18173
|
props.push(`&${anchor}`);
|
|
@@ -17993,7 +18177,7 @@ query GetEurekaVizSnapshots(
|
|
|
17993
18177
|
props.push(doc.directives.tagString(tag));
|
|
17994
18178
|
return props.join(' ');
|
|
17995
18179
|
}
|
|
17996
|
-
function stringify(item, ctx, onComment, onChompKeep) {
|
|
18180
|
+
function stringify$2(item, ctx, onComment, onChompKeep) {
|
|
17997
18181
|
if (isPair(item))
|
|
17998
18182
|
return item.toString(ctx, onComment, onChompKeep);
|
|
17999
18183
|
if (isAlias(item)) {
|
|
@@ -18021,12 +18205,12 @@ query GetEurekaVizSnapshots(
|
|
|
18021
18205
|
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
18022
18206
|
const str = typeof tagObj.stringify === 'function'
|
|
18023
18207
|
? tagObj.stringify(node, ctx, onComment, onChompKeep)
|
|
18024
|
-
: isScalar(node)
|
|
18208
|
+
: isScalar$1(node)
|
|
18025
18209
|
? stringifyString(node, ctx, onComment, onChompKeep)
|
|
18026
18210
|
: node.toString(ctx, onComment, onChompKeep);
|
|
18027
18211
|
if (!props)
|
|
18028
18212
|
return str;
|
|
18029
|
-
return isScalar(node) || str[0] === '{' || str[0] === '['
|
|
18213
|
+
return isScalar$1(node) || str[0] === '{' || str[0] === '['
|
|
18030
18214
|
? `${props} ${str}`
|
|
18031
18215
|
: `${props}\n${ctx.indent}${str}`;
|
|
18032
18216
|
}
|
|
@@ -18038,7 +18222,7 @@ query GetEurekaVizSnapshots(
|
|
|
18038
18222
|
if (keyComment) {
|
|
18039
18223
|
throw new Error('With simple keys, key nodes cannot have comments');
|
|
18040
18224
|
}
|
|
18041
|
-
if (isCollection(key) || (!isNode(key) && typeof key === 'object')) {
|
|
18225
|
+
if (isCollection$1(key) || (!isNode(key) && typeof key === 'object')) {
|
|
18042
18226
|
const msg = 'With simple keys, collection cannot be used as a key value';
|
|
18043
18227
|
throw new Error(msg);
|
|
18044
18228
|
}
|
|
@@ -18046,8 +18230,8 @@ query GetEurekaVizSnapshots(
|
|
|
18046
18230
|
let explicitKey = !simpleKeys &&
|
|
18047
18231
|
(!key ||
|
|
18048
18232
|
(keyComment && value == null && !ctx.inFlow) ||
|
|
18049
|
-
isCollection(key) ||
|
|
18050
|
-
(isScalar(key)
|
|
18233
|
+
isCollection$1(key) ||
|
|
18234
|
+
(isScalar$1(key)
|
|
18051
18235
|
? key.type === Scalar.BLOCK_FOLDED || key.type === Scalar.BLOCK_LITERAL
|
|
18052
18236
|
: typeof key === 'object'));
|
|
18053
18237
|
ctx = Object.assign({}, ctx, {
|
|
@@ -18057,7 +18241,7 @@ query GetEurekaVizSnapshots(
|
|
|
18057
18241
|
});
|
|
18058
18242
|
let keyCommentDone = false;
|
|
18059
18243
|
let chompKeep = false;
|
|
18060
|
-
let str = stringify(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
|
|
18244
|
+
let str = stringify$2(key, ctx, () => (keyCommentDone = true), () => (chompKeep = true));
|
|
18061
18245
|
if (!explicitKey && !ctx.inFlow && str.length > 1024) {
|
|
18062
18246
|
if (simpleKeys)
|
|
18063
18247
|
throw new Error('With simple keys, single line scalar must not span more than 1024 characters');
|
|
@@ -18105,7 +18289,7 @@ query GetEurekaVizSnapshots(
|
|
|
18105
18289
|
value = doc.createNode(value);
|
|
18106
18290
|
}
|
|
18107
18291
|
ctx.implicitKey = false;
|
|
18108
|
-
if (!explicitKey && !keyComment && isScalar(value))
|
|
18292
|
+
if (!explicitKey && !keyComment && isScalar$1(value))
|
|
18109
18293
|
ctx.indentAtStart = str.length + 1;
|
|
18110
18294
|
chompKeep = false;
|
|
18111
18295
|
if (!indentSeq &&
|
|
@@ -18120,7 +18304,7 @@ query GetEurekaVizSnapshots(
|
|
|
18120
18304
|
ctx.indent = ctx.indent.substring(2);
|
|
18121
18305
|
}
|
|
18122
18306
|
let valueCommentDone = false;
|
|
18123
|
-
const valueStr = stringify(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
|
|
18307
|
+
const valueStr = stringify$2(value, ctx, () => (valueCommentDone = true), () => (chompKeep = true));
|
|
18124
18308
|
let ws = ' ';
|
|
18125
18309
|
if (keyComment || vsb || vcb) {
|
|
18126
18310
|
ws = vsb ? '\n' : '';
|
|
@@ -18136,7 +18320,7 @@ query GetEurekaVizSnapshots(
|
|
|
18136
18320
|
ws += `\n${ctx.indent}`;
|
|
18137
18321
|
}
|
|
18138
18322
|
}
|
|
18139
|
-
else if (!explicitKey && isCollection(value)) {
|
|
18323
|
+
else if (!explicitKey && isCollection$1(value)) {
|
|
18140
18324
|
const vs0 = valueStr[0];
|
|
18141
18325
|
const nl0 = valueStr.indexOf('\n');
|
|
18142
18326
|
const hasNewline = nl0 !== -1;
|
|
@@ -18222,7 +18406,7 @@ query GetEurekaVizSnapshots(
|
|
|
18222
18406
|
return map;
|
|
18223
18407
|
}
|
|
18224
18408
|
const isMergeKey = (key) => key === MERGE_KEY ||
|
|
18225
|
-
(isScalar(key) &&
|
|
18409
|
+
(isScalar$1(key) &&
|
|
18226
18410
|
key.value === MERGE_KEY &&
|
|
18227
18411
|
(!key.type || key.type === Scalar.PLAIN));
|
|
18228
18412
|
// If the value associated with a merge key is a single mapping node, each of
|
|
@@ -18340,7 +18524,7 @@ query GetEurekaVizSnapshots(
|
|
|
18340
18524
|
}
|
|
18341
18525
|
}
|
|
18342
18526
|
chompKeep = false;
|
|
18343
|
-
let str = stringify(item, itemCtx, () => (comment = null), () => (chompKeep = true));
|
|
18527
|
+
let str = stringify$2(item, itemCtx, () => (comment = null), () => (chompKeep = true));
|
|
18344
18528
|
if (comment)
|
|
18345
18529
|
str += lineComment(str, itemIndent, commentString(comment));
|
|
18346
18530
|
if (chompKeep && comment)
|
|
@@ -18410,7 +18594,7 @@ query GetEurekaVizSnapshots(
|
|
|
18410
18594
|
}
|
|
18411
18595
|
if (comment)
|
|
18412
18596
|
reqNewline = true;
|
|
18413
|
-
let str = stringify(item, itemCtx, () => (comment = null));
|
|
18597
|
+
let str = stringify$2(item, itemCtx, () => (comment = null));
|
|
18414
18598
|
if (i < items.length - 1)
|
|
18415
18599
|
str += ',';
|
|
18416
18600
|
if (comment)
|
|
@@ -18450,12 +18634,12 @@ query GetEurekaVizSnapshots(
|
|
|
18450
18634
|
}
|
|
18451
18635
|
|
|
18452
18636
|
function findPair(items, key) {
|
|
18453
|
-
const k = isScalar(key) ? key.value : key;
|
|
18637
|
+
const k = isScalar$1(key) ? key.value : key;
|
|
18454
18638
|
for (const it of items) {
|
|
18455
18639
|
if (isPair(it)) {
|
|
18456
18640
|
if (it.key === key || it.key === k)
|
|
18457
18641
|
return it;
|
|
18458
|
-
if (isScalar(it.key) && it.key.value === k)
|
|
18642
|
+
if (isScalar$1(it.key) && it.key.value === k)
|
|
18459
18643
|
return it;
|
|
18460
18644
|
}
|
|
18461
18645
|
}
|
|
@@ -18519,7 +18703,7 @@ query GetEurekaVizSnapshots(
|
|
|
18519
18703
|
if (!overwrite)
|
|
18520
18704
|
throw new Error(`Key ${_pair.key} already set`);
|
|
18521
18705
|
// For scalars, keep the old node & its comments and anchors
|
|
18522
|
-
if (isScalar(prev.value) && isScalarValue(_pair.value))
|
|
18706
|
+
if (isScalar$1(prev.value) && isScalarValue(_pair.value))
|
|
18523
18707
|
prev.value.value = _pair.value;
|
|
18524
18708
|
else
|
|
18525
18709
|
prev.value = _pair.value;
|
|
@@ -18545,7 +18729,7 @@ query GetEurekaVizSnapshots(
|
|
|
18545
18729
|
get(key, keepScalar) {
|
|
18546
18730
|
const it = findPair(this.items, key);
|
|
18547
18731
|
const node = it?.value;
|
|
18548
|
-
return (!keepScalar && isScalar(node) ? node.value : node) ?? undefined;
|
|
18732
|
+
return (!keepScalar && isScalar$1(node) ? node.value : node) ?? undefined;
|
|
18549
18733
|
}
|
|
18550
18734
|
has(key) {
|
|
18551
18735
|
return !!findPair(this.items, key);
|
|
@@ -18629,7 +18813,7 @@ query GetEurekaVizSnapshots(
|
|
|
18629
18813
|
if (typeof idx !== 'number')
|
|
18630
18814
|
return undefined;
|
|
18631
18815
|
const it = this.items[idx];
|
|
18632
|
-
return !keepScalar && isScalar(it) ? it.value : it;
|
|
18816
|
+
return !keepScalar && isScalar$1(it) ? it.value : it;
|
|
18633
18817
|
}
|
|
18634
18818
|
/**
|
|
18635
18819
|
* Checks if the collection includes a value with the key `key`.
|
|
@@ -18653,7 +18837,7 @@ query GetEurekaVizSnapshots(
|
|
|
18653
18837
|
if (typeof idx !== 'number')
|
|
18654
18838
|
throw new Error(`Expected a valid index, not ${key}.`);
|
|
18655
18839
|
const prev = this.items[idx];
|
|
18656
|
-
if (isScalar(prev) && isScalarValue(value))
|
|
18840
|
+
if (isScalar$1(prev) && isScalarValue(value))
|
|
18657
18841
|
prev.value = value;
|
|
18658
18842
|
else
|
|
18659
18843
|
this.items[idx] = value;
|
|
@@ -18695,7 +18879,7 @@ query GetEurekaVizSnapshots(
|
|
|
18695
18879
|
}
|
|
18696
18880
|
}
|
|
18697
18881
|
function asItemIndex(key) {
|
|
18698
|
-
let idx = isScalar(key) ? key.value : key;
|
|
18882
|
+
let idx = isScalar$1(key) ? key.value : key;
|
|
18699
18883
|
if (idx && typeof idx === 'string')
|
|
18700
18884
|
idx = Number(idx);
|
|
18701
18885
|
return typeof idx === 'number' && Number.isInteger(idx) && idx >= 0
|
|
@@ -18727,26 +18911,26 @@ query GetEurekaVizSnapshots(
|
|
|
18727
18911
|
}
|
|
18728
18912
|
};
|
|
18729
18913
|
|
|
18730
|
-
const nullTag
|
|
18914
|
+
const nullTag = {
|
|
18731
18915
|
identify: value => value == null,
|
|
18732
18916
|
createNode: () => new Scalar(null),
|
|
18733
18917
|
default: true,
|
|
18734
18918
|
tag: 'tag:yaml.org,2002:null',
|
|
18735
18919
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
18736
18920
|
resolve: () => new Scalar(null),
|
|
18737
|
-
stringify: ({ source }, ctx) => typeof source === 'string' && nullTag
|
|
18921
|
+
stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
|
|
18738
18922
|
? source
|
|
18739
18923
|
: ctx.options.nullStr
|
|
18740
18924
|
};
|
|
18741
18925
|
|
|
18742
|
-
const boolTag
|
|
18926
|
+
const boolTag = {
|
|
18743
18927
|
identify: value => typeof value === 'boolean',
|
|
18744
18928
|
default: true,
|
|
18745
18929
|
tag: 'tag:yaml.org,2002:bool',
|
|
18746
18930
|
test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
|
|
18747
18931
|
resolve: str => new Scalar(str[0] === 't' || str[0] === 'T'),
|
|
18748
18932
|
stringify({ source, value }, ctx) {
|
|
18749
|
-
if (source && boolTag
|
|
18933
|
+
if (source && boolTag.test.test(source)) {
|
|
18750
18934
|
const sv = source[0] === 't' || source[0] === 'T';
|
|
18751
18935
|
if (value === sv)
|
|
18752
18936
|
return source;
|
|
@@ -18778,7 +18962,7 @@ query GetEurekaVizSnapshots(
|
|
|
18778
18962
|
return n;
|
|
18779
18963
|
}
|
|
18780
18964
|
|
|
18781
|
-
const floatNaN = {
|
|
18965
|
+
const floatNaN$1 = {
|
|
18782
18966
|
identify: value => typeof value === 'number',
|
|
18783
18967
|
default: true,
|
|
18784
18968
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -18790,7 +18974,7 @@ query GetEurekaVizSnapshots(
|
|
|
18790
18974
|
: Number.POSITIVE_INFINITY,
|
|
18791
18975
|
stringify: stringifyNumber
|
|
18792
18976
|
};
|
|
18793
|
-
const floatExp = {
|
|
18977
|
+
const floatExp$1 = {
|
|
18794
18978
|
identify: value => typeof value === 'number',
|
|
18795
18979
|
default: true,
|
|
18796
18980
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -18802,7 +18986,7 @@ query GetEurekaVizSnapshots(
|
|
|
18802
18986
|
return isFinite(num) ? num.toExponential() : stringifyNumber(node);
|
|
18803
18987
|
}
|
|
18804
18988
|
};
|
|
18805
|
-
const float = {
|
|
18989
|
+
const float$1 = {
|
|
18806
18990
|
identify: value => typeof value === 'number',
|
|
18807
18991
|
default: true,
|
|
18808
18992
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -18817,53 +19001,53 @@ query GetEurekaVizSnapshots(
|
|
|
18817
19001
|
stringify: stringifyNumber
|
|
18818
19002
|
};
|
|
18819
19003
|
|
|
18820
|
-
const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
|
18821
|
-
const intResolve = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
|
|
18822
|
-
function intStringify(node, radix, prefix) {
|
|
19004
|
+
const intIdentify$2 = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
|
19005
|
+
const intResolve$1 = (str, offset, radix, { intAsBigInt }) => (intAsBigInt ? BigInt(str) : parseInt(str.substring(offset), radix));
|
|
19006
|
+
function intStringify$1(node, radix, prefix) {
|
|
18823
19007
|
const { value } = node;
|
|
18824
|
-
if (intIdentify(value) && value >= 0)
|
|
19008
|
+
if (intIdentify$2(value) && value >= 0)
|
|
18825
19009
|
return prefix + value.toString(radix);
|
|
18826
19010
|
return stringifyNumber(node);
|
|
18827
19011
|
}
|
|
18828
|
-
const intOct = {
|
|
18829
|
-
identify: value => intIdentify(value) && value >= 0,
|
|
19012
|
+
const intOct$1 = {
|
|
19013
|
+
identify: value => intIdentify$2(value) && value >= 0,
|
|
18830
19014
|
default: true,
|
|
18831
19015
|
tag: 'tag:yaml.org,2002:int',
|
|
18832
19016
|
format: 'OCT',
|
|
18833
19017
|
test: /^0o[0-7]+$/,
|
|
18834
|
-
resolve: (str, _onError, opt) => intResolve(str, 2, 8, opt),
|
|
18835
|
-
stringify: node => intStringify(node, 8, '0o')
|
|
19018
|
+
resolve: (str, _onError, opt) => intResolve$1(str, 2, 8, opt),
|
|
19019
|
+
stringify: node => intStringify$1(node, 8, '0o')
|
|
18836
19020
|
};
|
|
18837
|
-
const int = {
|
|
18838
|
-
identify: intIdentify,
|
|
19021
|
+
const int$1 = {
|
|
19022
|
+
identify: intIdentify$2,
|
|
18839
19023
|
default: true,
|
|
18840
19024
|
tag: 'tag:yaml.org,2002:int',
|
|
18841
19025
|
test: /^[-+]?[0-9]+$/,
|
|
18842
|
-
resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
|
|
19026
|
+
resolve: (str, _onError, opt) => intResolve$1(str, 0, 10, opt),
|
|
18843
19027
|
stringify: stringifyNumber
|
|
18844
19028
|
};
|
|
18845
|
-
const intHex = {
|
|
18846
|
-
identify: value => intIdentify(value) && value >= 0,
|
|
19029
|
+
const intHex$1 = {
|
|
19030
|
+
identify: value => intIdentify$2(value) && value >= 0,
|
|
18847
19031
|
default: true,
|
|
18848
19032
|
tag: 'tag:yaml.org,2002:int',
|
|
18849
19033
|
format: 'HEX',
|
|
18850
19034
|
test: /^0x[0-9a-fA-F]+$/,
|
|
18851
|
-
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
18852
|
-
stringify: node => intStringify(node, 16, '0x')
|
|
19035
|
+
resolve: (str, _onError, opt) => intResolve$1(str, 2, 16, opt),
|
|
19036
|
+
stringify: node => intStringify$1(node, 16, '0x')
|
|
18853
19037
|
};
|
|
18854
19038
|
|
|
18855
|
-
const schema = [
|
|
19039
|
+
const schema$2 = [
|
|
18856
19040
|
map,
|
|
18857
19041
|
seq,
|
|
18858
19042
|
string,
|
|
18859
|
-
nullTag
|
|
18860
|
-
boolTag
|
|
18861
|
-
intOct,
|
|
18862
|
-
int,
|
|
18863
|
-
intHex,
|
|
18864
|
-
floatNaN,
|
|
18865
|
-
floatExp,
|
|
18866
|
-
float
|
|
19043
|
+
nullTag,
|
|
19044
|
+
boolTag,
|
|
19045
|
+
intOct$1,
|
|
19046
|
+
int$1,
|
|
19047
|
+
intHex$1,
|
|
19048
|
+
floatNaN$1,
|
|
19049
|
+
floatExp$1,
|
|
19050
|
+
float$1
|
|
18867
19051
|
];
|
|
18868
19052
|
|
|
18869
19053
|
function intIdentify$1(value) {
|
|
@@ -19110,7 +19294,7 @@ query GetEurekaVizSnapshots(
|
|
|
19110
19294
|
const pairs = resolvePairs(seq, onError);
|
|
19111
19295
|
const seenKeys = [];
|
|
19112
19296
|
for (const { key } of pairs.items) {
|
|
19113
|
-
if (isScalar(key)) {
|
|
19297
|
+
if (isScalar$1(key)) {
|
|
19114
19298
|
if (seenKeys.includes(key.value)) {
|
|
19115
19299
|
onError(`Ordered maps must not include duplicate keys: ${key.value}`);
|
|
19116
19300
|
}
|
|
@@ -19147,7 +19331,7 @@ query GetEurekaVizSnapshots(
|
|
|
19147
19331
|
stringify: boolStringify
|
|
19148
19332
|
};
|
|
19149
19333
|
|
|
19150
|
-
const floatNaN
|
|
19334
|
+
const floatNaN = {
|
|
19151
19335
|
identify: value => typeof value === 'number',
|
|
19152
19336
|
default: true,
|
|
19153
19337
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -19159,7 +19343,7 @@ query GetEurekaVizSnapshots(
|
|
|
19159
19343
|
: Number.POSITIVE_INFINITY,
|
|
19160
19344
|
stringify: stringifyNumber
|
|
19161
19345
|
};
|
|
19162
|
-
const floatExp
|
|
19346
|
+
const floatExp = {
|
|
19163
19347
|
identify: value => typeof value === 'number',
|
|
19164
19348
|
default: true,
|
|
19165
19349
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -19171,7 +19355,7 @@ query GetEurekaVizSnapshots(
|
|
|
19171
19355
|
return isFinite(num) ? num.toExponential() : stringifyNumber(node);
|
|
19172
19356
|
}
|
|
19173
19357
|
};
|
|
19174
|
-
const float
|
|
19358
|
+
const float = {
|
|
19175
19359
|
identify: value => typeof value === 'number',
|
|
19176
19360
|
default: true,
|
|
19177
19361
|
tag: 'tag:yaml.org,2002:float',
|
|
@@ -19189,8 +19373,8 @@ query GetEurekaVizSnapshots(
|
|
|
19189
19373
|
stringify: stringifyNumber
|
|
19190
19374
|
};
|
|
19191
19375
|
|
|
19192
|
-
const intIdentify
|
|
19193
|
-
function intResolve
|
|
19376
|
+
const intIdentify = (value) => typeof value === 'bigint' || Number.isInteger(value);
|
|
19377
|
+
function intResolve(str, offset, radix, { intAsBigInt }) {
|
|
19194
19378
|
const sign = str[0];
|
|
19195
19379
|
if (sign === '-' || sign === '+')
|
|
19196
19380
|
offset += 1;
|
|
@@ -19213,48 +19397,48 @@ query GetEurekaVizSnapshots(
|
|
|
19213
19397
|
const n = parseInt(str, radix);
|
|
19214
19398
|
return sign === '-' ? -1 * n : n;
|
|
19215
19399
|
}
|
|
19216
|
-
function intStringify
|
|
19400
|
+
function intStringify(node, radix, prefix) {
|
|
19217
19401
|
const { value } = node;
|
|
19218
|
-
if (intIdentify
|
|
19402
|
+
if (intIdentify(value)) {
|
|
19219
19403
|
const str = value.toString(radix);
|
|
19220
19404
|
return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
|
|
19221
19405
|
}
|
|
19222
19406
|
return stringifyNumber(node);
|
|
19223
19407
|
}
|
|
19224
19408
|
const intBin = {
|
|
19225
|
-
identify: intIdentify
|
|
19409
|
+
identify: intIdentify,
|
|
19226
19410
|
default: true,
|
|
19227
19411
|
tag: 'tag:yaml.org,2002:int',
|
|
19228
19412
|
format: 'BIN',
|
|
19229
19413
|
test: /^[-+]?0b[0-1_]+$/,
|
|
19230
|
-
resolve: (str, _onError, opt) => intResolve
|
|
19231
|
-
stringify: node => intStringify
|
|
19414
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 2, opt),
|
|
19415
|
+
stringify: node => intStringify(node, 2, '0b')
|
|
19232
19416
|
};
|
|
19233
|
-
const intOct
|
|
19234
|
-
identify: intIdentify
|
|
19417
|
+
const intOct = {
|
|
19418
|
+
identify: intIdentify,
|
|
19235
19419
|
default: true,
|
|
19236
19420
|
tag: 'tag:yaml.org,2002:int',
|
|
19237
19421
|
format: 'OCT',
|
|
19238
19422
|
test: /^[-+]?0[0-7_]+$/,
|
|
19239
|
-
resolve: (str, _onError, opt) => intResolve
|
|
19240
|
-
stringify: node => intStringify
|
|
19423
|
+
resolve: (str, _onError, opt) => intResolve(str, 1, 8, opt),
|
|
19424
|
+
stringify: node => intStringify(node, 8, '0')
|
|
19241
19425
|
};
|
|
19242
|
-
const int
|
|
19243
|
-
identify: intIdentify
|
|
19426
|
+
const int = {
|
|
19427
|
+
identify: intIdentify,
|
|
19244
19428
|
default: true,
|
|
19245
19429
|
tag: 'tag:yaml.org,2002:int',
|
|
19246
19430
|
test: /^[-+]?[0-9][0-9_]*$/,
|
|
19247
|
-
resolve: (str, _onError, opt) => intResolve
|
|
19431
|
+
resolve: (str, _onError, opt) => intResolve(str, 0, 10, opt),
|
|
19248
19432
|
stringify: stringifyNumber
|
|
19249
19433
|
};
|
|
19250
|
-
const intHex
|
|
19251
|
-
identify: intIdentify
|
|
19434
|
+
const intHex = {
|
|
19435
|
+
identify: intIdentify,
|
|
19252
19436
|
default: true,
|
|
19253
19437
|
tag: 'tag:yaml.org,2002:int',
|
|
19254
19438
|
format: 'HEX',
|
|
19255
19439
|
test: /^[-+]?0x[0-9a-fA-F_]+$/,
|
|
19256
|
-
resolve: (str, _onError, opt) => intResolve
|
|
19257
|
-
stringify: node => intStringify
|
|
19440
|
+
resolve: (str, _onError, opt) => intResolve(str, 2, 16, opt),
|
|
19441
|
+
stringify: node => intStringify(node, 16, '0x')
|
|
19258
19442
|
};
|
|
19259
19443
|
|
|
19260
19444
|
class YAMLSet extends YAMLMap {
|
|
@@ -19285,7 +19469,7 @@ query GetEurekaVizSnapshots(
|
|
|
19285
19469
|
get(key, keepPair) {
|
|
19286
19470
|
const pair = findPair(this.items, key);
|
|
19287
19471
|
return !keepPair && isPair(pair)
|
|
19288
|
-
? isScalar(pair.key)
|
|
19472
|
+
? isScalar$1(pair.key)
|
|
19289
19473
|
? pair.key.value
|
|
19290
19474
|
: pair.key
|
|
19291
19475
|
: pair;
|
|
@@ -19443,20 +19627,20 @@ query GetEurekaVizSnapshots(
|
|
|
19443
19627
|
stringify: ({ value }) => value.toISOString().replace(/((T00:00)?:00)?\.000Z$/, '')
|
|
19444
19628
|
};
|
|
19445
19629
|
|
|
19446
|
-
const schema
|
|
19630
|
+
const schema = [
|
|
19447
19631
|
map,
|
|
19448
19632
|
seq,
|
|
19449
19633
|
string,
|
|
19450
|
-
nullTag
|
|
19634
|
+
nullTag,
|
|
19451
19635
|
trueTag,
|
|
19452
19636
|
falseTag,
|
|
19453
19637
|
intBin,
|
|
19454
|
-
intOct
|
|
19455
|
-
int
|
|
19456
|
-
intHex
|
|
19457
|
-
floatNaN
|
|
19458
|
-
floatExp
|
|
19459
|
-
float
|
|
19638
|
+
intOct,
|
|
19639
|
+
int,
|
|
19640
|
+
intHex,
|
|
19641
|
+
floatNaN,
|
|
19642
|
+
floatExp,
|
|
19643
|
+
float,
|
|
19460
19644
|
binary,
|
|
19461
19645
|
omap,
|
|
19462
19646
|
pairs,
|
|
@@ -19467,25 +19651,25 @@ query GetEurekaVizSnapshots(
|
|
|
19467
19651
|
];
|
|
19468
19652
|
|
|
19469
19653
|
const schemas = new Map([
|
|
19470
|
-
['core', schema],
|
|
19654
|
+
['core', schema$2],
|
|
19471
19655
|
['failsafe', [map, seq, string]],
|
|
19472
19656
|
['json', schema$1],
|
|
19473
|
-
['yaml11', schema
|
|
19474
|
-
['yaml-1.1', schema
|
|
19657
|
+
['yaml11', schema],
|
|
19658
|
+
['yaml-1.1', schema]
|
|
19475
19659
|
]);
|
|
19476
19660
|
const tagsByName = {
|
|
19477
19661
|
binary,
|
|
19478
|
-
bool: boolTag
|
|
19479
|
-
float,
|
|
19480
|
-
floatExp,
|
|
19481
|
-
floatNaN,
|
|
19662
|
+
bool: boolTag,
|
|
19663
|
+
float: float$1,
|
|
19664
|
+
floatExp: floatExp$1,
|
|
19665
|
+
floatNaN: floatNaN$1,
|
|
19482
19666
|
floatTime,
|
|
19483
|
-
int,
|
|
19484
|
-
intHex,
|
|
19485
|
-
intOct,
|
|
19667
|
+
int: int$1,
|
|
19668
|
+
intHex: intHex$1,
|
|
19669
|
+
intOct: intOct$1,
|
|
19486
19670
|
intTime,
|
|
19487
19671
|
map,
|
|
19488
|
-
null: nullTag
|
|
19672
|
+
null: nullTag,
|
|
19489
19673
|
omap,
|
|
19490
19674
|
pairs,
|
|
19491
19675
|
seq,
|
|
@@ -19546,7 +19730,7 @@ query GetEurekaVizSnapshots(
|
|
|
19546
19730
|
this.tags = getTags(customTags, this.name);
|
|
19547
19731
|
this.toStringOptions = toStringDefaults ?? null;
|
|
19548
19732
|
Object.defineProperty(this, MAP, { value: map });
|
|
19549
|
-
Object.defineProperty(this, SCALAR, { value: string });
|
|
19733
|
+
Object.defineProperty(this, SCALAR$1, { value: string });
|
|
19550
19734
|
Object.defineProperty(this, SEQ, { value: seq });
|
|
19551
19735
|
// Used by createMap()
|
|
19552
19736
|
this.sortMapEntries =
|
|
@@ -19600,7 +19784,7 @@ query GetEurekaVizSnapshots(
|
|
|
19600
19784
|
contentComment = doc.contents.comment;
|
|
19601
19785
|
}
|
|
19602
19786
|
const onChompKeep = contentComment ? undefined : () => (chompKeep = true);
|
|
19603
|
-
let body = stringify(doc.contents, ctx, () => (contentComment = null), onChompKeep);
|
|
19787
|
+
let body = stringify$2(doc.contents, ctx, () => (contentComment = null), onChompKeep);
|
|
19604
19788
|
if (contentComment)
|
|
19605
19789
|
body += lineComment(body, '', commentString(contentComment));
|
|
19606
19790
|
if ((body[0] === '|' || body[0] === '>') &&
|
|
@@ -19613,7 +19797,7 @@ query GetEurekaVizSnapshots(
|
|
|
19613
19797
|
lines.push(body);
|
|
19614
19798
|
}
|
|
19615
19799
|
else {
|
|
19616
|
-
lines.push(stringify(doc.contents, ctx));
|
|
19800
|
+
lines.push(stringify$2(doc.contents, ctx));
|
|
19617
19801
|
}
|
|
19618
19802
|
if (doc.directives?.docEnd) {
|
|
19619
19803
|
if (doc.comment) {
|
|
@@ -19769,7 +19953,7 @@ query GetEurekaVizSnapshots(
|
|
|
19769
19953
|
sourceObjects
|
|
19770
19954
|
};
|
|
19771
19955
|
const node = createNode(value, tag, ctx);
|
|
19772
|
-
if (flow && isCollection(node))
|
|
19956
|
+
if (flow && isCollection$1(node))
|
|
19773
19957
|
node.flow = true;
|
|
19774
19958
|
setAnchors();
|
|
19775
19959
|
return node;
|
|
@@ -19812,7 +19996,7 @@ query GetEurekaVizSnapshots(
|
|
|
19812
19996
|
* `true` (collections are always returned intact).
|
|
19813
19997
|
*/
|
|
19814
19998
|
get(key, keepScalar) {
|
|
19815
|
-
return isCollection(this.contents)
|
|
19999
|
+
return isCollection$1(this.contents)
|
|
19816
20000
|
? this.contents.get(key, keepScalar)
|
|
19817
20001
|
: undefined;
|
|
19818
20002
|
}
|
|
@@ -19823,10 +20007,10 @@ query GetEurekaVizSnapshots(
|
|
|
19823
20007
|
*/
|
|
19824
20008
|
getIn(path, keepScalar) {
|
|
19825
20009
|
if (isEmptyPath(path))
|
|
19826
|
-
return !keepScalar && isScalar(this.contents)
|
|
20010
|
+
return !keepScalar && isScalar$1(this.contents)
|
|
19827
20011
|
? this.contents.value
|
|
19828
20012
|
: this.contents;
|
|
19829
|
-
return isCollection(this.contents)
|
|
20013
|
+
return isCollection$1(this.contents)
|
|
19830
20014
|
? this.contents.getIn(path, keepScalar)
|
|
19831
20015
|
: undefined;
|
|
19832
20016
|
}
|
|
@@ -19834,7 +20018,7 @@ query GetEurekaVizSnapshots(
|
|
|
19834
20018
|
* Checks if the document includes a value with the key `key`.
|
|
19835
20019
|
*/
|
|
19836
20020
|
has(key) {
|
|
19837
|
-
return isCollection(this.contents) ? this.contents.has(key) : false;
|
|
20021
|
+
return isCollection$1(this.contents) ? this.contents.has(key) : false;
|
|
19838
20022
|
}
|
|
19839
20023
|
/**
|
|
19840
20024
|
* Checks if the document includes a value at `path`.
|
|
@@ -19842,7 +20026,7 @@ query GetEurekaVizSnapshots(
|
|
|
19842
20026
|
hasIn(path) {
|
|
19843
20027
|
if (isEmptyPath(path))
|
|
19844
20028
|
return this.contents !== undefined;
|
|
19845
|
-
return isCollection(this.contents) ? this.contents.hasIn(path) : false;
|
|
20029
|
+
return isCollection$1(this.contents) ? this.contents.hasIn(path) : false;
|
|
19846
20030
|
}
|
|
19847
20031
|
/**
|
|
19848
20032
|
* Sets a value in this document. For `!!set`, `value` needs to be a
|
|
@@ -19959,7 +20143,7 @@ query GetEurekaVizSnapshots(
|
|
|
19959
20143
|
}
|
|
19960
20144
|
}
|
|
19961
20145
|
function assertCollection(contents) {
|
|
19962
|
-
if (isCollection(contents))
|
|
20146
|
+
if (isCollection$1(contents))
|
|
19963
20147
|
return true;
|
|
19964
20148
|
throw new Error('Expected a YAML collection as document contents');
|
|
19965
20149
|
}
|
|
@@ -20219,8 +20403,8 @@ query GetEurekaVizSnapshots(
|
|
|
20219
20403
|
const isEqual = typeof uniqueKeys === 'function'
|
|
20220
20404
|
? uniqueKeys
|
|
20221
20405
|
: (a, b) => a === b ||
|
|
20222
|
-
(isScalar(a) &&
|
|
20223
|
-
isScalar(b) &&
|
|
20406
|
+
(isScalar$1(a) &&
|
|
20407
|
+
isScalar$1(b) &&
|
|
20224
20408
|
a.value === b.value &&
|
|
20225
20409
|
!(a.value === '<<' && ctx.schema.merge));
|
|
20226
20410
|
return items.some(pair => isEqual(pair.key, search));
|
|
@@ -21106,11 +21290,11 @@ query GetEurekaVizSnapshots(
|
|
|
21106
21290
|
? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError)
|
|
21107
21291
|
: token.type === 'scalar'
|
|
21108
21292
|
? findScalarTagByTest(ctx, value, token, onError)
|
|
21109
|
-
: ctx.schema[SCALAR];
|
|
21293
|
+
: ctx.schema[SCALAR$1];
|
|
21110
21294
|
let scalar;
|
|
21111
21295
|
try {
|
|
21112
21296
|
const res = tag.resolve(value, msg => onError(tagToken ?? token, 'TAG_RESOLVE_FAILED', msg), ctx.options);
|
|
21113
|
-
scalar = isScalar(res) ? res : new Scalar(res);
|
|
21297
|
+
scalar = isScalar$1(res) ? res : new Scalar(res);
|
|
21114
21298
|
}
|
|
21115
21299
|
catch (error) {
|
|
21116
21300
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -21131,7 +21315,7 @@ query GetEurekaVizSnapshots(
|
|
|
21131
21315
|
}
|
|
21132
21316
|
function findScalarTagByName(schema, value, tagName, tagToken, onError) {
|
|
21133
21317
|
if (tagName === '!')
|
|
21134
|
-
return schema[SCALAR]; // non-specific tag
|
|
21318
|
+
return schema[SCALAR$1]; // non-specific tag
|
|
21135
21319
|
const matchWithTest = [];
|
|
21136
21320
|
for (const tag of schema.tags) {
|
|
21137
21321
|
if (!tag.collection && tag.tag === tagName) {
|
|
@@ -21152,13 +21336,13 @@ query GetEurekaVizSnapshots(
|
|
|
21152
21336
|
return kt;
|
|
21153
21337
|
}
|
|
21154
21338
|
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, tagName !== 'tag:yaml.org,2002:str');
|
|
21155
|
-
return schema[SCALAR];
|
|
21339
|
+
return schema[SCALAR$1];
|
|
21156
21340
|
}
|
|
21157
21341
|
function findScalarTagByTest({ directives, schema }, value, token, onError) {
|
|
21158
|
-
const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR];
|
|
21342
|
+
const tag = schema.tags.find(tag => tag.default && tag.test?.test(value)) || schema[SCALAR$1];
|
|
21159
21343
|
if (schema.compat) {
|
|
21160
21344
|
const compat = schema.compat.find(tag => tag.default && tag.test?.test(value)) ??
|
|
21161
|
-
schema[SCALAR];
|
|
21345
|
+
schema[SCALAR$1];
|
|
21162
21346
|
if (tag.tag !== compat.tag) {
|
|
21163
21347
|
const ts = directives.tagString(tag.tag);
|
|
21164
21348
|
const cs = directives.tagString(compat.tag);
|
|
@@ -21392,7 +21576,7 @@ query GetEurekaVizSnapshots(
|
|
|
21392
21576
|
else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
21393
21577
|
doc.commentBefore = comment;
|
|
21394
21578
|
}
|
|
21395
|
-
else if (isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
21579
|
+
else if (isCollection$1(dc) && !dc.flow && dc.items.length > 0) {
|
|
21396
21580
|
let it = dc.items[0];
|
|
21397
21581
|
if (isPair(it))
|
|
21398
21582
|
it = it.key;
|
|
@@ -21793,9 +21977,9 @@ query GetEurekaVizSnapshots(
|
|
|
21793
21977
|
return res;
|
|
21794
21978
|
}
|
|
21795
21979
|
|
|
21796
|
-
const BREAK
|
|
21797
|
-
const SKIP
|
|
21798
|
-
const REMOVE
|
|
21980
|
+
const BREAK = Symbol('break visit');
|
|
21981
|
+
const SKIP = Symbol('skip children');
|
|
21982
|
+
const REMOVE = Symbol('remove item');
|
|
21799
21983
|
/**
|
|
21800
21984
|
* Apply a visitor to a CST document or item.
|
|
21801
21985
|
*
|
|
@@ -21824,7 +22008,7 @@ query GetEurekaVizSnapshots(
|
|
|
21824
22008
|
* visitor is called on item entry, next visitors are called after handling
|
|
21825
22009
|
* a non-empty `key` and when exiting the item.
|
|
21826
22010
|
*/
|
|
21827
|
-
function visit
|
|
22011
|
+
function visit(cst, visitor) {
|
|
21828
22012
|
if ('type' in cst && cst.type === 'document')
|
|
21829
22013
|
cst = { start: cst.start, value: cst.value };
|
|
21830
22014
|
_visit(Object.freeze([]), cst, visitor);
|
|
@@ -21833,13 +22017,13 @@ query GetEurekaVizSnapshots(
|
|
|
21833
22017
|
// namespace using `var`, but then complains about that because
|
|
21834
22018
|
// `unique symbol` must be `const`.
|
|
21835
22019
|
/** Terminate visit traversal completely */
|
|
21836
|
-
visit
|
|
22020
|
+
visit.BREAK = BREAK;
|
|
21837
22021
|
/** Do not visit the children of the current item */
|
|
21838
|
-
visit
|
|
22022
|
+
visit.SKIP = SKIP;
|
|
21839
22023
|
/** Remove the current item */
|
|
21840
|
-
visit
|
|
22024
|
+
visit.REMOVE = REMOVE;
|
|
21841
22025
|
/** Find the item at `path` from `cst` as the root */
|
|
21842
|
-
visit
|
|
22026
|
+
visit.itemAtPath = (cst, path) => {
|
|
21843
22027
|
let item = cst;
|
|
21844
22028
|
for (const [field, index] of path) {
|
|
21845
22029
|
const tok = item?.[field];
|
|
@@ -21856,8 +22040,8 @@ query GetEurekaVizSnapshots(
|
|
|
21856
22040
|
*
|
|
21857
22041
|
* Throws an error if the collection is not found, which should never happen if the item itself exists.
|
|
21858
22042
|
*/
|
|
21859
|
-
visit
|
|
21860
|
-
const parent = visit
|
|
22043
|
+
visit.parentCollection = (cst, path) => {
|
|
22044
|
+
const parent = visit.itemAtPath(cst, path.slice(0, -1));
|
|
21861
22045
|
const field = path[path.length - 1][0];
|
|
21862
22046
|
const coll = parent?.[field];
|
|
21863
22047
|
if (coll && 'items' in coll)
|
|
@@ -21875,9 +22059,9 @@ query GetEurekaVizSnapshots(
|
|
|
21875
22059
|
const ci = _visit(Object.freeze(path.concat([[field, i]])), token.items[i], visitor);
|
|
21876
22060
|
if (typeof ci === 'number')
|
|
21877
22061
|
i = ci - 1;
|
|
21878
|
-
else if (ci === BREAK
|
|
21879
|
-
return BREAK
|
|
21880
|
-
else if (ci === REMOVE
|
|
22062
|
+
else if (ci === BREAK)
|
|
22063
|
+
return BREAK;
|
|
22064
|
+
else if (ci === REMOVE) {
|
|
21881
22065
|
token.items.splice(i, 1);
|
|
21882
22066
|
i -= 1;
|
|
21883
22067
|
}
|
|
@@ -21896,11 +22080,11 @@ query GetEurekaVizSnapshots(
|
|
|
21896
22080
|
/** Unexpected end of flow-mode */
|
|
21897
22081
|
const FLOW_END = '\x18'; // C0: Cancel
|
|
21898
22082
|
/** Next token is a scalar value */
|
|
21899
|
-
const SCALAR
|
|
22083
|
+
const SCALAR = '\x1f'; // C0: Unit Separator
|
|
21900
22084
|
/** @returns `true` if `token` is a flow or block collection */
|
|
21901
|
-
const isCollection
|
|
22085
|
+
const isCollection = (token) => !!token && 'items' in token;
|
|
21902
22086
|
/** @returns `true` if `token` is a flow or block scalar; not an alias */
|
|
21903
|
-
const isScalar
|
|
22087
|
+
const isScalar = (token) => !!token &&
|
|
21904
22088
|
(token.type === 'scalar' ||
|
|
21905
22089
|
token.type === 'single-quoted-scalar' ||
|
|
21906
22090
|
token.type === 'double-quoted-scalar' ||
|
|
@@ -21915,7 +22099,7 @@ query GetEurekaVizSnapshots(
|
|
|
21915
22099
|
return '<DOC>';
|
|
21916
22100
|
case FLOW_END:
|
|
21917
22101
|
return '<FLOW_END>';
|
|
21918
|
-
case SCALAR
|
|
22102
|
+
case SCALAR:
|
|
21919
22103
|
return '<SCALAR>';
|
|
21920
22104
|
default:
|
|
21921
22105
|
return JSON.stringify(token);
|
|
@@ -21930,7 +22114,7 @@ query GetEurekaVizSnapshots(
|
|
|
21930
22114
|
return 'doc-mode';
|
|
21931
22115
|
case FLOW_END:
|
|
21932
22116
|
return 'flow-error-end';
|
|
21933
|
-
case SCALAR
|
|
22117
|
+
case SCALAR:
|
|
21934
22118
|
return 'scalar';
|
|
21935
22119
|
case '---':
|
|
21936
22120
|
return 'doc-start';
|
|
@@ -21987,16 +22171,16 @@ query GetEurekaVizSnapshots(
|
|
|
21987
22171
|
BOM: BOM,
|
|
21988
22172
|
DOCUMENT: DOCUMENT,
|
|
21989
22173
|
FLOW_END: FLOW_END,
|
|
21990
|
-
SCALAR: SCALAR
|
|
21991
|
-
isCollection: isCollection$1,
|
|
21992
|
-
isScalar: isScalar$1,
|
|
21993
|
-
prettyToken: prettyToken,
|
|
21994
|
-
tokenType: tokenType,
|
|
22174
|
+
SCALAR: SCALAR,
|
|
21995
22175
|
createScalarToken: createScalarToken,
|
|
22176
|
+
isCollection: isCollection,
|
|
22177
|
+
isScalar: isScalar,
|
|
22178
|
+
prettyToken: prettyToken,
|
|
21996
22179
|
resolveAsScalar: resolveAsScalar,
|
|
21997
22180
|
setScalarValue: setScalarValue,
|
|
21998
22181
|
stringify: stringify$1,
|
|
21999
|
-
|
|
22182
|
+
tokenType: tokenType,
|
|
22183
|
+
visit: visit
|
|
22000
22184
|
});
|
|
22001
22185
|
|
|
22002
22186
|
/*
|
|
@@ -22562,7 +22746,7 @@ query GetEurekaVizSnapshots(
|
|
|
22562
22746
|
break;
|
|
22563
22747
|
} while (true);
|
|
22564
22748
|
}
|
|
22565
|
-
yield SCALAR
|
|
22749
|
+
yield SCALAR;
|
|
22566
22750
|
yield* this.pushToIndex(nl + 1, true);
|
|
22567
22751
|
return yield* this.parseLineStart();
|
|
22568
22752
|
}
|
|
@@ -22606,7 +22790,7 @@ query GetEurekaVizSnapshots(
|
|
|
22606
22790
|
}
|
|
22607
22791
|
if (!ch && !this.atEnd)
|
|
22608
22792
|
return this.setNext('plain-scalar');
|
|
22609
|
-
yield SCALAR
|
|
22793
|
+
yield SCALAR;
|
|
22610
22794
|
yield* this.pushToIndex(end + 1, true);
|
|
22611
22795
|
return inFlow ? 'flow' : 'doc';
|
|
22612
22796
|
}
|
|
@@ -23770,7 +23954,7 @@ query GetEurekaVizSnapshots(
|
|
|
23770
23954
|
}
|
|
23771
23955
|
return doc.toJS(Object.assign({ reviver: _reviver }, options));
|
|
23772
23956
|
}
|
|
23773
|
-
function stringify
|
|
23957
|
+
function stringify(value, replacer, options) {
|
|
23774
23958
|
let _replacer = null;
|
|
23775
23959
|
if (typeof replacer === 'function' || Array.isArray(replacer)) {
|
|
23776
23960
|
_replacer = replacer;
|
|
@@ -23794,76 +23978,77 @@ query GetEurekaVizSnapshots(
|
|
|
23794
23978
|
|
|
23795
23979
|
var YAML = /*#__PURE__*/Object.freeze({
|
|
23796
23980
|
__proto__: null,
|
|
23981
|
+
Alias: Alias,
|
|
23797
23982
|
CST: cst,
|
|
23798
23983
|
Composer: Composer,
|
|
23799
23984
|
Document: Document,
|
|
23985
|
+
Lexer: Lexer,
|
|
23986
|
+
LineCounter: LineCounter,
|
|
23987
|
+
Pair: Pair,
|
|
23988
|
+
Parser: Parser,
|
|
23989
|
+
Scalar: Scalar,
|
|
23800
23990
|
Schema: Schema,
|
|
23801
23991
|
YAMLError: YAMLError,
|
|
23992
|
+
YAMLMap: YAMLMap,
|
|
23802
23993
|
YAMLParseError: YAMLParseError,
|
|
23994
|
+
YAMLSeq: YAMLSeq,
|
|
23803
23995
|
YAMLWarning: YAMLWarning,
|
|
23804
|
-
Alias: Alias,
|
|
23805
23996
|
isAlias: isAlias,
|
|
23806
|
-
isCollection: isCollection,
|
|
23997
|
+
isCollection: isCollection$1,
|
|
23807
23998
|
isDocument: isDocument,
|
|
23808
23999
|
isMap: isMap,
|
|
23809
24000
|
isNode: isNode,
|
|
23810
24001
|
isPair: isPair,
|
|
23811
|
-
isScalar: isScalar,
|
|
24002
|
+
isScalar: isScalar$1,
|
|
23812
24003
|
isSeq: isSeq,
|
|
23813
|
-
Pair: Pair,
|
|
23814
|
-
Scalar: Scalar,
|
|
23815
|
-
YAMLMap: YAMLMap,
|
|
23816
|
-
YAMLSeq: YAMLSeq,
|
|
23817
|
-
Lexer: Lexer,
|
|
23818
|
-
LineCounter: LineCounter,
|
|
23819
|
-
Parser: Parser,
|
|
23820
24004
|
parse: parse,
|
|
23821
24005
|
parseAllDocuments: parseAllDocuments,
|
|
23822
24006
|
parseDocument: parseDocument,
|
|
23823
|
-
stringify: stringify
|
|
23824
|
-
visit: visit,
|
|
24007
|
+
stringify: stringify,
|
|
24008
|
+
visit: visit$1,
|
|
23825
24009
|
visitAsync: visitAsync
|
|
23826
24010
|
});
|
|
23827
24011
|
|
|
23828
24012
|
// `export * as default from ...` fails on Webpack v4
|
|
24013
|
+
// https://github.com/eemeli/yaml/issues/228
|
|
23829
24014
|
|
|
23830
24015
|
var index = /*#__PURE__*/Object.freeze({
|
|
23831
24016
|
__proto__: null,
|
|
23832
|
-
|
|
24017
|
+
Alias: Alias,
|
|
24018
|
+
CST: cst,
|
|
23833
24019
|
Composer: Composer,
|
|
23834
24020
|
Document: Document,
|
|
24021
|
+
Lexer: Lexer,
|
|
24022
|
+
LineCounter: LineCounter,
|
|
24023
|
+
Pair: Pair,
|
|
24024
|
+
Parser: Parser,
|
|
24025
|
+
Scalar: Scalar,
|
|
23835
24026
|
Schema: Schema,
|
|
23836
24027
|
YAMLError: YAMLError,
|
|
24028
|
+
YAMLMap: YAMLMap,
|
|
23837
24029
|
YAMLParseError: YAMLParseError,
|
|
24030
|
+
YAMLSeq: YAMLSeq,
|
|
23838
24031
|
YAMLWarning: YAMLWarning,
|
|
23839
|
-
|
|
24032
|
+
default: YAML,
|
|
23840
24033
|
isAlias: isAlias,
|
|
23841
|
-
isCollection: isCollection,
|
|
24034
|
+
isCollection: isCollection$1,
|
|
23842
24035
|
isDocument: isDocument,
|
|
23843
24036
|
isMap: isMap,
|
|
23844
24037
|
isNode: isNode,
|
|
23845
24038
|
isPair: isPair,
|
|
23846
|
-
isScalar: isScalar,
|
|
24039
|
+
isScalar: isScalar$1,
|
|
23847
24040
|
isSeq: isSeq,
|
|
23848
|
-
Pair: Pair,
|
|
23849
|
-
Scalar: Scalar,
|
|
23850
|
-
YAMLMap: YAMLMap,
|
|
23851
|
-
YAMLSeq: YAMLSeq,
|
|
23852
|
-
Lexer: Lexer,
|
|
23853
|
-
LineCounter: LineCounter,
|
|
23854
|
-
Parser: Parser,
|
|
23855
24041
|
parse: parse,
|
|
23856
24042
|
parseAllDocuments: parseAllDocuments,
|
|
23857
24043
|
parseDocument: parseDocument,
|
|
23858
|
-
stringify: stringify
|
|
23859
|
-
visit: visit,
|
|
23860
|
-
visitAsync: visitAsync
|
|
23861
|
-
CST: cst
|
|
24044
|
+
stringify: stringify,
|
|
24045
|
+
visit: visit$1,
|
|
24046
|
+
visitAsync: visitAsync
|
|
23862
24047
|
});
|
|
23863
24048
|
|
|
23864
|
-
exports.AppEmbed = AppEmbed
|
|
23865
|
-
exports.ConversationEmbed = ConversationEmbed
|
|
23866
|
-
exports.LiveboardEmbed = LiveboardEmbed
|
|
24049
|
+
exports.AppEmbed = AppEmbed;
|
|
24050
|
+
exports.ConversationEmbed = ConversationEmbed;
|
|
24051
|
+
exports.LiveboardEmbed = LiveboardEmbed;
|
|
23867
24052
|
exports.PinboardEmbed = PinboardEmbed;
|
|
23868
24053
|
exports.PreRenderedAppEmbed = PreRenderedAppEmbed;
|
|
23869
24054
|
exports.PreRenderedConversationEmbed = PreRenderedConversationEmbed;
|
|
@@ -23872,12 +24057,10 @@ query GetEurekaVizSnapshots(
|
|
|
23872
24057
|
exports.PreRenderedSageEmbed = PreRenderedSageEmbed;
|
|
23873
24058
|
exports.PreRenderedSearchBarEmbed = PreRenderedSearchBarEmbed;
|
|
23874
24059
|
exports.PreRenderedSearchEmbed = PreRenderedSearchEmbed;
|
|
23875
|
-
exports.SageEmbed = SageEmbed
|
|
23876
|
-
exports.SearchBarEmbed = SearchBarEmbed
|
|
23877
|
-
exports.SearchEmbed = SearchEmbed
|
|
24060
|
+
exports.SageEmbed = SageEmbed;
|
|
24061
|
+
exports.SearchBarEmbed = SearchBarEmbed;
|
|
24062
|
+
exports.SearchEmbed = SearchEmbed;
|
|
23878
24063
|
exports.getSessionInfo = getSessionInfo;
|
|
23879
24064
|
exports.useEmbedRef = useEmbedRef;
|
|
23880
24065
|
|
|
23881
|
-
|
|
23882
|
-
|
|
23883
|
-
})));
|
|
24066
|
+
}));
|