@linktr.ee/create-link-app 0.3.0-next.30 → 0.3.0-next.32

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.
@@ -24,7 +24,7 @@ class GenerateTypes extends base_1.default {
24
24
  async run() {
25
25
  try {
26
26
  // Check for necessary deps
27
- await this.dependOn('prettier');
27
+ await this.dependOn('npx');
28
28
  await this.dependOn('jtd-codegen');
29
29
  await this.log('✓ All dependencies present');
30
30
  // Ensure necessary directories exist
@@ -47,7 +47,7 @@ class GenerateTypes extends base_1.default {
47
47
  await this.generateAndAppendSchemaType('readonlyPrivate');
48
48
  await this.log('✓ Generated ReadonlyPrivateData type');
49
49
  // Clean up file formatting
50
- await this.cmd(`prettier ${this.typesPath}/index.ts --write`);
50
+ await this.cmd(`npx prettier ${this.typesPath}/index.ts --write`);
51
51
  await this.log('✓ All types created successfully');
52
52
  // Garbage collect temporary dir
53
53
  await this.cmd(`rm -rf ${this.tmpPath}`);
@@ -15,13 +15,12 @@ async function compileSchema() {
15
15
  strict: false,
16
16
  code: { source: true, esm: true },
17
17
  });
18
- schemaNames.forEach(async (schemaName) => {
18
+ await Promise.all(schemaNames.map(async (schemaName) => {
19
19
  const schemaPath = path_1.default.join(process.cwd(), `./schema/${schemaName}.jtd.json`);
20
20
  const schema = await fs_extra_1.default.readJSON(schemaPath);
21
21
  ajv.addSchema(schema, schemaName);
22
- });
23
- const compiled = ajv.compile(true);
24
- const moduleCode = (0, index_js_1.default)(ajv, compiled);
22
+ }));
23
+ const moduleCode = (0, index_js_1.default)(ajv);
25
24
  return moduleCode;
26
25
  }
27
26
  catch (e) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.0-next.30",
2
+ "version": "0.3.0-next.32",
3
3
  "commands": {
4
4
  "build": {
5
5
  "id": "build",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/create-link-app",
3
- "version": "0.3.0-next.30",
3
+ "version": "0.3.0-next.32",
4
4
  "description": "Create a Link App on Linktr.ee.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Linktree",
@@ -68,6 +68,7 @@
68
68
  "openid-client": "^5.1.6",
69
69
  "postcss": "^8.4.21",
70
70
  "postcss-loader": "^4.3.0",
71
+ "prettier": "^2.8.8",
71
72
  "prop-types": "^15.8.1",
72
73
  "react": "^17.0.2",
73
74
  "react-dom": "^17.0.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "metadata": {
3
- "description": "These are properties that the Linker can `read`, but the Visitor will never have access to."
3
+ "description": "These are properties that the Linker can `read` and `write`, but the Visitor will never have access to."
4
4
  },
5
5
  "properties": {}
6
6
  }
@@ -1,11 +1,11 @@
1
- import { SettingsData } from '../types'
1
+ import { AppProps } from '../types'
2
2
 
3
3
  const baseStyle = {
4
4
  backgroundColor: 'var(--lt-color-primary)',
5
5
  color: 'var(--lt-color-on-primary)',
6
6
  } as React.CSSProperties
7
7
 
8
- const Featured = (props: SettingsData) => {
8
+ const Featured = (props: AppProps) => {
9
9
  return (
10
10
  <div
11
11
  className="px-6 pt-12 pb-11 h-full"
@@ -19,7 +19,7 @@ const Featured = (props: SettingsData) => {
19
19
  )
20
20
  }
21
21
 
22
- const Carousel = (props: SettingsData) => {
22
+ const Carousel = (props: AppProps) => {
23
23
  return (
24
24
  <div
25
25
  className="px-4 pt-16 pb-10 h-full"
@@ -33,7 +33,7 @@ const Carousel = (props: SettingsData) => {
33
33
  )
34
34
  }
35
35
 
36
- const Grid = (props: SettingsData) => {
36
+ const Grid = (props: AppProps) => {
37
37
  return (
38
38
  <div className="px-3 py-10 h-full" style={{ ...baseStyle, borderRadius: 'var(--lt-grid-container-radius)' }}>
39
39
  Grid
@@ -41,7 +41,7 @@ const Grid = (props: SettingsData) => {
41
41
  )
42
42
  }
43
43
 
44
- const Stack = (props: SettingsData) => {
44
+ const Stack = (props: AppProps) => {
45
45
  return (
46
46
  <div className="flex p-2 h-full gap-4 w-full" style={{ ...baseStyle, borderRadius: 'var(--lt-stack-container-radius)' }}>
47
47
  <div className="w-16 aspect-square"></div>
@@ -41,7 +41,7 @@ export const Stack: ComponentStory<typeof LinkApp> = (args) => (
41
41
  </div>
42
42
  )
43
43
  Stack.args = {
44
- layout: Layout.stack,
44
+ layout: Layout.Stack,
45
45
  }
46
46
 
47
47
  export const Grid: ComponentStory<typeof LinkApp> = (args) => (
@@ -56,7 +56,7 @@ export const Grid: ComponentStory<typeof LinkApp> = (args) => (
56
56
  </div>
57
57
  )
58
58
  Grid.args = {
59
- layout: Layout.grid,
59
+ layout: Layout.Grid,
60
60
  }
61
61
 
62
62
  export const Carousel: ComponentStory<typeof LinkApp> = (args) => (
@@ -71,7 +71,7 @@ export const Carousel: ComponentStory<typeof LinkApp> = (args) => (
71
71
  </div>
72
72
  )
73
73
  Carousel.args = {
74
- layout: Layout.carousel,
74
+ layout: Layout.Carousel,
75
75
  }
76
76
 
77
77
  export const Featured: ComponentStory<typeof LinkApp> = (args) => (
@@ -86,7 +86,7 @@ export const Featured: ComponentStory<typeof LinkApp> = (args) => (
86
86
  </div>
87
87
  )
88
88
  Featured.args = {
89
- layout: Layout.featured,
89
+ layout: Layout.Featured,
90
90
  }
91
91
 
92
92
  export const SheetBody: ComponentStory<typeof LinkApp> = (args) => (
@@ -95,5 +95,5 @@ export const SheetBody: ComponentStory<typeof LinkApp> = (args) => (
95
95
  </div>
96
96
  )
97
97
  SheetBody.args = {
98
- layout: Layout.sheetBody,
98
+ layout: Layout.SheetBody,
99
99
  }
@@ -19,8 +19,8 @@ export interface EditablePublicData {
19
19
  export interface ReadonlyPublicData {}
20
20
 
21
21
  /**
22
- * These are properties that the Linker can `read`, but the Visitor will never
23
- * have access to.
22
+ * These are properties that the Linker can `read` and `write`, but the Visitor
23
+ * will never have access to.
24
24
  */
25
25
  export interface EditablePrivateData {}
26
26