@prodigio-io/sdk 2.1.2 → 2.1.3

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/dist/index.js CHANGED
@@ -92,10 +92,9 @@ async function verifyBadgeToken(token) {
92
92
  }
93
93
  }
94
94
  var BADGE_ELEMENT_ID = "prodigio-badge-widget";
95
- function injectBadge(position = "bottom-right") {
95
+ function injectBadge(_position) {
96
96
  if (typeof document === "undefined") return;
97
97
  if (document.getElementById(BADGE_ELEMENT_ID)) return;
98
- const side = position === "bottom-left" ? "left: 20px;" : "right: 20px;";
99
98
  const el = document.createElement("a");
100
99
  el.id = BADGE_ELEMENT_ID;
101
100
  el.href = "https://prodigio.io";
@@ -104,21 +103,25 @@ function injectBadge(position = "bottom-right") {
104
103
  el.setAttribute("data-prodigio-badge", "true");
105
104
  el.setAttribute("aria-label", "Hiring powered by Prodigio");
106
105
  el.style.cssText = `
107
- position: fixed; bottom: 20px; ${side}
108
- z-index: 2147483647; display: inline-flex; align-items: center; gap: 6px;
109
- padding: 6px 10px; background: #ffffff; border: 1px solid #e5e5e5;
110
- border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
106
+ position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
107
+ z-index: 2147483647; display: inline-flex; align-items: center; gap: 7px;
108
+ padding: 7px 14px; background: #ffffff; border: 1px solid #e5e5e5;
109
+ border-radius: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
111
110
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
112
- font-size: 11px; font-weight: 500; color: #666666;
111
+ font-size: 12px; font-weight: 400; color: #555555;
113
112
  text-decoration: none; cursor: pointer; transition: box-shadow 0.15s ease;
113
+ white-space: nowrap;
114
114
  `;
115
115
  el.innerHTML = `
116
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
117
- <rect width="24" height="24" rx="6" fill="#3730A3"/>
118
- <path d="M7 7h5.5a3.5 3.5 0 0 1 0 7H7V7z" fill="#fff"/>
119
- <path d="M7 14h6a3 3 0 0 1 0 6H7v-6z" fill="#fff" opacity="0.6"/>
120
- </svg>
121
- <span>Hiring powered by Prodigio</span>
116
+ <span style="color:#555555;font-weight:400;">Hiring powered by</span>
117
+ <span style="display:inline-flex;align-items:center;gap:5px;">
118
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
119
+ <rect width="24" height="24" rx="6" fill="#3730A3"/>
120
+ <path d="M7 7h5.5a3.5 3.5 0 0 1 0 7H7V7z" fill="#fff"/>
121
+ <path d="M7 14h6a3 3 0 0 1 0 6H7v-6z" fill="#fff" opacity="0.6"/>
122
+ </svg>
123
+ <span style="color:#111111;font-weight:600;font-size:12px;">Prodigio</span>
124
+ </span>
122
125
  `;
123
126
  el.addEventListener("mouseenter", () => {
124
127
  el.style.boxShadow = "0 4px 12px rgba(0,0,0,0.12)";
package/dist/index.mjs CHANGED
@@ -66,10 +66,9 @@ async function verifyBadgeToken(token) {
66
66
  }
67
67
  }
68
68
  var BADGE_ELEMENT_ID = "prodigio-badge-widget";
69
- function injectBadge(position = "bottom-right") {
69
+ function injectBadge(_position) {
70
70
  if (typeof document === "undefined") return;
71
71
  if (document.getElementById(BADGE_ELEMENT_ID)) return;
72
- const side = position === "bottom-left" ? "left: 20px;" : "right: 20px;";
73
72
  const el = document.createElement("a");
74
73
  el.id = BADGE_ELEMENT_ID;
75
74
  el.href = "https://prodigio.io";
@@ -78,21 +77,25 @@ function injectBadge(position = "bottom-right") {
78
77
  el.setAttribute("data-prodigio-badge", "true");
79
78
  el.setAttribute("aria-label", "Hiring powered by Prodigio");
80
79
  el.style.cssText = `
81
- position: fixed; bottom: 20px; ${side}
82
- z-index: 2147483647; display: inline-flex; align-items: center; gap: 6px;
83
- padding: 6px 10px; background: #ffffff; border: 1px solid #e5e5e5;
84
- border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
80
+ position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
81
+ z-index: 2147483647; display: inline-flex; align-items: center; gap: 7px;
82
+ padding: 7px 14px; background: #ffffff; border: 1px solid #e5e5e5;
83
+ border-radius: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
85
84
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
86
- font-size: 11px; font-weight: 500; color: #666666;
85
+ font-size: 12px; font-weight: 400; color: #555555;
87
86
  text-decoration: none; cursor: pointer; transition: box-shadow 0.15s ease;
87
+ white-space: nowrap;
88
88
  `;
89
89
  el.innerHTML = `
90
- <svg width="14" height="14" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
91
- <rect width="24" height="24" rx="6" fill="#3730A3"/>
92
- <path d="M7 7h5.5a3.5 3.5 0 0 1 0 7H7V7z" fill="#fff"/>
93
- <path d="M7 14h6a3 3 0 0 1 0 6H7v-6z" fill="#fff" opacity="0.6"/>
94
- </svg>
95
- <span>Hiring powered by Prodigio</span>
90
+ <span style="color:#555555;font-weight:400;">Hiring powered by</span>
91
+ <span style="display:inline-flex;align-items:center;gap:5px;">
92
+ <svg width="16" height="16" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
93
+ <rect width="24" height="24" rx="6" fill="#3730A3"/>
94
+ <path d="M7 7h5.5a3.5 3.5 0 0 1 0 7H7V7z" fill="#fff"/>
95
+ <path d="M7 14h6a3 3 0 0 1 0 6H7v-6z" fill="#fff" opacity="0.6"/>
96
+ </svg>
97
+ <span style="color:#111111;font-weight:600;font-size:12px;">Prodigio</span>
98
+ </span>
96
99
  `;
97
100
  el.addEventListener("mouseenter", () => {
98
101
  el.style.boxShadow = "0 4px 12px rgba(0,0,0,0.12)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prodigio-io/sdk",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Official JavaScript SDK for the Prodigio hiring API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",