@temple-wallet/extension-ads 1.0.0
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/.eslintrc +49 -0
- package/.prettierignore +2 -0
- package/.prettierrc +7 -0
- package/.yarn/releases/yarn-4.1.1.cjs +893 -0
- package/.yarnrc.yml +3 -0
- package/README.md +1 -0
- package/dist/index.d.ts +196 -0
- package/dist/index.js +21 -0
- package/package.json +48 -0
- package/src/ads-actions/helpers.ts +100 -0
- package/src/ads-actions/index.ts +96 -0
- package/src/ads-actions/process-permanent-rule.ts +187 -0
- package/src/ads-actions/process-rule.ts +123 -0
- package/src/ads-configuration.ts +43 -0
- package/src/ads-meta.ts +108 -0
- package/src/constants.ts +2 -0
- package/src/execute-ads-actions/ads-views/index.ts +3 -0
- package/src/execute-ads-actions/ads-views/make-hypelab-ad.ts +77 -0
- package/src/execute-ads-actions/ads-views/make-persona-ad.ts +28 -0
- package/src/execute-ads-actions/ads-views/make-tkey-ad.ts +37 -0
- package/src/execute-ads-actions/index.ts +16 -0
- package/src/execute-ads-actions/observing.ts +115 -0
- package/src/execute-ads-actions/override-element-styles.ts +7 -0
- package/src/execute-ads-actions/process-insert-ad-action.ts +104 -0
- package/src/index.ts +19 -0
- package/src/temple-wallet-api.ts +80 -0
- package/src/transform-raw-rules.ts +139 -0
- package/src/types/ad-view.ts +4 -0
- package/src/types/ads-actions.ts +73 -0
- package/src/types/ads-meta.ts +51 -0
- package/src/types/ads-provider.ts +8 -0
- package/src/types/ads-rules.ts +17 -0
- package/src/types/temple-wallet-api.ts +56 -0
- package/src/utils.ts +10 -0
- package/tsconfig.json +25 -0
package/.eslintrc
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"plugin:import/errors",
|
|
4
|
+
"plugin:import/warnings",
|
|
5
|
+
"plugin:import/typescript"
|
|
6
|
+
],
|
|
7
|
+
"plugins": ["import", "prettier", "no-type-assertion", "@typescript-eslint"],
|
|
8
|
+
"parser": "@typescript-eslint/parser",
|
|
9
|
+
"overrides": [{
|
|
10
|
+
"files": ["*.ts", "*.tsx"],
|
|
11
|
+
"parserOptions": {
|
|
12
|
+
"project": ["./tsconfig.json"]
|
|
13
|
+
}
|
|
14
|
+
}],
|
|
15
|
+
"settings": {
|
|
16
|
+
"import/resolver": {
|
|
17
|
+
"typescript": {
|
|
18
|
+
"project": ["tsconfig.json"]
|
|
19
|
+
},
|
|
20
|
+
"node": {
|
|
21
|
+
"extensions": [".d.ts"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"ignorePatterns": "src/**/*.embed.js",
|
|
26
|
+
"rules": {
|
|
27
|
+
"prettier/prettier": "error",
|
|
28
|
+
"prefer-const": "error",
|
|
29
|
+
"import/no-duplicates": "error",
|
|
30
|
+
"import/no-named-as-default": "off",
|
|
31
|
+
"import/no-named-as-default-member": "off",
|
|
32
|
+
"import/no-self-import": "error",
|
|
33
|
+
"import/no-cycle": "error",
|
|
34
|
+
"import/order": [
|
|
35
|
+
"error",
|
|
36
|
+
{
|
|
37
|
+
"groups": [["external", "builtin"], "internal", "parent", "sibling", "index"],
|
|
38
|
+
"alphabetize": {
|
|
39
|
+
"order": "asc",
|
|
40
|
+
"caseInsensitive": true
|
|
41
|
+
},
|
|
42
|
+
"newlines-between": "always"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"no-type-assertion/no-type-assertion": "warn",
|
|
46
|
+
"@typescript-eslint/await-thenable": "error",
|
|
47
|
+
"@typescript-eslint/prefer-ts-expect-error": "error"
|
|
48
|
+
}
|
|
49
|
+
}
|
package/.prettierignore
ADDED