@thoughtspot/visual-embed-sdk 1.32.4-dc.8 → 1.32.4-dc.9
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 +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/cjs/src/utils/liveboardService/liveboardService.js +7 -2
- package/cjs/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/dist/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/dist/tsembed-react.es.js +1 -1
- package/dist/tsembed-react.js +1 -1
- package/dist/tsembed.es.js +8 -3
- package/dist/tsembed.js +8 -3
- package/lib/package.json +1 -1
- package/lib/src/utils/liveboardService/liveboardService.d.ts.map +1 -1
- package/lib/src/utils/liveboardService/liveboardService.js +7 -2
- package/lib/src/utils/liveboardService/liveboardService.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/liveboardService/liveboardService.ts +16 -11
package/cjs/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,CA+Cb,CAAC"}
|
|
@@ -17,7 +17,7 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
17
17
|
}),
|
|
18
18
|
});
|
|
19
19
|
const lbList = await resp.json();
|
|
20
|
-
const liveboardId = lbList[0];
|
|
20
|
+
const liveboardId = lbList[0].metadata_id;
|
|
21
21
|
const answerTMLs = await Promise.all(answers.map((a) => a.getTML()));
|
|
22
22
|
const lbTml = {
|
|
23
23
|
liveboard: {
|
|
@@ -25,7 +25,12 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
25
25
|
guid: liveboardId,
|
|
26
26
|
visualizations: answerTMLs.map((tml, idx) => ({
|
|
27
27
|
id: `Viz_${idx}`,
|
|
28
|
-
answer:
|
|
28
|
+
answer: {
|
|
29
|
+
name: tml.name,
|
|
30
|
+
tables: tml.tables,
|
|
31
|
+
search_query: tml.search_query,
|
|
32
|
+
display_mode: tml.display_mode,
|
|
33
|
+
},
|
|
29
34
|
})),
|
|
30
35
|
layout: {
|
|
31
36
|
tiles: answerTMLs.map((tml, idx) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboardService.js","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD,yDAAyD;AACzD,2CAA8C;AAEvC,MAAM,0BAA0B,GAAG,KAAK,EAC3C,OAAwB,EACxB,IAAY,EACA,EAAE;IACd,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,IAAA,4BAAc,GAAE,CAAC;IACvD,MAAM,IAAI,GAAG,MAAM,IAAA,+BAAc,EAC7B,GAAG,eAAe,+BAA+B,EAAE;
|
|
1
|
+
{"version":3,"file":"liveboardService.js","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAEtD,yDAAyD;AACzD,2CAA8C;AAEvC,MAAM,0BAA0B,GAAG,KAAK,EAC3C,OAAwB,EACxB,IAAY,EACA,EAAE;IACd,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,IAAA,4BAAc,GAAE,CAAC;IACvD,MAAM,IAAI,GAAG,MAAM,IAAA,+BAAc,EAC7B,GAAG,eAAe,+BAA+B,EAAE;QACnD,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACjB,QAAQ,EAAE,CAAC;oBACP,IAAI,EAAE,WAAW;oBACjB,UAAU,EAAE,IAAI;iBACnB,CAAC;SACL,CAAC;KACL,CACA,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACjC,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAE1C,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAErE,MAAM,KAAK,GAAQ;QACf,SAAS,EAAE;YACP,IAAI;YACJ,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBAC/C,EAAE,EAAE,OAAO,GAAG,EAAE;gBAChB,MAAM,EAAE;oBACJ,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,YAAY,EAAE,GAAG,CAAC,YAAY;oBAC9B,YAAY,EAAE,GAAG,CAAC,YAAY;iBACjC;aACJ,CAAC,CAAC;YACH,MAAM,EAAE;gBACJ,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;oBACtC,gBAAgB,EAAE,OAAO,GAAG,EAAE;oBAC9B,IAAI,EAAE,cAAc;iBACvB,CAAC,CAAC;aACN;SACJ;KACJ,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAU,EAAC;QAC5B,aAAa,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtC,aAAa,EAAE,aAAa;KAC/B,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAlDW,QAAA,0BAA0B,8BAkDrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,CA+Cb,CAAC"}
|
package/dist/tsembed-react.es.js
CHANGED
|
@@ -21375,7 +21375,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
21375
21375
|
});
|
|
21376
21376
|
}
|
|
21377
21377
|
|
|
21378
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21378
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.9";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={".":{"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 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.45.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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21379
21379
|
|
|
21380
21380
|
/**
|
|
21381
21381
|
* Copyright (c) 2022
|
package/dist/tsembed-react.js
CHANGED
|
@@ -21287,7 +21287,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21287
21287
|
});
|
|
21288
21288
|
}
|
|
21289
21289
|
|
|
21290
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21290
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.9";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 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.45.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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21291
21291
|
|
|
21292
21292
|
/**
|
|
21293
21293
|
* Copyright (c) 2022
|
package/dist/tsembed.es.js
CHANGED
|
@@ -21610,7 +21610,7 @@ function processTrigger(iFrame, messageType, thoughtSpotHost, data) {
|
|
|
21610
21610
|
});
|
|
21611
21611
|
}
|
|
21612
21612
|
|
|
21613
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21613
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.9";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={".":{"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 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.45.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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21614
21614
|
|
|
21615
21615
|
/**
|
|
21616
21616
|
* Copyright (c) 2022
|
|
@@ -24431,7 +24431,7 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
24431
24431
|
}),
|
|
24432
24432
|
});
|
|
24433
24433
|
const lbList = await resp.json();
|
|
24434
|
-
const liveboardId = lbList[0];
|
|
24434
|
+
const liveboardId = lbList[0].metadata_id;
|
|
24435
24435
|
const answerTMLs = await Promise.all(answers.map((a) => a.getTML()));
|
|
24436
24436
|
const lbTml = {
|
|
24437
24437
|
liveboard: {
|
|
@@ -24439,7 +24439,12 @@ const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
24439
24439
|
guid: liveboardId,
|
|
24440
24440
|
visualizations: answerTMLs.map((tml, idx) => ({
|
|
24441
24441
|
id: `Viz_${idx}`,
|
|
24442
|
-
answer:
|
|
24442
|
+
answer: {
|
|
24443
|
+
name: tml.name,
|
|
24444
|
+
tables: tml.tables,
|
|
24445
|
+
search_query: tml.search_query,
|
|
24446
|
+
display_mode: tml.display_mode,
|
|
24447
|
+
},
|
|
24443
24448
|
})),
|
|
24444
24449
|
layout: {
|
|
24445
24450
|
tiles: answerTMLs.map((tml, idx) => ({
|
package/dist/tsembed.js
CHANGED
|
@@ -21486,7 +21486,7 @@ mutation GetUnsavedAnswerTML($session: BachSessionIdInput!, $exportDependencies:
|
|
|
21486
21486
|
});
|
|
21487
21487
|
}
|
|
21488
21488
|
|
|
21489
|
-
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.
|
|
21489
|
+
var name="@thoughtspot/visual-embed-sdk";var version="1.32.4-dc.9";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 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.45.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","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:"2.30.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,description:description,module:module,main:main,types:types,files:files,exports:exports$1,typesVersions:typesVersions,"size-limit":[{path:"dist/tsembed.js",limit:"48 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};
|
|
21490
21490
|
|
|
21491
21491
|
/**
|
|
21492
21492
|
* Copyright (c) 2022
|
|
@@ -24302,7 +24302,7 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
|
24302
24302
|
}),
|
|
24303
24303
|
});
|
|
24304
24304
|
const lbList = await resp.json();
|
|
24305
|
-
const liveboardId = lbList[0];
|
|
24305
|
+
const liveboardId = lbList[0].metadata_id;
|
|
24306
24306
|
const answerTMLs = await Promise.all(answers.map((a) => a.getTML()));
|
|
24307
24307
|
const lbTml = {
|
|
24308
24308
|
liveboard: {
|
|
@@ -24310,7 +24310,12 @@ query GetEurekaResults($params: Input_eureka_SearchRequest) {
|
|
|
24310
24310
|
guid: liveboardId,
|
|
24311
24311
|
visualizations: answerTMLs.map((tml, idx) => ({
|
|
24312
24312
|
id: `Viz_${idx}`,
|
|
24313
|
-
answer:
|
|
24313
|
+
answer: {
|
|
24314
|
+
name: tml.name,
|
|
24315
|
+
tables: tml.tables,
|
|
24316
|
+
search_query: tml.search_query,
|
|
24317
|
+
display_mode: tml.display_mode,
|
|
24318
|
+
},
|
|
24314
24319
|
})),
|
|
24315
24320
|
layout: {
|
|
24316
24321
|
tiles: answerTMLs.map((tml, idx) => ({
|
package/lib/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"liveboardService.d.ts","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAIvE,eAAO,MAAM,0BAA0B,YAC1B,aAAa,EAAE,QAClB,MAAM,KACb,QAAQ,GAAG,CA+Cb,CAAC"}
|
|
@@ -14,7 +14,7 @@ export const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
14
14
|
}),
|
|
15
15
|
});
|
|
16
16
|
const lbList = await resp.json();
|
|
17
|
-
const liveboardId = lbList[0];
|
|
17
|
+
const liveboardId = lbList[0].metadata_id;
|
|
18
18
|
const answerTMLs = await Promise.all(answers.map((a) => a.getTML()));
|
|
19
19
|
const lbTml = {
|
|
20
20
|
liveboard: {
|
|
@@ -22,7 +22,12 @@ export const createLiveboardWithAnswers = async (answers, name) => {
|
|
|
22
22
|
guid: liveboardId,
|
|
23
23
|
visualizations: answerTMLs.map((tml, idx) => ({
|
|
24
24
|
id: `Viz_${idx}`,
|
|
25
|
-
answer:
|
|
25
|
+
answer: {
|
|
26
|
+
name: tml.name,
|
|
27
|
+
tables: tml.tables,
|
|
28
|
+
search_query: tml.search_query,
|
|
29
|
+
display_mode: tml.display_mode,
|
|
30
|
+
},
|
|
26
31
|
})),
|
|
27
32
|
layout: {
|
|
28
33
|
tiles: answerTMLs.map((tml, idx) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveboardService.js","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC3C,OAAwB,EACxB,IAAY,EACA,EAAE;IACd,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACvD,MAAM,IAAI,GAAG,MAAM,cAAc,CAC7B,GAAG,eAAe,+BAA+B,EAAE;
|
|
1
|
+
{"version":3,"file":"liveboardService.js","sourceRoot":"","sources":["../../../../src/utils/liveboardService/liveboardService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,EAC3C,OAAwB,EACxB,IAAY,EACA,EAAE;IACd,MAAM,EAAE,eAAe,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IACvD,MAAM,IAAI,GAAG,MAAM,cAAc,CAC7B,GAAG,eAAe,+BAA+B,EAAE;QACnD,MAAM,EAAE,MAAM;QACd,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACjB,QAAQ,EAAE,CAAC;oBACP,IAAI,EAAE,WAAW;oBACjB,UAAU,EAAE,IAAI;iBACnB,CAAC;SACL,CAAC;KACL,CACA,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,EAAE,CAAC;IACjC,MAAM,WAAW,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;IAE1C,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAErE,MAAM,KAAK,GAAQ;QACf,SAAS,EAAE;YACP,IAAI;YACJ,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBAC/C,EAAE,EAAE,OAAO,GAAG,EAAE;gBAChB,MAAM,EAAE;oBACJ,IAAI,EAAE,GAAG,CAAC,IAAI;oBACd,MAAM,EAAE,GAAG,CAAC,MAAM;oBAClB,YAAY,EAAE,GAAG,CAAC,YAAY;oBAC9B,YAAY,EAAE,GAAG,CAAC,YAAY;iBACjC;aACJ,CAAC,CAAC;YACH,MAAM,EAAE;gBACJ,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;oBACtC,gBAAgB,EAAE,OAAO,GAAG,EAAE;oBAC9B,IAAI,EAAE,cAAc;iBACvB,CAAC,CAAC;aACN;SACJ;KACJ,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC;QAC5B,aAAa,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACtC,aAAa,EAAE,aAAa;KAC/B,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -10,18 +10,18 @@ export const createLiveboardWithAnswers = async (
|
|
|
10
10
|
const { thoughtSpotHost, authType } = getEmbedConfig();
|
|
11
11
|
const resp = await tokenizedFetch(
|
|
12
12
|
`${thoughtSpotHost}/api/rest/2.0/metadata/search`, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
method: 'POST',
|
|
14
|
+
credentials: 'include',
|
|
15
|
+
body: JSON.stringify({
|
|
16
|
+
metadata: [{
|
|
17
|
+
type: 'LIVEBOARD',
|
|
18
|
+
identifier: name,
|
|
19
|
+
}],
|
|
20
|
+
}),
|
|
21
|
+
},
|
|
22
22
|
);
|
|
23
23
|
const lbList = await resp.json();
|
|
24
|
-
const liveboardId = lbList[0];
|
|
24
|
+
const liveboardId = lbList[0].metadata_id;
|
|
25
25
|
|
|
26
26
|
const answerTMLs = await Promise.all(answers.map((a) => a.getTML()));
|
|
27
27
|
|
|
@@ -31,7 +31,12 @@ export const createLiveboardWithAnswers = async (
|
|
|
31
31
|
guid: liveboardId,
|
|
32
32
|
visualizations: answerTMLs.map((tml: any, idx) => ({
|
|
33
33
|
id: `Viz_${idx}`,
|
|
34
|
-
answer:
|
|
34
|
+
answer: {
|
|
35
|
+
name: tml.name,
|
|
36
|
+
tables: tml.tables,
|
|
37
|
+
search_query: tml.search_query,
|
|
38
|
+
display_mode: tml.display_mode,
|
|
39
|
+
},
|
|
35
40
|
})),
|
|
36
41
|
layout: {
|
|
37
42
|
tiles: answerTMLs.map((tml: any, idx) => ({
|