Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes Transcend from function names #180

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h2>Policy Content</h2>
if (language) {
await transcend.setActiveLocale(language);
}
const [policy] = await transcend.getTranscendPolicies({
const [policy] = await transcend.getPolicies({
policyTitles: ['Label Privacy Policy'],
// variables: { labelName: 'Marshmalt Records' },
locale: language || transcend.getActiveLocale(),
Expand Down Expand Up @@ -211,7 +211,7 @@ <h2>Policy Content</h2>
setupDoNotSellButton();

transcend
.setTranscendUiVariables({
.setUiVariables({
labelName: 'Marshmalt Records',
})
.then(() => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/transcend-io/consent-manager-ui.git"
},
"homepage": "https://github.com/transcend-io/consent-manager-ui",
"version": "4.18.0",
"version": "4.18.1",
"license": "MIT",
"main": "build/ui",
"files": [
Expand Down Expand Up @@ -50,8 +50,8 @@
"@prettier/sync": "^0.5.2",
"@testing-library/jest-dom": "^6.4.6",
"@testing-library/preact": "^3.2.4",
"@transcend-io/airgap.js-types": "^12.2.0",
"@transcend-io/type-utils": "^1.0.7",
"@transcend-io/airgap.js-types": "^12.3.0",
"@transcend-io/type-utils": "^1.5.0",
"@types/jest": "^29.5.12",
"@types/node": "^17.0.45",
"@typescript-eslint/eslint-plugin": "^5.12.1",
Expand Down
6 changes: 3 additions & 3 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export function makeConsentManagerAPI({
airgap,
}: MakeConsentManagerAPIInput): ConsentManagerAPI {
const consentManagerMethods: Omit<ConsentManagerAPI, keyof EventTarget> = {
setTranscendUiVariables: (variables) =>
setUiVariables: (variables) =>
Promise.resolve(handleChangeUiVariables(variables)),
getTranscendUiVariables: () => currentVariables,
getTranscendPolicies: (input = {}) =>
getUiVariables: () => currentVariables,
getPolicies: (input = {}) =>
Promise.resolve(
getTranscendPolicies(
input,
Expand Down
24 changes: 17 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1123,14 +1123,14 @@ __metadata:
languageName: node
linkType: hard

"@transcend-io/airgap.js-types@npm:^12.2.0":
version: 12.2.0
resolution: "@transcend-io/airgap.js-types@npm:12.2.0"
"@transcend-io/airgap.js-types@npm:^12.3.0":
version: 12.3.0
resolution: "@transcend-io/airgap.js-types@npm:12.3.0"
dependencies:
"@transcend-io/type-utils": ^1.2.0
fp-ts: ^2.16.1
io-ts: ^2.2.21
checksum: a0c92b7a5a218caf1ddca4e6793e793ecdf371e94ab2ba5d12beb93fecadb55bc8678cef59876ccbd7eed42046fc1f5f4392dc38e38ae9363ad8d5bfea7ed961
checksum: 60ce42e0edb9b40cb47a06fb07af1c6cfff11eeced9dcc5a29553079a2d06fe5d18c38fdcf10a5687c96da89c302b657f7f7a0707d997d0dbb5e179badf3262d
languageName: node
linkType: hard

Expand All @@ -1155,10 +1155,10 @@ __metadata:
"@prettier/sync": ^0.5.2
"@testing-library/jest-dom": ^6.4.6
"@testing-library/preact": ^3.2.4
"@transcend-io/airgap.js-types": ^12.2.0
"@transcend-io/airgap.js-types": ^12.3.0
"@transcend-io/internationalization": ^1.6.0
"@transcend-io/logger": ^1.1.0
"@transcend-io/type-utils": ^1.0.7
"@transcend-io/type-utils": ^1.5.0
"@types/jest": ^29.5.12
"@types/node": ^17.0.45
"@typescript-eslint/eslint-plugin": ^5.12.1
Expand Down Expand Up @@ -1211,7 +1211,7 @@ __metadata:
languageName: node
linkType: hard

"@transcend-io/type-utils@npm:^1.0.5, @transcend-io/type-utils@npm:^1.0.7, @transcend-io/type-utils@npm:^1.2.0":
"@transcend-io/type-utils@npm:^1.0.5, @transcend-io/type-utils@npm:^1.2.0":
version: 1.4.2
resolution: "@transcend-io/type-utils@npm:1.4.2"
dependencies:
Expand All @@ -1221,6 +1221,16 @@ __metadata:
languageName: node
linkType: hard

"@transcend-io/type-utils@npm:^1.5.0":
version: 1.5.0
resolution: "@transcend-io/type-utils@npm:1.5.0"
dependencies:
fp-ts: ^2.16.1
io-ts: ^2.2.21
checksum: 0d7d85e794254069663b277e7728a39fe2d7c6b96eef4e71e6a971cd44f2b1a1be20cb82d708603182ed5b7e9ad20535c845590df59e8302d9ab6f70c626464f
languageName: node
linkType: hard

"@tsconfig/node10@npm:^1.0.7":
version: 1.0.11
resolution: "@tsconfig/node10@npm:1.0.11"
Expand Down
Loading