@restorecommerce/facade 2.2.32 → 2.2.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/facade",
3
- "version": "2.2.32",
3
+ "version": "2.2.33",
4
4
  "description": "Facade for Restorecommerce microservices",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -103,7 +103,7 @@
103
103
  "vitest": "^3.2.4"
104
104
  },
105
105
  "scripts": {
106
- "build": "npm-run-all build:clean generate build:compile build:codegen:clean build:codegen:compile copyhbs",
106
+ "build": "npm-run-all build:clean generate build:compile build:codegen:clean build:codegen:compile",
107
107
  "build:clean": "rimraf -rf ./dist",
108
108
  "build:compile": "tsc -p tsconfig.lib.json",
109
109
  "build:codegen:clean": "rimraf -rf ./codegen",
@@ -117,7 +117,6 @@
117
117
  "generate": "tsx --tsconfig tsconfig.generate.json generate.ts",
118
118
  "prepublishOnly": "npm run build",
119
119
  "debug-run": "tsx --tsconfig tsconfig.debug.json debug-run.ts",
120
- "copyhbs": "sh copy-hbs.sh",
121
120
  "lint": "eslint './**/*.ts'"
122
121
  },
123
122
  "publishConfig": {
@@ -132,5 +131,5 @@
132
131
  }
133
132
  }
134
133
  },
135
- "gitHead": "c8f5d415e01f54740477d368ed68805954a05f84"
134
+ "gitHead": "c8d02d2a8baca560bcf6b38843a15f3df1f1fa54"
136
135
  }
package/copy-hbs.sh DELETED
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env sh
2
-
3
- set -ex
4
-
5
- find ./src -type f -name "*.hbs" | cut -d'/' -f3- | xargs -I{} dirname {} | xargs -I{} mkdir -p ./dist/{}
6
- find ./src -type f -name "*.hbs" | cut -d'/' -f3- | xargs -I{} cp -u ./src/{} ./dist/{}
@@ -1,27 +0,0 @@
1
- <style>
2
- .rc-login {
3
- height: 100%;
4
- background-color: #00adef;
5
- }
6
-
7
- .rc-account {
8
- width: 815px;
9
- box-sizing: border-box;
10
- border-radius: .3rem;
11
- background: #fff;
12
- padding: 1rem;
13
- }
14
- </style>
15
-
16
- <div class="rc-login flex col justify-center">
17
- <div class="self-center justify-center rc-account scale110p">
18
- <h2>{{title}}</h2>
19
- <div class="col center justify-center">
20
- <h3>Welcome {{user.firstName}} {{user.lastName}}!</h3>
21
-
22
- <a href="/oauth2-logout" class="button emphasized">
23
- <div class="icogram"><span class="text">Logout</span></div>
24
- </a>
25
- </div>
26
- </div>
27
- </div>
@@ -1,34 +0,0 @@
1
- <!DOCTYPE html>
2
- <html >
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
- <meta http-equiv="x-ua-compatible" content="ie=edge">
7
- <title>{{title}}</title>
8
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@vcl/vcl@2/dist/index.css">
9
- <style>
10
- .app {
11
- height: 100vh;
12
- max-width: 100%;
13
- }
14
- .debug summary {
15
- font-weight: bold;
16
- }
17
- .debug .debug-content {
18
- display: none;
19
- }
20
- .debug .debug-content.visible {
21
- display: block;
22
- }
23
- </style>
24
- </head>
25
- <body>
26
- <div class="app col">
27
- <main class="flex col">
28
- <div class="flex">
29
- {{{ body }}}
30
- </div>
31
- </main>
32
- </div>
33
- </body>
34
- </html>
@@ -1,27 +0,0 @@
1
- <style>
2
- .rc-login {
3
- height: 100%;
4
- background-color: #00adef;
5
- }
6
-
7
- .rc-account {
8
- width: 815px;
9
- box-sizing: border-box;
10
- border-radius: .3rem;
11
- background: #fff;
12
- padding: 1rem;
13
- }
14
- </style>
15
-
16
- <div class="rc-login flex col justify-center">
17
- <div class="self-center justify-center rc-account scale110p">
18
- <h2>{{title}}</h2>
19
- <div class="col center justify-center">
20
- <h3>Login using one of the following providers:</h3>
21
-
22
- <a href="{{links.google}}" class="button emphasized">
23
- <div class="icogram"><span class="text">Google</span></div>
24
- </a>
25
- </div>
26
- </div>
27
- </div>
@@ -1,134 +0,0 @@
1
- <style>
2
- .rc-login {
3
- height: 100%;
4
- background-color: #00adef;
5
- }
6
-
7
- .rc-account {
8
- width: 815px;
9
- box-sizing: border-box;
10
- border-radius: .3rem;
11
- background: #fff;
12
- padding: 1rem;
13
- }
14
- </style>
15
-
16
- <div class="rc-login flex col justify-center">
17
- <div class="self-center justify-center rc-account scale110p">
18
- <h2>{{title}}</h2>
19
- <div class="col center justify-center">
20
- <h3>Please register!</h3>
21
- <form class="form w-100p" method="post" action="/oauth2-register">
22
- <div class="form-control-group embedded-input-field-label floating">
23
- <label for="first_name" class="form-control-label">
24
- First Name
25
- <em class="required-indicator">•</em>
26
- </label>
27
- <div class="input-field">
28
- <input class="input" type="text" autocomplete="off" name="first_name" required>
29
- </div>
30
- </div>
31
-
32
- <div class="form-control-group embedded-input-field-label floating">
33
- <label for="last_name" class="form-control-label">
34
- Last Name
35
- <em class="required-indicator">•</em>
36
- </label>
37
- <div class="input-field">
38
- <input class="input" type="text" autocomplete="off" name="last_name" required>
39
- </div>
40
- </div>
41
-
42
- <div class="form-control-group embedded-input-field-label floating">
43
- <label for="username" class="form-control-label">
44
- Username
45
- <em class="required-indicator">•</em>
46
- </label>
47
- <div class="input-field">
48
- <input class="input" type="text" autocomplete="off" name="username" required>
49
- </div>
50
- </div>
51
-
52
- <div class="form-control-group embedded-input-field-label">
53
- <label for="email" class="form-control-label">
54
- Email
55
- <em class="required-indicator">•</em>
56
- </label>
57
- <div class="input-field">
58
- <input class="input" type="email" autocomplete="off" name="email" value="{{email}}" required>
59
- </div>
60
- </div>
61
-
62
- <div class="form-control-group embedded-input-field-label floating">
63
- <label for="password" class="form-control-label">
64
- Password
65
- <em class="required-indicator">•</em>
66
- </label>
67
- <div class="input-field">
68
- <input class="input" type="password" autocomplete="off" name="password" required>
69
- </div>
70
- </div>
71
-
72
- <div class="form-control-group embedded-input-field-label floating">
73
- <label for="password_repeated" class="form-control-label">
74
- Password Repeated
75
- <em class="required-indicator">•</em>
76
- </label>
77
- <div class="input-field">
78
- <input class="input" type="password" autocomplete="off" name="password_repeated" required>
79
- </div>
80
- </div>
81
-
82
- <button type="submit" class="button emphasized">
83
- <div class="icogram"><span class="text">Register</span></div>
84
- </button>
85
- </form>
86
- </div>
87
- </div>
88
- </div>
89
-
90
- <script>
91
- !function() {
92
- const docRoot = document.demoShadowRoot || document;
93
-
94
- function registerInputFieldListeners(fcg) {
95
- const inputField = fcg.querySelector('.input-field');
96
- const input = inputField.querySelector('input, textarea');
97
-
98
- function updateState() {
99
- const hasValue = typeof input.value === 'string' && input.value.length > 0;
100
- const hasFocus = docRoot.activeElement === input;
101
-
102
- if (hasFocus) {
103
- inputField.classList.add('focused');
104
- fcg.classList.add('focused');
105
- } else {
106
- inputField.classList.remove('focused');
107
- fcg.classList.remove('focused');
108
- }
109
-
110
- if (hasValue || hasFocus) {
111
- fcg.classList.remove('floating');
112
- } else {
113
- fcg.classList.add('floating');
114
- }
115
- }
116
-
117
- input.addEventListener('focus', updateState);
118
- input.addEventListener('blur', updateState);
119
- input.addEventListener('input', updateState);
120
-
121
- updateState();
122
-
123
- let prependedElements = 0, sibling = input;
124
- while (sibling = sibling.previousElementSibling) {
125
- prependedElements++;
126
- }
127
- fcg.style.setProperty('--prepended-elements', prependedElements);
128
-
129
- }
130
-
131
- const form = docRoot.querySelector('form');
132
- form.querySelectorAll('.form-control-group').forEach(fcg => registerInputFieldListeners(fcg));
133
- }();
134
- </script>