@backstage-community/plugin-analytics-module-matomo 1.30.0 → 1.31.1
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/CHANGELOG.md +12 -0
- package/config.schema.json +66 -0
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.esm.js.map +1 -1
- package/package.json +10 -9
- package/config.d.ts +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @backstage-community/plugin-analytics-module-matomo
|
|
2
2
|
|
|
3
|
+
## 1.31.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7c6b73e: Export the analytics implementation extension from each module, so it can be referenced directly rather than only through the module that carries it. Added tests covering the APIs each implementation asks the app to inject and the analytics client it builds.
|
|
8
|
+
|
|
9
|
+
## 1.31.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 70ce2a9: Backstage version bump to v1.54.5
|
|
14
|
+
|
|
3
15
|
## 1.30.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"app": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"analytics": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"matomo": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"host": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Matomo host URL",
|
|
17
|
+
"visibility": "frontend"
|
|
18
|
+
},
|
|
19
|
+
"siteId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Matomo siteId for the Backstage Website",
|
|
22
|
+
"visibility": "frontend"
|
|
23
|
+
},
|
|
24
|
+
"identity": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"disabled",
|
|
28
|
+
"optional",
|
|
29
|
+
"required"
|
|
30
|
+
],
|
|
31
|
+
"description": "Controls how the identityApi is used when sending data to Matomo:",
|
|
32
|
+
"visibility": "frontend"
|
|
33
|
+
},
|
|
34
|
+
"sendPlainUserId": {
|
|
35
|
+
"type": "boolean",
|
|
36
|
+
"description": "Sends the identity as plain userId instead of hashing it",
|
|
37
|
+
"visibility": "frontend"
|
|
38
|
+
},
|
|
39
|
+
"enhancedTracking": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Enables extended tracking capabilities (navigate events, buffering,…)",
|
|
42
|
+
"visibility": "frontend"
|
|
43
|
+
},
|
|
44
|
+
"deferInitialPageView": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Defers the initial page view until identity is available",
|
|
47
|
+
"visibility": "frontend"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"host",
|
|
52
|
+
"siteId"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": [
|
|
57
|
+
"matomo"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"analytics"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/plugin.esm.js
CHANGED
|
@@ -23,5 +23,5 @@ const analyticsProviderMatomoPlugin = createFrontendPlugin({
|
|
|
23
23
|
extensions: [matomoImplementation]
|
|
24
24
|
});
|
|
25
25
|
|
|
26
|
-
export { MatomoAnalyticsApi, analyticsModuleMatomoPlugin, analyticsProviderMatomoPlugin };
|
|
26
|
+
export { MatomoAnalyticsApi, analyticsModuleMatomoPlugin, analyticsProviderMatomoPlugin, matomoImplementation };
|
|
27
27
|
//# sourceMappingURL=plugin.esm.js.map
|
package/dist/plugin.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n analyticsApiRef,\n createApiFactory,\n createPlugin,\n} from '@backstage/core-plugin-api';\nimport {\n configApiRef,\n createFrontendPlugin,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { AnalyticsImplementationBlueprint } from '@backstage/plugin-app-react';\nimport { MatomoAnalytics } from './api';\n\n/**\n * @public\n */\nexport const MatomoAnalyticsApi = createApiFactory({\n api: analyticsApiRef,\n deps: { configApi: configApiRef, identityApi: identityApiRef },\n factory: ({ configApi, identityApi }) =>\n MatomoAnalytics.fromConfig(configApi, { identityApi }),\n});\n\n/** @public */\nexport const analyticsModuleMatomoPlugin = createPlugin({\n id: 'analytics-module-matomo',\n apis: [MatomoAnalyticsApi],\n});\n\
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n analyticsApiRef,\n createApiFactory,\n createPlugin,\n} from '@backstage/core-plugin-api';\nimport {\n configApiRef,\n createFrontendPlugin,\n identityApiRef,\n} from '@backstage/frontend-plugin-api';\nimport { AnalyticsImplementationBlueprint } from '@backstage/plugin-app-react';\nimport { MatomoAnalytics } from './api';\n\n/**\n * @public\n */\nexport const MatomoAnalyticsApi = createApiFactory({\n api: analyticsApiRef,\n deps: { configApi: configApiRef, identityApi: identityApiRef },\n factory: ({ configApi, identityApi }) =>\n MatomoAnalytics.fromConfig(configApi, { identityApi }),\n});\n\n/** @public */\nexport const analyticsModuleMatomoPlugin = createPlugin({\n id: 'analytics-module-matomo',\n apis: [MatomoAnalyticsApi],\n});\n\nexport const matomoImplementation = AnalyticsImplementationBlueprint.make({\n params: defineParams =>\n defineParams({\n deps: { configApi: configApiRef, identityApi: identityApiRef },\n factory: ({ configApi, identityApi }) =>\n MatomoAnalytics.fromConfig(configApi, { identityApi }),\n }),\n});\n\n/**\n * @public\n */\nexport const analyticsProviderMatomoPlugin = createFrontendPlugin({\n pluginId: 'analytics-module-matomo',\n extensions: [matomoImplementation],\n});\n"],"names":[],"mappings":";;;;;AAgCO,MAAM,qBAAqB,gBAAA,CAAiB;AAAA,EACjD,GAAA,EAAK,eAAA;AAAA,EACL,IAAA,EAAM,EAAE,SAAA,EAAW,YAAA,EAAc,aAAa,cAAA,EAAe;AAAA,EAC7D,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,WAAA,EAAY,KACjC,eAAA,CAAgB,UAAA,CAAW,SAAA,EAAW,EAAE,WAAA,EAAa;AACzD,CAAC;AAGM,MAAM,8BAA8B,YAAA,CAAa;AAAA,EACtD,EAAA,EAAI,yBAAA;AAAA,EACJ,IAAA,EAAM,CAAC,kBAAkB;AAC3B,CAAC;AAEM,MAAM,oBAAA,GAAuB,iCAAiC,IAAA,CAAK;AAAA,EACxE,MAAA,EAAQ,kBACN,YAAA,CAAa;AAAA,IACX,IAAA,EAAM,EAAE,SAAA,EAAW,YAAA,EAAc,aAAa,cAAA,EAAe;AAAA,IAC7D,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,WAAA,EAAY,KACjC,eAAA,CAAgB,UAAA,CAAW,SAAA,EAAW,EAAE,WAAA,EAAa;AAAA,GACxD;AACL,CAAC;AAKM,MAAM,gCAAgC,oBAAA,CAAqB;AAAA,EAChE,QAAA,EAAU,yBAAA;AAAA,EACV,UAAA,EAAY,CAAC,oBAAoB;AACnC,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-analytics-module-matomo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.1",
|
|
4
4
|
"main": "./dist/index.esm.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -62,25 +62,26 @@
|
|
|
62
62
|
"directory": "workspaces/analytics/plugins/analytics-module-matomo"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
66
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
67
|
-
"@backstage/plugin-app-react": "^0.2.
|
|
65
|
+
"@backstage/core-plugin-api": "^1.12.9",
|
|
66
|
+
"@backstage/frontend-plugin-api": "^0.18.0",
|
|
67
|
+
"@backstage/plugin-app-react": "^0.2.6"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": "^16.13.1 || ^17.0.0 || ^18.0.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@backstage/cli": "^0.36.
|
|
74
|
-
"@backstage/core-components": "^0.18.
|
|
75
|
-
"@backstage/dev-utils": "^1.1.
|
|
73
|
+
"@backstage/cli": "^0.36.5",
|
|
74
|
+
"@backstage/core-components": "^0.18.13",
|
|
75
|
+
"@backstage/dev-utils": "^1.1.26",
|
|
76
|
+
"@backstage/frontend-test-utils": "^0.6.3",
|
|
76
77
|
"@testing-library/jest-dom": "6.9.1",
|
|
77
78
|
"cross-fetch": "4.1.0"
|
|
78
79
|
},
|
|
79
80
|
"files": [
|
|
80
81
|
"dist",
|
|
81
|
-
"config.
|
|
82
|
+
"config.schema.json"
|
|
82
83
|
],
|
|
83
|
-
"configSchema": "config.
|
|
84
|
+
"configSchema": "config.schema.json",
|
|
84
85
|
"maintainers": [
|
|
85
86
|
"@yashoswalyo",
|
|
86
87
|
"@deshmukhmayur",
|
package/config.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 The Backstage Authors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export interface Config {
|
|
17
|
-
app?: {
|
|
18
|
-
analytics: {
|
|
19
|
-
matomo: {
|
|
20
|
-
/**
|
|
21
|
-
* Matomo host URL
|
|
22
|
-
* @visibility frontend
|
|
23
|
-
*/
|
|
24
|
-
host: string;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Matomo siteId for the Backstage Website
|
|
28
|
-
* @visibility frontend
|
|
29
|
-
*/
|
|
30
|
-
siteId: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Controls how the identityApi is used when sending data to Matomo:
|
|
34
|
-
*
|
|
35
|
-
* @visibility frontend
|
|
36
|
-
*/
|
|
37
|
-
identity?: 'disabled' | 'optional' | 'required';
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Sends the identity as plain userId instead of hashing it
|
|
41
|
-
*
|
|
42
|
-
* @visibility frontend
|
|
43
|
-
*/
|
|
44
|
-
sendPlainUserId?: boolean;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Enables extended tracking capabilities (navigate events, buffering,…)
|
|
48
|
-
*
|
|
49
|
-
* @visibility frontend
|
|
50
|
-
*/
|
|
51
|
-
enhancedTracking?: boolean;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Defers the initial page view until identity is available
|
|
55
|
-
*
|
|
56
|
-
* @visibility frontend
|
|
57
|
-
*/
|
|
58
|
-
deferInitialPageView?: boolean;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}
|