Skip to content

Commit

Permalink
Merge pull request #7 from BlinkID/staging
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
ivancuric authored Apr 2, 2024
2 parents b7679e2 + 34c8415 commit c8fdb19
Show file tree
Hide file tree
Showing 102 changed files with 13,412 additions and 824 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": ["example-*"]
}
2 changes: 1 addition & 1 deletion apps/example-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023 Microblink Ltd. All rights reserved.
* Copyright (c) 2024 Microblink Ltd. All rights reserved.
*
* ANY UNAUTHORIZED USE OR SALE, DUPLICATION, OR DISTRIBUTION
* OF THIS PROGRAM OR ANY OF ITS PARTS, IN SOURCE OR BINARY FORMS,
Expand Down
2 changes: 1 addition & 1 deletion apps/example-react/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023 Microblink Ltd. All rights reserved.
* Copyright (c) 2024 Microblink Ltd. All rights reserved.
*
* ANY UNAUTHORIZED USE OR SALE, DUPLICATION, OR DISTRIBUTION
* OF THIS PROGRAM OR ANY OF ITS PARTS, IN SOURCE OR BINARY FORMS,
Expand Down
2 changes: 1 addition & 1 deletion apps/example-react/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023 Microblink Ltd. All rights reserved.
* Copyright (c) 2024 Microblink Ltd. All rights reserved.
*
* ANY UNAUTHORIZED USE OR SALE, DUPLICATION, OR DISTRIBUTION
* OF THIS PROGRAM OR ANY OF ITS PARTS, IN SOURCE OR BINARY FORMS,
Expand Down
2 changes: 1 addition & 1 deletion apps/example-react/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2023 Microblink Ltd. All rights reserved.
* Copyright (c) 2024 Microblink Ltd. All rights reserved.
*
* ANY UNAUTHORIZED USE OR SALE, DUPLICATION, OR DISTRIBUTION
* OF THIS PROGRAM OR ANY OF ITS PARTS, IN SOURCE OR BINARY FORMS,
Expand Down
7 changes: 7 additions & 0 deletions apps/example-solidjs-sdk-preinit/.env
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
53 changes: 53 additions & 0 deletions apps/example-solidjs-sdk-preinit/.eslintrc.cjs
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,
},
},
],
});
7 changes: 7 additions & 0 deletions apps/example-solidjs-sdk-preinit/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
public
types
certs
*.local
.env.production
40 changes: 40 additions & 0 deletions apps/example-solidjs-sdk-preinit/CHANGELOG.md
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]
20 changes: 20 additions & 0 deletions apps/example-solidjs-sdk-preinit/index.html
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>
7 changes: 7 additions & 0 deletions apps/example-solidjs-sdk-preinit/lint-staged.config.cjs
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"],
};
8 changes: 8 additions & 0 deletions apps/example-solidjs-sdk-preinit/netlify.toml
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"
46 changes: 46 additions & 0 deletions apps/example-solidjs-sdk-preinit/package.json
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"
}
31 changes: 31 additions & 0 deletions apps/example-solidjs-sdk-preinit/serve.json
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": "*"
}
]
}
]
}
Loading

0 comments on commit c8fdb19

Please sign in to comment.