@teleporthq/teleport-project-generator-next 0.43.28 → 0.43.30
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/__tests__/form-file-input-end2end.test.ts +95 -0
- package/__tests__/motion-stagger-repeater.test.ts +103 -0
- package/__tests__/state-data-source-fetch-grouping.test.ts +135 -0
- package/__tests__/widget-project-plugins.test.ts +59 -0
- package/dist/cjs/dashboard-layout-plugin.d.ts.map +1 -1
- package/dist/cjs/dashboard-layout-plugin.js +1 -1
- package/dist/cjs/dashboard-layout-plugin.js.map +1 -1
- package/dist/cjs/local-component-path-plugin.d.ts.map +1 -1
- package/dist/cjs/local-component-path-plugin.js +1 -0
- package/dist/cjs/local-component-path-plugin.js.map +1 -1
- package/dist/cjs/next-project-mapping.d.ts.map +1 -1
- package/dist/cjs/next-project-mapping.js +7 -0
- package/dist/cjs/next-project-mapping.js.map +1 -1
- package/dist/cjs/state-data-source-plugin.d.ts.map +1 -1
- package/dist/cjs/state-data-source-plugin.js +26 -2
- package/dist/cjs/state-data-source-plugin.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/cjs/widgets/form-file-input-component.d.ts +16 -0
- package/dist/cjs/widgets/form-file-input-component.d.ts.map +1 -0
- package/dist/cjs/widgets/form-file-input-component.js +22 -0
- package/dist/cjs/widgets/form-file-input-component.js.map +1 -0
- package/dist/cjs/widgets/index.d.ts +3 -2
- package/dist/cjs/widgets/index.d.ts.map +1 -1
- package/dist/cjs/widgets/index.js +11 -2
- package/dist/cjs/widgets/index.js.map +1 -1
- package/dist/cjs/widgets/motion-component.d.ts +6 -3
- package/dist/cjs/widgets/motion-component.d.ts.map +1 -1
- package/dist/cjs/widgets/motion-component.js +7 -4
- package/dist/cjs/widgets/motion-component.js.map +1 -1
- package/dist/cjs/widgets/project-plugin-factory.d.ts +4 -4
- package/dist/cjs/widgets/project-plugin-factory.d.ts.map +1 -1
- package/dist/cjs/widgets/project-plugin-factory.js +3 -1
- package/dist/cjs/widgets/project-plugin-factory.js.map +1 -1
- package/dist/esm/dashboard-layout-plugin.d.ts.map +1 -1
- package/dist/esm/dashboard-layout-plugin.js +1 -1
- package/dist/esm/dashboard-layout-plugin.js.map +1 -1
- package/dist/esm/local-component-path-plugin.d.ts.map +1 -1
- package/dist/esm/local-component-path-plugin.js +1 -0
- package/dist/esm/local-component-path-plugin.js.map +1 -1
- package/dist/esm/next-project-mapping.d.ts.map +1 -1
- package/dist/esm/next-project-mapping.js +7 -0
- package/dist/esm/next-project-mapping.js.map +1 -1
- package/dist/esm/state-data-source-plugin.d.ts.map +1 -1
- package/dist/esm/state-data-source-plugin.js +26 -2
- package/dist/esm/state-data-source-plugin.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/widgets/form-file-input-component.d.ts +16 -0
- package/dist/esm/widgets/form-file-input-component.d.ts.map +1 -0
- package/dist/esm/widgets/form-file-input-component.js +18 -0
- package/dist/esm/widgets/form-file-input-component.js.map +1 -0
- package/dist/esm/widgets/index.d.ts +3 -2
- package/dist/esm/widgets/index.d.ts.map +1 -1
- package/dist/esm/widgets/index.js +11 -2
- package/dist/esm/widgets/index.js.map +1 -1
- package/dist/esm/widgets/motion-component.d.ts +6 -3
- package/dist/esm/widgets/motion-component.d.ts.map +1 -1
- package/dist/esm/widgets/motion-component.js +7 -4
- package/dist/esm/widgets/motion-component.js.map +1 -1
- package/dist/esm/widgets/project-plugin-factory.d.ts +4 -4
- package/dist/esm/widgets/project-plugin-factory.d.ts.map +1 -1
- package/dist/esm/widgets/project-plugin-factory.js +3 -1
- package/dist/esm/widgets/project-plugin-factory.js.map +1 -1
- package/package.json +15 -15
- package/src/dashboard-layout-plugin.ts +23 -0
- package/src/local-component-path-plugin.ts +1 -0
- package/src/next-project-mapping.ts +7 -0
- package/src/state-data-source-plugin.ts +35 -4
- package/src/widgets/form-file-input-component.ts +180 -0
- package/src/widgets/index.ts +11 -2
- package/src/widgets/motion-component.ts +32 -10
- package/src/widgets/project-plugin-factory.ts +7 -5
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { GeneratedFolder, ProjectUIDL } from '@teleporthq/teleport-types'
|
|
2
|
+
import uidlSample from '../../../examples/test-samples/project-sample.json'
|
|
3
|
+
import { createNextProjectGenerator } from '../src'
|
|
4
|
+
import NextTemplate from '../src/project-template'
|
|
5
|
+
|
|
6
|
+
const template = JSON.parse(JSON.stringify(NextTemplate)) as GeneratedFolder
|
|
7
|
+
|
|
8
|
+
// The in-form upload field as the GUI export emits it — verified against the
|
|
9
|
+
// GUI's constants (apps/gui/app/constants/primitives/form-file-input.ts):
|
|
10
|
+
// FORM_FILE_INPUT_ELEMENT_TYPE = 'form-file-input-node' and
|
|
11
|
+
// FORM_FILE_INPUT_WRAPPER_PROP_BY_ATTR maps the editor `state` attr to the
|
|
12
|
+
// camelCase wrapper prop `stateKey` (the page state holding the PickedFile
|
|
13
|
+
// array), same convention as the other `*-node` widgets.
|
|
14
|
+
const FORM_FILE_INPUT_ELEMENT_NODE = {
|
|
15
|
+
type: 'element',
|
|
16
|
+
content: {
|
|
17
|
+
elementType: 'form-file-input-node',
|
|
18
|
+
name: 'primary-image-upload',
|
|
19
|
+
attrs: {
|
|
20
|
+
stateKey: { type: 'static', content: 'primaryImageFiles' },
|
|
21
|
+
accept: { type: 'static', content: 'image/*' },
|
|
22
|
+
multiple: { type: 'static', content: false },
|
|
23
|
+
label: { type: 'static', content: 'Primary Image' },
|
|
24
|
+
},
|
|
25
|
+
children: [],
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const buildUidlWithFormFileInput = (): ProjectUIDL => {
|
|
30
|
+
const uidl = JSON.parse(JSON.stringify(uidlSample)) as ProjectUIDL
|
|
31
|
+
const indexPage = (uidl.root.node.content.children || []).find(
|
|
32
|
+
(child) =>
|
|
33
|
+
child.type === 'conditional' && (child.content as { value?: string }).value === 'index'
|
|
34
|
+
)
|
|
35
|
+
const pageElement = (indexPage as { content: { node: { content: { children: unknown[] } } } })
|
|
36
|
+
.content.node.content
|
|
37
|
+
pageElement.children.push(FORM_FILE_INPUT_ELEMENT_NODE)
|
|
38
|
+
return uidl
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const findFile = (folder: GeneratedFolder, folderName: string, fileName: string) =>
|
|
42
|
+
folder.subFolders
|
|
43
|
+
.find((sub) => sub.name === folderName)
|
|
44
|
+
?.files.find((file) => file.name === fileName)
|
|
45
|
+
|
|
46
|
+
describe('Next generator with a form-file-input element', () => {
|
|
47
|
+
const generator = createNextProjectGenerator()
|
|
48
|
+
|
|
49
|
+
it('renders <TqFormFileInput> on the page and ships the local wrapper, dep-free', async () => {
|
|
50
|
+
const outputFolder = await generator.generateProject(buildUidlWithFormFileInput(), template)
|
|
51
|
+
|
|
52
|
+
// The page maps the node to the wrapper and imports it locally.
|
|
53
|
+
const indexPage = findFile(outputFolder, 'pages', 'index')
|
|
54
|
+
expect(indexPage?.content).toContain('<TqFormFileInput')
|
|
55
|
+
expect(indexPage?.content).toContain("from '../components/tq-form-file-input'")
|
|
56
|
+
expect(indexPage?.content).toContain('stateKey="primaryImageFiles"')
|
|
57
|
+
expect(indexPage?.content).toContain('accept="image/*"')
|
|
58
|
+
|
|
59
|
+
// The local wrapper component is emitted: pure DOM/FileReader, no library.
|
|
60
|
+
const component = findFile(outputFolder, 'components', 'tq-form-file-input')
|
|
61
|
+
expect(component?.content).toContain('const TqFormFileInput =')
|
|
62
|
+
expect(component?.content).toContain('readAsDataURL')
|
|
63
|
+
// Non-DOM props are swallowed by the destructuring — neither the canonical
|
|
64
|
+
// stateKey prop nor a legacy `state` attr may leak through {...rest} onto
|
|
65
|
+
// the root <div>.
|
|
66
|
+
expect(component?.content).toMatch(/stateKey,\s*\n\s*state,/)
|
|
67
|
+
|
|
68
|
+
// No npm dependency is added and react is NOT bumped by this widget.
|
|
69
|
+
const packageFile = outputFolder.files.find((file) => file.name === 'package')
|
|
70
|
+
const packageJson = JSON.parse(packageFile?.content || '{}')
|
|
71
|
+
const templatePackage = JSON.parse(
|
|
72
|
+
(NextTemplate.files.find((file) => file.name === 'package')?.content as string) || '{}'
|
|
73
|
+
)
|
|
74
|
+
expect(packageJson.dependencies.react).toBe(templatePackage.dependencies.react)
|
|
75
|
+
expect(packageJson.dependencies['react-dom']).toBe(templatePackage.dependencies['react-dom'])
|
|
76
|
+
// Only deps that other generators add for the sample itself may appear —
|
|
77
|
+
// never a widget library.
|
|
78
|
+
for (const widgetDep of [
|
|
79
|
+
'qrcode',
|
|
80
|
+
'jsbarcode',
|
|
81
|
+
'signature_pad',
|
|
82
|
+
'@simonwep/pickr',
|
|
83
|
+
'emoji-picker-element',
|
|
84
|
+
'framer-motion',
|
|
85
|
+
]) {
|
|
86
|
+
expect(packageJson.dependencies[widgetDep]).toBeUndefined()
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
|
|
90
|
+
it('does not ship the wrapper for projects without the element', async () => {
|
|
91
|
+
const uidl = JSON.parse(JSON.stringify(uidlSample)) as ProjectUIDL
|
|
92
|
+
const outputFolder = await generator.generateProject(uidl, template)
|
|
93
|
+
expect(findFile(outputFolder, 'components', 'tq-form-file-input')).toBeUndefined()
|
|
94
|
+
})
|
|
95
|
+
})
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { generateMotionComponentCode } from '../src/widgets/motion-component'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The TqMotion `stagger` resolver (`mapStaggerTargets`) descends through single-child
|
|
5
|
+
* wrappers (e.g. a grid) to the real repeated items so it can cascade THOSE. The
|
|
6
|
+
* regression guarded here: when the repeated items render from a runtime <Repeater>
|
|
7
|
+
* (array-mapper) the descent bottoms out at a self-closing element whose
|
|
8
|
+
* `props.children` is undefined. Wrapping that lone block in a motion.div used to
|
|
9
|
+
* drop a single <div> BETWEEN the grid/flex container and its repeated items,
|
|
10
|
+
* collapsing every card into one grid cell on the deployed site. The resolver must
|
|
11
|
+
* now return null so the caller falls back to a single group animation (wrapper
|
|
12
|
+
* stays OUTSIDE the container) instead.
|
|
13
|
+
*
|
|
14
|
+
* The emitted component is a JSX source string, but `mapStaggerTargets` itself is
|
|
15
|
+
* pure JS (only React.Children/isValidElement/cloneElement), so we extract and eval
|
|
16
|
+
* it against a minimal React stub — the same "eval the emitted runtime source"
|
|
17
|
+
* approach used for workflow node handlers.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
type StubElement = { $$typeof: 'react.element'; type: string; props: Record<string, unknown> }
|
|
21
|
+
|
|
22
|
+
const element = (type: string, props: Record<string, unknown> = {}): StubElement => ({
|
|
23
|
+
$$typeof: 'react.element',
|
|
24
|
+
type,
|
|
25
|
+
props,
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
const ReactStub = {
|
|
29
|
+
Children: {
|
|
30
|
+
toArray: (nodes: unknown): unknown[] =>
|
|
31
|
+
(Array.isArray(nodes) ? nodes : nodes == null ? [] : [nodes]).filter((n) => n != null),
|
|
32
|
+
},
|
|
33
|
+
isValidElement: (el: unknown): boolean =>
|
|
34
|
+
!!el && typeof el === 'object' && (el as StubElement).$$typeof === 'react.element',
|
|
35
|
+
cloneElement: (el: StubElement, _props: unknown, children: unknown): StubElement => ({
|
|
36
|
+
...el,
|
|
37
|
+
props: { ...el.props, children },
|
|
38
|
+
}),
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const extractMapStaggerTargets = () => {
|
|
42
|
+
const code = generateMotionComponentCode()
|
|
43
|
+
const start = code.indexOf('const mapStaggerTargets')
|
|
44
|
+
const end = code.indexOf('\n\nconst TqMotion', start)
|
|
45
|
+
expect(start).toBeGreaterThan(-1)
|
|
46
|
+
expect(end).toBeGreaterThan(start)
|
|
47
|
+
const source = code.slice(start, end)
|
|
48
|
+
// eslint-disable-next-line no-new-func
|
|
49
|
+
const factory = new Function('React', `${source}\nreturn mapStaggerTargets`)
|
|
50
|
+
return factory(ReactStub) as (nodes: unknown, wrap: unknown, depth: number) => unknown
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
describe('TqMotion stagger resolution (mapStaggerTargets)', () => {
|
|
54
|
+
const mapStaggerTargets = extractMapStaggerTargets()
|
|
55
|
+
// Marks each per-item wrapper the stagger path would emit.
|
|
56
|
+
const wrap = (child: unknown, index: number) => element('motion.div', { child, index })
|
|
57
|
+
|
|
58
|
+
it('returns null for a grid whose only child is a runtime <Repeater> (group fallback)', () => {
|
|
59
|
+
// <div class="grid"><Repeater items renderItem /></div> — Repeater is self-closing,
|
|
60
|
+
// so its props.children is undefined and the descent cannot reach the cards.
|
|
61
|
+
const repeater = element('Repeater', { items: [], renderItem: () => null })
|
|
62
|
+
const grid = element('div', { className: 'operations-kpis-grid', children: repeater })
|
|
63
|
+
|
|
64
|
+
const result = mapStaggerTargets(grid, wrap, 0)
|
|
65
|
+
|
|
66
|
+
// null => the caller plays one group animation with the wrapper OUTSIDE the grid,
|
|
67
|
+
// so the Repeater's cards stay direct grid children (layout preserved).
|
|
68
|
+
expect(result).toBeNull()
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it('still cascades real, statically-present repeated items as per-item wrappers', () => {
|
|
72
|
+
const grid = element('div', {
|
|
73
|
+
className: 'cards',
|
|
74
|
+
children: [
|
|
75
|
+
element('div', { className: 'card', children: 'a' }),
|
|
76
|
+
element('div', { className: 'card', children: 'b' }),
|
|
77
|
+
element('div', { className: 'card', children: 'c' }),
|
|
78
|
+
],
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
const result = mapStaggerTargets(grid, wrap, 0) as StubElement
|
|
82
|
+
// The grid is preserved (cloned), and each card becomes its own motion.div grid item.
|
|
83
|
+
expect(result.type).toBe('div')
|
|
84
|
+
const wrapped = result.props.children as StubElement[]
|
|
85
|
+
expect(wrapped).toHaveLength(3)
|
|
86
|
+
expect(wrapped.every((w) => w.type === 'motion.div')).toBe(true)
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
it('returns null for a single non-cascadable leaf (no spurious wrapper)', () => {
|
|
90
|
+
const lone = element('img', { src: 'x' })
|
|
91
|
+
expect(mapStaggerTargets(lone, wrap, 0)).toBeNull()
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
|
|
95
|
+
describe('generated TqMotion source', () => {
|
|
96
|
+
it('falls through to a group animation when there are no per-item stagger targets', () => {
|
|
97
|
+
const code = generateMotionComponentCode()
|
|
98
|
+
// The stagger branch must guard the wrapper render on a non-null result and let
|
|
99
|
+
// the trailing <motion.div ... {...animProps}> group render handle the null case.
|
|
100
|
+
expect(code).toContain('const staggerTargets = mapStaggerTargets(children, wrapChild, 0)')
|
|
101
|
+
expect(code).toContain('if (staggerTargets != null) {')
|
|
102
|
+
})
|
|
103
|
+
})
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import generator from '@babel/generator'
|
|
2
|
+
import * as types from '@babel/types'
|
|
3
|
+
import { createStateDataSourcePlugin } from '../src/state-data-source-plugin'
|
|
4
|
+
|
|
5
|
+
// Regression guard for the dashboard KPI-duplication defect (FurniFlow run
|
|
6
|
+
// be21af83): page states bound to the same dataSource+table were grouped into
|
|
7
|
+
// ONE getStaticProps fetch built from the FIRST state's definition, so a
|
|
8
|
+
// 1-row aggregate state (stockHealthSummary) received the N-row JOIN result
|
|
9
|
+
// of a sibling state (locationBalances) — the 4-KPI block repeated N times
|
|
10
|
+
// and two dashboard tables rendered the wrong rows. States may only share a
|
|
11
|
+
// fetch when their fetch-relevant definition (rawQuery + sorts + static
|
|
12
|
+
// filters) is identical.
|
|
13
|
+
|
|
14
|
+
const DS_ID = '595ce5d7-d36c-4767-95e1-610e9c9831d6'
|
|
15
|
+
|
|
16
|
+
const makeState = (query?: string) => ({
|
|
17
|
+
type: 'array',
|
|
18
|
+
defaultValue: [] as unknown[],
|
|
19
|
+
dataSourceBinding: {
|
|
20
|
+
dataSourceId: DS_ID,
|
|
21
|
+
refPath: ['products'],
|
|
22
|
+
},
|
|
23
|
+
...(query ? { query } : {}),
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const makeStructure = (stateDefinitions: Record<string, unknown>) => {
|
|
27
|
+
const fetcherFileName = 'teleport-products-595ce5d7'
|
|
28
|
+
return {
|
|
29
|
+
uidl: {
|
|
30
|
+
name: 'InventoryDashboard',
|
|
31
|
+
stateDefinitions,
|
|
32
|
+
node: { type: 'element', content: { elementType: 'container' } },
|
|
33
|
+
outputOptions: { folderPath: [] as string[] },
|
|
34
|
+
},
|
|
35
|
+
chunks: [] as any[],
|
|
36
|
+
dependencies: {} as Record<string, unknown>,
|
|
37
|
+
options: {
|
|
38
|
+
dataSources: {
|
|
39
|
+
[DS_ID]: {
|
|
40
|
+
id: DS_ID,
|
|
41
|
+
type: 'teleport',
|
|
42
|
+
config: {},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
// Pre-extracted fetcher so the plugin never regenerates it — this test
|
|
46
|
+
// only cares about how states are grouped into fetches.
|
|
47
|
+
extractedResources: {
|
|
48
|
+
[`utils/${fetcherFileName}`]: {
|
|
49
|
+
fileName: fetcherFileName,
|
|
50
|
+
fileType: 'js',
|
|
51
|
+
path: ['utils', 'data-sources'],
|
|
52
|
+
content: '// stub',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const getStaticPropsCode = (structure: { chunks: any[] }): string => {
|
|
60
|
+
const chunk = structure.chunks.find((c) => c.name === 'getStaticProps')
|
|
61
|
+
expect(chunk).toBeDefined()
|
|
62
|
+
return generator(chunk.content as types.Node).code
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
describe('state-data-source-plugin fetch grouping', () => {
|
|
66
|
+
const plugin = createStateDataSourcePlugin()
|
|
67
|
+
|
|
68
|
+
it('emits a separate fetch per distinct rawQuery on the same table (KPI duplication fix)', async () => {
|
|
69
|
+
const aggregateQuery =
|
|
70
|
+
'SELECT COALESCE(SUM(on_hand_quantity),0) AS total_on_hand FROM products WHERE active = TRUE'
|
|
71
|
+
const joinQuery =
|
|
72
|
+
'SELECT l.id AS location_id, COUNT(p.id) AS sku_count FROM locations l LEFT JOIN products p ON p.primary_location_id = l.id GROUP BY l.id'
|
|
73
|
+
|
|
74
|
+
const structure = makeStructure({
|
|
75
|
+
locationBalances: makeState(joinQuery),
|
|
76
|
+
stockHealthSummary: makeState(aggregateQuery),
|
|
77
|
+
})
|
|
78
|
+
|
|
79
|
+
const result = await plugin(structure as any)
|
|
80
|
+
const meta = (result.chunks.find((c: any) => c.name === 'getStaticProps') as any).meta
|
|
81
|
+
.parallelFetchData
|
|
82
|
+
|
|
83
|
+
// Two distinct fetches with distinct generated identifiers
|
|
84
|
+
expect(meta.names).toHaveLength(2)
|
|
85
|
+
expect(new Set(meta.names).size).toBe(2)
|
|
86
|
+
for (const name of meta.names) {
|
|
87
|
+
expect(name).toMatch(/^__stateDs_[A-Za-z0-9_]+_raw$/)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const code = getStaticPropsCode(result as any)
|
|
91
|
+
// Each state's own query is fetched…
|
|
92
|
+
expect(code).toContain(aggregateQuery)
|
|
93
|
+
expect(code).toContain(joinQuery)
|
|
94
|
+
// …and each state prop extracts from its OWN fetch identifier.
|
|
95
|
+
const balancesProp = code.match(/locationBalances: (\w+)/)
|
|
96
|
+
const healthProp = code.match(/stockHealthSummary: (\w+)/)
|
|
97
|
+
expect(balancesProp).not.toBeNull()
|
|
98
|
+
expect(healthProp).not.toBeNull()
|
|
99
|
+
expect(balancesProp![1]).not.toBe(healthProp![1])
|
|
100
|
+
})
|
|
101
|
+
|
|
102
|
+
it('still shares one fetch between states with identical fetch semantics', async () => {
|
|
103
|
+
const query = 'SELECT * FROM products ORDER BY sku ASC LIMIT 200'
|
|
104
|
+
const structure = makeStructure({
|
|
105
|
+
productsList: makeState(query),
|
|
106
|
+
productsMirror: makeState(query),
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
const result = await plugin(structure as any)
|
|
110
|
+
const meta = (result.chunks.find((c: any) => c.name === 'getStaticProps') as any).meta
|
|
111
|
+
.parallelFetchData
|
|
112
|
+
|
|
113
|
+
expect(meta.names).toHaveLength(1)
|
|
114
|
+
|
|
115
|
+
const code = getStaticPropsCode(result as any)
|
|
116
|
+
const listProp = code.match(/productsList: (\w+)/)
|
|
117
|
+
const mirrorProp = code.match(/productsMirror: (\w+)/)
|
|
118
|
+
expect(listProp![1]).toBe(mirrorProp![1])
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
it('separates a query-less binding from a queried one on the same table', async () => {
|
|
122
|
+
// Products page shape: productsList has a rawQuery, lowStockAlerts is a
|
|
123
|
+
// bare binding (whole table) — they must not share the LIMIT 200 fetch.
|
|
124
|
+
const structure = makeStructure({
|
|
125
|
+
productsList: makeState('SELECT * FROM products ORDER BY sku ASC LIMIT 200'),
|
|
126
|
+
lowStockAlerts: makeState(),
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
const result = await plugin(structure as any)
|
|
130
|
+
const meta = (result.chunks.find((c: any) => c.name === 'getStaticProps') as any).meta
|
|
131
|
+
.parallelFetchData
|
|
132
|
+
|
|
133
|
+
expect(meta.names).toHaveLength(2)
|
|
134
|
+
})
|
|
135
|
+
})
|
|
@@ -124,6 +124,7 @@ describe('Next widget project plugins', () => {
|
|
|
124
124
|
expect(structure.files.has(widget.fileKey)).toBe(false)
|
|
125
125
|
expect(structure.dependencies[widget.dependency]).toBeUndefined()
|
|
126
126
|
}
|
|
127
|
+
expect(structure.files.has('tq-form-file-input-component')).toBe(false)
|
|
127
128
|
expect(structure.files.get('_app')?.files[0].content).toBe(APP_CONTENT)
|
|
128
129
|
})
|
|
129
130
|
|
|
@@ -250,3 +251,61 @@ describe('Next widget project plugins', () => {
|
|
|
250
251
|
)
|
|
251
252
|
})
|
|
252
253
|
})
|
|
254
|
+
|
|
255
|
+
describe('form-file-input widget plugin (dependency-less wrapper)', () => {
|
|
256
|
+
const buildContent = async (): Promise<{
|
|
257
|
+
structure: ProjectPluginStructure
|
|
258
|
+
content: string
|
|
259
|
+
}> => {
|
|
260
|
+
const structure = buildStructure([elementNode('form-file-input-node')])
|
|
261
|
+
await runAll(structure)
|
|
262
|
+
const content = structure.files.get('tq-form-file-input-component')?.files[0].content as string
|
|
263
|
+
return { structure, content }
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
it('emits the TqFormFileInput wrapper without adding any npm dependency', async () => {
|
|
267
|
+
const { structure, content } = await buildContent()
|
|
268
|
+
|
|
269
|
+
const record = structure.files.get('tq-form-file-input-component')
|
|
270
|
+
expect(record?.path).toEqual(['components'])
|
|
271
|
+
expect(record?.files[0].name).toBe('tq-form-file-input')
|
|
272
|
+
expect(record?.files[0].fileType).toBe(FileType.JS)
|
|
273
|
+
expect(content).toContain('const TqFormFileInput =')
|
|
274
|
+
expect(content).toContain('export default TqFormFileInput')
|
|
275
|
+
// Pure DOM/FileReader wrapper: nothing lands in package.json and the
|
|
276
|
+
// react version stays whatever the template ships.
|
|
277
|
+
expect(Object.keys(structure.dependencies)).toEqual([])
|
|
278
|
+
})
|
|
279
|
+
|
|
280
|
+
it('reads picked files into PickedFile POJOs (browser-pick-files shape) via FileReader', async () => {
|
|
281
|
+
const { content } = await buildContent()
|
|
282
|
+
|
|
283
|
+
expect(content).toContain('readAsDataURL')
|
|
284
|
+
for (const field of ['name:', 'size:', 'type:', 'lastModified:', 'dataURL:']) {
|
|
285
|
+
expect(content).toContain(field)
|
|
286
|
+
}
|
|
287
|
+
// No upload at pick time — uploads belong to the form-submit workflow.
|
|
288
|
+
expect(content).not.toContain('fetch(')
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
it('renders dataURL previews with per-item remove and the form-file-input marker', async () => {
|
|
292
|
+
const { content } = await buildContent()
|
|
293
|
+
|
|
294
|
+
expect(content).toContain('data-thq="form-file-input"')
|
|
295
|
+
expect(content).toContain('src={file.dataURL}')
|
|
296
|
+
expect(content).toContain('removeAt')
|
|
297
|
+
expect(content).toContain('aria-label="Remove file"')
|
|
298
|
+
})
|
|
299
|
+
|
|
300
|
+
it('mirrors state into a nameless hidden input so form payloads never see the JSON', async () => {
|
|
301
|
+
const { content } = await buildContent()
|
|
302
|
+
|
|
303
|
+
const mirrorLine = content.split('\n').find((line) => line.includes('type="hidden"')) as string
|
|
304
|
+
expect(mirrorLine).toBeDefined()
|
|
305
|
+
expect(mirrorLine).not.toContain('name=')
|
|
306
|
+
// Commits reach the page state through the generated onChange contract
|
|
307
|
+
// (event.target.value = JSON array) plus a native change on the mirror.
|
|
308
|
+
expect(content).toContain('onChange({ target: { value: serialized } })')
|
|
309
|
+
expect(content).toContain("dispatchEvent(new Event('change', { bubbles: true }))")
|
|
310
|
+
})
|
|
311
|
+
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-layout-plugin.d.ts","sourceRoot":"","sources":["../../src/dashboard-layout-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"dashboard-layout-plugin.d.ts","sourceRoot":"","sources":["../../src/dashboard-layout-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,aAAa,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAgI5F,qBAAa,yBAA0B,YAAW,aAAa;IACvD,SAAS,CAAC,SAAS,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAI7E,QAAQ,CAAC,SAAS,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;CAoCnF"}
|
|
@@ -38,7 +38,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.NextDashboardLayoutPlugin = void 0;
|
|
40
40
|
var teleport_types_1 = require("@teleporthq/teleport-types");
|
|
41
|
-
var DASHBOARD_CSS = "\n.teleport-dashboard-layout {\n display: flex;\n min-height: 100vh;\n width: 100%;\n}\n\n.teleport-dashboard-sidebar {\n flex-shrink: 0;\n height: 100vh;\n position: sticky;\n top: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 200;\n}\n\n.teleport-dashboard-content {\n flex: 1;\n min-width: 0;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n}\n\n.teleport-dashboard-topbar {\n position: sticky;\n top: 0;\n z-index: 100;\n display: flex;\n align-items: center;\n gap: 1rem;\n padding: 0.75rem 1.5rem;\n background: var(--color-surface, #ffffff);\n border-bottom: 1px solid var(--color-neutral, #e5e7eb);\n}\n\n.teleport-mobile-sidebar-toggle {\n display: none;\n align-items: center;\n justify-content: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.5rem;\n font-size: 1.5rem;\n line-height: 1;\n}\n\n.teleport-sidebar-scrim {\n display: none;\n position: fixed;\n inset: 0;\n z-index: 999;\n background: rgba(0, 0, 0, 0.5);\n}\n\n@media (max-width: 767px) {\n .teleport-mobile-sidebar-toggle {\n display: flex;\n }\n\n .teleport-dashboard-sidebar {\n position: fixed;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 1000;\n transform: translateX(-100%);\n transition: transform 0.3s ease;\n }\n\n .teleport-dashboard-sidebar.sidebar-open {\n transform: translateX(0);\n }\n\n .teleport-sidebar-scrim.scrim-visible {\n display: block;\n }\n}\n\n@media (max-width: 991px) and (min-width: 768px) {\n .teleport-dashboard-sidebar {\n width: 64px !important;\n }\n\n .teleport-dashboard-sidebar .sidebar-link-text,\n .teleport-dashboard-sidebar .navigation-brand,\n .teleport-dashboard-sidebar tq-company-logo,\n .teleport-dashboard-sidebar .navigation-logo {\n display: none;\n }\n}\n\n@media print {\n .teleport-dashboard-sidebar,\n .teleport-mobile-sidebar-toggle,\n .teleport-sidebar-scrim {\n display: none !important;\n }\n}\n".trim();
|
|
41
|
+
var DASHBOARD_CSS = "\n.teleport-dashboard-layout {\n display: flex;\n min-height: 100vh;\n width: 100%;\n}\n\n.teleport-dashboard-sidebar {\n flex-shrink: 0;\n height: 100vh;\n position: sticky;\n top: 0;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 200;\n}\n\n.teleport-dashboard-content {\n flex: 1;\n min-width: 0;\n overflow-x: hidden;\n display: flex;\n flex-direction: column;\n}\n\n.teleport-dashboard-topbar {\n position: sticky;\n top: 0;\n z-index: 100;\n display: flex;\n align-items: center;\n gap: 1rem;\n padding: 0.75rem 1.5rem;\n background: var(--color-surface, #ffffff);\n border-bottom: 1px solid var(--color-neutral, #e5e7eb);\n}\n\n.teleport-mobile-sidebar-toggle {\n display: none;\n align-items: center;\n justify-content: center;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.5rem;\n font-size: 1.5rem;\n line-height: 1;\n}\n\n.teleport-sidebar-scrim {\n display: none;\n position: fixed;\n inset: 0;\n z-index: 999;\n background: rgba(0, 0, 0, 0.5);\n}\n\n@media (max-width: 767px) {\n .teleport-mobile-sidebar-toggle {\n display: flex;\n }\n\n .teleport-dashboard-sidebar {\n position: fixed;\n left: 0;\n top: 0;\n height: 100vh;\n z-index: 1000;\n transform: translateX(-100%);\n transition: transform 0.3s ease;\n }\n\n .teleport-dashboard-sidebar.sidebar-open {\n transform: translateX(0);\n }\n\n .teleport-sidebar-scrim.scrim-visible {\n display: block;\n }\n}\n\n/* SELF-MANAGED SIDEBAR NAV \u2014 opt out of the platform mobile drawer. A\n three-mode sidebar nav (state.sidebarMode) ships its own position:fixed\n hamburger (#sidebar-mobile-open) + overlay. The platform drawer's\n translateX(-100%) would make .teleport-dashboard-sidebar the containing block\n for those fixed descendants and shove them off-screen (blank nav on mobile),\n so make the wrapper inert and hide the redundant platform topbar + scrim. */\n@media (max-width: 767px) {\n .teleport-dashboard-sidebar:has(#sidebar-mobile-open) {\n position: static;\n transform: none;\n transition: none;\n width: auto;\n height: auto;\n overflow: visible;\n z-index: auto;\n }\n\n :root:has(.teleport-dashboard-sidebar #sidebar-mobile-open) .teleport-dashboard-topbar,\n :root:has(.teleport-dashboard-sidebar #sidebar-mobile-open) .teleport-sidebar-scrim {\n display: none !important;\n }\n}\n\n@media (max-width: 991px) and (min-width: 768px) {\n .teleport-dashboard-sidebar {\n width: 64px !important;\n }\n\n .teleport-dashboard-sidebar .sidebar-link-text,\n .teleport-dashboard-sidebar .navigation-brand,\n .teleport-dashboard-sidebar tq-company-logo,\n .teleport-dashboard-sidebar .navigation-logo {\n display: none;\n }\n}\n\n@media print {\n .teleport-dashboard-sidebar,\n .teleport-mobile-sidebar-toggle,\n .teleport-sidebar-scrim {\n display: none !important;\n }\n}\n".trim();
|
|
42
42
|
var NextDashboardLayoutPlugin = /** @class */ (function () {
|
|
43
43
|
function NextDashboardLayoutPlugin() {
|
|
44
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard-layout-plugin.js","sourceRoot":"","sources":["../../src/dashboard-layout-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA4F;AAE5F,IAAM,aAAa,GAAG,
|
|
1
|
+
{"version":3,"file":"dashboard-layout-plugin.js","sourceRoot":"","sources":["../../src/dashboard-layout-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA4F;AAE5F,IAAM,aAAa,GAAG,s2FA4HrB,CAAC,IAAI,EAAE,CAAA;AAER;IAAA;IAyCA,CAAC;IAxCO,6CAAS,GAAf,UAAgB,SAAiC;;;gBAC/C,sBAAO,SAAS,EAAA;;;KACjB;IAEK,4CAAQ,GAAd,UAAe,SAAiC;;;;gBACtC,IAAI,GAAY,SAAS,KAArB,EAAE,KAAK,GAAK,SAAS,MAAd,CAAc;gBAC3B,cAAc,GAAI,IAA2C,CAAC,cAAc,CAAA;gBAClF,IAAI,cAAc,KAAK,WAAW,EAAE;oBAClC,sBAAO,SAAS,EAAA;iBACjB;gBAEK,eAAe,GAAG,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;gBACtD,IAAI,eAAe,IAAI,eAAe,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;oBACjD,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,IAAI,CACxC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,QAAQ,KAAK,yBAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,QAAQ,KAAK,KAAK,EAAnD,CAAmD,CAC3D,CAAA;oBACD,IAAI,OAAO,EAAE;wBACX,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,GAAG,aAAa,CAAA;qBAC3D;yBAAM;wBACL,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC;4BACzB,IAAI,EAAE,OAAO;4BACb,QAAQ,EAAE,yBAAQ,CAAC,GAAG;4BACtB,OAAO,EAAE,aAAa;yBACvB,CAAC,CAAA;qBACH;iBACF;qBAAM;oBACL,KAAK,CAAC,GAAG,CAAC,mBAAmB,EAAE;wBAC7B,IAAI,EAAE,CAAC,OAAO,CAAC;wBACf,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,OAAO;gCACb,QAAQ,EAAE,yBAAQ,CAAC,GAAG;gCACtB,OAAO,EAAE,aAAa;6BACvB;yBACF;qBACF,CAAC,CAAA;iBACH;gBAED,sBAAO,SAAS,EAAA;;;KACjB;IACH,gCAAC;AAAD,CAAC,AAzCD,IAyCC;AAzCY,8DAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-component-path-plugin.d.ts","sourceRoot":"","sources":["../../src/local-component-path-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,UAAU,8BAA8B;IACtC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,sBAAsB,CACjE,8BAA8B,CAyB/B,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"local-component-path-plugin.d.ts","sourceRoot":"","sources":["../../src/local-component-path-plugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAEpF,UAAU,8BAA8B;IACtC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,8BAA8B,EAAE,sBAAsB,CACjE,8BAA8B,CAyB/B,CAAA;AAED,oFAAoF;AACpF,eAAO,MAAM,qCAAqC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAexE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-component-path-plugin.js","sourceRoot":"","sources":["../../src/local-component-path-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAA0D;AAiB1D;;;;;;;;GAQG;AACI,IAAM,8BAA8B,GAEvC,UAAC,MAAM;IACH,IAAA,KAAgD,MAAM,IAAI,EAAE,EAA1D,gBAAoB,EAApB,QAAQ,mBAAG,CAAC,OAAO,CAAC,KAAA,EAAE,sBAAmB,EAAnB,cAAc,mBAAG,EAAE,KAAiB,CAAA;IAElE,IAAM,MAAM,GAAoB,UAAO,SAAS;;;;YACtC,YAAY,GAAW,SAAS,aAApB,EAAE,IAAI,GAAK,SAAS,KAAd,CAAc;YAElC,UAAU,GAAG,CAAA,MAAA,IAAI,CAAC,aAAa,0CAAE,UAA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rB,SAAS,EAAE,YAAY;IACvB,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,iBAAiB;IAChC,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,cAAc;IAC3B,eAAe,EAAE,oBAAoB;CACtC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-project-mapping.d.ts","sourceRoot":"","sources":["../../src/next-project-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"next-project-mapping.d.ts","sourceRoot":"","sources":["../../src/next-project-mapping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEpD,eAAO,MAAM,kBAAkB,EAAE,OAsPhC,CAAA"}
|
|
@@ -176,6 +176,13 @@ exports.NextProjectMapping = {
|
|
|
176
176
|
path: '../components/tq-motion',
|
|
177
177
|
},
|
|
178
178
|
},
|
|
179
|
+
'form-file-input-node': {
|
|
180
|
+
elementType: 'TqFormFileInput',
|
|
181
|
+
dependency: {
|
|
182
|
+
type: 'local',
|
|
183
|
+
path: '../components/tq-form-file-input',
|
|
184
|
+
},
|
|
185
|
+
},
|
|
179
186
|
'countdown-node': {
|
|
180
187
|
elementType: 'TqCountdown',
|
|
181
188
|
dependency: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"next-project-mapping.js","sourceRoot":"","sources":["../../src/next-project-mapping.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAY;IACzC,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,SAAS;aACnB;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,EAA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;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;KACF;CACF,CAAA"}
|
|
1
|
+
{"version":3,"file":"next-project-mapping.js","sourceRoot":"","sources":["../../src/next-project-mapping.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAY;IACzC,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;YACnB,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,SAAS;aACnB;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,EAAE,cAAc,EAAE,EAAE;aAClF;YACD,QAAQ,EAAE;gBACR;oBACE,IAAI,EAAE,SAAS;oBACf,OAAO,EAAE;wBACP,WAAW,EAAE,GAAG;wBAChB,IAAI,EAAE,MAAM;wBACZ,QAAQ,EAAE,CAAC,E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gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;QACD,UAAU,EAAE;YACV,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;QACD,gBAAgB,EAAE;YAChB,WAAW,EAAE,cAAc;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,8BAA8B;gBACpC,OAAO,EAAE,QAAQ;gBACjB,IAAI,EAAE;oBACJ,WAAW,EAAE,IAAI;iBAClB;aACF;SACF;KACF;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-data-source-plugin.d.ts","sourceRoot":"","sources":["../../src/state-data-source-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAQvB,MAAM,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"state-data-source-plugin.d.ts","sourceRoot":"","sources":["../../src/state-data-source-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAQvB,MAAM,4BAA4B,CAAA;AAohBnC,eAAO,MAAM,2BAA2B,EAAE,sBAAsB,CAAC,EAAE,CAoJlE,CAAA"}
|
|
@@ -279,6 +279,28 @@ var collectBoundStates = function (stateDefinitions) {
|
|
|
279
279
|
}
|
|
280
280
|
return result;
|
|
281
281
|
};
|
|
282
|
+
/**
|
|
283
|
+
* Stable hash of everything buildFetchParams derives from a state definition
|
|
284
|
+
* (rawQuery + sorts + static filters). Two states may only share a fetch when
|
|
285
|
+
* this matches — grouping by table alone made every state in the group receive
|
|
286
|
+
* the FIRST state's query result (e.g. a 1-row aggregate state getting an
|
|
287
|
+
* N-row JOIN, duplicating the dashboard KPI block N times).
|
|
288
|
+
*/
|
|
289
|
+
var computeFetchDiscriminator = function (definition) {
|
|
290
|
+
var staticFilters = (definition.filterConfig || []).filter(function (f) { return !f.isDynamic; });
|
|
291
|
+
var fingerprint = JSON.stringify({
|
|
292
|
+
query: definition.query && definition.query.trim() ? definition.query : '',
|
|
293
|
+
sorts: definition.sortConfig || [],
|
|
294
|
+
filters: staticFilters,
|
|
295
|
+
});
|
|
296
|
+
var hash = 5381;
|
|
297
|
+
for (var i = 0; i < fingerprint.length; i++) {
|
|
298
|
+
// tslint:disable-next-line:no-bitwise
|
|
299
|
+
hash = ((hash << 5) + hash + fingerprint.charCodeAt(i)) | 0;
|
|
300
|
+
}
|
|
301
|
+
// tslint:disable-next-line:no-bitwise
|
|
302
|
+
return (hash >>> 0).toString(36);
|
|
303
|
+
};
|
|
282
304
|
var groupByDataSourceAndTable = function (boundStates, dataSources) {
|
|
283
305
|
var groupMap = new Map();
|
|
284
306
|
for (var _i = 0, boundStates_1 = boundStates; _i < boundStates_1.length; _i++) {
|
|
@@ -293,7 +315,8 @@ var groupByDataSourceAndTable = function (boundStates, dataSources) {
|
|
|
293
315
|
continue;
|
|
294
316
|
}
|
|
295
317
|
var tableName = getTableNameFromRefPath(binding.refPath) || 'data';
|
|
296
|
-
var
|
|
318
|
+
var fetchDiscriminator = computeFetchDiscriminator(state.definition);
|
|
319
|
+
var groupKey = "".concat(binding.dataSourceId, "::").concat(tableName, "::").concat(fetchDiscriminator);
|
|
297
320
|
if (!groupMap.has(groupKey)) {
|
|
298
321
|
var fileName = (0, teleport_plugin_next_data_source_1.generateSafeFileName)(dataSource.type, tableName, binding.dataSourceId);
|
|
299
322
|
var fetcherImportName = teleport_shared_1.StringUtils.dashCaseToCamelCase(fileName);
|
|
@@ -302,6 +325,7 @@ var groupByDataSourceAndTable = function (boundStates, dataSources) {
|
|
|
302
325
|
tableName: tableName,
|
|
303
326
|
fileName: fileName,
|
|
304
327
|
fetcherImportName: fetcherImportName,
|
|
328
|
+
fetchDiscriminator: fetchDiscriminator,
|
|
305
329
|
states: [],
|
|
306
330
|
});
|
|
307
331
|
}
|
|
@@ -418,7 +442,7 @@ var createStateDataSourcePlugin = function () {
|
|
|
418
442
|
}
|
|
419
443
|
sanitizedDsId = teleport_shared_1.StringUtils.dashCaseToCamelCase((0, teleport_plugin_next_data_source_1.sanitizeFileName)(dataSource.id).substring(0, 8));
|
|
420
444
|
sanitizedTable = teleport_shared_1.StringUtils.dashCaseToCamelCase((0, teleport_plugin_next_data_source_1.sanitizeFileName)(tableName));
|
|
421
|
-
rawDataPropKey = "__stateDs_".concat(sanitizedDsId, "_").concat(sanitizedTable, "_raw");
|
|
445
|
+
rawDataPropKey = "__stateDs_".concat(sanitizedDsId, "_").concat(sanitizedTable, "_").concat(group.fetchDiscriminator, "_raw");
|
|
422
446
|
parallelFetchMeta = (_e = getStaticPropsChunk.meta) === null || _e === void 0 ? void 0 : _e.parallelFetchData;
|
|
423
447
|
alreadyRegistered = parallelFetchMeta === null || parallelFetchMeta === void 0 ? void 0 : parallelFetchMeta.names.includes(rawDataPropKey);
|
|
424
448
|
if (!alreadyRegistered) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-data-source-plugin.js","sourceRoot":"","sources":["../../src/state-data-source-plugin.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAUmC;AACnC,+DAAyD;AACzD,kDAAqC;AACrC,iGAKqD;AAQrD;;;GAGG;AACH,IAAM,qCAAqC,GAAG,UAC5C,mBAAyC,EACzC,KAAa,EACb,YAA8B;IAE9B,IAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjD,IAAM,YAAY,GAAG,KAAK,CAAC,uBAAuB,CAChD,CAAC,eAAe,CAAC,EACjB,KAAK,CAAC,cAAc,CAAC;QACnB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