authscape 1.0.720 → 1.0.724

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/index.js CHANGED
@@ -8299,101 +8299,6 @@ function _getServerSideProps() {
8299
8299
  }));
8300
8300
  return _getServerSideProps.apply(this, arguments);
8301
8301
  }
8302
- #!/usr/bin/env node
8303
-
8304
- /**
8305
- * AuthScape Post-Install Script
8306
- * Automatically sets up sitemap.xml for Next.js projects (both Pages Router and App Router)
8307
- */
8308
- "use strict";
8309
-
8310
- var fs = require('fs');
8311
- var path = require('path');
8312
-
8313
- // Template for Pages Router
8314
- var PAGES_ROUTER_TEMPLATE = "// Auto-generated by AuthScape - Do not edit manually\nexport { default, getServerSideProps } from 'authscape/lib/sitemap';\n";
8315
-
8316
- // Template for App Router
8317
- var APP_ROUTER_TEMPLATE = "// Auto-generated by AuthScape - Do not edit manually\nexport { GET } from 'authscape/lib/sitemap-route';\n";
8318
- function detectProjectStructure() {
8319
- // Get the parent directory where the user ran npm install
8320
- // This goes up from node_modules/authscape to the project root
8321
- var projectRoot = path.resolve(process.cwd(), '../..');
8322
-
8323
- // Check for App Router (prioritize newer approach)
8324
- var appDirs = [path.join(projectRoot, 'app'), path.join(projectRoot, 'src', 'app')];
8325
- for (var _i = 0, _appDirs = appDirs; _i < _appDirs.length; _i++) {
8326
- var dir = _appDirs[_i];
8327
- if (fs.existsSync(dir)) {
8328
- return {
8329
- type: 'app',
8330
- baseDir: dir,
8331
- sitemapPath: path.join(dir, 'sitemap.xml'),
8332
- filePath: path.join(dir, 'sitemap.xml', 'route.js')
8333
- };
8334
- }
8335
- }
8336
-
8337
- // Check for Pages Router
8338
- var pagesDirs = [path.join(projectRoot, 'pages'), path.join(projectRoot, 'src', 'pages')];
8339
- for (var _i2 = 0, _pagesDirs = pagesDirs; _i2 < _pagesDirs.length; _i2++) {
8340
- var _dir = _pagesDirs[_i2];
8341
- if (fs.existsSync(_dir)) {
8342
- return {
8343
- type: 'pages',
8344
- baseDir: _dir,
8345
- sitemapPath: path.join(_dir, 'sitemap.xml.js'),
8346
- filePath: path.join(_dir, 'sitemap.xml.js')
8347
- };
8348
- }
8349
- }
8350
- return null;
8351
- }
8352
- function setupSitemap() {
8353
- var structure = detectProjectStructure();
8354
- if (!structure) {
8355
- console.log('⚠️ Next.js pages/app directory not found. Skipping sitemap setup.');
8356
- console.log(' To set up manually, visit: https://authscape.com/docs/sitemap');
8357
- return;
8358
- }
8359
-
8360
- // Check if sitemap file already exists
8361
- if (fs.existsSync(structure.filePath)) {
8362
- // File exists, don't overwrite
8363
- return;
8364
- }
8365
- try {
8366
- if (structure.type === 'app') {
8367
- // App Router: Create directory first, then route.js inside it
8368
- if (!fs.existsSync(structure.sitemapPath)) {
8369
- fs.mkdirSync(structure.sitemapPath, {
8370
- recursive: true
8371
- });
8372
- }
8373
- fs.writeFileSync(structure.filePath, APP_ROUTER_TEMPLATE, 'utf8');
8374
- console.log('✅ AuthScape sitemap configured at /sitemap.xml (App Router)');
8375
- } else {
8376
- // Pages Router: Just create the file
8377
- fs.writeFileSync(structure.filePath, PAGES_ROUTER_TEMPLATE, 'utf8');
8378
- console.log('✅ AuthScape sitemap configured at /sitemap.xml (Pages Router)');
8379
- }
8380
- } catch (error) {
8381
- // Silent failure - don't break the install
8382
- console.log('⚠️ Could not auto-configure sitemap:', error.message);
8383
- console.log(' To set up manually, visit: https://authscape.com/docs/sitemap');
8384
- }
8385
- }
8386
-
8387
- // Run the setup
8388
- try {
8389
- setupSitemap();
8390
- } catch (error) {
8391
- // Completely silent failure to avoid breaking npm install
8392
- // Only log if there's an unexpected error
8393
- if (process.env.DEBUG) {
8394
- console.error('AuthScape postinstall error:', error);
8395
- }
8396
- }
8397
8302
  "use strict";
8398
8303
 
8399
8304
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
1
  {
2
2
  "name": "authscape",
3
- "version": "1.0.720",
3
+ "version": "1.0.724",
4
4
  "description": "",
5
5
  "main": "index.js",
6
+ "files": [
7
+ "index.js",
8
+ "src/lib/**",
9
+ "src/scripts/**",
10
+ "src/services/**",
11
+ "src/components/**",
12
+ "readme.md"
13
+ ],
6
14
  "scripts": {
7
15
  "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "npx babel src --out-file index.js",
16
+ "build": "npx babel src --out-file index.js --ignore \"src/scripts/**\"",
9
17
  "postinstall": "node src/scripts/postinstall.js || exit 0"
10
18
  },
11
19
  "author": "zuechb",
@@ -10,12 +10,12 @@ const path = require('path');
10
10
 
11
11
  // Template for Pages Router
12
12
  const PAGES_ROUTER_TEMPLATE = `// Auto-generated by AuthScape - Do not edit manually
13
- export { default, getServerSideProps } from 'authscape/lib/sitemap';
13
+ export { default, getServerSideProps } from 'authscape/src/lib/sitemap';
14
14
  `;
15
15
 
16
16
  // Template for App Router
17
17
  const APP_ROUTER_TEMPLATE = `// Auto-generated by AuthScape - Do not edit manually
18
- export { GET } from 'authscape/lib/sitemap-route';
18
+ export { GET } from 'authscape/src/lib/sitemap-route';
19
19
  `;
20
20
 
21
21
  function detectProjectStructure() {
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "presets": ["@babel/preset-react", "@babel/preset-env"]
3
- }
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(dir:*)",
5
- "Bash(npm run build:*)",
6
- "Bash(exit 0)"
7
- ],
8
- "deny": [],
9
- "ask": []
10
- }
11
- }
@@ -1,103 +0,0 @@
1
- .Container {
2
- display: flex;
3
- flex-direction: column;
4
- grid-auto-rows: max-content;
5
- overflow: hidden;
6
- box-sizing: border-box;
7
- appearance: none;
8
- outline: none;
9
- min-width: 350px;
10
- margin: 10px;
11
- border-radius: 5px;
12
- min-height: 200px;
13
- transition: background-color 350ms ease;
14
- background-color: rgba(246, 246, 246, 1);
15
- border: 1px solid rgba(0, 0, 0, 0.05);
16
- font-size: 1em;
17
-
18
- .ul {
19
- display: grid;
20
- grid-gap: 10px;
21
- grid-template-columns: repeat(var(--columns, 1), 1fr);
22
- list-style: none;
23
- padding: 20px;
24
- margin: 0;
25
- }
26
-
27
- &.scrollable {
28
- .ul {
29
- overflow-y: auto;
30
- }
31
- }
32
-
33
- &.placeholder {
34
- justify-content: center;
35
- align-items: center;
36
- cursor: pointer;
37
- color: rgba(0, 0, 0, 0.5);
38
- background-color: transparent;
39
- border-style: dashed;
40
- border-color: rgba(0, 0, 0, 0.08);
41
-
42
- /* &:hover {
43
- border-color: rgba(0, 0, 0, 0.15);
44
- } */
45
- }
46
-
47
- &.hover {
48
- background-color: rgb(235, 235, 235, 1);
49
- }
50
-
51
- &.unstyled {
52
- overflow: visible;
53
- background-color: transparent !important;
54
- border: none !important;
55
- }
56
-
57
- &.horizontal {
58
- width: 100%;
59
-
60
- .ul {
61
- grid-auto-flow: column;
62
- }
63
- }
64
-
65
- &.shadow {
66
- box-shadow: 0 1px 10px 0 rgba(34, 33, 81, 0.1);
67
- }
68
-
69
- /* &:focus-visible {
70
- border-color: transparent;
71
- box-shadow: 0 0 0 2px rgba(255, 255, 255, 0), 0 0px 0px 2px #4c9ffe;
72
- } */
73
- }
74
-
75
- .Header {
76
- display: flex;
77
- padding: 5px 20px;
78
- padding-right: 8px;
79
- align-items: center;
80
- justify-content: space-between;
81
- background-color: #fff;
82
- border-top-left-radius: 5px;
83
- border-top-right-radius: 5px;
84
- border-bottom: 1px solid rgba(0, 0, 0, 0.08);
85
-
86
- /* &:hover {
87
- .Actions > * {
88
- opacity: 1 !important;
89
- }
90
- } */
91
- }
92
-
93
- /* .Actions {
94
- display: flex;
95
-
96
- > *:first-child:not(:last-child) {
97
- opacity: 0;
98
-
99
- &:focus-visible {
100
- opacity: 1;
101
- }
102
- }
103
- } */
@@ -1,135 +0,0 @@
1
- @keyframes pop {
2
- 0% {
3
- transform: scale(1);
4
- box-shadow: var(--box-shadow);
5
- }
6
- 100% {
7
- transform: scale(var(--scale));
8
- box-shadow: var(--box-shadow-picked-up);
9
- }
10
- }
11
-
12
- @keyframes fadeIn {
13
- 0% {
14
- opacity: 0;
15
- }
16
- 100% {
17
- opacity: 1;
18
- }
19
- }
20
-
21
- .Wrapper {
22
- display: flex;
23
- box-sizing: border-box;
24
- transform: translate3d(var(--translate-x, 0), var(--translate-y, 0), 0)
25
- scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));
26
- transform-origin: 0 0;
27
- touch-action: manipulation;
28
-
29
- &.fadeIn {
30
- animation: fadeIn 500ms ease;
31
- }
32
-
33
- &.dragOverlay {
34
- --scale: 1.05;
35
- --box-shadow: $box-shadow;
36
- --box-shadow-picked-up: $box-shadow-border,
37
- -1px 0 15px 0 rgba(34, 33, 81, 0.01),
38
- 0px 15px 15px 0 rgba(34, 33, 81, 0.25);
39
- z-index: 999;
40
- }
41
- }
42
-
43
- .Item {
44
- position: relative;
45
- display: flex;
46
- flex-grow: 1;
47
- align-items: center;
48
- padding: 18px 20px;
49
- background-color: #fff;
50
- box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
51
- outline: none;
52
- border-radius: calc(4px / var(--scale-x, 1));
53
- box-sizing: border-box;
54
- list-style: none;
55
- transform-origin: 50% 50%;
56
-
57
- -webkit-tap-highlight-color: transparent;
58
-
59
- color: #333;
60
- font-weight: 400;
61
- font-size: 1rem;
62
- white-space: nowrap;
63
-
64
- transform: scale(var(--scale, 1));
65
- transition: box-shadow 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
66
-
67
- /* &:focus-visible {
68
- box-shadow: 0 0px 4px 1px #4c9ffe, 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
69
- } */
70
-
71
- &:not(.withHandle) {
72
- touch-action: manipulation;
73
- cursor: pointer;
74
- }
75
-
76
- &.dragging:not(.dragOverlay) {
77
- opacity: var(--dragging-opacity, 0.5);
78
- z-index: 0;
79
-
80
- /* &:focus {
81
- box-shadow: 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
82
- } */
83
- }
84
-
85
- &.disabled {
86
- color: #999;
87
- background-color: #f1f1f1;
88
- /* &:focus {
89
- box-shadow: 0 0px 4px 1px rgba(0, 0, 0, 0.1), 0 0 0 calc(1px / var(--scale-x, 1)) rgba(63, 63, 68, 0.05), 0 1px calc(3px / var(--scale-x, 1)) 0 rgba(34, 33, 81, 0.15);
90
- } */
91
- cursor: not-allowed;
92
- }
93
-
94
- &.dragOverlay {
95
- cursor: inherit;
96
- /* box-shadow: 0 0px 6px 2px $focused-outline-color; */
97
- animation: pop 200ms cubic-bezier(0.18, 0.67, 0.6, 1.22);
98
- transform: scale(var(--scale));
99
- box-shadow: var(--box-shadow-picked-up);
100
- opacity: 1;
101
- }
102
-
103
- &.color:before {
104
- content: '';
105
- position: absolute;
106
- top: 50%;
107
- transform: translateY(-50%);
108
- left: 0;
109
- height: 100%;
110
- width: 3px;
111
- display: block;
112
- border-top-left-radius: 3px;
113
- border-bottom-left-radius: 3px;
114
- background-color: var(--color);
115
- }
116
-
117
- /* &:hover {
118
- .Remove {
119
- visibility: visible;
120
- }
121
- } */
122
- }
123
-
124
- .Remove {
125
- visibility: hidden;
126
- }
127
-
128
- .Actions {
129
- display: flex;
130
- align-self: flex-start;
131
- margin-top: -12px;
132
- margin-left: auto;
133
- margin-bottom: -15px;
134
- margin-right: -10px;
135
- }