-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from BlinkID/staging
Release 1.2.0
- Loading branch information
Showing
102 changed files
with
13,412 additions
and
824 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# For development, create a .env.local or a .env.production using this template | ||
# Never put your licence key in this file as it will be commited | ||
|
||
# https://vitejs.dev/guide/env-and-mode.html#env-files | ||
|
||
|
||
VITE_LICENCE_KEY=PLACE_YOUR_LICENCE_KEY_HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
const { defineConfig } = require("eslint-define-config"); | ||
|
||
module.exports = defineConfig({ | ||
root: true, | ||
|
||
parserOptions: { | ||
ecmaVersion: "2022", | ||
sourceType: "module", | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: ["src/**/*.{ts,tsx}"], | ||
plugins: ["@typescript-eslint", "solid"], | ||
parser: "@typescript-eslint/parser", | ||
// have to duplicate in override... | ||
rules: { | ||
"@typescript-eslint/no-unused-vars": 0, | ||
// the following two are causing errors in vscode. See: | ||
// https://typescript-eslint.io/linting/troubleshooting/#changes-to-one-file-are-not-reflected-when-linting-other-files-in-my-ide | ||
"@typescript-eslint/no-unsafe-assignment": 0, | ||
"@typescript-eslint/no-unsafe-member-access": 0, | ||
// only use in tsx | ||
"@typescript-eslint/no-non-null-assertion": 0, | ||
"@typescript-eslint/consistent-type-definitions": 0, | ||
"prefer-const": 0, | ||
}, | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: ["./tsconfig.json"], | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:solid/typescript", | ||
"plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic-type-checked", | ||
"prettier", | ||
], | ||
}, | ||
{ | ||
files: ["**/*.{js,mjs,cjs}"], | ||
env: { | ||
node: true, | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: ["eslint:recommended"], | ||
rules: { | ||
"no-unused-vars": 0, | ||
}, | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
node_modules | ||
dist | ||
public | ||
types | ||
certs | ||
*.local | ||
.env.production |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# example-solidjs | ||
|
||
## 1.1.1 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [f70472b] | ||
- @microblink/capture@1.1.1 | ||
|
||
## 1.1.0 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies | ||
- @microblink/capture@1.1.0 | ||
|
||
## 0.0.3 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies [15bde2b] | ||
- @microblink/capture@1.0.7 | ||
- [email protected] | ||
|
||
## 0.0.2 | ||
|
||
### Patch Changes | ||
|
||
- 2412e97: - Fixed an issue where React refs weren't a valid target for `UiSettings.target`. | ||
- Updated JSdoc for `createCaptureUI` | ||
- Updated React example to use `UiSettings.target` | ||
- Updated dependencies [2412e97] | ||
- [email protected] | ||
|
||
## 0.0.1 | ||
|
||
### Patch Changes | ||
|
||
- Updated dependencies | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" /> | ||
<meta | ||
http-equiv="Content-Security-Policy" | ||
content="worker-src 'self' blob:" | ||
/> | ||
<title>Capture Demo</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
|
||
<script src="/src/index.tsx" type="module"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
"*.{js,jsx,ts,tsx}": [() => "eslint --max-warnings=0"], | ||
"*.{ts,tsx}": [ | ||
() => "tsc-files --skipLibCheck --emitDeclarationOnly false --noEmit", | ||
], | ||
"*.{js,jsx,ts,tsx,css,md}": ["prettier --write"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[[headers]] | ||
for = "/*" | ||
[headers.values] | ||
Cross-Origin-Embedder-Policy = "require-corp" | ||
Cross-Origin-Opener-Policy = "same-origin" | ||
|
||
for = "/resources/*" | ||
Cache-Control = "max-age=300" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "example-solidjs-sdk-preinit", | ||
"description": "", | ||
"private": true, | ||
"version": "1.1.1", | ||
"scripts": { | ||
"build": "vite build", | ||
"build:js-dev": "vite build --mode development", | ||
"clean": "rimraf dist public .turbo types tsconfig.tsbuildinfo", | ||
"dev": "vite", | ||
"lint": "concurrently pnpm:lint:types pnpm:lint:eslint", | ||
"lint:eslint": "eslint ./src --max-warnings 0", | ||
"lint:types": "tsc --emitDeclarationOnly false --noEmit", | ||
"make-certs": "mkcert-cli -y --outDir certs", | ||
"preview": "vite preview", | ||
"serve": "pnpm make-certs && serve --ssl-cert ./certs/dev.cert --ssl-key ./certs/dev.key", | ||
"watch": "vite build --watch --mode development" | ||
}, | ||
"type": "module", | ||
"dependencies": { | ||
"@microblink/capture": "workspace:*", | ||
"solid-js": "^1.8.1" | ||
}, | ||
"devDependencies": { | ||
"@mb/utils": "workspace:*", | ||
"@typescript-eslint/eslint-plugin": "^6.9.0", | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.52.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-define-config": "^1.24.1", | ||
"eslint-plugin-solid": "^0.13.0", | ||
"mkcert-cli": "^1.5.0", | ||
"prettier": "^3.0.3", | ||
"rimraf": "^5.0.5", | ||
"sass": "^1.69.4", | ||
"serve": "^14.2.1", | ||
"tsc-files": "^1.1.4", | ||
"tsconfig": "workspace:*", | ||
"typescript": "^5.2.2", | ||
"vite": "^4.5.0", | ||
"vite-plugin-mkcert": "^1.16.0", | ||
"vite-plugin-solid": "^2.7.2", | ||
"zx": "^7.2.3" | ||
}, | ||
"license": "MIT" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"public": "dist", | ||
"headers": [ | ||
{ | ||
"source": "**/*", | ||
"headers": [ | ||
{ | ||
"key": "Cross-Origin-Embedder-Policy", | ||
"value": "require-corp" | ||
}, | ||
{ | ||
"key": "Cross-Origin-Opener-Policy", | ||
"value": "same-origin" | ||
} | ||
] | ||
}, | ||
{ | ||
"source": "resources/**/*", | ||
"headers": [ | ||
{ | ||
"key": "Cache-Control", | ||
"value": "max-age=300" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Origin", | ||
"value": "*" | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.