@flarehr/apollo-benefits 0.1.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.
@@ -0,0 +1,14 @@
1
+ {
2
+ "oidcAuthority": "__OIDC_AUTHORITY",
3
+ "apiBaseUrl": "__API_BASE_URL",
4
+ "apiGatewayBaseUrl": "__API_GATEWAY_BASE_URL",
5
+ "apolloBaseUrl": "__APOLLO_BASE_URL",
6
+ "apiV2BaseUrl": "__API_V2_BASE_URL",
7
+ "workplaceBackendUrl": "__WORKPLACE_BACKEND_URL",
8
+ "appInsightsKey": "__APP_INSIGHTS_KEY",
9
+ "contentfulSpace": "hos0i9i3wvo7",
10
+ "contentfulEnvironment": "__CONTENTFUL_ENVIRONMENT",
11
+ "contentfulApiKey": "pZ8KQVJZ8iSqixnowan6aKl9xmpE61FDPJvyAB49bpY",
12
+ "carsCalculatorUrl": "https://www.flarehr.com/cars/calculator",
13
+ "splitAuthorizationKey": "__SPLIT_AUTHORIZATION_KEY"
14
+ }
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,86 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" >
5
+ <title>Flare Benefits</title>
6
+ <meta name="viewport" content="width=device-width,initial-scale=1" >
7
+ <meta name="mobile-web-app-capable" content="yes" >
8
+ <meta name="apple-mobile-web-app-capable" content="yes" >
9
+ <link rel="apple-touch-icon" href="./icons/apple-touch-icon.png" >
10
+ <link rel="icon" type="image/x-icon" href="./favicon.ico">
11
+ <link rel="stylesheet" href="https://rsms.me/inter/inter.css" >
12
+ <link rel="manifest" href="./manifest.json" >
13
+ <script>
14
+ !(function () {
15
+ var analytics = (window.analytics = window.analytics || []);
16
+ if (!analytics.initialize)
17
+ if (analytics.invoked)
18
+ window.console && console.error && console.error('Segment snippet included twice.');
19
+ else {
20
+ analytics.invoked = !0;
21
+ analytics.methods = [
22
+ 'trackSubmit',
23
+ 'trackClick',
24
+ 'trackLink',
25
+ 'trackForm',
26
+ 'pageview',
27
+ 'identify',
28
+ 'reset',
29
+ 'group',
30
+ 'track',
31
+ 'ready',
32
+ 'alias',
33
+ 'debug',
34
+ 'page',
35
+ 'once',
36
+ 'off',
37
+ 'on',
38
+ 'addSourceMiddleware',
39
+ 'addIntegrationMiddleware',
40
+ 'setAnonymousId',
41
+ 'addDestinationMiddleware'
42
+ ];
43
+ analytics.factory = function (e) {
44
+ return function () {
45
+ var t = Array.prototype.slice.call(arguments);
46
+ t.unshift(e);
47
+ analytics.push(t);
48
+ return analytics;
49
+ };
50
+ };
51
+ for (var e = 0; e < analytics.methods.length; e++) {
52
+ var key = analytics.methods[e];
53
+ analytics[key] = analytics.factory(key);
54
+ }
55
+ analytics.load = function (key, e) {
56
+ var t = document.createElement('script');
57
+ t.type = 'text/javascript';
58
+ t.async = !0;
59
+ t.src = 'https://cdn.segment.com/analytics.js/v1/' + key + '/analytics.min.js';
60
+ var n = document.getElementsByTagName('script')[0];
61
+ n.parentNode.insertBefore(t, n);
62
+ analytics._loadOptions = e;
63
+ };
64
+ analytics._writeKey = '__SEGMENT_WRITE_KEY';
65
+ analytics.SNIPPET_VERSION = '4.15.2';
66
+ analytics.load('__SEGMENT_WRITE_KEY');
67
+ analytics.page();
68
+ }
69
+ })();
70
+ </script>
71
+ <script type="module" crossorigin src="/benefits/app/assets/index-44fc3e61.js"></script>
72
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/lodash-5d893f8c.js">
73
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/vendor-7d57579b.js">
74
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/oidc-client-6f6e47c2.js">
75
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/date-fns-36105733.js">
76
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/framer-motion-2104a442.js">
77
+ <link rel="modulepreload" crossorigin href="/benefits/app/assets/datadog-bf488473.js">
78
+ <link rel="stylesheet" href="/benefits/app/assets/index-7034ea76.css">
79
+ </head>
80
+ <body>
81
+ <script type="module" src="https://npm-cdn.flarehr.com/@flarehr/salpac-cars-calculator@__ENVIRONMENT/dist/salpac-cars-calculator.js"></script>
82
+ <script type="module" src="https://npm-cdn.flarehr.com/@flarehr/apollo-customer-workplace-link@__ENVIRONMENT/build/bundle.esm.js"></script>
83
+
84
+
85
+ </body>
86
+ </html>
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "Flare Benefits",
3
+ "short_name": "Flare Benefits",
4
+ "start_url": "/",
5
+ "display": "standalone",
6
+ "orientation": "portrait",
7
+ "background_color": "#fff",
8
+ "theme_color": "#673ab8",
9
+ "icons": [
10
+ {
11
+ "src": "./icons/android-chrome-192x192.png",
12
+ "type": "image/png",
13
+ "sizes": "192x192"
14
+ },
15
+ {
16
+ "src": "./icons/android-chrome-512x512.png",
17
+ "type": "image/png",
18
+ "sizes": "512x512"
19
+ }
20
+ ]
21
+ }
package/dist/sw-esm.js ADDED
@@ -0,0 +1,16 @@
1
+ // To deregister the current service worker.
2
+ // Can be removed when we are confident all client services workers are deregistered (~1 year)
3
+
4
+ self.addEventListener('install', function(_) {
5
+ self.skipWaiting();
6
+ });
7
+
8
+ self.addEventListener('activate', function(_) {
9
+ self.registration.unregister()
10
+ .then(function() {
11
+ return self.clients.matchAll();
12
+ })
13
+ .then(function(clients) {
14
+ clients.forEach(client => client.navigate(client.url))
15
+ });
16
+ });
package/package.json ADDED
@@ -0,0 +1,137 @@
1
+ {
2
+ "name": "@flarehr/apollo-benefits",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "description": "Flare Benefits",
6
+ "files": [
7
+ "dist/"
8
+ ],
9
+ "scripts": {
10
+ "dev": "vite",
11
+ "build": "tsc && vite build",
12
+ "preview": "vite preview",
13
+ "analyze": "npx vite-bundle-visualizer",
14
+ "dev:api": "cd ../api/Benefits.Api && func start --build",
15
+ "typescript": "tsc",
16
+ "lint": "eslint src/**/*.{js,jsx,ts,tsx}",
17
+ "lint:fix": "eslint src/**/*.{js,jsx,ts,tsx} --fix",
18
+ "lint:staged": "lint-staged --config ./lint-staged.config.js",
19
+ "test": "jest",
20
+ "prepare": "cd .. && husky install benefits-client/.husky"
21
+ },
22
+ "dependencies": {
23
+ "@babel/plugin-proposal-decorators": "^7.23.2",
24
+ "@babel/preset-env": "^7.23.2",
25
+ "@contentful/rich-text-react-renderer": "^15.11.1",
26
+ "@datadog/browser-rum": "^5.1.0",
27
+ "@datorama/akita": "^8.0.1",
28
+ "@fortawesome/fontawesome-svg-core": "^6.4.2",
29
+ "@fortawesome/pro-duotone-svg-icons": "^6.4.2",
30
+ "@fortawesome/pro-light-svg-icons": "^6.4.2",
31
+ "@fortawesome/pro-regular-svg-icons": "^6.4.2",
32
+ "@fortawesome/pro-solid-svg-icons": "^6.4.2",
33
+ "@fortawesome/react-fontawesome": "^0.2.0",
34
+ "@headlessui/react": "^1.7.16",
35
+ "@heroicons/react": "^2.0.12",
36
+ "@juggle/resize-observer": "^3.3.1",
37
+ "@microsoft/applicationinsights-web": "^2.6.5",
38
+ "@popperjs/core": "^2.9.3",
39
+ "@splitsoftware/splitio-react": "^1.8.1",
40
+ "@typeform/embed-react": "^3.9.0",
41
+ "contentful": "^9.1.13",
42
+ "date-fns": "^2.23.0",
43
+ "flowbite-datepicker": "^1.2.1",
44
+ "formik": "^2.2.9",
45
+ "fp-ts": "^2.11.1",
46
+ "framer-motion": "^10.16.4",
47
+ "history": "^5.0.0",
48
+ "immer": "^9.0.6",
49
+ "is-primitive": "^3.0.1",
50
+ "jwt-decode": "^3.1.2",
51
+ "mime": "^2.5.2",
52
+ "oidc-client": "^1.11.5",
53
+ "preact": "^10.16.0",
54
+ "preact-iso": "^2.3.2",
55
+ "preact-render-to-string": "^5.1.19",
56
+ "preact-router": "^3.2.1",
57
+ "rxjs": "^7.8.1",
58
+ "smoothscroll-polyfill": "^0.4.4",
59
+ "ts-pattern": "^3.2.4",
60
+ "uuid": "^8.3.2",
61
+ "wretch": "^2.3.2",
62
+ "yup": "^0.32.9"
63
+ },
64
+ "devDependencies": {
65
+ "@babel/plugin-syntax-decorators": "^7.22.10",
66
+ "@babel/preset-typescript": "^7.23.2",
67
+ "@originjs/vite-plugin-commonjs": "^1.0.3",
68
+ "@preact/preset-vite": "^2.6.0",
69
+ "@rollup/plugin-replace": "^2.4.2",
70
+ "@tailwindcss/forms": "^0.5.2",
71
+ "@tailwindcss/typography": "^0.5.2",
72
+ "@types/enzyme": "^3.10.9",
73
+ "@types/jest": "^26.0.24",
74
+ "@types/mime": "^2.0.3",
75
+ "@types/node": "^15.6.1",
76
+ "@types/resize-observer-browser": "^0.1.6",
77
+ "@types/segment-analytics": "^0.0.34",
78
+ "@types/smoothscroll-polyfill": "^0.3.1",
79
+ "@types/tailwindcss": "^3.0.11",
80
+ "@typescript-eslint/eslint-plugin": "^6.8.0",
81
+ "@typescript-eslint/parser": "^6.8.0",
82
+ "autoprefixer": "10.4.5",
83
+ "babel-jest": "^28.1.1",
84
+ "browserslist-useragent-regexp": "^3.0.0",
85
+ "copy-webpack-plugin": "^6.4.1",
86
+ "cross-zip": "^4.0.0",
87
+ "env-cmd": "^10.1.0",
88
+ "enzyme": "^3.11.0",
89
+ "enzyme-adapter-preact-pure": "^3.1.0",
90
+ "eslint": "^8.49.0",
91
+ "eslint-config-preact": "^1.3.0",
92
+ "eslint-config-prettier": "^9.0.0",
93
+ "eslint-plugin-jest": "^27.2.3",
94
+ "eslint-plugin-prettier": "^5.0.0",
95
+ "eslint-plugin-simple-import-sort": "^7.0.0",
96
+ "eslint-plugin-unused-imports": "^3.0.0",
97
+ "husky": "^6.0.0",
98
+ "jest": "^28.1.1",
99
+ "jest-cli": "^28.0.8",
100
+ "jest-preset-preact": "^4.1.0",
101
+ "lint-staged": "^11.1.2",
102
+ "postcss": "^8.4.14",
103
+ "prettier": "^3.0.3",
104
+ "rollup-plugin-ignore": "^1.0.9",
105
+ "sirv-cli": "^1.0.12",
106
+ "tailwindcss": "^3.1.4",
107
+ "ts-jest": "^28.0.8",
108
+ "typescript": "^5.1.6",
109
+ "vite": "^4.5.0",
110
+ "vite-plugin-commonjs": "^0.10.0",
111
+ "vite-plugin-html": "^3.2.0",
112
+ "vite-plugin-pwa": "^0.16.5",
113
+ "vite-plugin-static-copy": "^0.17.0",
114
+ "workbox-build": "^6.5.3",
115
+ "workbox-webpack-plugin": "^6.5.3"
116
+ },
117
+ "overrides": {
118
+ "autoprefixer": "10.4.5",
119
+ "ini": "1.3.8",
120
+ "set-value": "4.1.0",
121
+ "glob-parent": "6.0.2",
122
+ "minimist": "1.2.6"
123
+ },
124
+ "browserslist": [
125
+ "last 2 versions",
126
+ "and_chr >= 80.0.3987.99",
127
+ "samsung > 8",
128
+ "chrome >= 64",
129
+ "ios_saf > 11",
130
+ "safari >= 11.1",
131
+ "firefox >= 70",
132
+ "edge >= 80",
133
+ "opera >= 51",
134
+ "not dead",
135
+ "not IE 11"
136
+ ]
137
+ }