@wix/ditto-codegen-public 1.0.177 → 1.0.178

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.
Files changed (39) hide show
  1. package/dist/out.js +2 -49
  2. package/package.json +2 -2
  3. package/dist/examples-apps/event-countdown/README.md +0 -13
  4. package/dist/examples-apps/event-countdown/astro.config.mjs +0 -31
  5. package/dist/examples-apps/event-countdown/package.json +0 -51
  6. package/dist/examples-apps/event-countdown/src/components/countdown-preview.tsx +0 -164
  7. package/dist/examples-apps/event-countdown/src/components/countdown-timer-settings.tsx +0 -199
  8. package/dist/examples-apps/event-countdown/src/dashboard/pages/countdown-timer-settings/extensions.ts +0 -7
  9. package/dist/examples-apps/event-countdown/src/dashboard/pages/countdown-timer-settings/page.tsx +0 -142
  10. package/dist/examples-apps/event-countdown/src/dashboard/withProviders.tsx +0 -22
  11. package/dist/examples-apps/event-countdown/src/extensions.ts +0 -12
  12. package/dist/examples-apps/event-countdown/src/index.ts +0 -2
  13. package/dist/examples-apps/event-countdown/src/site/embedded-scripts/countdown-timer/embedded.html +0 -328
  14. package/dist/examples-apps/event-countdown/src/site/embedded-scripts/countdown-timer/extensions.ts +0 -8
  15. package/dist/examples-apps/event-countdown/src/types.ts +0 -11
  16. package/dist/examples-apps/event-countdown/tsconfig.json +0 -9
  17. package/dist/examples-apps/event-countdown/wix.config.json +0 -4
  18. package/dist/examples-apps/mixpanel-analytics/.nvmrc +0 -1
  19. package/dist/examples-apps/mixpanel-analytics/README.md +0 -21
  20. package/dist/examples-apps/mixpanel-analytics/package-lock.json +0 -6357
  21. package/dist/examples-apps/mixpanel-analytics/package.json +0 -31
  22. package/dist/examples-apps/mixpanel-analytics/src/dashboard/components/ProjectToken.tsx +0 -60
  23. package/dist/examples-apps/mixpanel-analytics/src/dashboard/hooks/wix-embeds.ts +0 -33
  24. package/dist/examples-apps/mixpanel-analytics/src/dashboard/pages/page.tsx +0 -39
  25. package/dist/examples-apps/mixpanel-analytics/src/dashboard/withProviders.tsx +0 -19
  26. package/dist/examples-apps/mixpanel-analytics/src/env.d.ts +0 -4
  27. package/dist/examples-apps/mixpanel-analytics/src/site/embedded-scripts/mixpanel-analytics/embedded.html +0 -13
  28. package/dist/examples-apps/mixpanel-analytics/tsconfig.json +0 -8
  29. package/dist/examples-apps/mixpanel-analytics/wix.config.json +0 -5
  30. package/dist/examples-apps/my-locations-app/.nvmrc +0 -1
  31. package/dist/examples-apps/my-locations-app/README.md +0 -21
  32. package/dist/examples-apps/my-locations-app/package-lock.json +0 -6351
  33. package/dist/examples-apps/my-locations-app/package.json +0 -31
  34. package/dist/examples-apps/my-locations-app/src/dashboard/pages/page.json +0 -5
  35. package/dist/examples-apps/my-locations-app/src/dashboard/pages/page.tsx +0 -89
  36. package/dist/examples-apps/my-locations-app/src/dashboard/pages/wix_logo.svg +0 -18
  37. package/dist/examples-apps/my-locations-app/src/env.d.ts +0 -4
  38. package/dist/examples-apps/my-locations-app/tsconfig.json +0 -8
  39. package/dist/examples-apps/my-locations-app/wix.config.json +0 -5
@@ -1,31 +0,0 @@
1
- {
2
- "name": "my-locations-app",
3
- "version": "1.0.0",
4
- "private": true,
5
- "dependencies": {
6
- "@wix/business-tools": "^1.0.192",
7
- "@wix/dashboard": "^1.3.36",
8
- "@wix/design-system": "^1.0.0",
9
- "@wix/wix-ui-icons-common": "^3.0.0"
10
- },
11
- "devDependencies": {
12
- "@types/react": "^16.0.0",
13
- "@types/react-dom": "^16.0.0",
14
- "@wix/cli": "^1.0.0",
15
- "@wix/cli-app": "^1.0.0",
16
- "@wix/sdk-types": "^1.0.0",
17
- "react": "16.14.0",
18
- "react-dom": "16.14.0",
19
- "typescript": "~5.8.2"
20
- },
21
- "scripts": {
22
- "wix": "wix",
23
- "build": "wix app build",
24
- "release": "wix app release",
25
- "dev": "wix app dev",
26
- "preview": "wix app preview",
27
- "generate": "wix app generate",
28
- "logs": "wix app logs",
29
- "typecheck": "tsc --noEmit"
30
- }
31
- }
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://dev.wix.com/wix-cli/schemas/dashboard-page.json",
3
- "id": "f30706d4-4e45-446a-b91d-5eecb6b91d1e",
4
- "title": "My Locations App"
5
- }
@@ -1,89 +0,0 @@
1
- import {
2
- Box,
3
- Loader,
4
- Table,
5
- TableActionCell,
6
- EmptyState,
7
- Image,
8
- Page,
9
- TextButton,
10
- WixDesignSystemProvider
11
- } from '@wix/design-system';
12
- import emptyStateLogo from './wix_logo.svg';
13
- import '@wix/design-system/styles.global.css';
14
- import { locations } from '@wix/business-tools';
15
- import * as Icons from '@wix/wix-ui-icons-common';
16
- import React, { useState, useEffect } from 'react';
17
- import { dashboard } from '@wix/dashboard';
18
-
19
-
20
- export default function Index() {
21
- const { navigate } = dashboard;
22
- const { queryLocations } = locations;
23
-
24
- let [isLoading, setIsLoading]: any = useState(true);
25
- let [businessLocations, setBusinessLocations]: any = useState([]);
26
-
27
- useEffect(() => {
28
- queryLocations().find().then(result => {
29
- // Filter the development site’s default location. Remove this line before publishing your app.
30
- const filteredResults = result.items.filter(location => location.name !== "Location 1")
31
-
32
- setBusinessLocations(filteredResults);
33
- setIsLoading(false);
34
- });
35
- }, []);
36
- if (isLoading) {
37
- return <Box align="center" padding="SP4">
38
- <Loader />
39
- </Box>;
40
- }
41
- const columns = [
42
- {
43
- title: 'Name',
44
- render: (location: any) => location.name,
45
- },
46
- {
47
- title: '',
48
- render: () => (<TableActionCell
49
- primaryAction={{
50
- text: 'Edit Hours',
51
- onClick: () => console.log('open modal'),
52
- }} />)
53
- }
54
- ];
55
-
56
- return (
57
- <WixDesignSystemProvider>
58
- <Page>
59
- <Page.Header
60
- title="Locations"
61
- subtitle="Manage locations special hours"
62
- />
63
- <Page.Content>
64
- {businessLocations.length > 0 ?
65
- <Table data={businessLocations} columns={columns}>
66
- <Table.Content />
67
- </Table> :
68
- <EmptyState
69
- image={
70
- <Image
71
- width="248px"
72
- height="100px"
73
- src={emptyStateLogo}
74
- transparent
75
- />
76
- }
77
- title="Start adding locations to your site"
78
- subtitle="Go to Business Info Settings to add locations to your site"
79
- theme="page"
80
- >
81
- <TextButton onClick={() => navigate('71e35f24-8eb7-41b0-b261-c2259a76372f')} prefixIcon={<Icons.Add />}>
82
- Add Location
83
- </TextButton>
84
- </EmptyState>}
85
- </Page.Content>
86
- </Page>
87
- </WixDesignSystemProvider>
88
- );
89
- }
@@ -1,18 +0,0 @@
1
- <svg width="166" height="64" viewBox="0 0 166 64" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <g clip-path="url(#clip0_14809_9463)">
3
- <path
4
- d="M165.304 0H156.173C153.64 0 151.273 1.25433 149.85 3.35199L137.639 21.3662C137.313 21.844 136.608 21.844 136.283 21.3662L124.071 3.35199C122.651 1.25433 120.281 0 117.748 0H108.617L130.371 32.0894L108.737 64H117.868C120.401 64 122.769 62.7457 124.192 60.648L136.283 42.8126C136.608 42.3349 137.313 42.3349 137.639 42.8126L149.73 60.648C151.15 62.7457 153.52 64 156.053 64H165.184L143.551 32.0894L165.304 0Z"
5
- fill="black" />
6
- <path
7
- d="M89.8281 6.54652V64H94.1922C97.8088 64 100.74 61.0697 100.74 57.4535V0H96.3755C92.7588 0 89.8281 2.93032 89.8281 6.54652Z"
8
- fill="black" />
9
- <path
10
- d="M81.8276 0H77.944C73.6681 0 69.9633 2.95701 69.0158 7.12564L60.3278 45.3185L52.7234 9.66632C51.3168 3.0771 44.5559 -1.36641 37.6375 0.544431C33.2307 1.76139 29.9637 5.48434 29.0108 9.95455L21.4839 45.2705L12.8118 7.12831C11.8616 2.95968 8.15687 0 3.88092 0H0L14.5548 63.9973H20.0692C25.0738 63.9973 29.3978 60.4986 30.4415 55.604L39.7461 11.9401C39.8608 11.3984 40.3466 11.006 40.8991 11.006C41.4516 11.006 41.9374 11.3984 42.0522 11.9401L51.3648 55.6067C52.4084 60.5012 56.7324 63.9973 61.7371 63.9973H67.2702L81.8276 0Z"
11
- fill="black" />
12
- </g>
13
- <defs>
14
- <clipPath id="clip0_14809_9463">
15
- <rect width="165.305" height="64" fill="white" />
16
- </clipPath>
17
- </defs>
18
- </svg>
@@ -1,4 +0,0 @@
1
- /// <reference types="@wix/cli-app/client" />
2
- /// <reference types="@wix/sdk-types/client" />
3
-
4
- // NOTE: This file should not be edited. This is an auto-generated file.
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "@wix/cli-app/tsconfig.app.json",
3
- "compilerOptions": {
4
- "rootDir": "src",
5
- "types": ["react"]
6
- },
7
- "include": ["src"]
8
- }
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://dev.wix.com/wix-cli/schemas/wix-config.json",
3
- "appId": "73f49ae6-8ad8-4aab-8732-aee4b432c7da",
4
- "projectId": "my-locations-app"
5
- }