File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
plugins/analytics-provider-segment Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 10
10
"types" : " dist/index.d.ts"
11
11
},
12
12
"backstage" : {
13
- "role" : " frontend-plugin-module "
13
+ "role" : " frontend-plugin"
14
14
},
15
15
"scripts" : {
16
16
"start" : " backstage-cli package start" ,
17
17
"build" : " backstage-cli package build" ,
18
+ "export-dynamic" : " janus-cli package export-dynamic-plugin" ,
18
19
"tsc" : " tsc" ,
19
20
"lint" : " backstage-cli package lint" ,
20
21
"test" : " backstage-cli package test --passWithNoTests --coverage" ,
44
45
"@backstage/core-app-api" : " 1.11.0" ,
45
46
"@backstage/dev-utils" : " 1.0.22" ,
46
47
"@backstage/test-utils" : " 1.4.4" ,
48
+ "@janus-idp/cli" : " 1.4.3" ,
47
49
"@testing-library/dom" : " 9.3.3" ,
48
50
"@testing-library/jest-dom" : " 5.17.0" ,
49
51
"@testing-library/react" : " 12.1.5" ,
55
57
},
56
58
"files" : [
57
59
" dist" ,
60
+ " dist-scalprum" ,
58
61
" config.d.ts"
59
62
],
60
63
"configSchema" : " config.d.ts"
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+ import {
17
+ analyticsApiRef ,
18
+ configApiRef ,
19
+ createApiFactory ,
20
+ identityApiRef ,
21
+ } from '@backstage/core-plugin-api' ;
22
+
23
+ import { SegmentAnalytics } from './apis/implementations/AnalyticsApi' ;
24
+
16
25
export { analyticsModuleSegment } from './plugin' ;
17
26
export * from './apis/implementations/AnalyticsApi' ;
27
+ export const SegmentAnalyticsApi = createApiFactory ( {
28
+ api : analyticsApiRef ,
29
+ deps : { configApi : configApiRef , identityApi : identityApiRef } ,
30
+ factory : ( { configApi, identityApi } ) =>
31
+ SegmentAnalytics . fromConfig ( configApi , identityApi ) ,
32
+ } ) ;
You can’t perform that action at this time.
0 commit comments